@sp-api-sdk/vendor-shipments-api-v1 1.9.11 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/vendor-shipping-api.js +362 -4
- package/dist/cjs/src/api-model/models/carrier-details.js +15 -0
- package/dist/cjs/src/api-model/models/collect-freight-pickup-details.js +15 -0
- package/dist/cjs/src/api-model/models/container-sequence-numbers.js +15 -0
- package/dist/cjs/src/api-model/models/containers.js +20 -0
- package/dist/cjs/src/api-model/models/get-shipment-details-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-shipment-labels.js +15 -0
- package/dist/cjs/src/api-model/models/import-details.js +7 -1
- package/dist/cjs/src/api-model/models/index.js +24 -0
- package/dist/cjs/src/api-model/models/inner-containers-details.js +15 -0
- package/dist/cjs/src/api-model/models/label-data.js +19 -0
- package/dist/cjs/src/api-model/models/package-item-details.js +15 -0
- package/dist/cjs/src/api-model/models/packed-items.js +15 -0
- package/dist/cjs/src/api-model/models/packed-quantity.js +20 -0
- package/dist/cjs/src/api-model/models/pagination.js +15 -0
- package/dist/cjs/src/api-model/models/purchase-order-item-details.js +15 -0
- package/dist/cjs/src/api-model/models/purchase-order-items.js +15 -0
- package/dist/cjs/src/api-model/models/purchase-orders.js +15 -0
- package/dist/cjs/src/api-model/models/shipment-details.js +15 -0
- package/dist/cjs/src/api-model/models/shipment-information.js +20 -0
- package/dist/cjs/src/api-model/models/shipment-status-details.js +22 -0
- package/dist/cjs/src/api-model/models/shipment.js +30 -0
- package/dist/cjs/src/api-model/models/submit-shipments.js +15 -0
- package/dist/cjs/src/api-model/models/transport-label.js +15 -0
- package/dist/cjs/src/api-model/models/transport-shipment-measurements.js +15 -0
- package/dist/cjs/src/api-model/models/transportation-details.js +6 -1
- package/dist/cjs/src/api-model/models/transportation-labels.js +15 -0
- package/dist/cjs/src/api-model/models/vendor-details.js +15 -0
- package/dist/cjs/src/client.js +21 -0
- package/dist/es/src/api-model/api/vendor-shipping-api.js +362 -4
- package/dist/es/src/api-model/models/carrier-details.js +14 -0
- package/dist/es/src/api-model/models/collect-freight-pickup-details.js +14 -0
- package/dist/es/src/api-model/models/container-sequence-numbers.js +14 -0
- package/dist/es/src/api-model/models/containers.js +17 -0
- package/dist/es/src/api-model/models/get-shipment-details-response.js +14 -0
- package/dist/es/src/api-model/models/get-shipment-labels.js +14 -0
- package/dist/es/src/api-model/models/import-details.js +6 -0
- package/dist/es/src/api-model/models/index.js +24 -0
- package/dist/es/src/api-model/models/inner-containers-details.js +14 -0
- package/dist/es/src/api-model/models/label-data.js +16 -0
- package/dist/es/src/api-model/models/package-item-details.js +14 -0
- package/dist/es/src/api-model/models/packed-items.js +14 -0
- package/dist/es/src/api-model/models/packed-quantity.js +17 -0
- package/dist/es/src/api-model/models/pagination.js +14 -0
- package/dist/es/src/api-model/models/purchase-order-item-details.js +14 -0
- package/dist/es/src/api-model/models/purchase-order-items.js +14 -0
- package/dist/es/src/api-model/models/purchase-orders.js +14 -0
- package/dist/es/src/api-model/models/shipment-details.js +14 -0
- package/dist/es/src/api-model/models/shipment-information.js +17 -0
- package/dist/es/src/api-model/models/shipment-status-details.js +19 -0
- package/dist/es/src/api-model/models/shipment.js +27 -0
- package/dist/es/src/api-model/models/submit-shipments.js +14 -0
- package/dist/es/src/api-model/models/transport-label.js +14 -0
- package/dist/es/src/api-model/models/transport-shipment-measurements.js +14 -0
- package/dist/es/src/api-model/models/transportation-details.js +5 -0
- package/dist/es/src/api-model/models/transportation-labels.js +14 -0
- package/dist/es/src/api-model/models/vendor-details.js +14 -0
- package/dist/es/src/client.js +21 -0
- package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +373 -4
- package/dist/types/src/api-model/models/carrier-details.d.ts +48 -0
- package/dist/types/src/api-model/models/collect-freight-pickup-details.d.ts +36 -0
- package/dist/types/src/api-model/models/container-sequence-numbers.d.ts +24 -0
- package/dist/types/src/api-model/models/containers.d.ts +88 -0
- package/dist/types/src/api-model/models/get-shipment-details-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-shipment-labels.d.ts +31 -0
- package/dist/types/src/api-model/models/import-details.d.ts +13 -0
- package/dist/types/src/api-model/models/index.d.ts +24 -0
- package/dist/types/src/api-model/models/inner-containers-details.d.ts +31 -0
- package/dist/types/src/api-model/models/item-details.d.ts +1 -1
- package/dist/types/src/api-model/models/item.d.ts +1 -1
- package/dist/types/src/api-model/models/label-data.d.ts +52 -0
- package/dist/types/src/api-model/models/package-item-details.d.ts +37 -0
- package/dist/types/src/api-model/models/packed-items.d.ts +50 -0
- package/dist/types/src/api-model/models/packed-quantity.d.ts +41 -0
- package/dist/types/src/api-model/models/pagination.d.ts +24 -0
- package/dist/types/src/api-model/models/pallet.d.ts +2 -2
- package/dist/types/src/api-model/models/purchase-order-item-details.d.ts +25 -0
- package/dist/types/src/api-model/models/purchase-order-items.d.ts +50 -0
- package/dist/types/src/api-model/models/purchase-orders.d.ts +43 -0
- package/dist/types/src/api-model/models/shipment-confirmation.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-details.d.ts +32 -0
- package/dist/types/src/api-model/models/shipment-information.d.ts +73 -0
- package/dist/types/src/api-model/models/shipment-measurements.d.ts +1 -1
- package/dist/types/src/api-model/models/shipment-status-details.d.ts +37 -0
- package/dist/types/src/api-model/models/shipment.d.ts +163 -0
- package/dist/types/src/api-model/models/submit-shipments.d.ts +25 -0
- package/dist/types/src/api-model/models/transaction-reference.d.ts +1 -1
- package/dist/types/src/api-model/models/transport-label.d.ts +38 -0
- package/dist/types/src/api-model/models/transport-shipment-measurements.d.ts +50 -0
- package/dist/types/src/api-model/models/transportation-details.d.ts +31 -6
- package/dist/types/src/api-model/models/transportation-labels.d.ts +32 -0
- package/dist/types/src/api-model/models/vendor-details.d.ts +31 -0
- package/dist/types/src/api-model/models/volume.d.ts +1 -1
- package/dist/types/src/api-model/models/weight.d.ts +1 -1
- package/package.json +2 -2
|
@@ -28,7 +28,219 @@ const base_1 = require("../base");
|
|
|
28
28
|
const VendorShippingApiAxiosParamCreator = function (configuration) {
|
|
29
29
|
return {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
32
|
+
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
33
|
+
* @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
34
|
+
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
35
|
+
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
36
|
+
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
37
|
+
* @param {string} [shipmentConfirmedBefore] Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format.
|
|
38
|
+
* @param {string} [shipmentConfirmedAfter] Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format.
|
|
39
|
+
* @param {string} [packageLabelCreatedBefore] Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format.
|
|
40
|
+
* @param {string} [packageLabelCreatedAfter] Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format.
|
|
41
|
+
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format.
|
|
42
|
+
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format.
|
|
43
|
+
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
44
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
45
|
+
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
46
|
+
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format.
|
|
47
|
+
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format.
|
|
48
|
+
* @param {string} [requestedPickUpAfter] Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format.
|
|
49
|
+
* @param {string} [scheduledPickUpBefore] Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format.
|
|
50
|
+
* @param {string} [scheduledPickUpAfter] Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format.
|
|
51
|
+
* @param {string} [currentShipmentStatus] Get Shipment Details by passing Current shipment status.
|
|
52
|
+
* @param {string} [vendorShipmentIdentifier] Get Shipment Details by passing Vendor Shipment ID
|
|
53
|
+
* @param {string} [buyerReferenceNumber] Get Shipment Details by passing buyer Reference ID
|
|
54
|
+
* @param {string} [buyerWarehouseCode] Get Shipping Details based on buyer warehouse code. This value should be same as \'shipToParty.partyId\' in the Shipment.
|
|
55
|
+
* @param {string} [sellerWarehouseCode] Get Shipping Details based on vendor warehouse code. This value should be same as \'sellingParty.partyId\' in the Shipment.
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getShipmentDetails: async (limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options = {}) => {
|
|
60
|
+
const localVarPath = `/vendor/shipping/v1/shipments`;
|
|
61
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
63
|
+
let baseOptions;
|
|
64
|
+
if (configuration) {
|
|
65
|
+
baseOptions = configuration.baseOptions;
|
|
66
|
+
}
|
|
67
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
68
|
+
const localVarHeaderParameter = {};
|
|
69
|
+
const localVarQueryParameter = {};
|
|
70
|
+
if (limit !== undefined) {
|
|
71
|
+
localVarQueryParameter['limit'] = limit;
|
|
72
|
+
}
|
|
73
|
+
if (sortOrder !== undefined) {
|
|
74
|
+
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
75
|
+
}
|
|
76
|
+
if (nextToken !== undefined) {
|
|
77
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
78
|
+
}
|
|
79
|
+
if (createdAfter !== undefined) {
|
|
80
|
+
localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
|
|
81
|
+
createdAfter.toISOString() :
|
|
82
|
+
createdAfter;
|
|
83
|
+
}
|
|
84
|
+
if (createdBefore !== undefined) {
|
|
85
|
+
localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
|
|
86
|
+
createdBefore.toISOString() :
|
|
87
|
+
createdBefore;
|
|
88
|
+
}
|
|
89
|
+
if (shipmentConfirmedBefore !== undefined) {
|
|
90
|
+
localVarQueryParameter['shipmentConfirmedBefore'] = (shipmentConfirmedBefore instanceof Date) ?
|
|
91
|
+
shipmentConfirmedBefore.toISOString() :
|
|
92
|
+
shipmentConfirmedBefore;
|
|
93
|
+
}
|
|
94
|
+
if (shipmentConfirmedAfter !== undefined) {
|
|
95
|
+
localVarQueryParameter['shipmentConfirmedAfter'] = (shipmentConfirmedAfter instanceof Date) ?
|
|
96
|
+
shipmentConfirmedAfter.toISOString() :
|
|
97
|
+
shipmentConfirmedAfter;
|
|
98
|
+
}
|
|
99
|
+
if (packageLabelCreatedBefore !== undefined) {
|
|
100
|
+
localVarQueryParameter['packageLabelCreatedBefore'] = (packageLabelCreatedBefore instanceof Date) ?
|
|
101
|
+
packageLabelCreatedBefore.toISOString() :
|
|
102
|
+
packageLabelCreatedBefore;
|
|
103
|
+
}
|
|
104
|
+
if (packageLabelCreatedAfter !== undefined) {
|
|
105
|
+
localVarQueryParameter['packageLabelCreatedAfter'] = (packageLabelCreatedAfter instanceof Date) ?
|
|
106
|
+
packageLabelCreatedAfter.toISOString() :
|
|
107
|
+
packageLabelCreatedAfter;
|
|
108
|
+
}
|
|
109
|
+
if (shippedBefore !== undefined) {
|
|
110
|
+
localVarQueryParameter['shippedBefore'] = (shippedBefore instanceof Date) ?
|
|
111
|
+
shippedBefore.toISOString() :
|
|
112
|
+
shippedBefore;
|
|
113
|
+
}
|
|
114
|
+
if (shippedAfter !== undefined) {
|
|
115
|
+
localVarQueryParameter['shippedAfter'] = (shippedAfter instanceof Date) ?
|
|
116
|
+
shippedAfter.toISOString() :
|
|
117
|
+
shippedAfter;
|
|
118
|
+
}
|
|
119
|
+
if (estimatedDeliveryBefore !== undefined) {
|
|
120
|
+
localVarQueryParameter['estimatedDeliveryBefore'] = (estimatedDeliveryBefore instanceof Date) ?
|
|
121
|
+
estimatedDeliveryBefore.toISOString() :
|
|
122
|
+
estimatedDeliveryBefore;
|
|
123
|
+
}
|
|
124
|
+
if (estimatedDeliveryAfter !== undefined) {
|
|
125
|
+
localVarQueryParameter['estimatedDeliveryAfter'] = (estimatedDeliveryAfter instanceof Date) ?
|
|
126
|
+
estimatedDeliveryAfter.toISOString() :
|
|
127
|
+
estimatedDeliveryAfter;
|
|
128
|
+
}
|
|
129
|
+
if (shipmentDeliveryBefore !== undefined) {
|
|
130
|
+
localVarQueryParameter['shipmentDeliveryBefore'] = (shipmentDeliveryBefore instanceof Date) ?
|
|
131
|
+
shipmentDeliveryBefore.toISOString() :
|
|
132
|
+
shipmentDeliveryBefore;
|
|
133
|
+
}
|
|
134
|
+
if (shipmentDeliveryAfter !== undefined) {
|
|
135
|
+
localVarQueryParameter['shipmentDeliveryAfter'] = (shipmentDeliveryAfter instanceof Date) ?
|
|
136
|
+
shipmentDeliveryAfter.toISOString() :
|
|
137
|
+
shipmentDeliveryAfter;
|
|
138
|
+
}
|
|
139
|
+
if (requestedPickUpBefore !== undefined) {
|
|
140
|
+
localVarQueryParameter['requestedPickUpBefore'] = (requestedPickUpBefore instanceof Date) ?
|
|
141
|
+
requestedPickUpBefore.toISOString() :
|
|
142
|
+
requestedPickUpBefore;
|
|
143
|
+
}
|
|
144
|
+
if (requestedPickUpAfter !== undefined) {
|
|
145
|
+
localVarQueryParameter['requestedPickUpAfter'] = (requestedPickUpAfter instanceof Date) ?
|
|
146
|
+
requestedPickUpAfter.toISOString() :
|
|
147
|
+
requestedPickUpAfter;
|
|
148
|
+
}
|
|
149
|
+
if (scheduledPickUpBefore !== undefined) {
|
|
150
|
+
localVarQueryParameter['scheduledPickUpBefore'] = (scheduledPickUpBefore instanceof Date) ?
|
|
151
|
+
scheduledPickUpBefore.toISOString() :
|
|
152
|
+
scheduledPickUpBefore;
|
|
153
|
+
}
|
|
154
|
+
if (scheduledPickUpAfter !== undefined) {
|
|
155
|
+
localVarQueryParameter['scheduledPickUpAfter'] = (scheduledPickUpAfter instanceof Date) ?
|
|
156
|
+
scheduledPickUpAfter.toISOString() :
|
|
157
|
+
scheduledPickUpAfter;
|
|
158
|
+
}
|
|
159
|
+
if (currentShipmentStatus !== undefined) {
|
|
160
|
+
localVarQueryParameter['currentShipmentStatus'] = currentShipmentStatus;
|
|
161
|
+
}
|
|
162
|
+
if (vendorShipmentIdentifier !== undefined) {
|
|
163
|
+
localVarQueryParameter['vendorShipmentIdentifier'] = vendorShipmentIdentifier;
|
|
164
|
+
}
|
|
165
|
+
if (buyerReferenceNumber !== undefined) {
|
|
166
|
+
localVarQueryParameter['buyerReferenceNumber'] = buyerReferenceNumber;
|
|
167
|
+
}
|
|
168
|
+
if (buyerWarehouseCode !== undefined) {
|
|
169
|
+
localVarQueryParameter['buyerWarehouseCode'] = buyerWarehouseCode;
|
|
170
|
+
}
|
|
171
|
+
if (sellerWarehouseCode !== undefined) {
|
|
172
|
+
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
173
|
+
}
|
|
174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
177
|
+
return {
|
|
178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
184
|
+
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
185
|
+
* @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by transport label creation date.
|
|
186
|
+
* @param {string} [nextToken] Used for pagination when there are more transport label than the specified result size limit.
|
|
187
|
+
* @param {string} [labelCreatedAfter] transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
188
|
+
* @param {string} [labelcreatedBefore] transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
189
|
+
* @param {string} [buyerReferenceNumber] Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label.
|
|
190
|
+
* @param {string} [vendorShipmentIdentifier] Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label.
|
|
191
|
+
* @param {string} [sellerWarehouseCode] Get Shipping labels based Vendor Warehouse code. This value should be same as \'shipFromParty.partyId\' in the Shipment.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
getShipmentLabels: async (limit, sortOrder, nextToken, labelCreatedAfter, labelcreatedBefore, buyerReferenceNumber, vendorShipmentIdentifier, sellerWarehouseCode, options = {}) => {
|
|
196
|
+
const localVarPath = `/vendor/shipping/v1/transportLabels`;
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
204
|
+
const localVarHeaderParameter = {};
|
|
205
|
+
const localVarQueryParameter = {};
|
|
206
|
+
if (limit !== undefined) {
|
|
207
|
+
localVarQueryParameter['limit'] = limit;
|
|
208
|
+
}
|
|
209
|
+
if (sortOrder !== undefined) {
|
|
210
|
+
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
211
|
+
}
|
|
212
|
+
if (nextToken !== undefined) {
|
|
213
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
214
|
+
}
|
|
215
|
+
if (labelCreatedAfter !== undefined) {
|
|
216
|
+
localVarQueryParameter['labelCreatedAfter'] = (labelCreatedAfter instanceof Date) ?
|
|
217
|
+
labelCreatedAfter.toISOString() :
|
|
218
|
+
labelCreatedAfter;
|
|
219
|
+
}
|
|
220
|
+
if (labelcreatedBefore !== undefined) {
|
|
221
|
+
localVarQueryParameter['labelcreatedBefore'] = (labelcreatedBefore instanceof Date) ?
|
|
222
|
+
labelcreatedBefore.toISOString() :
|
|
223
|
+
labelcreatedBefore;
|
|
224
|
+
}
|
|
225
|
+
if (buyerReferenceNumber !== undefined) {
|
|
226
|
+
localVarQueryParameter['buyerReferenceNumber'] = buyerReferenceNumber;
|
|
227
|
+
}
|
|
228
|
+
if (vendorShipmentIdentifier !== undefined) {
|
|
229
|
+
localVarQueryParameter['vendorShipmentIdentifier'] = vendorShipmentIdentifier;
|
|
230
|
+
}
|
|
231
|
+
if (sellerWarehouseCode !== undefined) {
|
|
232
|
+
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
233
|
+
}
|
|
234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
237
|
+
return {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
32
244
|
* @param {SubmitShipmentConfirmationsRequest} body
|
|
33
245
|
* @param {*} [options] Override http request option.
|
|
34
246
|
* @throws {RequiredError}
|
|
@@ -56,6 +268,35 @@ const VendorShippingApiAxiosParamCreator = function (configuration) {
|
|
|
56
268
|
options: localVarRequestOptions,
|
|
57
269
|
};
|
|
58
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
273
|
+
* @param {SubmitShipments} body
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
submitShipments: async (body, options = {}) => {
|
|
278
|
+
// verify required parameter 'body' is not null or undefined
|
|
279
|
+
(0, common_1.assertParamExists)('submitShipments', 'body', body);
|
|
280
|
+
const localVarPath = `/vendor/shipping/v1/shipments`;
|
|
281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
283
|
+
let baseOptions;
|
|
284
|
+
if (configuration) {
|
|
285
|
+
baseOptions = configuration.baseOptions;
|
|
286
|
+
}
|
|
287
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
288
|
+
const localVarHeaderParameter = {};
|
|
289
|
+
const localVarQueryParameter = {};
|
|
290
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
291
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
294
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
295
|
+
return {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
59
300
|
};
|
|
60
301
|
};
|
|
61
302
|
exports.VendorShippingApiAxiosParamCreator = VendorShippingApiAxiosParamCreator;
|
|
@@ -67,7 +308,57 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
67
308
|
const localVarAxiosParamCreator = (0, exports.VendorShippingApiAxiosParamCreator)(configuration);
|
|
68
309
|
return {
|
|
69
310
|
/**
|
|
70
|
-
*
|
|
311
|
+
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
312
|
+
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
313
|
+
* @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
314
|
+
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
315
|
+
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
316
|
+
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
317
|
+
* @param {string} [shipmentConfirmedBefore] Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format.
|
|
318
|
+
* @param {string} [shipmentConfirmedAfter] Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format.
|
|
319
|
+
* @param {string} [packageLabelCreatedBefore] Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format.
|
|
320
|
+
* @param {string} [packageLabelCreatedAfter] Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format.
|
|
321
|
+
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format.
|
|
322
|
+
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format.
|
|
323
|
+
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
324
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
325
|
+
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format.
|
|
326
|
+
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format.
|
|
327
|
+
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format.
|
|
328
|
+
* @param {string} [requestedPickUpAfter] Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format.
|
|
329
|
+
* @param {string} [scheduledPickUpBefore] Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format.
|
|
330
|
+
* @param {string} [scheduledPickUpAfter] Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format.
|
|
331
|
+
* @param {string} [currentShipmentStatus] Get Shipment Details by passing Current shipment status.
|
|
332
|
+
* @param {string} [vendorShipmentIdentifier] Get Shipment Details by passing Vendor Shipment ID
|
|
333
|
+
* @param {string} [buyerReferenceNumber] Get Shipment Details by passing buyer Reference ID
|
|
334
|
+
* @param {string} [buyerWarehouseCode] Get Shipping Details based on buyer warehouse code. This value should be same as \'shipToParty.partyId\' in the Shipment.
|
|
335
|
+
* @param {string} [sellerWarehouseCode] Get Shipping Details based on vendor warehouse code. This value should be same as \'sellingParty.partyId\' in the Shipment.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
async getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options) {
|
|
340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options);
|
|
341
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
345
|
+
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
346
|
+
* @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by transport label creation date.
|
|
347
|
+
* @param {string} [nextToken] Used for pagination when there are more transport label than the specified result size limit.
|
|
348
|
+
* @param {string} [labelCreatedAfter] transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
349
|
+
* @param {string} [labelcreatedBefore] transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
|
|
350
|
+
* @param {string} [buyerReferenceNumber] Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label.
|
|
351
|
+
* @param {string} [vendorShipmentIdentifier] Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label.
|
|
352
|
+
* @param {string} [sellerWarehouseCode] Get Shipping labels based Vendor Warehouse code. This value should be same as \'shipFromParty.partyId\' in the Shipment.
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
async getShipmentLabels(limit, sortOrder, nextToken, labelCreatedAfter, labelcreatedBefore, buyerReferenceNumber, vendorShipmentIdentifier, sellerWarehouseCode, options) {
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentLabels(limit, sortOrder, nextToken, labelCreatedAfter, labelcreatedBefore, buyerReferenceNumber, vendorShipmentIdentifier, sellerWarehouseCode, options);
|
|
358
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
71
362
|
* @param {SubmitShipmentConfirmationsRequest} body
|
|
72
363
|
* @param {*} [options] Override http request option.
|
|
73
364
|
* @throws {RequiredError}
|
|
@@ -76,6 +367,16 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
76
367
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmations(body, options);
|
|
77
368
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
78
369
|
},
|
|
370
|
+
/**
|
|
371
|
+
* Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
372
|
+
* @param {SubmitShipments} body
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
async submitShipments(body, options) {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipments(body, options);
|
|
378
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
379
|
+
},
|
|
79
380
|
};
|
|
80
381
|
};
|
|
81
382
|
exports.VendorShippingApiFp = VendorShippingApiFp;
|
|
@@ -87,7 +388,25 @@ const VendorShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
87
388
|
const localVarFp = (0, exports.VendorShippingApiFp)(configuration);
|
|
88
389
|
return {
|
|
89
390
|
/**
|
|
90
|
-
*
|
|
391
|
+
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
392
|
+
* @param {VendorShippingApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
getShipmentDetails(requestParameters = {}, options) {
|
|
397
|
+
return localVarFp.getShipmentDetails(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipmentConfirmedBefore, requestParameters.shipmentConfirmedAfter, requestParameters.packageLabelCreatedBefore, requestParameters.packageLabelCreatedAfter, requestParameters.shippedBefore, requestParameters.shippedAfter, requestParameters.estimatedDeliveryBefore, requestParameters.estimatedDeliveryAfter, requestParameters.shipmentDeliveryBefore, requestParameters.shipmentDeliveryAfter, requestParameters.requestedPickUpBefore, requestParameters.requestedPickUpAfter, requestParameters.scheduledPickUpBefore, requestParameters.scheduledPickUpAfter, requestParameters.currentShipmentStatus, requestParameters.vendorShipmentIdentifier, requestParameters.buyerReferenceNumber, requestParameters.buyerWarehouseCode, requestParameters.sellerWarehouseCode, options).then((request) => request(axios, basePath));
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
401
|
+
* @param {VendorShippingApiGetShipmentLabelsRequest} requestParameters Request parameters.
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
getShipmentLabels(requestParameters = {}, options) {
|
|
406
|
+
return localVarFp.getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelcreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(axios, basePath));
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
91
410
|
* @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
92
411
|
* @param {*} [options] Override http request option.
|
|
93
412
|
* @throws {RequiredError}
|
|
@@ -95,6 +414,15 @@ const VendorShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
95
414
|
submitShipmentConfirmations(requestParameters, options) {
|
|
96
415
|
return localVarFp.submitShipmentConfirmations(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
97
416
|
},
|
|
417
|
+
/**
|
|
418
|
+
* Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
419
|
+
* @param {VendorShippingApiSubmitShipmentsRequest} requestParameters Request parameters.
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
submitShipments(requestParameters, options) {
|
|
424
|
+
return localVarFp.submitShipments(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
425
|
+
},
|
|
98
426
|
};
|
|
99
427
|
};
|
|
100
428
|
exports.VendorShippingApiFactory = VendorShippingApiFactory;
|
|
@@ -106,7 +434,27 @@ exports.VendorShippingApiFactory = VendorShippingApiFactory;
|
|
|
106
434
|
*/
|
|
107
435
|
class VendorShippingApi extends base_1.BaseAPI {
|
|
108
436
|
/**
|
|
109
|
-
*
|
|
437
|
+
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
438
|
+
* @param {VendorShippingApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
* @memberof VendorShippingApi
|
|
442
|
+
*/
|
|
443
|
+
getShipmentDetails(requestParameters = {}, options) {
|
|
444
|
+
return (0, exports.VendorShippingApiFp)(this.configuration).getShipmentDetails(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipmentConfirmedBefore, requestParameters.shipmentConfirmedAfter, requestParameters.packageLabelCreatedBefore, requestParameters.packageLabelCreatedAfter, requestParameters.shippedBefore, requestParameters.shippedAfter, requestParameters.estimatedDeliveryBefore, requestParameters.estimatedDeliveryAfter, requestParameters.shipmentDeliveryBefore, requestParameters.shipmentDeliveryAfter, requestParameters.requestedPickUpBefore, requestParameters.requestedPickUpAfter, requestParameters.scheduledPickUpBefore, requestParameters.scheduledPickUpAfter, requestParameters.currentShipmentStatus, requestParameters.vendorShipmentIdentifier, requestParameters.buyerReferenceNumber, requestParameters.buyerWarehouseCode, requestParameters.sellerWarehouseCode, options).then((request) => request(this.axios, this.basePath));
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
448
|
+
* @param {VendorShippingApiGetShipmentLabelsRequest} requestParameters Request parameters.
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
* @memberof VendorShippingApi
|
|
452
|
+
*/
|
|
453
|
+
getShipmentLabels(requestParameters = {}, options) {
|
|
454
|
+
return (0, exports.VendorShippingApiFp)(this.configuration).getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelcreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(this.axios, this.basePath));
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
110
458
|
* @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
111
459
|
* @param {*} [options] Override http request option.
|
|
112
460
|
* @throws {RequiredError}
|
|
@@ -115,5 +463,15 @@ class VendorShippingApi extends base_1.BaseAPI {
|
|
|
115
463
|
submitShipmentConfirmations(requestParameters, options) {
|
|
116
464
|
return (0, exports.VendorShippingApiFp)(this.configuration).submitShipmentConfirmations(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
117
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
468
|
+
* @param {VendorShippingApiSubmitShipmentsRequest} requestParameters Request parameters.
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
* @memberof VendorShippingApi
|
|
472
|
+
*/
|
|
473
|
+
submitShipments(requestParameters, options) {
|
|
474
|
+
return (0, exports.VendorShippingApiFp)(this.configuration).submitShipments(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
475
|
+
}
|
|
118
476
|
}
|
|
119
477
|
exports.VendorShippingApi = VendorShippingApi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContainersContainerTypeEnum = void 0;
|
|
17
|
+
exports.ContainersContainerTypeEnum = {
|
|
18
|
+
Carton: 'carton',
|
|
19
|
+
Pallet: 'pallet'
|
|
20
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
+
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ImportDetailsMethodOfPaymentEnum = void 0;
|
|
16
|
+
exports.ImportDetailsHandlingInstructionsEnum = exports.ImportDetailsMethodOfPaymentEnum = void 0;
|
|
17
17
|
exports.ImportDetailsMethodOfPaymentEnum = {
|
|
18
18
|
PaidByBuyer: 'PaidByBuyer',
|
|
19
19
|
CollectOnDelivery: 'CollectOnDelivery',
|
|
@@ -22,3 +22,9 @@ exports.ImportDetailsMethodOfPaymentEnum = {
|
|
|
22
22
|
PrepaidBySeller: 'PrepaidBySeller',
|
|
23
23
|
PaidBySeller: 'PaidBySeller'
|
|
24
24
|
};
|
|
25
|
+
exports.ImportDetailsHandlingInstructionsEnum = {
|
|
26
|
+
Oversized: 'Oversized',
|
|
27
|
+
Fragile: 'Fragile',
|
|
28
|
+
Food: 'Food',
|
|
29
|
+
HandleWithCare: 'HandleWithCare'
|
|
30
|
+
};
|
|
@@ -2,30 +2,54 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./address"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./carrier-details"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./carton"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./carton-reference-details"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./collect-freight-pickup-details"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./container-identification"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./container-item"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./container-sequence-numbers"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./containers"), exports);
|
|
9
13
|
tslib_1.__exportStar(require("./dimensions"), exports);
|
|
10
14
|
tslib_1.__exportStar(require("./duration"), exports);
|
|
11
15
|
tslib_1.__exportStar(require("./expiry"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./get-shipment-details-response"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./get-shipment-labels"), exports);
|
|
12
18
|
tslib_1.__exportStar(require("./import-details"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./inner-containers-details"), exports);
|
|
13
20
|
tslib_1.__exportStar(require("./item"), exports);
|
|
14
21
|
tslib_1.__exportStar(require("./item-details"), exports);
|
|
15
22
|
tslib_1.__exportStar(require("./item-quantity"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./label-data"), exports);
|
|
16
24
|
tslib_1.__exportStar(require("./location"), exports);
|
|
17
25
|
tslib_1.__exportStar(require("./model-error"), exports);
|
|
18
26
|
tslib_1.__exportStar(require("./money"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./package-item-details"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./packed-items"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./packed-quantity"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
19
31
|
tslib_1.__exportStar(require("./pallet"), exports);
|
|
20
32
|
tslib_1.__exportStar(require("./party-identification"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./purchase-order-item-details"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./purchase-order-items"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./purchase-orders"), exports);
|
|
21
36
|
tslib_1.__exportStar(require("./route"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./shipment"), exports);
|
|
22
38
|
tslib_1.__exportStar(require("./shipment-confirmation"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./shipment-details"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./shipment-information"), exports);
|
|
23
41
|
tslib_1.__exportStar(require("./shipment-measurements"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./shipment-status-details"), exports);
|
|
24
43
|
tslib_1.__exportStar(require("./stop"), exports);
|
|
25
44
|
tslib_1.__exportStar(require("./submit-shipment-confirmations-request"), exports);
|
|
26
45
|
tslib_1.__exportStar(require("./submit-shipment-confirmations-response"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./submit-shipments"), exports);
|
|
27
47
|
tslib_1.__exportStar(require("./tax-registration-details"), exports);
|
|
28
48
|
tslib_1.__exportStar(require("./transaction-reference"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./transport-label"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./transport-shipment-measurements"), exports);
|
|
29
51
|
tslib_1.__exportStar(require("./transportation-details"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./transportation-labels"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./vendor-details"), exports);
|
|
30
54
|
tslib_1.__exportStar(require("./volume"), exports);
|
|
31
55
|
tslib_1.__exportStar(require("./weight"), exports);
|