File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
src/main/kotlin/com/ecwid/apiclient/v3 Expand file tree Collapse file tree 3 files changed +11
-3
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 @@ -4,11 +4,12 @@ import com.ecwid.apiclient.v3.ApiClientHelper
44import com.ecwid.apiclient.v3.SwatchesApiClient
55import com.ecwid.apiclient.v3.dto.swatches.request.RecentSwatchColorsGetRequest
66import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColor
7+ import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColorsResult
78
89class SwatchesApiClientImpl (
910 private val apiClientHelper : ApiClientHelper ,
1011) : SwatchesApiClient {
1112
1213 override fun getRecentSwatchColors (request : RecentSwatchColorsGetRequest ) =
13- apiClientHelper.makeObjectResultRequest<Sequence < FetchedSwatchColor > >(request)
14+ apiClientHelper.makeObjectResultRequest<FetchedSwatchColorsResult >(request)
1415}
You can’t perform that action at this time.
0 commit comments