/**
 * Selling Partner API for Messaging
 * With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
 *
 * 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 Attachment { type { string } memberof uploadDestinationId : string ; type { string } memberof fileName : string ; } export interface export interface CreateAmazonMotorsRequest { type { Array < Attachment > } memberof attachments ? : Array < Attachment > ; } export interface export interface CreateAmazonMotorsResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateConfirmCustomizationDetailsRequest { type { string } memberof text ? : string ; type { Array < Attachment > } memberof attachments ? : Array < Attachment > ; } export interface export interface CreateConfirmCustomizationDetailsResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateConfirmDeliveryDetailsRequest { type { string } memberof text ? : string ; } export interface export interface CreateConfirmDeliveryDetailsResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateConfirmOrderDetailsRequest { type { string } memberof text ? : string ; } export interface export interface CreateConfirmOrderDetailsResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateConfirmServiceDetailsRequest { type { string } memberof text ? : string ; } export interface export interface CreateConfirmServiceDetailsResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateDigitalAccessKeyRequest { type { string } memberof text ? : string ; type { Array < Attachment > } memberof attachments ? : Array < Attachment > ; } export interface export interface CreateDigitalAccessKeyResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateLegalDisclosureRequest { type { Array < Attachment > } memberof attachments ? : Array < Attachment > ; } export interface export interface CreateLegalDisclosureResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateNegativeFeedbackRemovalResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateUnexpectedProblemRequest { type { string } memberof text ? : string ; } export interface export interface CreateUnexpectedProblemResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateWarrantyRequest { type { Array < Attachment > } memberof attachments ? : Array < Attachment > ; type { string } memberof coverageStartDate ? : string ; type { string } memberof coverageEndDate ? : string ; } export interface export interface CreateWarrantyResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetAttributesResponse { type { GetAttributesResponseBuyer } memberof buyer ? : GetAttributesResponseBuyer ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetAttributesResponseBuyer { type { string } memberof locale ? : string ; } export interface export interface GetMessagingActionResponse { type { GetMessagingActionResponseLinks } memberof _links ? : GetMessagingActionResponseLinks ; type { GetMessagingActionResponseEmbedded } memberof _embedded ? : GetMessagingActionResponseEmbedded ; type { MessagingAction } memberof payload ? : MessagingAction ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetMessagingActionResponseEmbedded { type { GetSchemaResponse } memberof schema ? : GetSchemaResponse ; } export interface export interface GetMessagingActionResponseLinks { type { LinkObject } memberof self : LinkObject ; type { LinkObject } memberof schema : LinkObject ; } export interface export interface GetMessagingActionsForOrderResponse { type { GetMessagingActionsForOrderResponseLinks } memberof _links ? : GetMessagingActionsForOrderResponseLinks ; type { GetMessagingActionsForOrderResponseEmbedded } memberof _embedded ? : GetMessagingActionsForOrderResponseEmbedded ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetMessagingActionsForOrderResponseEmbedded { type { Array < GetMessagingActionResponse > } memberof actions : Array < GetMessagingActionResponse > ; } export interface export interface GetMessagingActionsForOrderResponseLinks { type { LinkObject } memberof self : LinkObject ; type { Array < LinkObject > } memberof actions : Array < LinkObject > ; } export interface export interface GetSchemaResponse { type { GetSchemaResponseLinks } memberof _links ? : GetSchemaResponseLinks ; type { object } memberof payload ? : object ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetSchemaResponseLinks { type { LinkObject } memberof self : LinkObject ; } export interface export interface LinkObject { type { string } memberof href : string ; type { string } memberof name ? : string ; } export interface export interface MessagingAction { type { string } memberof name : string ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export export const MessagingApiAxiosParamCreator = function ( configuration ? ) { return { param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmCustomizationDetailsRequest } body param { * } options throws confirmCustomizationDetails : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'confirmCustomizationDetails' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'confirmCustomizationDetails' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'confirmCustomizationDetails' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/confirmCustomizationDetails` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateAmazonMotorsRequest } body param { * } options throws createAmazonMotors : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createAmazonMotors' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createAmazonMotors' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createAmazonMotors' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/amazonMotors` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmDeliveryDetailsRequest } body param { * } options throws createConfirmDeliveryDetails : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createConfirmDeliveryDetails' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createConfirmDeliveryDetails' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createConfirmDeliveryDetails' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/confirmDeliveryDetails` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmOrderDetailsRequest } body param { * } options throws createConfirmOrderDetails : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createConfirmOrderDetails' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createConfirmOrderDetails' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createConfirmOrderDetails' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/confirmOrderDetails` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmServiceDetailsRequest } body param { * } options throws createConfirmServiceDetails : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createConfirmServiceDetails' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createConfirmServiceDetails' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createConfirmServiceDetails' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/confirmServiceDetails` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateDigitalAccessKeyRequest } body param { * } options throws createDigitalAccessKey : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createDigitalAccessKey' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createDigitalAccessKey' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createDigitalAccessKey' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/digitalAccessKey` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateLegalDisclosureRequest } body param { * } options throws createLegalDisclosure : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createLegalDisclosure' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createLegalDisclosure' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createLegalDisclosure' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws createNegativeFeedbackRemoval : async ( amazonOrderId , marketplaceIds , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createNegativeFeedbackRemoval' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createNegativeFeedbackRemoval' , 'marketplaceIds' , marketplaceIds ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/negativeFeedbackRemoval` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateUnexpectedProblemRequest } body param { * } options throws createUnexpectedProblem : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createUnexpectedProblem' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createUnexpectedProblem' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createUnexpectedProblem' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/unexpectedProblem` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateWarrantyRequest } body param { * } options throws createWarranty : async ( amazonOrderId , marketplaceIds , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createWarranty' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'createWarranty' , 'marketplaceIds' , marketplaceIds ) ; assertParamExists ( 'createWarranty' , 'body' , body ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/messages/warranty` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws getAttributes : async ( amazonOrderId , marketplaceIds , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getAttributes' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'getAttributes' , 'marketplaceIds' , marketplaceIds ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}/attributes` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; 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 ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws getMessagingActionsForOrder : async ( amazonOrderId , marketplaceIds , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getMessagingActionsForOrder' , 'amazonOrderId' , amazonOrderId ) ; assertParamExists ( 'getMessagingActionsForOrder' , 'marketplaceIds' , marketplaceIds ) ; const localVarPath = `/messaging/v1/orders/{amazonOrderId}` . replace ( `{${ "amazonOrderId" }}` , encodeURIComponent ( String ( amazonOrderId ) ) ) ; 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 ; if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } 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 MessagingApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = MessagingApiAxiosParamCreator ( configuration ) ; return { param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmCustomizationDetailsRequest } body param { * } options throws async confirmCustomizationDetails ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . confirmCustomizationDetails ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateAmazonMotorsRequest } body param { * } options throws async createAmazonMotors ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createAmazonMotors ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmDeliveryDetailsRequest } body param { * } options throws async createConfirmDeliveryDetails ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createConfirmDeliveryDetails ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmOrderDetailsRequest } body param { * } options throws async createConfirmOrderDetails ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createConfirmOrderDetails ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmServiceDetailsRequest } body param { * } options throws async createConfirmServiceDetails ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createConfirmServiceDetails ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateDigitalAccessKeyRequest } body param { * } options throws async createDigitalAccessKey ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createDigitalAccessKey ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateLegalDisclosureRequest } body param { * } options throws async createLegalDisclosure ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createLegalDisclosure ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws async createNegativeFeedbackRemoval ( amazonOrderId , marketplaceIds , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createNegativeFeedbackRemoval ( amazonOrderId , marketplaceIds , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateUnexpectedProblemRequest } body param { * } options throws async createUnexpectedProblem ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createUnexpectedProblem ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateWarrantyRequest } body param { * } options throws async createWarranty ( amazonOrderId , marketplaceIds , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createWarranty ( amazonOrderId , marketplaceIds , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws async getAttributes ( amazonOrderId , marketplaceIds , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getAttributes ( amazonOrderId , marketplaceIds , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws async getMessagingActionsForOrder ( amazonOrderId , marketplaceIds , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getMessagingActionsForOrder ( amazonOrderId , marketplaceIds , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const MessagingApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = MessagingApiFp ( configuration ) ; return { param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmCustomizationDetailsRequest } body param { * } options throws confirmCustomizationDetails ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . confirmCustomizationDetails ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateAmazonMotorsRequest } body param { * } options throws createAmazonMotors ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createAmazonMotors ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmDeliveryDetailsRequest } body param { * } options throws createConfirmDeliveryDetails ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createConfirmDeliveryDetails ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmOrderDetailsRequest } body param { * } options throws createConfirmOrderDetails ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createConfirmOrderDetails ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateConfirmServiceDetailsRequest } body param { * } options throws createConfirmServiceDetails ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createConfirmServiceDetails ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateDigitalAccessKeyRequest } body param { * } options throws createDigitalAccessKey ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createDigitalAccessKey ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateLegalDisclosureRequest } body param { * } options throws createLegalDisclosure ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createLegalDisclosure ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws createNegativeFeedbackRemoval ( amazonOrderId , marketplaceIds , options ? ) { return localVarFp . createNegativeFeedbackRemoval ( amazonOrderId , marketplaceIds , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateUnexpectedProblemRequest } body param { * } options throws createUnexpectedProblem ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createUnexpectedProblem ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { CreateWarrantyRequest } body param { * } options throws createWarranty ( amazonOrderId , marketplaceIds , body , options ? ) { return localVarFp . createWarranty ( amazonOrderId , marketplaceIds , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws getAttributes ( amazonOrderId , marketplaceIds , options ? ) { return localVarFp . getAttributes ( amazonOrderId , marketplaceIds , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } amazonOrderId param { Array < string > } marketplaceIds param { * } options throws getMessagingActionsForOrder ( amazonOrderId , marketplaceIds , options ? ) { return localVarFp . getMessagingActionsForOrder ( amazonOrderId , marketplaceIds , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface MessagingApiConfirmCustomizationDetailsRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateConfirmCustomizationDetailsRequest } memberof readonly body : CreateConfirmCustomizationDetailsRequest ; } export interface export interface MessagingApiCreateAmazonMotorsRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateAmazonMotorsRequest } memberof readonly body : CreateAmazonMotorsRequest ; } export interface export interface MessagingApiCreateConfirmDeliveryDetailsRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateConfirmDeliveryDetailsRequest } memberof readonly body : CreateConfirmDeliveryDetailsRequest ; } export interface export interface MessagingApiCreateConfirmOrderDetailsRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateConfirmOrderDetailsRequest } memberof readonly body : CreateConfirmOrderDetailsRequest ; } export interface export interface MessagingApiCreateConfirmServiceDetailsRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateConfirmServiceDetailsRequest } memberof readonly body : CreateConfirmServiceDetailsRequest ; } export interface export interface MessagingApiCreateDigitalAccessKeyRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateDigitalAccessKeyRequest } memberof readonly body : CreateDigitalAccessKeyRequest ; } export interface export interface MessagingApiCreateLegalDisclosureRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateLegalDisclosureRequest } memberof readonly body : CreateLegalDisclosureRequest ; } export interface export interface MessagingApiCreateNegativeFeedbackRemovalRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; } export interface export interface MessagingApiCreateUnexpectedProblemRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateUnexpectedProblemRequest } memberof readonly body : CreateUnexpectedProblemRequest ; } export interface export interface MessagingApiCreateWarrantyRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { CreateWarrantyRequest } memberof readonly body : CreateWarrantyRequest ; } export interface export interface MessagingApiGetAttributesRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; } export interface export interface MessagingApiGetMessagingActionsForOrderRequest { type { string } memberof readonly amazonOrderId : string ; type { Array < string > } memberof readonly marketplaceIds : Array < string > ; } export class extends BaseAPI export class MessagingApi extends BaseAPI { param { MessagingApiConfirmCustomizationDetailsRequest } requestParameters param { * } options throws memberof public confirmCustomizationDetails ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . confirmCustomizationDetails ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateAmazonMotorsRequest } requestParameters param { * } options throws memberof public createAmazonMotors ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createAmazonMotors ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateConfirmDeliveryDetailsRequest } requestParameters param { * } options throws memberof public createConfirmDeliveryDetails ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createConfirmDeliveryDetails ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateConfirmOrderDetailsRequest } requestParameters param { * } options throws memberof public createConfirmOrderDetails ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createConfirmOrderDetails ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateConfirmServiceDetailsRequest } requestParameters param { * } options throws memberof public createConfirmServiceDetails ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createConfirmServiceDetails ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateDigitalAccessKeyRequest } requestParameters param { * } options throws memberof public createDigitalAccessKey ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createDigitalAccessKey ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateLegalDisclosureRequest } requestParameters param { * } options throws memberof public createLegalDisclosure ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createLegalDisclosure ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateNegativeFeedbackRemovalRequest } requestParameters param { * } options throws memberof public createNegativeFeedbackRemoval ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createNegativeFeedbackRemoval ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateUnexpectedProblemRequest } requestParameters param { * } options throws memberof public createUnexpectedProblem ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createUnexpectedProblem ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiCreateWarrantyRequest } requestParameters param { * } options throws memberof public createWarranty ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . createWarranty ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiGetAttributesRequest } requestParameters param { * } options throws memberof public getAttributes ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . getAttributes ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { MessagingApiGetMessagingActionsForOrderRequest } requestParameters param { * } options throws memberof public getMessagingActionsForOrder ( requestParameters , options ? ) { return MessagingApiFp ( this . configuration ) . getMessagingActionsForOrder ( requestParameters . amazonOrderId , requestParameters . marketplaceIds , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }