/**
 * Selling Partner API for Direct Fulfillment Shipping
 * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
 *
 * 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 Address { type { string } memberof name : string ; type { string } memberof addressLine1 : string ; type { string } memberof addressLine2 ? : string ; type { string } memberof addressLine3 ? : string ; type { string } memberof city ? : string ; type { string } memberof county ? : string ; type { string } memberof district ? : string ; type { string } memberof stateOrRegion ? : string ; type { string } memberof postalCode ? : string ; type { string } memberof countryCode : string ; type { string } memberof phone ? : string ; } export interface export interface Container { type { string } memberof containerType : ContainerContainerTypeEnum | 'carton' | 'pallet' ; type { string } memberof containerIdentifier : string ; type { string } memberof trackingNumber ? : string ; type { string } memberof manifestId ? : string ; type { string } memberof manifestDate ? : string ; type { string } memberof shipMethod ? : string ; type { string } memberof scacCode ? : string ; type { string } memberof carrier ? : string ; type { number } memberof containerSequenceNumber ? : number ; type { Dimensions } memberof dimensions ? : Dimensions ; type { Weight } memberof weight ? : Weight ; type { Array < PackedItem > } memberof packedItems : Array < PackedItem > ; } export enum { string } export enum ContainerContainerTypeEnum { Carton = 'carton' , Pallet = 'pallet' } export interface export interface CustomerInvoice { type { string } memberof purchaseOrderNumber : string ; type { string } memberof content : string ; } export interface export interface CustomerInvoiceList { type { Pagination } memberof pagination ? : Pagination ; type { Array < CustomerInvoice > } memberof customerInvoices ? : Array < CustomerInvoice > ; } export interface export interface Dimensions { type { string } memberof length : string ; type { string } memberof width : string ; type { string } memberof height : string ; type { string } memberof unitOfMeasure : DimensionsUnitOfMeasureEnum | 'IN' | 'CM' ; } export enum { string } export enum DimensionsUnitOfMeasureEnum { In = 'IN' , Cm = 'CM' } export interface export interface GetCustomerInvoiceResponse { type { CustomerInvoice } memberof payload ? : CustomerInvoice ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetCustomerInvoicesResponse { type { CustomerInvoiceList } memberof payload ? : CustomerInvoiceList ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetPackingSlipListResponse { type { PackingSlipList } memberof payload ? : PackingSlipList ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetPackingSlipResponse { type { PackingSlip } memberof payload ? : PackingSlip ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetShippingLabelListResponse { type { ShippingLabelList } memberof payload ? : ShippingLabelList ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetShippingLabelResponse { type { ShippingLabel } memberof payload ? : ShippingLabel ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface Item { type { number } memberof itemSequenceNumber : number ; type { string } memberof buyerProductIdentifier ? : string ; type { string } memberof vendorProductIdentifier ? : string ; type { ItemQuantity } memberof shippedQuantity : ItemQuantity ; } export interface export interface ItemQuantity { type { number } memberof amount : number ; type { string } memberof unitOfMeasure : string ; } export interface export interface LabelData { type { string } memberof packageIdentifier ? : string ; type { string } memberof trackingNumber ? : string ; type { string } memberof shipMethod ? : string ; type { string } memberof shipMethodName ? : string ; type { string } memberof content : string ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export interface export interface PackedItem { type { number } memberof itemSequenceNumber : number ; type { string } memberof buyerProductIdentifier ? : string ; type { string } memberof vendorProductIdentifier ? : string ; type { ItemQuantity } memberof packedQuantity : ItemQuantity ; } export interface export interface PackingSlip { type { string } memberof purchaseOrderNumber : string ; type { string } memberof content : string ; type { string } memberof contentType ? : PackingSlipContentTypeEnum | 'application/pdf' ; } export enum { string } export enum PackingSlipContentTypeEnum { ApplicationPdf = 'application/pdf' } export interface export interface PackingSlipList { type { Pagination } memberof pagination ? : Pagination ; type { Array < PackingSlip > } memberof packingSlips ? : Array < PackingSlip > ; } export interface export interface Pagination { type { string } memberof nextToken ? : string ; } export interface export interface PartyIdentification { type { string } memberof partyId : string ; type { Address } memberof address ? : Address ; type { Array < TaxRegistrationDetails > } memberof taxRegistrationDetails ? : Array < TaxRegistrationDetails > ; } export interface export interface ShipmentConfirmation { type { string } memberof purchaseOrderNumber : string ; type { ShipmentDetails } memberof shipmentDetails : ShipmentDetails ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { PartyIdentification } memberof shipFromParty : PartyIdentification ; type { Array < Item > } memberof items : Array < Item > ; type { Array < Container > } memberof containers ? : Array < Container > ; } export interface export interface ShipmentDetails { type { string } memberof shippedDate : string ; type { string } memberof shipmentStatus : ShipmentDetailsShipmentStatusEnum | 'SHIPPED' | 'FLOOR_DENIAL' ; type { boolean } memberof isPriorityShipment ? : boolean ; type { string } memberof vendorOrderNumber ? : string ; type { string } memberof estimatedDeliveryDate ? : string ; } export enum { string } export enum ShipmentDetailsShipmentStatusEnum { Shipped = 'SHIPPED' , FloorDenial = 'FLOOR_DENIAL' } export interface export interface ShipmentStatusUpdate { type { string } memberof purchaseOrderNumber : string ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { PartyIdentification } memberof shipFromParty : PartyIdentification ; type { StatusUpdateDetails } memberof statusUpdateDetails : StatusUpdateDetails ; } export interface export interface ShippingLabel { type { string } memberof purchaseOrderNumber : string ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { PartyIdentification } memberof shipFromParty : PartyIdentification ; type { string } memberof labelFormat : ShippingLabelLabelFormatEnum | 'PNG' | 'ZPL' ; type { Array < LabelData > } memberof labelData : Array < LabelData > ; } export enum { string } export enum ShippingLabelLabelFormatEnum { Png = 'PNG' , Zpl = 'ZPL' } export interface export interface ShippingLabelList { type { Pagination } memberof pagination ? : Pagination ; type { Array < ShippingLabel > } memberof shippingLabels ? : Array < ShippingLabel > ; } export interface export interface ShippingLabelRequest { type { string } memberof purchaseOrderNumber : string ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { PartyIdentification } memberof shipFromParty : PartyIdentification ; type { Array < Container > } memberof containers ? : Array < Container > ; } export interface export interface StatusUpdateDetails { type { string } memberof trackingNumber : string ; type { string } memberof statusCode : string ; type { string } memberof reasonCode : string ; type { string } memberof statusDateTime : string ; type { Address } memberof statusLocationAddress : Address ; type { StatusUpdateDetailsShipmentSchedule } memberof shipmentSchedule ? : StatusUpdateDetailsShipmentSchedule ; } export interface export interface StatusUpdateDetailsShipmentSchedule { type { string } memberof estimatedDeliveryDateTime ? : string ; type { string } memberof apptWindowStartDateTime ? : string ; type { string } memberof apptWindowEndDateTime ? : string ; } export interface export interface SubmitShipmentConfirmationsRequest { type { Array < ShipmentConfirmation > } memberof shipmentConfirmations ? : Array < ShipmentConfirmation > ; } export interface export interface SubmitShipmentConfirmationsResponse { type { TransactionReference } memberof payload ? : TransactionReference ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface SubmitShipmentStatusUpdatesRequest { type { Array < ShipmentStatusUpdate > } memberof shipmentStatusUpdates ? : Array < ShipmentStatusUpdate > ; } export interface export interface SubmitShipmentStatusUpdatesResponse { type { TransactionReference } memberof payload ? : TransactionReference ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface SubmitShippingLabelsRequest { type { Array < ShippingLabelRequest > } memberof shippingLabelRequests ? : Array < ShippingLabelRequest > ; } export interface export interface SubmitShippingLabelsResponse { type { TransactionReference } memberof payload ? : TransactionReference ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface TaxRegistrationDetails { type { string } memberof taxRegistrationType ? : TaxRegistrationDetailsTaxRegistrationTypeEnum | 'VAT' | 'GST' ; type { string } memberof taxRegistrationNumber : string ; type { Address } memberof taxRegistrationAddress ? : Address ; type { string } memberof taxRegistrationMessages ? : string ; } export enum { string } export enum TaxRegistrationDetailsTaxRegistrationTypeEnum { Vat = 'VAT' , Gst = 'GST' } export interface export interface TransactionReference { type { string } memberof transactionId ? : string ; } export interface export interface Weight { type { string } memberof unitOfMeasure : WeightUnitOfMeasureEnum | 'KG' | 'LB' ; type { string } memberof value : string ; } export enum { string } export enum WeightUnitOfMeasureEnum { Kg = 'KG' , Lb = 'LB' } export export const CustomerInvoicesApiAxiosParamCreator = function ( configuration ? ) { return { param { string } purchaseOrderNumber param { * } options throws getCustomerInvoice : async ( purchaseOrderNumber , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getCustomerInvoice' , 'purchaseOrderNumber' , purchaseOrderNumber ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber}` . replace ( `{${ "purchaseOrderNumber" }}` , encodeURIComponent ( String ( purchaseOrderNumber ) ) ) ; 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 , } ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getCustomerInvoices : async ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getCustomerInvoices' , 'createdAfter' , createdAfter ) ; assertParamExists ( 'getCustomerInvoices' , 'createdBefore' , createdBefore ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/customerInvoices` ; 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 ( shipFromPartyId !== undefined ) { localVarQueryParameter [ 'shipFromPartyId' ] = shipFromPartyId ; } if ( limit !== undefined ) { localVarQueryParameter [ 'limit' ] = limit ; } if ( createdAfter !== undefined ) { localVarQueryParameter [ 'createdAfter' ] = ( createdAfter as any instanceof Date ) ? ( createdAfter as any ) . toISOString ( ) : createdAfter ; } if ( createdBefore !== undefined ) { localVarQueryParameter [ 'createdBefore' ] = ( createdBefore as any instanceof Date ) ? ( createdBefore as any ) . toISOString ( ) : createdBefore ; } if ( sortOrder !== undefined ) { localVarQueryParameter [ 'sortOrder' ] = sortOrder ; } if ( nextToken !== undefined ) { localVarQueryParameter [ 'nextToken' ] = nextToken ; } 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 CustomerInvoicesApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = CustomerInvoicesApiAxiosParamCreator ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws async getCustomerInvoice ( purchaseOrderNumber , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getCustomerInvoice ( purchaseOrderNumber , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws async getCustomerInvoices ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getCustomerInvoices ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const CustomerInvoicesApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = CustomerInvoicesApiFp ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws getCustomerInvoice ( purchaseOrderNumber , options ? ) { return localVarFp . getCustomerInvoice ( purchaseOrderNumber , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getCustomerInvoices ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { return localVarFp . getCustomerInvoices ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface CustomerInvoicesApiGetCustomerInvoiceRequest { type { string } memberof readonly purchaseOrderNumber : string ; } export interface export interface CustomerInvoicesApiGetCustomerInvoicesRequest { type { string } memberof readonly createdAfter : string ; type { string } memberof readonly createdBefore : string ; type { string } memberof readonly shipFromPartyId ? : string ; type { number } memberof readonly limit ? : number ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly nextToken ? : string ; } export class extends BaseAPI export class CustomerInvoicesApi extends BaseAPI { param { CustomerInvoicesApiGetCustomerInvoiceRequest } requestParameters param { * } options throws memberof public getCustomerInvoice ( requestParameters , options ? ) { return CustomerInvoicesApiFp ( this . configuration ) . getCustomerInvoice ( requestParameters . purchaseOrderNumber , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { CustomerInvoicesApiGetCustomerInvoicesRequest } requestParameters param { * } options throws memberof public getCustomerInvoices ( requestParameters , options ? ) { return CustomerInvoicesApiFp ( this . configuration ) . getCustomerInvoices ( requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . shipFromPartyId , requestParameters . limit , requestParameters . sortOrder , requestParameters . nextToken , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } } export export const VendorShippingApiAxiosParamCreator = function ( configuration ? ) { return { param { string } purchaseOrderNumber param { * } options throws getPackingSlip : async ( purchaseOrderNumber , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getPackingSlip' , 'purchaseOrderNumber' , purchaseOrderNumber ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}` . replace ( `{${ "purchaseOrderNumber" }}` , encodeURIComponent ( String ( purchaseOrderNumber ) ) ) ; 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 , } ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getPackingSlips : async ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getPackingSlips' , 'createdAfter' , createdAfter ) ; assertParamExists ( 'getPackingSlips' , 'createdBefore' , createdBefore ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/packingSlips` ; 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 ( shipFromPartyId !== undefined ) { localVarQueryParameter [ 'shipFromPartyId' ] = shipFromPartyId ; } if ( limit !== undefined ) { localVarQueryParameter [ 'limit' ] = limit ; } if ( createdAfter !== undefined ) { localVarQueryParameter [ 'createdAfter' ] = ( createdAfter as any instanceof Date ) ? ( createdAfter as any ) . toISOString ( ) : createdAfter ; } if ( createdBefore !== undefined ) { localVarQueryParameter [ 'createdBefore' ] = ( createdBefore as any instanceof Date ) ? ( createdBefore as any ) . toISOString ( ) : createdBefore ; } if ( sortOrder !== undefined ) { localVarQueryParameter [ 'sortOrder' ] = sortOrder ; } if ( nextToken !== undefined ) { localVarQueryParameter [ 'nextToken' ] = nextToken ; } 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 { SubmitShipmentConfirmationsRequest } body param { * } options throws submitShipmentConfirmations : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'submitShipmentConfirmations' , 'body' , body ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/shipmentConfirmations` ; 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 ; 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 { SubmitShipmentStatusUpdatesRequest } body param { * } options throws submitShipmentStatusUpdates : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'submitShipmentStatusUpdates' , 'body' , body ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates` ; 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 ; 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 , } ; } , } ; } ; export export const VendorShippingApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = VendorShippingApiAxiosParamCreator ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws async getPackingSlip ( purchaseOrderNumber , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getPackingSlip ( purchaseOrderNumber , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws async getPackingSlips ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getPackingSlips ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { SubmitShipmentConfirmationsRequest } body param { * } options throws async submitShipmentConfirmations ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . submitShipmentConfirmations ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { SubmitShipmentStatusUpdatesRequest } body param { * } options throws async submitShipmentStatusUpdates ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . submitShipmentStatusUpdates ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const VendorShippingApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = VendorShippingApiFp ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws getPackingSlip ( purchaseOrderNumber , options ? ) { return localVarFp . getPackingSlip ( purchaseOrderNumber , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getPackingSlips ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { return localVarFp . getPackingSlips ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { SubmitShipmentConfirmationsRequest } body param { * } options throws submitShipmentConfirmations ( body , options ? ) { return localVarFp . submitShipmentConfirmations ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { SubmitShipmentStatusUpdatesRequest } body param { * } options throws submitShipmentStatusUpdates ( body , options ? ) { return localVarFp . submitShipmentStatusUpdates ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface VendorShippingApiGetPackingSlipRequest { type { string } memberof readonly purchaseOrderNumber : string ; } export interface export interface VendorShippingApiGetPackingSlipsRequest { type { string } memberof readonly createdAfter : string ; type { string } memberof readonly createdBefore : string ; type { string } memberof readonly shipFromPartyId ? : string ; type { number } memberof readonly limit ? : number ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly nextToken ? : string ; } export interface export interface VendorShippingApiSubmitShipmentConfirmationsRequest { type { SubmitShipmentConfirmationsRequest } memberof readonly body : SubmitShipmentConfirmationsRequest ; } export interface export interface VendorShippingApiSubmitShipmentStatusUpdatesRequest { type { SubmitShipmentStatusUpdatesRequest } memberof readonly body : SubmitShipmentStatusUpdatesRequest ; } export class extends BaseAPI export class VendorShippingApi extends BaseAPI { param { VendorShippingApiGetPackingSlipRequest } requestParameters param { * } options throws memberof public getPackingSlip ( requestParameters , options ? ) { return VendorShippingApiFp ( this . configuration ) . getPackingSlip ( requestParameters . purchaseOrderNumber , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorShippingApiGetPackingSlipsRequest } requestParameters param { * } options throws memberof public getPackingSlips ( requestParameters , options ? ) { return VendorShippingApiFp ( this . configuration ) . getPackingSlips ( requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . shipFromPartyId , requestParameters . limit , requestParameters . sortOrder , requestParameters . nextToken , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorShippingApiSubmitShipmentConfirmationsRequest } requestParameters param { * } options throws memberof public submitShipmentConfirmations ( requestParameters , options ? ) { return VendorShippingApiFp ( this . configuration ) . submitShipmentConfirmations ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorShippingApiSubmitShipmentStatusUpdatesRequest } requestParameters param { * } options throws memberof public submitShipmentStatusUpdates ( requestParameters , options ? ) { return VendorShippingApiFp ( this . configuration ) . submitShipmentStatusUpdates ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } } export export const VendorShippingLabelsApiAxiosParamCreator = function ( configuration ? ) { return { param { string } purchaseOrderNumber param { * } options throws getShippingLabel : async ( purchaseOrderNumber , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getShippingLabel' , 'purchaseOrderNumber' , purchaseOrderNumber ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}` . replace ( `{${ "purchaseOrderNumber" }}` , encodeURIComponent ( String ( purchaseOrderNumber ) ) ) ; 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 , } ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getShippingLabels : async ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getShippingLabels' , 'createdAfter' , createdAfter ) ; assertParamExists ( 'getShippingLabels' , 'createdBefore' , createdBefore ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/shippingLabels` ; 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 ( shipFromPartyId !== undefined ) { localVarQueryParameter [ 'shipFromPartyId' ] = shipFromPartyId ; } if ( limit !== undefined ) { localVarQueryParameter [ 'limit' ] = limit ; } if ( createdAfter !== undefined ) { localVarQueryParameter [ 'createdAfter' ] = ( createdAfter as any instanceof Date ) ? ( createdAfter as any ) . toISOString ( ) : createdAfter ; } if ( createdBefore !== undefined ) { localVarQueryParameter [ 'createdBefore' ] = ( createdBefore as any instanceof Date ) ? ( createdBefore as any ) . toISOString ( ) : createdBefore ; } if ( sortOrder !== undefined ) { localVarQueryParameter [ 'sortOrder' ] = sortOrder ; } if ( nextToken !== undefined ) { localVarQueryParameter [ 'nextToken' ] = nextToken ; } 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 { SubmitShippingLabelsRequest } body param { * } options throws submitShippingLabelRequest : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'submitShippingLabelRequest' , 'body' , body ) ; const localVarPath = `/vendor/directFulfillment/shipping/v1/shippingLabels` ; 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 ; 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 , } ; } , } ; } ; export export const VendorShippingLabelsApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = VendorShippingLabelsApiAxiosParamCreator ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws async getShippingLabel ( purchaseOrderNumber , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getShippingLabel ( purchaseOrderNumber , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws async getShippingLabels ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getShippingLabels ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { SubmitShippingLabelsRequest } body param { * } options throws async submitShippingLabelRequest ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . submitShippingLabelRequest ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const VendorShippingLabelsApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = VendorShippingLabelsApiFp ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws getShippingLabel ( purchaseOrderNumber , options ? ) { return localVarFp . getShippingLabel ( purchaseOrderNumber , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } createdAfter param { string } createdBefore param { string } shipFromPartyId param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { * } options throws getShippingLabels ( createdAfter , createdBefore , shipFromPartyId ? , limit ? , sortOrder ? , nextToken ? , options ? ) { return localVarFp . getShippingLabels ( createdAfter , createdBefore , shipFromPartyId , limit , sortOrder , nextToken , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { SubmitShippingLabelsRequest } body param { * } options throws submitShippingLabelRequest ( body , options ? ) { return localVarFp . submitShippingLabelRequest ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface VendorShippingLabelsApiGetShippingLabelRequest { type { string } memberof readonly purchaseOrderNumber : string ; } export interface export interface VendorShippingLabelsApiGetShippingLabelsRequest { type { string } memberof readonly createdAfter : string ; type { string } memberof readonly createdBefore : string ; type { string } memberof readonly shipFromPartyId ? : string ; type { number } memberof readonly limit ? : number ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly nextToken ? : string ; } export interface export interface VendorShippingLabelsApiSubmitShippingLabelRequestRequest { type { SubmitShippingLabelsRequest } memberof readonly body : SubmitShippingLabelsRequest ; } export class extends BaseAPI export class VendorShippingLabelsApi extends BaseAPI { param { VendorShippingLabelsApiGetShippingLabelRequest } requestParameters param { * } options throws memberof public getShippingLabel ( requestParameters , options ? ) { return VendorShippingLabelsApiFp ( this . configuration ) . getShippingLabel ( requestParameters . purchaseOrderNumber , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorShippingLabelsApiGetShippingLabelsRequest } requestParameters param { * } options throws memberof public getShippingLabels ( requestParameters , options ? ) { return VendorShippingLabelsApiFp ( this . configuration ) . getShippingLabels ( requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . shipFromPartyId , requestParameters . limit , requestParameters . sortOrder , requestParameters . nextToken , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorShippingLabelsApiSubmitShippingLabelRequestRequest } requestParameters param { * } options throws memberof public submitShippingLabelRequest ( requestParameters , options ? ) { return VendorShippingLabelsApiFp ( this . configuration ) . submitShippingLabelRequest ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }