Skip to content

Commit

Permalink
feat: adds vendor models
Browse files Browse the repository at this point in the history
Co-authored-by: moltar <moltar@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and moltar authored May 5, 2021
1 parent ddf46b8 commit 57ef4a6
Show file tree
Hide file tree
Showing 56 changed files with 11,702 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/api-clients/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ export * from './shipping-api-client'
export * from './solicitations-api-client'
export * from './tokens-api-client'
export * from './uploads-api-client'
export * from './vendor-direct-fulfillment-inventory-api-client'
export * from './vendor-direct-fulfillment-orders-api-client'
export * from './vendor-direct-fulfillment-payments-api-client'
export * from './vendor-direct-fulfillment-shipping-api-client'
export * from './vendor-direct-fulfillment-transactions-api-client'
export * from './vendor-invoices-api-client'
export * from './vendor-orders-api-client'
export * from './vendor-shipments-api-client'
export * from './vendor-transaction-status-api-client'
17 changes: 17 additions & 0 deletions src/api-clients/vendor-direct-fulfillment-inventory-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
UpdateInventoryApi,
} from '../api-models/vendor-direct-fulfillment-inventory-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentInventoryApiClient extends UpdateInventoryApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
17 changes: 17 additions & 0 deletions src/api-clients/vendor-direct-fulfillment-orders-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
VendorOrdersApi,
} from '../api-models/vendor-direct-fulfillment-orders-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentOrdersApiClient extends VendorOrdersApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
17 changes: 17 additions & 0 deletions src/api-clients/vendor-direct-fulfillment-payments-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
VendorInvoiceApi,
} from '../api-models/vendor-direct-fulfillment-payments-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentPaymentsApiClient extends VendorInvoiceApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
17 changes: 17 additions & 0 deletions src/api-clients/vendor-direct-fulfillment-shipping-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
CustomerInvoicesApi,
} from '../api-models/vendor-direct-fulfillment-shipping-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentShippingApiClient extends CustomerInvoicesApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
VendorTransactionApi,
} from '../api-models/vendor-direct-fulfillment-transactions-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentTransactionsApiClient extends VendorTransactionApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
14 changes: 14 additions & 0 deletions src/api-clients/vendor-invoices-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, VendorPaymentsApi } from '../api-models/vendor-invoices-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorInvoicesApiClient extends VendorPaymentsApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
14 changes: 14 additions & 0 deletions src/api-clients/vendor-orders-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, VendorOrdersApi } from '../api-models/vendor-orders-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorOrdersApiClient extends VendorOrdersApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
14 changes: 14 additions & 0 deletions src/api-clients/vendor-shipments-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, VendorShippingApi } from '../api-models/vendor-shipments-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorShipmentsApiClient extends VendorShippingApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
17 changes: 17 additions & 0 deletions src/api-clients/vendor-transaction-status-api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
Configuration,
VendorTransactionApi,
} from '../api-models/vendor-transaction-status-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorTransactionStatusApiClient extends VendorTransactionApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
171 changes: 171 additions & 0 deletions src/api-models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,3 +620,174 @@ export {
CreateUploadDestinationResponse as UploadsApiModelCreateUploadDestinationResponse,
UploadDestination as UploadsApiModelUploadDestination,
} from './uploads-api-model'
export {
SubmitInventoryUpdateRequest as VendorDirectFulfillmentInventoryApiModelSubmitInventoryUpdateRequest,
InventoryUpdate as VendorDirectFulfillmentInventoryApiModelInventoryUpdate,
ItemDetails as VendorDirectFulfillmentInventoryApiModelItemDetails,
PartyIdentification as VendorDirectFulfillmentInventoryApiModelPartyIdentification,
ItemQuantity as VendorDirectFulfillmentInventoryApiModelItemQuantity,
SubmitInventoryUpdateResponse as VendorDirectFulfillmentInventoryApiModelSubmitInventoryUpdateResponse,
TransactionReference as VendorDirectFulfillmentInventoryApiModelTransactionReference,
} from './vendor-direct-fulfillment-inventory-api-model'
export {
GetOrdersResponse as VendorDirectFulfillmentOrdersApiModelGetOrdersResponse,
GetOrderResponse as VendorDirectFulfillmentOrdersApiModelGetOrderResponse,
OrderList as VendorDirectFulfillmentOrdersApiModelOrderList,
Pagination as VendorDirectFulfillmentOrdersApiModelPagination,
Order as VendorDirectFulfillmentOrdersApiModelOrder,
OrderDetails as VendorDirectFulfillmentOrdersApiModelOrderDetails,
PartyIdentification as VendorDirectFulfillmentOrdersApiModelPartyIdentification,
TaxRegistrationDetails as VendorDirectFulfillmentOrdersApiModelTaxRegistrationDetails,
Address as VendorDirectFulfillmentOrdersApiModelAddress,
OrderItem as VendorDirectFulfillmentOrdersApiModelOrderItem,
Money as VendorDirectFulfillmentOrdersApiModelMoney,
SubmitAcknowledgementResponse as VendorDirectFulfillmentOrdersApiModelSubmitAcknowledgementResponse,
TransactionId as VendorDirectFulfillmentOrdersApiModelTransactionId,
SubmitAcknowledgementRequest as VendorDirectFulfillmentOrdersApiModelSubmitAcknowledgementRequest,
OrderAcknowledgementItem as VendorDirectFulfillmentOrdersApiModelOrderAcknowledgementItem,
OrderItemAcknowledgement as VendorDirectFulfillmentOrdersApiModelOrderItemAcknowledgement,
ItemQuantity as VendorDirectFulfillmentOrdersApiModelItemQuantity,
TaxDetails as VendorDirectFulfillmentOrdersApiModelTaxDetails,
AcknowledgementStatus as VendorDirectFulfillmentOrdersApiModelAcknowledgementStatus,
ShipmentDetails as VendorDirectFulfillmentOrdersApiModelShipmentDetails,
ShipmentDates as VendorDirectFulfillmentOrdersApiModelShipmentDates,
ScheduledDeliveryShipment as VendorDirectFulfillmentOrdersApiModelScheduledDeliveryShipment,
GiftDetails as VendorDirectFulfillmentOrdersApiModelGiftDetails,
} from './vendor-direct-fulfillment-orders-api-model'
export {
SubmitInvoiceRequest as VendorDirectFulfillmentPaymentsApiModelSubmitInvoiceRequest,
InvoiceDetail as VendorDirectFulfillmentPaymentsApiModelInvoiceDetail,
InvoiceItem as VendorDirectFulfillmentPaymentsApiModelInvoiceItem,
PartyIdentification as VendorDirectFulfillmentPaymentsApiModelPartyIdentification,
TaxRegistrationDetail as VendorDirectFulfillmentPaymentsApiModelTaxRegistrationDetail,
Address as VendorDirectFulfillmentPaymentsApiModelAddress,
Money as VendorDirectFulfillmentPaymentsApiModelMoney,
TaxDetail as VendorDirectFulfillmentPaymentsApiModelTaxDetail,
ChargeDetails as VendorDirectFulfillmentPaymentsApiModelChargeDetails,
AdditionalDetails as VendorDirectFulfillmentPaymentsApiModelAdditionalDetails,
ItemQuantity as VendorDirectFulfillmentPaymentsApiModelItemQuantity,
SubmitInvoiceResponse as VendorDirectFulfillmentPaymentsApiModelSubmitInvoiceResponse,
TransactionReference as VendorDirectFulfillmentPaymentsApiModelTransactionReference,
} from './vendor-direct-fulfillment-payments-api-model'
export {
PackingSlip as VendorDirectFulfillmentShippingApiModelPackingSlip,
PackingSlipList as VendorDirectFulfillmentShippingApiModelPackingSlipList,
GetPackingSlipListResponse as VendorDirectFulfillmentShippingApiModelGetPackingSlipListResponse,
GetPackingSlipResponse as VendorDirectFulfillmentShippingApiModelGetPackingSlipResponse,
SubmitShippingLabelsRequest as VendorDirectFulfillmentShippingApiModelSubmitShippingLabelsRequest,
ShippingLabelRequest as VendorDirectFulfillmentShippingApiModelShippingLabelRequest,
Item as VendorDirectFulfillmentShippingApiModelItem,
PackedItem as VendorDirectFulfillmentShippingApiModelPackedItem,
Package as VendorDirectFulfillmentShippingApiModelPackage,
PartyIdentification as VendorDirectFulfillmentShippingApiModelPartyIdentification,
ShipmentDetails as VendorDirectFulfillmentShippingApiModelShipmentDetails,
StatusUpdateDetails as VendorDirectFulfillmentShippingApiModelStatusUpdateDetails,
TaxRegistrationDetails as VendorDirectFulfillmentShippingApiModelTaxRegistrationDetails,
Address as VendorDirectFulfillmentShippingApiModelAddress,
Dimensions as VendorDirectFulfillmentShippingApiModelDimensions,
Weight as VendorDirectFulfillmentShippingApiModelWeight,
ItemQuantity as VendorDirectFulfillmentShippingApiModelItemQuantity,
SubmitShipmentConfirmationsResponse as VendorDirectFulfillmentShippingApiModelSubmitShipmentConfirmationsResponse,
SubmitShipmentStatusUpdatesResponse as VendorDirectFulfillmentShippingApiModelSubmitShipmentStatusUpdatesResponse,
GetShippingLabelListResponse as VendorDirectFulfillmentShippingApiModelGetShippingLabelListResponse,
GetShippingLabelResponse as VendorDirectFulfillmentShippingApiModelGetShippingLabelResponse,
ShippingLabelList as VendorDirectFulfillmentShippingApiModelShippingLabelList,
LabelData as VendorDirectFulfillmentShippingApiModelLabelData,
ShippingLabel as VendorDirectFulfillmentShippingApiModelShippingLabel,
SubmitShippingLabelsResponse as VendorDirectFulfillmentShippingApiModelSubmitShippingLabelsResponse,
SubmitShipmentConfirmationsRequest as VendorDirectFulfillmentShippingApiModelSubmitShipmentConfirmationsRequest,
ShipmentConfirmation as VendorDirectFulfillmentShippingApiModelShipmentConfirmation,
SubmitShipmentStatusUpdatesRequest as VendorDirectFulfillmentShippingApiModelSubmitShipmentStatusUpdatesRequest,
ShipmentStatusUpdate as VendorDirectFulfillmentShippingApiModelShipmentStatusUpdate,
GetCustomerInvoicesResponse as VendorDirectFulfillmentShippingApiModelGetCustomerInvoicesResponse,
GetCustomerInvoiceResponse as VendorDirectFulfillmentShippingApiModelGetCustomerInvoiceResponse,
CustomerInvoiceList as VendorDirectFulfillmentShippingApiModelCustomerInvoiceList,
Pagination as VendorDirectFulfillmentShippingApiModelPagination,
CustomerInvoice as VendorDirectFulfillmentShippingApiModelCustomerInvoice,
TransactionReference as VendorDirectFulfillmentShippingApiModelTransactionReference,
Container as VendorDirectFulfillmentShippingApiModelContainer,
} from './vendor-direct-fulfillment-shipping-api-model'
export {
GetTransactionResponse as VendorDirectFulfillmentTransactionsApiModelGetTransactionResponse,
TransactionStatus as VendorDirectFulfillmentTransactionsApiModelTransactionStatus,
Transaction as VendorDirectFulfillmentTransactionsApiModelTransaction,
} from './vendor-direct-fulfillment-transactions-api-model'
export {
SubmitInvoicesResponse as VendorInvoicesApiModelSubmitInvoicesResponse,
TransactionId as VendorInvoicesApiModelTransactionId,
SubmitInvoicesRequest as VendorInvoicesApiModelSubmitInvoicesRequest,
Invoice as VendorInvoicesApiModelInvoice,
PartyIdentification as VendorInvoicesApiModelPartyIdentification,
TaxRegistrationDetails as VendorInvoicesApiModelTaxRegistrationDetails,
Address as VendorInvoicesApiModelAddress,
InvoiceItem as VendorInvoicesApiModelInvoiceItem,
TaxDetails as VendorInvoicesApiModelTaxDetails,
Money as VendorInvoicesApiModelMoney,
AdditionalDetails as VendorInvoicesApiModelAdditionalDetails,
ChargeDetails as VendorInvoicesApiModelChargeDetails,
AllowanceDetails as VendorInvoicesApiModelAllowanceDetails,
PaymentTerms as VendorInvoicesApiModelPaymentTerms,
CreditNoteDetails as VendorInvoicesApiModelCreditNoteDetails,
ItemQuantity as VendorInvoicesApiModelItemQuantity,
} from './vendor-invoices-api-model'
export {
GetPurchaseOrdersResponse as VendorOrdersApiModelGetPurchaseOrdersResponse,
GetPurchaseOrderResponse as VendorOrdersApiModelGetPurchaseOrderResponse,
OrderList as VendorOrdersApiModelOrderList,
Pagination as VendorOrdersApiModelPagination,
Order as VendorOrdersApiModelOrder,
OrderDetails as VendorOrdersApiModelOrderDetails,
ImportDetails as VendorOrdersApiModelImportDetails,
PartyIdentification as VendorOrdersApiModelPartyIdentification,
TaxRegistrationDetails as VendorOrdersApiModelTaxRegistrationDetails,
Address as VendorOrdersApiModelAddress,
OrderItem as VendorOrdersApiModelOrderItem,
Money as VendorOrdersApiModelMoney,
SubmitAcknowledgementResponse as VendorOrdersApiModelSubmitAcknowledgementResponse,
TransactionId as VendorOrdersApiModelTransactionId,
SubmitAcknowledgementRequest as VendorOrdersApiModelSubmitAcknowledgementRequest,
OrderAcknowledgement as VendorOrdersApiModelOrderAcknowledgement,
OrderAcknowledgementItem as VendorOrdersApiModelOrderAcknowledgementItem,
OrderItemAcknowledgement as VendorOrdersApiModelOrderItemAcknowledgement,
ItemQuantity as VendorOrdersApiModelItemQuantity,
GetPurchaseOrdersStatusResponse as VendorOrdersApiModelGetPurchaseOrdersStatusResponse,
OrderListStatus as VendorOrdersApiModelOrderListStatus,
OrderStatus as VendorOrdersApiModelOrderStatus,
OrderItemStatus as VendorOrdersApiModelOrderItemStatus,
OrderedQuantityDetails as VendorOrdersApiModelOrderedQuantityDetails,
AcknowledgementStatusDetails as VendorOrdersApiModelAcknowledgementStatusDetails,
} from './vendor-orders-api-model'
export {
SubmitShipmentConfirmationsRequest as VendorShipmentsApiModelSubmitShipmentConfirmationsRequest,
ShipmentConfirmation as VendorShipmentsApiModelShipmentConfirmation,
ShipmentMeasurements as VendorShipmentsApiModelShipmentMeasurements,
TransportationDetails as VendorShipmentsApiModelTransportationDetails,
ImportDetails as VendorShipmentsApiModelImportDetails,
Item as VendorShipmentsApiModelItem,
Carton as VendorShipmentsApiModelCarton,
Pallet as VendorShipmentsApiModelPallet,
ItemDetails as VendorShipmentsApiModelItemDetails,
ContainerIdentification as VendorShipmentsApiModelContainerIdentification,
ContainerItem as VendorShipmentsApiModelContainerItem,
CartonReferenceDetails as VendorShipmentsApiModelCartonReferenceDetails,
PartyIdentification as VendorShipmentsApiModelPartyIdentification,
TaxRegistrationDetails as VendorShipmentsApiModelTaxRegistrationDetails,
Address as VendorShipmentsApiModelAddress,
Route as VendorShipmentsApiModelRoute,
Stop as VendorShipmentsApiModelStop,
Location as VendorShipmentsApiModelLocation,
Dimensions as VendorShipmentsApiModelDimensions,
Volume as VendorShipmentsApiModelVolume,
Weight as VendorShipmentsApiModelWeight,
Money as VendorShipmentsApiModelMoney,
ItemQuantity as VendorShipmentsApiModelItemQuantity,
Expiry as VendorShipmentsApiModelExpiry,
Duration as VendorShipmentsApiModelDuration,
SubmitShipmentConfirmationsResponse as VendorShipmentsApiModelSubmitShipmentConfirmationsResponse,
TransactionReference as VendorShipmentsApiModelTransactionReference,
} from './vendor-shipments-api-model'
export {
GetTransactionResponse as VendorTransactionStatusApiModelGetTransactionResponse,
TransactionStatus as VendorTransactionStatusApiModelTransactionStatus,
Transaction as VendorTransactionStatusApiModelTransaction,
} from './vendor-transaction-status-api-model'
Loading

0 comments on commit 57ef4a6

Please sign in to comment.