Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/kotlin/com/ecwid/apiclient/v3/ApiClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ interface SalesChannelsApiClient {
fun getYahooShoppingFeedConfig(request: YahooShoppingFeedConfigGetRequest): FetchedYahooShoppingFeedConfig
fun getYandexMarketFeedConfig(request: YandexMarketFeedConfigGetRequest): FetchedYandexMarketFeedConfig
fun getYandexMarketDbsFeedConfig(request: YandexMarketDbsFeedConfigGetRequest): FetchedYandexMarketDbsFeedConfig
fun getMetaOpenCatalogFeedConfig(request: MetaOpenCatalogFeedConfigGetRequest): FetchedMetaOpenCatalogFeedConfig
}

// Application
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.ecwid.apiclient.v3.dto.saleschannels.request

import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.impl.RequestInfo
import com.ecwid.apiclient.v3.responsefields.ResponseFields

data class MetaOpenCatalogFeedConfigGetRequest(
val responseFields: ResponseFields = ResponseFields.All,
) : ApiRequest {
override fun toRequestInfo() = RequestInfo.createGetRequest(
pathSegments = listOf(
"saleschannels",
"meta_open_catalog"
),
responseFields = responseFields
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.ecwid.apiclient.v3.dto.saleschannels.response

import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO
import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO.ModifyKind
import com.ecwid.apiclient.v3.dto.saleschannels.MarketplaceConfig
import com.ecwid.apiclient.v3.dto.saleschannels.ProductFeedInfo

data class FetchedMetaOpenCatalogFeedConfig(
val marketplaceConfig: MarketplaceConfig = MarketplaceConfig(),
val productFeedInfo: ProductFeedInfo = ProductFeedInfo()
) : ApiFetchedDTO {

override fun getModifyKind() = ModifyKind.ReadOnly
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ class SalesChannelsApiClientImpl(

override fun getYandexMarketDbsFeedConfig(request: YandexMarketDbsFeedConfigGetRequest) =
apiClientHelper.makeObjectResultRequest<FetchedYandexMarketDbsFeedConfig>(request)

override fun getMetaOpenCatalogFeedConfig(request: MetaOpenCatalogFeedConfigGetRequest) =
apiClientHelper.makeObjectResultRequest<FetchedMetaOpenCatalogFeedConfig>(request)
}
Loading