@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1 3.0.4 → 4.0.1
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/api-model/api/{vendor-shipping-api.js → vendor-direct-fulfillment-shipping-api.js} +61 -61
- package/dist/cjs/api-model/api.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/es/api-model/api/{vendor-shipping-api.js → vendor-direct-fulfillment-shipping-api.js} +56 -56
- package/dist/es/api-model/api.js +1 -1
- package/dist/es/client.js +2 -2
- package/dist/types/api-model/api/{vendor-shipping-api.d.ts → vendor-direct-fulfillment-shipping-api.d.ts} +105 -105
- package/dist/types/api-model/api.d.ts +1 -1
- package/dist/types/client.d.ts +2 -2
- package/package.json +4 -4
package/dist/es/api-model/api/{vendor-shipping-api.js → vendor-direct-fulfillment-shipping-api.js}
RENAMED
|
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* VendorDirectFulfillmentShippingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* Returns a customer invoice based on the purchaseOrderNumber 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).
|
|
@@ -365,11 +365,11 @@ export const VendorShippingApiAxiosParamCreator = function (configuration) {
|
|
|
365
365
|
};
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
|
-
*
|
|
368
|
+
* VendorDirectFulfillmentShippingApi - functional programming interface
|
|
369
369
|
* @export
|
|
370
370
|
*/
|
|
371
|
-
export const
|
|
372
|
-
const localVarAxiosParamCreator =
|
|
371
|
+
export const VendorDirectFulfillmentShippingApiFp = function (configuration) {
|
|
372
|
+
const localVarAxiosParamCreator = VendorDirectFulfillmentShippingApiAxiosParamCreator(configuration);
|
|
373
373
|
return {
|
|
374
374
|
/**
|
|
375
375
|
* Returns a customer invoice based on the purchaseOrderNumber 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).
|
|
@@ -380,7 +380,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
380
380
|
async getCustomerInvoice(purchaseOrderNumber, options) {
|
|
381
381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerInvoice(purchaseOrderNumber, options);
|
|
382
382
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
383
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
383
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getCustomerInvoice']?.[localVarOperationServerIndex]?.url;
|
|
384
384
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
385
385
|
},
|
|
386
386
|
/**
|
|
@@ -397,7 +397,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
397
397
|
async getCustomerInvoices(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options) {
|
|
398
398
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerInvoices(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options);
|
|
399
399
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
400
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
400
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getCustomerInvoices']?.[localVarOperationServerIndex]?.url;
|
|
401
401
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
402
402
|
},
|
|
403
403
|
/**
|
|
@@ -409,7 +409,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
409
409
|
async getPackingSlip(purchaseOrderNumber, options) {
|
|
410
410
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackingSlip(purchaseOrderNumber, options);
|
|
411
411
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
412
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
412
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getPackingSlip']?.[localVarOperationServerIndex]?.url;
|
|
413
413
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
414
414
|
},
|
|
415
415
|
/**
|
|
@@ -426,7 +426,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
426
426
|
async getPackingSlips(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options) {
|
|
427
427
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackingSlips(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options);
|
|
428
428
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
429
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
429
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getPackingSlips']?.[localVarOperationServerIndex]?.url;
|
|
430
430
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
431
431
|
},
|
|
432
432
|
/**
|
|
@@ -438,7 +438,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
438
438
|
async getShippingLabel(purchaseOrderNumber, options) {
|
|
439
439
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getShippingLabel(purchaseOrderNumber, options);
|
|
440
440
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
441
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
441
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getShippingLabel']?.[localVarOperationServerIndex]?.url;
|
|
442
442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
443
443
|
},
|
|
444
444
|
/**
|
|
@@ -455,7 +455,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
455
455
|
async getShippingLabels(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options) {
|
|
456
456
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getShippingLabels(createdAfter, createdBefore, shipFromPartyId, limit, sortOrder, nextToken, options);
|
|
457
457
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
458
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
458
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.getShippingLabels']?.[localVarOperationServerIndex]?.url;
|
|
459
459
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
460
460
|
},
|
|
461
461
|
/**
|
|
@@ -467,7 +467,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
467
467
|
async submitShipmentConfirmations(body, options) {
|
|
468
468
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmations(body, options);
|
|
469
469
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
470
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
470
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.submitShipmentConfirmations']?.[localVarOperationServerIndex]?.url;
|
|
471
471
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
472
472
|
},
|
|
473
473
|
/**
|
|
@@ -479,7 +479,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
479
479
|
async submitShipmentStatusUpdates(body, options) {
|
|
480
480
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentStatusUpdates(body, options);
|
|
481
481
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
482
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
482
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.submitShipmentStatusUpdates']?.[localVarOperationServerIndex]?.url;
|
|
483
483
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
484
484
|
},
|
|
485
485
|
/**
|
|
@@ -491,21 +491,21 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
491
491
|
async submitShippingLabelRequest(body, options) {
|
|
492
492
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShippingLabelRequest(body, options);
|
|
493
493
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
494
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
494
|
+
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentShippingApi.submitShippingLabelRequest']?.[localVarOperationServerIndex]?.url;
|
|
495
495
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
496
496
|
},
|
|
497
497
|
};
|
|
498
498
|
};
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
500
|
+
* VendorDirectFulfillmentShippingApi - factory interface
|
|
501
501
|
* @export
|
|
502
502
|
*/
|
|
503
|
-
export const
|
|
504
|
-
const localVarFp =
|
|
503
|
+
export const VendorDirectFulfillmentShippingApiFactory = function (configuration, basePath, axios) {
|
|
504
|
+
const localVarFp = VendorDirectFulfillmentShippingApiFp(configuration);
|
|
505
505
|
return {
|
|
506
506
|
/**
|
|
507
507
|
* Returns a customer invoice based on the purchaseOrderNumber 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).
|
|
508
|
-
* @param {
|
|
508
|
+
* @param {VendorDirectFulfillmentShippingApiGetCustomerInvoiceRequest} requestParameters Request parameters.
|
|
509
509
|
* @param {*} [options] Override http request option.
|
|
510
510
|
* @throws {RequiredError}
|
|
511
511
|
*/
|
|
@@ -514,7 +514,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
514
514
|
},
|
|
515
515
|
/**
|
|
516
516
|
* Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **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).
|
|
517
|
-
* @param {
|
|
517
|
+
* @param {VendorDirectFulfillmentShippingApiGetCustomerInvoicesRequest} requestParameters Request parameters.
|
|
518
518
|
* @param {*} [options] Override http request option.
|
|
519
519
|
* @throws {RequiredError}
|
|
520
520
|
*/
|
|
@@ -523,7 +523,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
523
523
|
},
|
|
524
524
|
/**
|
|
525
525
|
* Returns a packing slip based on the purchaseOrderNumber 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).
|
|
526
|
-
* @param {
|
|
526
|
+
* @param {VendorDirectFulfillmentShippingApiGetPackingSlipRequest} requestParameters Request parameters.
|
|
527
527
|
* @param {*} [options] Override http request option.
|
|
528
528
|
* @throws {RequiredError}
|
|
529
529
|
*/
|
|
@@ -532,7 +532,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
532
532
|
},
|
|
533
533
|
/**
|
|
534
534
|
* Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **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).
|
|
535
|
-
* @param {
|
|
535
|
+
* @param {VendorDirectFulfillmentShippingApiGetPackingSlipsRequest} requestParameters Request parameters.
|
|
536
536
|
* @param {*} [options] Override http request option.
|
|
537
537
|
* @throws {RequiredError}
|
|
538
538
|
*/
|
|
@@ -541,7 +541,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
541
541
|
},
|
|
542
542
|
/**
|
|
543
543
|
* Returns a shipping label for the purchaseOrderNumber 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).
|
|
544
|
-
* @param {
|
|
544
|
+
* @param {VendorDirectFulfillmentShippingApiGetShippingLabelRequest} requestParameters Request parameters.
|
|
545
545
|
* @param {*} [options] Override http request option.
|
|
546
546
|
* @throws {RequiredError}
|
|
547
547
|
*/
|
|
@@ -550,7 +550,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
550
550
|
},
|
|
551
551
|
/**
|
|
552
552
|
* Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **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).
|
|
553
|
-
* @param {
|
|
553
|
+
* @param {VendorDirectFulfillmentShippingApiGetShippingLabelsRequest} requestParameters Request parameters.
|
|
554
554
|
* @param {*} [options] Override http request option.
|
|
555
555
|
* @throws {RequiredError}
|
|
556
556
|
*/
|
|
@@ -559,7 +559,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
559
559
|
},
|
|
560
560
|
/**
|
|
561
561
|
* 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).
|
|
562
|
-
* @param {
|
|
562
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
563
563
|
* @param {*} [options] Override http request option.
|
|
564
564
|
* @throws {RequiredError}
|
|
565
565
|
*/
|
|
@@ -568,7 +568,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
568
568
|
},
|
|
569
569
|
/**
|
|
570
570
|
* This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **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).
|
|
571
|
-
* @param {
|
|
571
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShipmentStatusUpdatesRequest} requestParameters Request parameters.
|
|
572
572
|
* @param {*} [options] Override http request option.
|
|
573
573
|
* @throws {RequiredError}
|
|
574
574
|
*/
|
|
@@ -577,7 +577,7 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
577
577
|
},
|
|
578
578
|
/**
|
|
579
579
|
* Creates a shipping label for a purchase order and returns a transactionId for reference. **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).
|
|
580
|
-
* @param {
|
|
580
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShippingLabelRequestRequest} requestParameters Request parameters.
|
|
581
581
|
* @param {*} [options] Override http request option.
|
|
582
582
|
* @throws {RequiredError}
|
|
583
583
|
*/
|
|
@@ -587,101 +587,101 @@ export const VendorShippingApiFactory = function (configuration, basePath, axios
|
|
|
587
587
|
};
|
|
588
588
|
};
|
|
589
589
|
/**
|
|
590
|
-
*
|
|
590
|
+
* VendorDirectFulfillmentShippingApi - object-oriented interface
|
|
591
591
|
* @export
|
|
592
|
-
* @class
|
|
592
|
+
* @class VendorDirectFulfillmentShippingApi
|
|
593
593
|
* @extends {BaseAPI}
|
|
594
594
|
*/
|
|
595
|
-
export class
|
|
595
|
+
export class VendorDirectFulfillmentShippingApi extends BaseAPI {
|
|
596
596
|
/**
|
|
597
597
|
* Returns a customer invoice based on the purchaseOrderNumber 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).
|
|
598
|
-
* @param {
|
|
598
|
+
* @param {VendorDirectFulfillmentShippingApiGetCustomerInvoiceRequest} requestParameters Request parameters.
|
|
599
599
|
* @param {*} [options] Override http request option.
|
|
600
600
|
* @throws {RequiredError}
|
|
601
|
-
* @memberof
|
|
601
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
602
602
|
*/
|
|
603
603
|
getCustomerInvoice(requestParameters, options) {
|
|
604
|
-
return
|
|
604
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getCustomerInvoice(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
605
605
|
}
|
|
606
606
|
/**
|
|
607
607
|
* Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **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).
|
|
608
|
-
* @param {
|
|
608
|
+
* @param {VendorDirectFulfillmentShippingApiGetCustomerInvoicesRequest} requestParameters Request parameters.
|
|
609
609
|
* @param {*} [options] Override http request option.
|
|
610
610
|
* @throws {RequiredError}
|
|
611
|
-
* @memberof
|
|
611
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
612
612
|
*/
|
|
613
613
|
getCustomerInvoices(requestParameters, options) {
|
|
614
|
-
return
|
|
614
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getCustomerInvoices(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
615
615
|
}
|
|
616
616
|
/**
|
|
617
617
|
* Returns a packing slip based on the purchaseOrderNumber 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).
|
|
618
|
-
* @param {
|
|
618
|
+
* @param {VendorDirectFulfillmentShippingApiGetPackingSlipRequest} requestParameters Request parameters.
|
|
619
619
|
* @param {*} [options] Override http request option.
|
|
620
620
|
* @throws {RequiredError}
|
|
621
|
-
* @memberof
|
|
621
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
622
622
|
*/
|
|
623
623
|
getPackingSlip(requestParameters, options) {
|
|
624
|
-
return
|
|
624
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getPackingSlip(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
627
|
* Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **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).
|
|
628
|
-
* @param {
|
|
628
|
+
* @param {VendorDirectFulfillmentShippingApiGetPackingSlipsRequest} requestParameters Request parameters.
|
|
629
629
|
* @param {*} [options] Override http request option.
|
|
630
630
|
* @throws {RequiredError}
|
|
631
|
-
* @memberof
|
|
631
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
632
632
|
*/
|
|
633
633
|
getPackingSlips(requestParameters, options) {
|
|
634
|
-
return
|
|
634
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getPackingSlips(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
635
635
|
}
|
|
636
636
|
/**
|
|
637
637
|
* Returns a shipping label for the purchaseOrderNumber 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).
|
|
638
|
-
* @param {
|
|
638
|
+
* @param {VendorDirectFulfillmentShippingApiGetShippingLabelRequest} requestParameters Request parameters.
|
|
639
639
|
* @param {*} [options] Override http request option.
|
|
640
640
|
* @throws {RequiredError}
|
|
641
|
-
* @memberof
|
|
641
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
642
642
|
*/
|
|
643
643
|
getShippingLabel(requestParameters, options) {
|
|
644
|
-
return
|
|
644
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getShippingLabel(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
645
645
|
}
|
|
646
646
|
/**
|
|
647
647
|
* Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **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).
|
|
648
|
-
* @param {
|
|
648
|
+
* @param {VendorDirectFulfillmentShippingApiGetShippingLabelsRequest} requestParameters Request parameters.
|
|
649
649
|
* @param {*} [options] Override http request option.
|
|
650
650
|
* @throws {RequiredError}
|
|
651
|
-
* @memberof
|
|
651
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
652
652
|
*/
|
|
653
653
|
getShippingLabels(requestParameters, options) {
|
|
654
|
-
return
|
|
654
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).getShippingLabels(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
657
|
* 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).
|
|
658
|
-
* @param {
|
|
658
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
659
659
|
* @param {*} [options] Override http request option.
|
|
660
660
|
* @throws {RequiredError}
|
|
661
|
-
* @memberof
|
|
661
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
662
662
|
*/
|
|
663
663
|
submitShipmentConfirmations(requestParameters, options) {
|
|
664
|
-
return
|
|
664
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).submitShipmentConfirmations(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
665
665
|
}
|
|
666
666
|
/**
|
|
667
667
|
* This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **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).
|
|
668
|
-
* @param {
|
|
668
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShipmentStatusUpdatesRequest} requestParameters Request parameters.
|
|
669
669
|
* @param {*} [options] Override http request option.
|
|
670
670
|
* @throws {RequiredError}
|
|
671
|
-
* @memberof
|
|
671
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
672
672
|
*/
|
|
673
673
|
submitShipmentStatusUpdates(requestParameters, options) {
|
|
674
|
-
return
|
|
674
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).submitShipmentStatusUpdates(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
675
675
|
}
|
|
676
676
|
/**
|
|
677
677
|
* Creates a shipping label for a purchase order and returns a transactionId for reference. **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).
|
|
678
|
-
* @param {
|
|
678
|
+
* @param {VendorDirectFulfillmentShippingApiSubmitShippingLabelRequestRequest} requestParameters Request parameters.
|
|
679
679
|
* @param {*} [options] Override http request option.
|
|
680
680
|
* @throws {RequiredError}
|
|
681
|
-
* @memberof
|
|
681
|
+
* @memberof VendorDirectFulfillmentShippingApi
|
|
682
682
|
*/
|
|
683
683
|
submitShippingLabelRequest(requestParameters, options) {
|
|
684
|
-
return
|
|
684
|
+
return VendorDirectFulfillmentShippingApiFp(this.configuration).submitShippingLabelRequest(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
/**
|
package/dist/es/api-model/api.js
CHANGED
package/dist/es/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
-
import { Configuration,
|
|
2
|
+
import { Configuration, VendorDirectFulfillmentShippingApi } from './api-model';
|
|
3
3
|
export const clientRateLimits = [
|
|
4
4
|
{
|
|
5
5
|
method: 'get',
|
|
@@ -65,7 +65,7 @@ export const clientRateLimits = [
|
|
|
65
65
|
burst: 10,
|
|
66
66
|
},
|
|
67
67
|
];
|
|
68
|
-
export class VendorDirectFulfillmentShippingApiClient extends
|
|
68
|
+
export class VendorDirectFulfillmentShippingApiClient extends VendorDirectFulfillmentShippingApi {
|
|
69
69
|
constructor(configuration) {
|
|
70
70
|
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
71
71
|
super(new Configuration(), endpoint, axios);
|