@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 2.1.1 → 2.2.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.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/src/api-model/api/vendor-orders-api.js +278 -0
  3. package/dist/cjs/src/api-model/api.js +3 -3
  4. package/dist/cjs/src/api-model/base.js +2 -2
  5. package/dist/cjs/src/api-model/common.js +2 -2
  6. package/dist/cjs/src/api-model/configuration.js +2 -2
  7. package/dist/cjs/src/api-model/index.js +2 -2
  8. package/dist/cjs/src/api-model/models/{submit-inventory-update-response.js → acknowledgement-status.js} +2 -2
  9. package/dist/cjs/src/api-model/models/{inventory-update.js → address.js} +2 -2
  10. package/dist/cjs/src/api-model/models/{item-details.js → get-order-response.js} +2 -2
  11. package/dist/cjs/src/api-model/models/{submit-inventory-update-request.js → get-orders-response.js} +2 -2
  12. package/dist/cjs/src/api-model/models/gift-details.js +15 -0
  13. package/dist/cjs/src/api-model/models/index.js +23 -5
  14. package/dist/cjs/src/api-model/models/item-quantity.js +6 -2
  15. package/dist/cjs/src/api-model/models/model-error.js +2 -2
  16. package/dist/cjs/src/api-model/models/money.js +15 -0
  17. package/dist/cjs/src/api-model/models/order-acknowledgement-item.js +15 -0
  18. package/dist/cjs/src/api-model/models/order-details-tax-total.js +15 -0
  19. package/dist/cjs/src/api-model/models/order-details.js +22 -0
  20. package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +15 -0
  21. package/dist/cjs/src/api-model/models/order-item-tax-details.js +15 -0
  22. package/dist/cjs/src/api-model/models/order-item.js +15 -0
  23. package/dist/cjs/src/api-model/models/order-list.js +15 -0
  24. package/dist/cjs/src/api-model/models/order.js +15 -0
  25. package/dist/cjs/src/api-model/models/pagination.js +15 -0
  26. package/dist/cjs/src/api-model/models/party-identification.js +2 -2
  27. package/dist/cjs/src/api-model/models/scheduled-delivery-shipment.js +15 -0
  28. package/dist/cjs/src/api-model/models/shipment-dates.js +15 -0
  29. package/dist/cjs/src/api-model/models/shipment-details.js +15 -0
  30. package/dist/cjs/src/api-model/models/submit-acknowledgement-request.js +15 -0
  31. package/dist/cjs/src/api-model/models/submit-acknowledgement-response.js +15 -0
  32. package/dist/cjs/src/api-model/models/tax-details.js +25 -0
  33. package/dist/cjs/src/api-model/models/tax-registration-details.js +20 -0
  34. package/dist/cjs/src/api-model/models/transaction-id.js +15 -0
  35. package/dist/cjs/src/client.js +16 -2
  36. package/dist/es/src/api-model/api/vendor-orders-api.js +268 -0
  37. package/dist/es/src/api-model/api.js +3 -3
  38. package/dist/es/src/api-model/base.js +2 -2
  39. package/dist/es/src/api-model/common.js +2 -2
  40. package/dist/es/src/api-model/configuration.js +2 -2
  41. package/dist/es/src/api-model/index.js +2 -2
  42. package/dist/es/src/api-model/models/{inventory-update.js → acknowledgement-status.js} +2 -2
  43. package/dist/es/src/api-model/models/{item-details.js → address.js} +2 -2
  44. package/dist/es/src/api-model/models/{submit-inventory-update-request.js → get-order-response.js} +2 -2
  45. package/dist/es/src/api-model/models/{submit-inventory-update-response.js → get-orders-response.js} +2 -2
  46. package/dist/es/src/api-model/models/gift-details.js +14 -0
  47. package/dist/es/src/api-model/models/index.js +23 -5
  48. package/dist/es/src/api-model/models/item-quantity.js +5 -3
  49. package/dist/es/src/api-model/models/model-error.js +2 -2
  50. package/dist/es/src/api-model/models/money.js +14 -0
  51. package/dist/es/src/api-model/models/order-acknowledgement-item.js +14 -0
  52. package/dist/es/src/api-model/models/order-details-tax-total.js +14 -0
  53. package/dist/es/src/api-model/models/order-details.js +19 -0
  54. package/dist/es/src/api-model/models/order-item-acknowledgement.js +14 -0
  55. package/dist/es/src/api-model/models/order-item-tax-details.js +14 -0
  56. package/dist/es/src/api-model/models/order-item.js +14 -0
  57. package/dist/es/src/api-model/models/order-list.js +14 -0
  58. package/dist/es/src/api-model/models/order.js +14 -0
  59. package/dist/es/src/api-model/models/pagination.js +14 -0
  60. package/dist/es/src/api-model/models/party-identification.js +2 -2
  61. package/dist/es/src/api-model/models/scheduled-delivery-shipment.js +14 -0
  62. package/dist/es/src/api-model/models/shipment-dates.js +14 -0
  63. package/dist/es/src/api-model/models/shipment-details.js +14 -0
  64. package/dist/es/src/api-model/models/submit-acknowledgement-request.js +14 -0
  65. package/dist/es/src/api-model/models/submit-acknowledgement-response.js +14 -0
  66. package/dist/es/src/api-model/models/tax-details.js +22 -0
  67. package/dist/es/src/api-model/models/tax-registration-details.js +17 -0
  68. package/dist/es/src/api-model/models/transaction-id.js +14 -0
  69. package/dist/es/src/client.js +17 -3
  70. package/dist/types/src/api-model/api/vendor-orders-api.d.ts +227 -0
  71. package/dist/types/src/api-model/api.d.ts +3 -3
  72. package/dist/types/src/api-model/base.d.ts +2 -2
  73. package/dist/types/src/api-model/common.d.ts +2 -2
  74. package/dist/types/src/api-model/configuration.d.ts +2 -2
  75. package/dist/types/src/api-model/index.d.ts +2 -2
  76. package/dist/types/src/api-model/models/acknowledgement-status.d.ts +30 -0
  77. package/dist/types/src/api-model/models/address.d.ts +90 -0
  78. package/dist/types/src/api-model/models/get-order-response.d.ts +31 -0
  79. package/dist/types/src/api-model/models/get-orders-response.d.ts +31 -0
  80. package/dist/types/src/api-model/models/gift-details.d.ts +30 -0
  81. package/dist/types/src/api-model/models/index.d.ts +23 -5
  82. package/dist/types/src/api-model/models/item-quantity.d.ts +10 -6
  83. package/dist/types/src/api-model/models/model-error.d.ts +2 -2
  84. package/dist/types/src/api-model/models/money.d.ts +30 -0
  85. package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +63 -0
  86. package/dist/types/src/api-model/models/order-details-tax-total.d.ts +25 -0
  87. package/dist/types/src/api-model/models/order-details.d.ts +90 -0
  88. package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +43 -0
  89. package/dist/types/src/api-model/models/order-item-tax-details.d.ts +25 -0
  90. package/dist/types/src/api-model/models/order-item.d.ts +83 -0
  91. package/dist/types/src/api-model/models/order-list.d.ts +32 -0
  92. package/dist/types/src/api-model/models/order.d.ts +31 -0
  93. package/dist/types/src/api-model/models/pagination.d.ts +24 -0
  94. package/dist/types/src/api-model/models/party-identification.d.ts +17 -3
  95. package/dist/types/src/api-model/models/scheduled-delivery-shipment.d.ts +36 -0
  96. package/dist/types/src/api-model/models/shipment-dates.d.ts +30 -0
  97. package/dist/types/src/api-model/models/shipment-details.d.ts +61 -0
  98. package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +25 -0
  99. package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +31 -0
  100. package/dist/types/src/api-model/models/tax-details.d.ts +53 -0
  101. package/dist/types/src/api-model/models/tax-registration-details.d.ts +48 -0
  102. package/dist/types/src/api-model/models/transaction-id.d.ts +24 -0
  103. package/dist/types/src/client.d.ts +2 -2
  104. package/package.json +5 -5
  105. package/dist/cjs/src/api-model/api/update-inventory-api.js +0 -126
  106. package/dist/cjs/src/api-model/models/transaction-reference.js +0 -15
  107. package/dist/es/src/api-model/api/update-inventory-api.js +0 -116
  108. package/dist/es/src/api-model/models/transaction-reference.js +0 -14
  109. package/dist/types/src/api-model/api/update-inventory-api.d.ts +0 -93
  110. package/dist/types/src/api-model/models/inventory-update.d.ts +0 -38
  111. package/dist/types/src/api-model/models/item-details.d.ts +0 -43
  112. package/dist/types/src/api-model/models/submit-inventory-update-request.d.ts +0 -25
  113. package/dist/types/src/api-model/models/submit-inventory-update-response.d.ts +0 -31
  114. package/dist/types/src/api-model/models/transaction-reference.d.ts +0 -24
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Orders
3
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Money } from './money';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TaxDetails
17
+ */
18
+ export interface TaxDetails {
19
+ /**
20
+ * A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
21
+ * @type {string}
22
+ * @memberof TaxDetails
23
+ */
24
+ 'taxRate'?: string;
25
+ /**
26
+ *
27
+ * @type {Money}
28
+ * @memberof TaxDetails
29
+ */
30
+ 'taxAmount': Money;
31
+ /**
32
+ *
33
+ * @type {Money}
34
+ * @memberof TaxDetails
35
+ */
36
+ 'taxableAmount'?: Money;
37
+ /**
38
+ * Tax type.
39
+ * @type {string}
40
+ * @memberof TaxDetails
41
+ */
42
+ 'type'?: TaxDetailsTypeEnum;
43
+ }
44
+ export declare const TaxDetailsTypeEnum: {
45
+ readonly Consumption: "CONSUMPTION";
46
+ readonly Gst: "GST";
47
+ readonly MwSt: "MwSt.";
48
+ readonly Pst: "PST";
49
+ readonly Total: "TOTAL";
50
+ readonly Tva: "TVA";
51
+ readonly Vat: "VAT";
52
+ };
53
+ export type TaxDetailsTypeEnum = typeof TaxDetailsTypeEnum[keyof typeof TaxDetailsTypeEnum];
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Orders
3
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Address } from './address';
13
+ /**
14
+ * Tax registration details of the entity.
15
+ * @export
16
+ * @interface TaxRegistrationDetails
17
+ */
18
+ export interface TaxRegistrationDetails {
19
+ /**
20
+ * Tax registration type for the entity.
21
+ * @type {string}
22
+ * @memberof TaxRegistrationDetails
23
+ */
24
+ 'taxRegistrationType'?: TaxRegistrationDetailsTaxRegistrationTypeEnum;
25
+ /**
26
+ * Tax registration number for the party. For example, VAT ID.
27
+ * @type {string}
28
+ * @memberof TaxRegistrationDetails
29
+ */
30
+ 'taxRegistrationNumber': string;
31
+ /**
32
+ *
33
+ * @type {Address}
34
+ * @memberof TaxRegistrationDetails
35
+ */
36
+ 'taxRegistrationAddress'?: Address;
37
+ /**
38
+ * Tax registration message that can be used for additional tax related details.
39
+ * @type {string}
40
+ * @memberof TaxRegistrationDetails
41
+ */
42
+ 'taxRegistrationMessages'?: string;
43
+ }
44
+ export declare const TaxRegistrationDetailsTaxRegistrationTypeEnum: {
45
+ readonly Vat: "VAT";
46
+ readonly Gst: "GST";
47
+ };
48
+ export type TaxRegistrationDetailsTaxRegistrationTypeEnum = typeof TaxRegistrationDetailsTaxRegistrationTypeEnum[keyof typeof TaxRegistrationDetailsTaxRegistrationTypeEnum];
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Orders
3
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransactionId
16
+ */
17
+ export interface TransactionId {
18
+ /**
19
+ * GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
20
+ * @type {string}
21
+ * @memberof TransactionId
22
+ */
23
+ 'transactionId'?: string;
24
+ }
@@ -1,6 +1,6 @@
1
1
  import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
