/**
 * Selling Partner API for Retail Procurement Orders
 * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders 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 AcknowledgementStatusDetails { type { string } memberof acknowledgementDate ? : string ; type { ItemQuantity } memberof acceptedQuantity ? : ItemQuantity ; type { ItemQuantity } memberof rejectedQuantity ? : ItemQuantity ; } 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 GetPurchaseOrderResponse { type { Order } memberof payload ? : Order ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetPurchaseOrdersResponse { type { OrderList } memberof payload ? : OrderList ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetPurchaseOrdersStatusResponse { type { OrderListStatus } memberof payload ? : OrderListStatus ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface ImportDetails { type { string } memberof methodOfPayment ? : ImportDetailsMethodOfPaymentEnum | 'PaidByBuyer' | 'CollectOnDelivery' | 'DefinedByBuyerAndSeller' | 'FOBPortOfCall' | 'PrepaidBySeller' | 'PaidBySeller' ; type { string } memberof internationalCommercialTerms ? : ImportDetailsInternationalCommercialTermsEnum | 'ExWorks' | 'FreeCarrier' | 'FreeOnBoard' | 'FreeAlongSideShip' | 'CarriagePaidTo' | 'CostAndFreight' | 'CarriageAndInsurancePaidTo' | 'CostInsuranceAndFreight' | 'DeliveredAtTerminal' | 'DeliveredAtPlace' | 'DeliverDutyPaid' ; type { string } memberof portOfDelivery ? : string ; type { string } memberof importContainers ? : string ; type { string } memberof shippingInstructions ? : string ; } export enum { string } export enum ImportDetailsMethodOfPaymentEnum { PaidByBuyer = 'PaidByBuyer' , CollectOnDelivery = 'CollectOnDelivery' , DefinedByBuyerAndSeller = 'DefinedByBuyerAndSeller' , FobPortOfCall = 'FOBPortOfCall' , PrepaidBySeller = 'PrepaidBySeller' , PaidBySeller = 'PaidBySeller' } export enum { string } export enum ImportDetailsInternationalCommercialTermsEnum { ExWorks = 'ExWorks' , FreeCarrier = 'FreeCarrier' , FreeOnBoard = 'FreeOnBoard' , FreeAlongSideShip = 'FreeAlongSideShip' , CarriagePaidTo = 'CarriagePaidTo' , CostAndFreight = 'CostAndFreight' , CarriageAndInsurancePaidTo = 'CarriageAndInsurancePaidTo' , CostInsuranceAndFreight = 'CostInsuranceAndFreight' , DeliveredAtTerminal = 'DeliveredAtTerminal' , DeliveredAtPlace = 'DeliveredAtPlace' , DeliverDutyPaid = 'DeliverDutyPaid' } export interface export interface ItemQuantity { type { number } memberof amount ? : number ; type { string } memberof unitOfMeasure ? : ItemQuantityUnitOfMeasureEnum | 'Cases' | 'Eaches' ; type { number } memberof unitSize ? : number ; } export enum { string } export enum ItemQuantityUnitOfMeasureEnum { Cases = 'Cases' , Eaches = 'Eaches' } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export interface export interface Money { type { string } memberof currencyCode ? : string ; type { string } memberof amount ? : string ; } export interface export interface Order { type { string } memberof purchaseOrderNumber : string ; type { string } memberof purchaseOrderState : OrderPurchaseOrderStateEnum | 'New' | 'Acknowledged' | 'Closed' ; type { OrderDetails } memberof orderDetails ? : OrderDetails ; } export enum { string } export enum OrderPurchaseOrderStateEnum { New = 'New' , Acknowledged = 'Acknowledged' , Closed = 'Closed' } export interface export interface OrderAcknowledgement { type { string } memberof purchaseOrderNumber : string ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { string } memberof acknowledgementDate : string ; type { Array < OrderAcknowledgementItem > } memberof items : Array < OrderAcknowledgementItem > ; } export interface export interface OrderAcknowledgementItem { type { string } memberof itemSequenceNumber ? : string ; type { string } memberof amazonProductIdentifier ? : string ; type { string } memberof vendorProductIdentifier ? : string ; type { ItemQuantity } memberof orderedQuantity : ItemQuantity ; type { Money } memberof netCost ? : Money ; type { Money } memberof listPrice ? : Money ; type { string } memberof discountMultiplier ? : string ; type { Array < OrderItemAcknowledgement > } memberof itemAcknowledgements : Array < OrderItemAcknowledgement > ; } export interface export interface OrderDetails { type { string } memberof purchaseOrderDate : string ; type { string } memberof purchaseOrderChangedDate ? : string ; type { string } memberof purchaseOrderStateChangedDate : string ; type { string } memberof purchaseOrderType ? : OrderDetailsPurchaseOrderTypeEnum | 'RegularOrder' | 'ConsignedOrder' | 'NewProductIntroduction' | 'RushOrder' ; type { ImportDetails } memberof importDetails ? : ImportDetails ; type { string } memberof dealCode ? : string ; type { string } memberof paymentMethod ? : OrderDetailsPaymentMethodEnum | 'Invoice' | 'Consignment' | 'CreditCard' | 'Prepaid' ; type { PartyIdentification } memberof buyingParty ? : PartyIdentification ; type { PartyIdentification } memberof sellingParty ? : PartyIdentification ; type { PartyIdentification } memberof shipToParty ? : PartyIdentification ; type { PartyIdentification } memberof billToParty ? : PartyIdentification ; type { string } memberof shipWindow ? : string ; type { string } memberof deliveryWindow ? : string ; type { Array < OrderItem > } memberof items : Array < OrderItem > ; } export enum { string } export enum OrderDetailsPurchaseOrderTypeEnum { RegularOrder = 'RegularOrder' , ConsignedOrder = 'ConsignedOrder' , NewProductIntroduction = 'NewProductIntroduction' , RushOrder = 'RushOrder' } export enum { string } export enum OrderDetailsPaymentMethodEnum { Invoice = 'Invoice' , Consignment = 'Consignment' , CreditCard = 'CreditCard' , Prepaid = 'Prepaid' } export interface export interface OrderItem { type { string } memberof itemSequenceNumber : string ; type { string } memberof amazonProductIdentifier ? : string ; type { string } memberof vendorProductIdentifier ? : string ; type { ItemQuantity } memberof orderedQuantity : ItemQuantity ; type { boolean } memberof isBackOrderAllowed : boolean ; type { Money } memberof netCost ? : Money ; type { Money } memberof listPrice ? : Money ; } export interface export interface OrderItemAcknowledgement { type { string } memberof acknowledgementCode : OrderItemAcknowledgementAcknowledgementCodeEnum | 'Accepted' | 'Backordered' | 'Rejected' ; type { ItemQuantity } memberof acknowledgedQuantity : ItemQuantity ; type { string } memberof scheduledShipDate ? : string ; type { string } memberof scheduledDeliveryDate ? : string ; type { string } memberof rejectionReason ? : OrderItemAcknowledgementRejectionReasonEnum | 'TemporarilyUnavailable' | 'InvalidProductIdentifier' | 'ObsoleteProduct' ; } export enum { string } export enum OrderItemAcknowledgementAcknowledgementCodeEnum { Accepted = 'Accepted' , Backordered = 'Backordered' , Rejected = 'Rejected' } export enum { string } export enum OrderItemAcknowledgementRejectionReasonEnum { TemporarilyUnavailable = 'TemporarilyUnavailable' , InvalidProductIdentifier = 'InvalidProductIdentifier' , ObsoleteProduct = 'ObsoleteProduct' } export interface export interface OrderItemStatus { type { string } memberof itemSequenceNumber : string ; type { string } memberof buyerProductIdentifier ? : string ; type { string } memberof vendorProductIdentifier ? : string ; type { Money } memberof netCost ? : Money ; type { Money } memberof listPrice ? : Money ; type { OrderItemStatusOrderedQuantity } memberof orderedQuantity ? : OrderItemStatusOrderedQuantity ; type { OrderItemStatusAcknowledgementStatus } memberof acknowledgementStatus ? : OrderItemStatusAcknowledgementStatus ; type { OrderItemStatusReceivingStatus } memberof receivingStatus ? : OrderItemStatusReceivingStatus ; } export interface export interface OrderItemStatusAcknowledgementStatus { type { string } memberof confirmationStatus ? : OrderItemStatusAcknowledgementStatusConfirmationStatusEnum | 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' ; type { ItemQuantity } memberof acceptedQuantity ? : ItemQuantity ; type { ItemQuantity } memberof rejectedQuantity ? : ItemQuantity ; type { Array < AcknowledgementStatusDetails > } memberof acknowledgementStatusDetails ? : Array < AcknowledgementStatusDetails > ; } export enum { string } export enum OrderItemStatusAcknowledgementStatusConfirmationStatusEnum { Accepted = 'ACCEPTED' , PartiallyAccepted = 'PARTIALLY_ACCEPTED' , Rejected = 'REJECTED' , Unconfirmed = 'UNCONFIRMED' } export interface export interface OrderItemStatusOrderedQuantity { type { ItemQuantity } memberof orderedQuantity ? : ItemQuantity ; type { Array < OrderedQuantityDetails > } memberof orderedQuantityDetails ? : Array < OrderedQuantityDetails > ; } export interface export interface OrderItemStatusReceivingStatus { type { string } memberof receiveStatus ? : OrderItemStatusReceivingStatusReceiveStatusEnum | 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' ; type { ItemQuantity } memberof receivedQuantity ? : ItemQuantity ; type { string } memberof lastReceiveDate ? : string ; } export enum { string } export enum OrderItemStatusReceivingStatusReceiveStatusEnum { NotReceived = 'NOT_RECEIVED' , PartiallyReceived = 'PARTIALLY_RECEIVED' , Received = 'RECEIVED' } export interface export interface OrderList { type { Pagination } memberof pagination ? : Pagination ; type { Array < Order > } memberof orders ? : Array < Order > ; } export interface export interface OrderListStatus { type { Pagination } memberof pagination ? : Pagination ; type { Array < OrderStatus > } memberof ordersStatus ? : Array < OrderStatus > ; } export interface export interface OrderStatus { type { string } memberof purchaseOrderNumber : string ; type { string } memberof purchaseOrderStatus : OrderStatusPurchaseOrderStatusEnum | 'OPEN' | 'CLOSED' ; type { string } memberof purchaseOrderDate : string ; type { string } memberof lastUpdatedDate ? : string ; type { PartyIdentification } memberof sellingParty : PartyIdentification ; type { PartyIdentification } memberof shipToParty : PartyIdentification ; type { Array < OrderItemStatus > } memberof itemStatus : Array < OrderItemStatus > ; } export enum { string } export enum OrderStatusPurchaseOrderStatusEnum { Open = 'OPEN' , Closed = 'CLOSED' } export interface export interface OrderedQuantityDetails { type { string } memberof updatedDate ? : string ; type { ItemQuantity } memberof orderedQuantity ? : ItemQuantity ; type { ItemQuantity } memberof cancelledQuantity ? : ItemQuantity ; } 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 { TaxRegistrationDetails } memberof taxInfo ? : TaxRegistrationDetails ; } export interface export interface SubmitAcknowledgementRequest { type { Array < OrderAcknowledgement > } memberof acknowledgements ? : Array < OrderAcknowledgement > ; } export interface export interface SubmitAcknowledgementResponse { type { TransactionId } memberof payload ? : TransactionId ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface TaxRegistrationDetails { type { string } memberof taxRegistrationType : TaxRegistrationDetailsTaxRegistrationTypeEnum | 'VAT' | 'GST' ; type { string } memberof taxRegistrationNumber : string ; } export enum { string } export enum TaxRegistrationDetailsTaxRegistrationTypeEnum { Vat = 'VAT' , Gst = 'GST' } export interface export interface TransactionId { type { string } memberof transactionId ? : string ; } export export const VendorOrdersApiAxiosParamCreator = function ( configuration ? ) { return { param { string } purchaseOrderNumber param { * } options throws getPurchaseOrder : async ( purchaseOrderNumber , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getPurchaseOrder' , 'purchaseOrderNumber' , purchaseOrderNumber ) ; const localVarPath = `/vendor/orders/v1/purchaseOrders/{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 { number } limit param { string } createdAfter param { string } createdBefore param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { boolean } includeDetails param { string } changedAfter param { string } changedBefore param { 'Cancelled' } poItemState param { boolean } isPOChanged param { 'New' | 'Acknowledged' | 'Closed' } purchaseOrderState param { string } orderingVendorCode param { * } options throws getPurchaseOrders : async ( limit ? , createdAfter ? , createdBefore ? , sortOrder ? , nextToken ? , includeDetails ? , changedAfter ? , changedBefore ? , poItemState ? , isPOChanged ? , purchaseOrderState ? , orderingVendorCode ? , options = { } ) : Promise < RequestArgs > => { const localVarPath = `/vendor/orders/v1/purchaseOrders` ; 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 ( 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 ; } if ( includeDetails !== undefined ) { localVarQueryParameter [ 'includeDetails' ] = includeDetails ; } if ( changedAfter !== undefined ) { localVarQueryParameter [ 'changedAfter' ] = ( changedAfter as any instanceof Date ) ? ( changedAfter as any ) . toISOString ( ) : changedAfter ; } if ( changedBefore !== undefined ) { localVarQueryParameter [ 'changedBefore' ] = ( changedBefore as any instanceof Date ) ? ( changedBefore as any ) . toISOString ( ) : changedBefore ; } if ( poItemState !== undefined ) { localVarQueryParameter [ 'poItemState' ] = poItemState ; } if ( isPOChanged !== undefined ) { localVarQueryParameter [ 'isPOChanged' ] = isPOChanged ; } if ( purchaseOrderState !== undefined ) { localVarQueryParameter [ 'purchaseOrderState' ] = purchaseOrderState ; } if ( orderingVendorCode !== undefined ) { localVarQueryParameter [ 'orderingVendorCode' ] = orderingVendorCode ; } 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 { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { string } createdAfter param { string } createdBefore param { string } updatedAfter param { string } updatedBefore param { string } purchaseOrderNumber param { 'OPEN' | 'CLOSED' } purchaseOrderStatus param { 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' } itemConfirmationStatus param { 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' } itemReceiveStatus param { string } orderingVendorCode param { string } shipToPartyId param { * } options throws getPurchaseOrdersStatus : async ( limit ? , sortOrder ? , nextToken ? , createdAfter ? , createdBefore ? , updatedAfter ? , updatedBefore ? , purchaseOrderNumber ? , purchaseOrderStatus ? , itemConfirmationStatus ? , itemReceiveStatus ? , orderingVendorCode ? , shipToPartyId ? , options = { } ) : Promise < RequestArgs > => { const localVarPath = `/vendor/orders/v1/purchaseOrdersStatus` ; 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 ( limit !== undefined ) { localVarQueryParameter [ 'limit' ] = limit ; } if ( sortOrder !== undefined ) { localVarQueryParameter [ 'sortOrder' ] = sortOrder ; } if ( nextToken !== undefined ) { localVarQueryParameter [ 'nextToken' ] = nextToken ; } 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 ( updatedAfter !== undefined ) { localVarQueryParameter [ 'updatedAfter' ] = ( updatedAfter as any instanceof Date ) ? ( updatedAfter as any ) . toISOString ( ) : updatedAfter ; } if ( updatedBefore !== undefined ) { localVarQueryParameter [ 'updatedBefore' ] = ( updatedBefore as any instanceof Date ) ? ( updatedBefore as any ) . toISOString ( ) : updatedBefore ; } if ( purchaseOrderNumber !== undefined ) { localVarQueryParameter [ 'purchaseOrderNumber' ] = purchaseOrderNumber ; } if ( purchaseOrderStatus !== undefined ) { localVarQueryParameter [ 'purchaseOrderStatus' ] = purchaseOrderStatus ; } if ( itemConfirmationStatus !== undefined ) { localVarQueryParameter [ 'itemConfirmationStatus' ] = itemConfirmationStatus ; } if ( itemReceiveStatus !== undefined ) { localVarQueryParameter [ 'itemReceiveStatus' ] = itemReceiveStatus ; } if ( orderingVendorCode !== undefined ) { localVarQueryParameter [ 'orderingVendorCode' ] = orderingVendorCode ; } if ( shipToPartyId !== undefined ) { localVarQueryParameter [ 'shipToPartyId' ] = shipToPartyId ; } 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 { SubmitAcknowledgementRequest } body param { * } options throws submitAcknowledgement : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'submitAcknowledgement' , 'body' , body ) ; const localVarPath = `/vendor/orders/v1/acknowledgements` ; 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 VendorOrdersApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = VendorOrdersApiAxiosParamCreator ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws async getPurchaseOrder ( purchaseOrderNumber , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getPurchaseOrder ( purchaseOrderNumber , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { number } limit param { string } createdAfter param { string } createdBefore param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { boolean } includeDetails param { string } changedAfter param { string } changedBefore param { 'Cancelled' } poItemState param { boolean } isPOChanged param { 'New' | 'Acknowledged' | 'Closed' } purchaseOrderState param { string } orderingVendorCode param { * } options throws async getPurchaseOrders ( limit ? , createdAfter ? , createdBefore ? , sortOrder ? , nextToken ? , includeDetails ? , changedAfter ? , changedBefore ? , poItemState ? , isPOChanged ? , purchaseOrderState ? , orderingVendorCode ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getPurchaseOrders ( limit , createdAfter , createdBefore , sortOrder , nextToken , includeDetails , changedAfter , changedBefore , poItemState , isPOChanged , purchaseOrderState , orderingVendorCode , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { string } createdAfter param { string } createdBefore param { string } updatedAfter param { string } updatedBefore param { string } purchaseOrderNumber param { 'OPEN' | 'CLOSED' } purchaseOrderStatus param { 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' } itemConfirmationStatus param { 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' } itemReceiveStatus param { string } orderingVendorCode param { string } shipToPartyId param { * } options throws async getPurchaseOrdersStatus ( limit ? , sortOrder ? , nextToken ? , createdAfter ? , createdBefore ? , updatedAfter ? , updatedBefore ? , purchaseOrderNumber ? , purchaseOrderStatus ? , itemConfirmationStatus ? , itemReceiveStatus ? , orderingVendorCode ? , shipToPartyId ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getPurchaseOrdersStatus ( limit , sortOrder , nextToken , createdAfter , createdBefore , updatedAfter , updatedBefore , purchaseOrderNumber , purchaseOrderStatus , itemConfirmationStatus , itemReceiveStatus , orderingVendorCode , shipToPartyId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { SubmitAcknowledgementRequest } body param { * } options throws async submitAcknowledgement ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . submitAcknowledgement ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const VendorOrdersApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = VendorOrdersApiFp ( configuration ) ; return { param { string } purchaseOrderNumber param { * } options throws getPurchaseOrder ( purchaseOrderNumber , options ? ) { return localVarFp . getPurchaseOrder ( purchaseOrderNumber , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { number } limit param { string } createdAfter param { string } createdBefore param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { boolean } includeDetails param { string } changedAfter param { string } changedBefore param { 'Cancelled' } poItemState param { boolean } isPOChanged param { 'New' | 'Acknowledged' | 'Closed' } purchaseOrderState param { string } orderingVendorCode param { * } options throws getPurchaseOrders ( limit ? , createdAfter ? , createdBefore ? , sortOrder ? , nextToken ? , includeDetails ? , changedAfter ? , changedBefore ? , poItemState ? , isPOChanged ? , purchaseOrderState ? , orderingVendorCode ? , options ? ) { return localVarFp . getPurchaseOrders ( limit , createdAfter , createdBefore , sortOrder , nextToken , includeDetails , changedAfter , changedBefore , poItemState , isPOChanged , purchaseOrderState , orderingVendorCode , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { number } limit param { 'ASC' | 'DESC' } sortOrder param { string } nextToken param { string } createdAfter param { string } createdBefore param { string } updatedAfter param { string } updatedBefore param { string } purchaseOrderNumber param { 'OPEN' | 'CLOSED' } purchaseOrderStatus param { 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' } itemConfirmationStatus param { 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' } itemReceiveStatus param { string } orderingVendorCode param { string } shipToPartyId param { * } options throws getPurchaseOrdersStatus ( limit ? , sortOrder ? , nextToken ? , createdAfter ? , createdBefore ? , updatedAfter ? , updatedBefore ? , purchaseOrderNumber ? , purchaseOrderStatus ? , itemConfirmationStatus ? , itemReceiveStatus ? , orderingVendorCode ? , shipToPartyId ? , options ? ) { return localVarFp . getPurchaseOrdersStatus ( limit , sortOrder , nextToken , createdAfter , createdBefore , updatedAfter , updatedBefore , purchaseOrderNumber , purchaseOrderStatus , itemConfirmationStatus , itemReceiveStatus , orderingVendorCode , shipToPartyId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { SubmitAcknowledgementRequest } body param { * } options throws submitAcknowledgement ( body , options ? ) { return localVarFp . submitAcknowledgement ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface VendorOrdersApiGetPurchaseOrderRequest { type { string } memberof readonly purchaseOrderNumber : string ; } export interface export interface VendorOrdersApiGetPurchaseOrdersRequest { type { number } memberof readonly limit ? : number ; type { string } memberof readonly createdAfter ? : string ; type { string } memberof readonly createdBefore ? : string ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly nextToken ? : string ; type { boolean } memberof readonly includeDetails ? : boolean ; type { string } memberof readonly changedAfter ? : string ; type { string } memberof readonly changedBefore ? : string ; type { 'Cancelled' } memberof readonly poItemState ? : 'Cancelled' ; type { boolean } memberof readonly isPOChanged ? : boolean ; type { 'New' | 'Acknowledged' | 'Closed' } memberof readonly purchaseOrderState ? : 'New' | 'Acknowledged' | 'Closed' ; type { string } memberof readonly orderingVendorCode ? : string ; } export interface export interface VendorOrdersApiGetPurchaseOrdersStatusRequest { type { number } memberof readonly limit ? : number ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly nextToken ? : string ; type { string } memberof readonly createdAfter ? : string ; type { string } memberof readonly createdBefore ? : string ; type { string } memberof readonly updatedAfter ? : string ; type { string } memberof readonly updatedBefore ? : string ; type { string } memberof readonly purchaseOrderNumber ? : string ; type { 'OPEN' | 'CLOSED' } memberof readonly purchaseOrderStatus ? : 'OPEN' | 'CLOSED' ; type { 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' } memberof readonly itemConfirmationStatus ? : 'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED' ; type { 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' } memberof readonly itemReceiveStatus ? : 'NOT_RECEIVED' | 'PARTIALLY_RECEIVED' | 'RECEIVED' ; type { string } memberof readonly orderingVendorCode ? : string ; type { string } memberof readonly shipToPartyId ? : string ; } export interface export interface VendorOrdersApiSubmitAcknowledgementRequest { type { SubmitAcknowledgementRequest } memberof readonly body : SubmitAcknowledgementRequest ; } export class extends BaseAPI export class VendorOrdersApi extends BaseAPI { param { VendorOrdersApiGetPurchaseOrderRequest } requestParameters param { * } options throws memberof public getPurchaseOrder ( requestParameters , options ? ) { return VendorOrdersApiFp ( this . configuration ) . getPurchaseOrder ( requestParameters . purchaseOrderNumber , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorOrdersApiGetPurchaseOrdersRequest } requestParameters param { * } options throws memberof public getPurchaseOrders ( requestParameters = { } , options ? ) { return VendorOrdersApiFp ( this . configuration ) . getPurchaseOrders ( requestParameters . limit , requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . sortOrder , requestParameters . nextToken , requestParameters . includeDetails , requestParameters . changedAfter , requestParameters . changedBefore , requestParameters . poItemState , requestParameters . isPOChanged , requestParameters . purchaseOrderState , requestParameters . orderingVendorCode , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorOrdersApiGetPurchaseOrdersStatusRequest } requestParameters param { * } options throws memberof public getPurchaseOrdersStatus ( requestParameters = { } , options ? ) { return VendorOrdersApiFp ( this . configuration ) . getPurchaseOrdersStatus ( requestParameters . limit , requestParameters . sortOrder , requestParameters . nextToken , requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . updatedAfter , requestParameters . updatedBefore , requestParameters . purchaseOrderNumber , requestParameters . purchaseOrderStatus , requestParameters . itemConfirmationStatus , requestParameters . itemReceiveStatus , requestParameters . orderingVendorCode , requestParameters . shipToPartyId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { VendorOrdersApiSubmitAcknowledgementRequest } requestParameters param { * } options throws memberof public submitAcknowledgement ( requestParameters , options ? ) { return VendorOrdersApiFp ( this . configuration ) . submitAcknowledgement ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }