/**
 * Selling Partner API for Sellers
 * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Configuration } from './configuration' ; import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { DUMMY_BASE_URL , assertParamExists , setApiKeyToObject , setBasicAuthToObject , setBearerAuthToObject , setOAuthToObject , setSearchParams , serializeDataIfNeeded , toPathString , createRequestFunction } from './common' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from './base' ; export interface export interface GetMarketplaceParticipationsResponse { type { Array < MarketplaceParticipation > } memberof payload ? : Array < MarketplaceParticipation > ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface Marketplace { type { string } memberof id : string ; type { string } memberof name : string ; type { string } memberof countryCode : string ; type { string } memberof defaultCurrencyCode : string ; type { string } memberof defaultLanguageCode : string ; type { string } memberof domainName : string ; } export interface export interface MarketplaceParticipation { type { Marketplace } memberof marketplace : Marketplace ; type { Participation } memberof participation : Participation ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export interface export interface Participation { type { boolean } memberof isParticipating : boolean ; type { boolean } memberof hasSuspendedListings : boolean ; } export export const SellersApiAxiosParamCreator = function ( configuration ? ) { return { param { * } options throws getMarketplaceParticipations : async ( options = { } ) : Promise < RequestArgs > => { const localVarPath = `/sellers/v1/marketplaceParticipations` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , } ; } ; export export const SellersApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = SellersApiAxiosParamCreator ( configuration ) ; return { param { * } options throws async getMarketplaceParticipations ( options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getMarketplaceParticipations ( options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const SellersApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = SellersApiFp ( configuration ) ; return { param { * } options throws getMarketplaceParticipations ( options ? ) { return localVarFp . getMarketplaceParticipations ( options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export class extends BaseAPI export class SellersApi extends BaseAPI { param { * } options throws memberof public getMarketplaceParticipations ( options ? ) { return SellersApiFp ( this . configuration ) . getMarketplaceParticipations ( options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }