File tree Expand file tree Collapse file tree
src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ sealed class ProductsSearchRequest : ApiRequest {
8787
8888 data class ByIds (
8989 val productIds : List <Int > = listOf(),
90+ val baseUrl : String? = null ,
91+ val cleanUrls : Boolean? = null ,
9092 val sortBy : SortOrder ? = null ,
93+ val lang : String? = null ,
9194 ) : ProductsSearchRequest() {
9295 override fun toRequestInfo () = RequestInfo .createGetRequest(
9396 pathSegments = listOf (
@@ -103,7 +106,10 @@ sealed class ProductsSearchRequest : ApiRequest {
103106 val request = this
104107 return mutableMapOf<String , String >().apply {
105108 put(" productId" , request.productIds.joinToString(" ," ))
109+ request.baseUrl?.let { put(" baseUrl" , it) }
110+ request.cleanUrls?.let { put(" cleanUrls" , it.toString()) }
106111 request.sortBy?.let { put(" sortBy" , it.name) }
112+ request.lang?.let { put(" lang" , it) }
107113 }.toMap()
108114 }
109115 }
You can’t perform that action at this time.
0 commit comments