@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 2.1.0 → 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
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `vendor-direct-fulfillment-orders-api-v1`
2
2
 
3
- The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.
3
+ The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.
4
4
 
5
5
  [![npm version](https://badgen.net/npm/v/@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1)](https://www.npmjs.com/package/@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1)
6
6
  [![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo)
@@ -0,0 +1,278 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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.VendorOrdersApi = exports.VendorOrdersApiFactory = exports.VendorOrdersApiFp = exports.VendorOrdersApiAxiosParamCreator = 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
+ * VendorOrdersApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const VendorOrdersApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ * Returns purchase order information 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).
34
+ * @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getOrder: async (purchaseOrderNumber, options = {}) => {
39
+ // verify required parameter 'purchaseOrderNumber' is not null or undefined
40
+ (0, common_1.assertParamExists)('getOrder', 'purchaseOrderNumber', purchaseOrderNumber);
41
+ const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}`
42
+ .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ }
49
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
50
+ const localVarHeaderParameter = {};
51
+ const localVarQueryParameter = {};
52
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
+ return {
56
+ url: (0, common_1.toPathString)(localVarUrlObj),
57
+ options: localVarRequestOptions,
58
+ };
59
+ },
60
+ /**
61
+ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **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).
62
+ * @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
63
+ * @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
64
+ * @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
65
+ * @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
66
+ * @param {number} [limit] The limit to the number of purchase orders returned.
67
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
68
+ * @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
69
+ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ getOrders: async (createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options = {}) => {
74
+ // verify required parameter 'createdAfter' is not null or undefined
75
+ (0, common_1.assertParamExists)('getOrders', 'createdAfter', createdAfter);
76
+ // verify required parameter 'createdBefore' is not null or undefined
77
+ (0, common_1.assertParamExists)('getOrders', 'createdBefore', createdBefore);
78
+ const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ if (shipFromPartyId !== undefined) {
89
+ localVarQueryParameter['shipFromPartyId'] = shipFromPartyId;
90
+ }
91
+ if (status !== undefined) {
92
+ localVarQueryParameter['status'] = status;
93
+ }
94
+ if (limit !== undefined) {
95
+ localVarQueryParameter['limit'] = limit;
96
+ }
97
+ if (createdAfter !== undefined) {
98
+ localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
99
+ createdAfter.toISOString() :
100
+ createdAfter;
101
+ }
102
+ if (createdBefore !== undefined) {
103
+ localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
104
+ createdBefore.toISOString() :
105
+ createdBefore;
106
+ }
107
+ if (sortOrder !== undefined) {
108
+ localVarQueryParameter['sortOrder'] = sortOrder;
109
+ }
110
+ if (nextToken !== undefined) {
111
+ localVarQueryParameter['nextToken'] = nextToken;
112
+ }
113
+ if (includeDetails !== undefined) {
114
+ localVarQueryParameter['includeDetails'] = includeDetails;
115
+ }
116
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
119
+ return {
120
+ url: (0, common_1.toPathString)(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ },
124
+ /**
125
+ * Submits acknowledgements for one or more purchase 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).
126
+ * @param {SubmitAcknowledgementRequest} body
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ submitAcknowledgement: async (body, options = {}) => {
131
+ // verify required parameter 'body' is not null or undefined
132
+ (0, common_1.assertParamExists)('submitAcknowledgement', 'body', body);
133
+ const localVarPath = `/vendor/directFulfillment/orders/v1/acknowledgements`;
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
141
+ const localVarHeaderParameter = {};
142
+ const localVarQueryParameter = {};
143
+ localVarHeaderParameter['Content-Type'] = 'application/json';
144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
147
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
148
+ return {
149
+ url: (0, common_1.toPathString)(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ };
154
+ };
155
+ exports.VendorOrdersApiAxiosParamCreator = VendorOrdersApiAxiosParamCreator;
156
+ /**
157
+ * VendorOrdersApi - functional programming interface
158
+ * @export
159
+ */
160
+ const VendorOrdersApiFp = function (configuration) {
161
+ const localVarAxiosParamCreator = (0, exports.VendorOrdersApiAxiosParamCreator)(configuration);
162
+ return {
163
+ /**
164
+ * Returns purchase order information 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).
165
+ * @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ async getOrder(purchaseOrderNumber, options) {
170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
171
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
172
+ },
173
+ /**
174
+ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **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).
175
+ * @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
176
+ * @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
177
+ * @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
178
+ * @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
179
+ * @param {number} [limit] The limit to the number of purchase orders returned.
180
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
181
+ * @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
182
+ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ async getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options) {
187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
188
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
189
+ },
190
+ /**
191
+ * Submits acknowledgements for one or more purchase 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).
192
+ * @param {SubmitAcknowledgementRequest} body
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ async submitAcknowledgement(body, options) {
197
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
198
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
199
+ },
200
+ };
201
+ };
202
+ exports.VendorOrdersApiFp = VendorOrdersApiFp;
203
+ /**
204
+ * VendorOrdersApi - factory interface
205
+ * @export
206
+ */
207
+ const VendorOrdersApiFactory = function (configuration, basePath, axios) {
208
+ const localVarFp = (0, exports.VendorOrdersApiFp)(configuration);
209
+ return {
210
+ /**
211
+ * Returns purchase order information 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).
212
+ * @param {VendorOrdersApiGetOrderRequest} requestParameters Request parameters.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getOrder(requestParameters, options) {
217
+ return localVarFp.getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(axios, basePath));
218
+ },
219
+ /**
220
+ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **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).
221
+ * @param {VendorOrdersApiGetOrdersRequest} requestParameters Request parameters.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ getOrders(requestParameters, options) {
226
+ return localVarFp.getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(axios, basePath));
227
+ },
228
+ /**
229
+ * Submits acknowledgements for one or more purchase 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).
230
+ * @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ submitAcknowledgement(requestParameters, options) {
235
+ return localVarFp.submitAcknowledgement(requestParameters.body, options).then((request) => request(axios, basePath));
236
+ },
237
+ };
238
+ };
239
+ exports.VendorOrdersApiFactory = VendorOrdersApiFactory;
240
+ /**
241
+ * VendorOrdersApi - object-oriented interface
242
+ * @export
243
+ * @class VendorOrdersApi
244
+ * @extends {BaseAPI}
245
+ */
246
+ class VendorOrdersApi extends base_1.BaseAPI {
247
+ /**
248
+ * Returns purchase order information 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).
249
+ * @param {VendorOrdersApiGetOrderRequest} requestParameters Request parameters.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ * @memberof VendorOrdersApi
253
+ */
254
+ getOrder(requestParameters, options) {
255
+ return (0, exports.VendorOrdersApiFp)(this.configuration).getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
256
+ }
257
+ /**
258
+ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **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).
259
+ * @param {VendorOrdersApiGetOrdersRequest} requestParameters Request parameters.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ * @memberof VendorOrdersApi
263
+ */
264
+ getOrders(requestParameters, options) {
265
+ return (0, exports.VendorOrdersApiFp)(this.configuration).getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(this.axios, this.basePath));
266
+ }
267
+ /**
268
+ * Submits acknowledgements for one or more purchase 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).
269
+ * @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ * @memberof VendorOrdersApi
273
+ */
274
+ submitAcknowledgement(requestParameters, options) {
275
+ return (0, exports.VendorOrdersApiFp)(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
276
+ }
277
+ }
278
+ exports.VendorOrdersApi = VendorOrdersApi;
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/update-inventory-api"), exports);
30
+ __exportStar(require("./api/vendor-orders-api"), exports);
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 });
@@ -14,11 +14,29 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./inventory-update"), exports);
18
- __exportStar(require("./item-details"), exports);
17
+ __exportStar(require("./acknowledgement-status"), exports);
18
+ __exportStar(require("./address"), exports);
19
+ __exportStar(require("./get-order-response"), exports);
20
+ __exportStar(require("./get-orders-response"), exports);
21
+ __exportStar(require("./gift-details"), exports);
19
22
  __exportStar(require("./item-quantity"), exports);
20
23
  __exportStar(require("./model-error"), exports);
24
+ __exportStar(require("./money"), exports);
25
+ __exportStar(require("./order"), exports);
26
+ __exportStar(require("./order-acknowledgement-item"), exports);
27
+ __exportStar(require("./order-details"), exports);
28
+ __exportStar(require("./order-details-tax-total"), exports);
29
+ __exportStar(require("./order-item"), exports);
30
+ __exportStar(require("./order-item-acknowledgement"), exports);
31
+ __exportStar(require("./order-item-tax-details"), exports);
32
+ __exportStar(require("./order-list"), exports);
33
+ __exportStar(require("./pagination"), exports);
21
34
  __exportStar(require("./party-identification"), exports);
22
- __exportStar(require("./submit-inventory-update-request"), exports);
23
- __exportStar(require("./submit-inventory-update-response"), exports);
24
- __exportStar(require("./transaction-reference"), exports);
35
+ __exportStar(require("./scheduled-delivery-shipment"), exports);
36
+ __exportStar(require("./shipment-dates"), exports);
37
+ __exportStar(require("./shipment-details"), exports);
38
+ __exportStar(require("./submit-acknowledgement-request"), exports);
39
+ __exportStar(require("./submit-acknowledgement-response"), exports);
40
+ __exportStar(require("./tax-details"), exports);
41
+ __exportStar(require("./tax-registration-details"), exports);
42
+ __exportStar(require("./transaction-id"), exports);
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -13,3 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemQuantityUnitOfMeasureEnum = void 0;
17
+ exports.ItemQuantityUnitOfMeasureEnum = {
18
+ Each: 'Each'
19
+ };
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
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.
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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.OrderDetailsOrderStatusEnum = void 0;
17
+ exports.OrderDetailsOrderStatusEnum = {
18
+ New: 'NEW',
19
+ Shipped: 'SHIPPED',
20
+ Accepted: 'ACCEPTED',
21
+ Cancelled: 'CANCELLED'
22
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 Direct Fulfillment Orders
6
+ * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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 });