- import { UpdateInventoryApi } from './api-model';
2
+ import { VendorOrdersApi } from './api-model';
3
3
  export declare const clientRateLimits: RateLimit[];
4
- export declare class VendorDirectFulfillmentOrdersApiClient extends UpdateInventoryApi {
4
+ export declare class VendorDirectFulfillmentOrdersApiClient extends VendorOrdersApi {
5
5
  constructor(configuration: ClientConfiguration);
6
6
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
- "description": "The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.",
5
- "version": "2.1.1",
4
+ "description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.",
5
+ "version": "2.2.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.5",
22
- "axios": "^1.6.7"
21
+ "@sp-api-sdk/common": "2.0.6",
22
+ "axios": "^1.6.8"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "vendor direct fulfillment orders api"
42
42
  ],
43
- "gitHead": "014aad96509aba433e07461efbe936a6062cc66a"
43
+ "gitHead": "d757ce0353f64c34db7c46df5fc2bc2716a29f57"
44
44
  }
@@ -1,126 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Direct Fulfillment Inventory Updates
6
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.UpdateInventoryApi = exports.UpdateInventoryApiFactory = exports.UpdateInventoryApiFp = exports.UpdateInventoryApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * UpdateInventoryApi - axios parameter creator
28
- * @export
29
- */
30
- const UpdateInventoryApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
34
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
35
- * @param {SubmitInventoryUpdateRequest} body
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- submitInventoryUpdate: async (warehouseId, body, options = {}) => {
40
- // verify required parameter 'warehouseId' is not null or undefined
41
- (0, common_1.assertParamExists)('submitInventoryUpdate', 'warehouseId', warehouseId);
42
- // verify required parameter 'body' is not null or undefined
43
- (0, common_1.assertParamExists)('submitInventoryUpdate', 'body', body);
44
- const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`
45
- .replace(`{${"warehouseId"}}`, encodeURIComponent(String(warehouseId)));
46
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
48
- let baseOptions;
49
- if (configuration) {
50
- baseOptions = configuration.baseOptions;
51
- }
52
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
53
- const localVarHeaderParameter = {};
54
- const localVarQueryParameter = {};
55
- localVarHeaderParameter['Content-Type'] = 'application/json';
56
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
59
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
60
- return {
61
- url: (0, common_1.toPathString)(localVarUrlObj),
62
- options: localVarRequestOptions,
63
- };
64
- },
65
- };
66
- };
67
- exports.UpdateInventoryApiAxiosParamCreator = UpdateInventoryApiAxiosParamCreator;
68
- /**
69
- * UpdateInventoryApi - functional programming interface
70
- * @export
71
- */
72
- const UpdateInventoryApiFp = function (configuration) {
73
- const localVarAxiosParamCreator = (0, exports.UpdateInventoryApiAxiosParamCreator)(configuration);
74
- return {
75
- /**
76
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
77
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
78
- * @param {SubmitInventoryUpdateRequest} body
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- async submitInventoryUpdate(warehouseId, body, options) {
83
- const localVarAxiosArgs = await localVarAxiosParamCreator.submitInventoryUpdate(warehouseId, body, options);
84
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
85
- },
86
- };
87
- };
88
- exports.UpdateInventoryApiFp = UpdateInventoryApiFp;
89
- /**
90
- * UpdateInventoryApi - factory interface
91
- * @export
92
- */
93
- const UpdateInventoryApiFactory = function (configuration, basePath, axios) {
94
- const localVarFp = (0, exports.UpdateInventoryApiFp)(configuration);
95
- return {
96
- /**
97
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
98
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- submitInventoryUpdate(requestParameters, options) {
103
- return localVarFp.submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(axios, basePath));
104
- },
105
- };
106
- };
107
- exports.UpdateInventoryApiFactory = UpdateInventoryApiFactory;
108
- /**
109
- * UpdateInventoryApi - object-oriented interface
110
- * @export
111
- * @class UpdateInventoryApi
112
- * @extends {BaseAPI}
113
- */
114
- class UpdateInventoryApi extends base_1.BaseAPI {
115
- /**
116
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
117
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
118
- * @param {*} [options] Override http request option.
119
- * @throws {RequiredError}
120
- * @memberof UpdateInventoryApi
121
- */
122
- submitInventoryUpdate(requestParameters, options) {
123
- return (0, exports.UpdateInventoryApiFp)(this.configuration).submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
124
- }
125
- }
126
- exports.UpdateInventoryApi = UpdateInventoryApi;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Direct Fulfillment Inventory Updates
6
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
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 });
@@ -1,116 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Direct Fulfillment Inventory Updates
5
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, BaseAPI } from '../base';
20
- /**
21
- * UpdateInventoryApi - axios parameter creator
22
- * @export
23
- */
24
- export const UpdateInventoryApiAxiosParamCreator = function (configuration) {
25
- return {
26
- /**
27
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
28
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
29
- * @param {SubmitInventoryUpdateRequest} body
30
- * @param {*} [options] Override http request option.
31
- * @throws {RequiredError}
32
- */
33
- submitInventoryUpdate: async (warehouseId, body, options = {}) => {
34
- // verify required parameter 'warehouseId' is not null or undefined
35
- assertParamExists('submitInventoryUpdate', 'warehouseId', warehouseId);
36
- // verify required parameter 'body' is not null or undefined
37
- assertParamExists('submitInventoryUpdate', 'body', body);
38
- const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`
39
- .replace(`{${"warehouseId"}}`, encodeURIComponent(String(warehouseId)));
40
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
- let baseOptions;
43
- if (configuration) {
44
- baseOptions = configuration.baseOptions;
45
- }
46
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
47
- const localVarHeaderParameter = {};
48
- const localVarQueryParameter = {};
49
- localVarHeaderParameter['Content-Type'] = 'application/json';
50
- setSearchParams(localVarUrlObj, localVarQueryParameter);
51
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
54
- return {
55
- url: toPathString(localVarUrlObj),
56
- options: localVarRequestOptions,
57
- };
58
- },
59
- };
60
- };
61
- /**
62
- * UpdateInventoryApi - functional programming interface
63
- * @export
64
- */
65
- export const UpdateInventoryApiFp = function (configuration) {
66
- const localVarAxiosParamCreator = UpdateInventoryApiAxiosParamCreator(configuration);
67
- return {
68
- /**
69
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
70
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
71
- * @param {SubmitInventoryUpdateRequest} body
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- async submitInventoryUpdate(warehouseId, body, options) {
76
- const localVarAxiosArgs = await localVarAxiosParamCreator.submitInventoryUpdate(warehouseId, body, options);
77
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
78
- },
79
- };
80
- };
81
- /**
82
- * UpdateInventoryApi - factory interface
83
- * @export
84
- */
85
- export const UpdateInventoryApiFactory = function (configuration, basePath, axios) {
86
- const localVarFp = UpdateInventoryApiFp(configuration);
87
- return {
88
- /**
89
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
90
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
91
- * @param {*} [options] Override http request option.
92
- * @throws {RequiredError}
93
- */
94
- submitInventoryUpdate(requestParameters, options) {
95
- return localVarFp.submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(axios, basePath));
96
- },
97
- };
98
- };
99
- /**
100
- * UpdateInventoryApi - object-oriented interface
101
- * @export
102
- * @class UpdateInventoryApi
103
- * @extends {BaseAPI}
104
- */
105
- export class UpdateInventoryApi extends BaseAPI {
106
- /**
107
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
108
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
109
- * @param {*} [options] Override http request option.
110
- * @throws {RequiredError}
111
- * @memberof UpdateInventoryApi
112
- */
113
- submitInventoryUpdate(requestParameters, options) {
114
- return UpdateInventoryApiFp(this.configuration).submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
115
- }
116
- }
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Direct Fulfillment Inventory Updates
5
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,93 +0,0 @@
1
- /**
2
- * Selling Partner API for Direct Fulfillment Inventory Updates
3
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
- import globalAxios from 'axios';
15
- import { RequestArgs, BaseAPI } from '../base';
16
- import { SubmitInventoryUpdateRequest } from '../models';
17
- import { SubmitInventoryUpdateResponse } from '../models';
18
- /**
19
- * UpdateInventoryApi - axios parameter creator
20
- * @export
21
- */
22
- export declare const UpdateInventoryApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
25
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
26
- * @param {SubmitInventoryUpdateRequest} body
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- */
30
- submitInventoryUpdate: (warehouseId: string, body: SubmitInventoryUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
- };
32
- /**
33
- * UpdateInventoryApi - functional programming interface
34
- * @export
35
- */
36
- export declare const UpdateInventoryApiFp: (configuration?: Configuration) => {
37
- /**
38
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
39
- * @param {string} warehouseId Identifier for the warehouse for which to update inventory.
40
- * @param {SubmitInventoryUpdateRequest} body
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- submitInventoryUpdate(warehouseId: string, body: SubmitInventoryUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInventoryUpdateResponse>>;
45
- };
46
- /**
47
- * UpdateInventoryApi - factory interface
48
- * @export
49
- */
50
- export declare const UpdateInventoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
- /**
52
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
53
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
54
- * @param {*} [options] Override http request option.
55
- * @throws {RequiredError}
56
- */
57
- submitInventoryUpdate(requestParameters: UpdateInventoryApiSubmitInventoryUpdateRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitInventoryUpdateResponse>;
58
- };
59
- /**
60
- * Request parameters for submitInventoryUpdate operation in UpdateInventoryApi.
61
- * @export
62
- * @interface UpdateInventoryApiSubmitInventoryUpdateRequest
63
- */
64
- export interface UpdateInventoryApiSubmitInventoryUpdateRequest {
65
- /**
66
- * Identifier for the warehouse for which to update inventory.
67
- * @type {string}
68
- * @memberof UpdateInventoryApiSubmitInventoryUpdate
69
- */
70
- readonly warehouseId: string;
71
- /**
72
- *
73
- * @type {SubmitInventoryUpdateRequest}
74
- * @memberof UpdateInventoryApiSubmitInventoryUpdate
75
- */
76
- readonly body: SubmitInventoryUpdateRequest;
77
- }
78
- /**
79
- * UpdateInventoryApi - object-oriented interface
80
- * @export
81
- * @class UpdateInventoryApi
82
- * @extends {BaseAPI}
83
- */
84
- export declare class UpdateInventoryApi extends BaseAPI {
85
- /**
86
- * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **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).
87
- * @param {UpdateInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- * @memberof UpdateInventoryApi
91
- */
92
- submitInventoryUpdate(requestParameters: UpdateInventoryApiSubmitInventoryUpdateRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInventoryUpdateResponse, any>>;
93
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Selling Partner API for Direct Fulfillment Inventory Updates
3
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { ItemDetails } from './item-details';
13
- import { PartyIdentification } from './party-identification';
14
- /**
15
- *
16
- * @export
17
- * @interface InventoryUpdate
18
- */
19
- export interface InventoryUpdate {
20
- /**
21
- *
22
- * @type {PartyIdentification}
23
- * @memberof InventoryUpdate
24
- */
25
- 'sellingParty': PartyIdentification;
26
- /**
27
- * When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged.
28
- * @type {boolean}
29
- * @memberof InventoryUpdate
30
- */
31
- 'isFullUpdate': boolean;
32
- /**
33
- * A list of inventory items with updated details, including quantity available.
34
- * @type {Array<ItemDetails>}
35
- * @memberof InventoryUpdate
36
- */
37
- 'items': Array<ItemDetails>;
38
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * Selling Partner API for Direct Fulfillment Inventory Updates
3
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { ItemQuantity } from './item-quantity';
13
- /**
14
- * Updated inventory details for an item.
15
- * @export
16
- * @interface ItemDetails
17
- */
18
- export interface ItemDetails {
19
- /**
20
- * The buyer selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted.
21
- * @type {string}
22
- * @memberof ItemDetails
23
- */
24
- 'buyerProductIdentifier'?: string;
25
- /**
26
- * The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted.
27
- * @type {string}
28
- * @memberof ItemDetails
29
- */
30
- 'vendorProductIdentifier'?: string;
31
- /**
32
- *
33
- * @type {ItemQuantity}
34
- * @memberof ItemDetails
35
- */
36
- 'availableQuantity': ItemQuantity;
37
- /**
38
- * When true, the item is permanently unavailable.
39
- * @type {boolean}
40
- * @memberof ItemDetails
41
- */
42
- 'isObsolete'?: boolean;
43
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * Selling Partner API for Direct Fulfillment Inventory Updates
3
- * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates.
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { InventoryUpdate } from './inventory-update';
13
- /**
14
- * The request body for the submitInventoryUpdate operation.
15
- * @export
16
- * @interface SubmitInventoryUpdateRequest
17
- */
18
- export interface SubmitInventoryUpdateRequest {
19
- /**
20
- *
21
- * @type {InventoryUpdate}
22
- * @memberof SubmitInventoryUpdateRequest
23
- */
24
- 'inventory'?: InventoryUpdate;
25
- }