File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
src/main/kotlin/com/ecwid/apiclient/v3 Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import com.ecwid.apiclient.v3.dto.subscriptions.request.SubscriptionsSearchReque
4444import com.ecwid.apiclient.v3.dto.subscriptions.result.FetchedSubscription
4545import com.ecwid.apiclient.v3.dto.subscriptions.result.SubscriptionsSearchResult
4646import com.ecwid.apiclient.v3.dto.swatches.request.RecentSwatchColorsGetRequest
47- import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColor
47+ import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColorsResult
4848import com.ecwid.apiclient.v3.dto.variation.request.*
4949import com.ecwid.apiclient.v3.dto.variation.result.*
5050import com.ecwid.apiclient.v3.httptransport.HttpTransport
@@ -324,5 +324,5 @@ interface ProductReviewsApiClient {
324324
325325// Swatches
326326interface SwatchesApiClient {
327- fun getRecentSwatchColors (request : RecentSwatchColorsGetRequest ): Sequence < FetchedSwatchColor >
327+ fun getRecentSwatchColors (request : RecentSwatchColorsGetRequest ): FetchedSwatchColorsResult
328328}
Original file line number Diff line number Diff line change 1+ package com.ecwid.apiclient.v3.dto.swatches.result
2+
3+ import com.ecwid.apiclient.v3.dto.common.ApiResultDTO
4+
5+ data class FetchedSwatchColorsResult (
6+ val colors : List <FetchedSwatchColor > = listOf(),
7+ ) : ApiResultDTO
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ package com.ecwid.apiclient.v3.impl
33import com.ecwid.apiclient.v3.ApiClientHelper
44import com.ecwid.apiclient.v3.SwatchesApiClient
55import com.ecwid.apiclient.v3.dto.swatches.request.RecentSwatchColorsGetRequest
6- import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColor
6+ import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColorsResult
77
88class SwatchesApiClientImpl (
99 private val apiClientHelper : ApiClientHelper ,
1010) : SwatchesApiClient {
1111
1212 override fun getRecentSwatchColors (request : RecentSwatchColorsGetRequest ) =
13- apiClientHelper.makeObjectResultRequest<Sequence < FetchedSwatchColor > >(request)
13+ apiClientHelper.makeObjectResultRequest<FetchedSwatchColorsResult >(request)
1414}
You can’t perform that action at this time.
0 commit comments