@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 2.0.3 → 2.1.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/update-inventory-api.js +126 -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/index.js +5 -23
  9. package/dist/cjs/src/api-model/models/{get-orders-response.js → inventory-update.js} +2 -2
  10. package/dist/cjs/src/api-model/models/{acknowledgement-status.js → item-details.js} +2 -2
  11. package/dist/cjs/src/api-model/models/item-quantity.js +2 -6
  12. package/dist/cjs/src/api-model/models/model-error.js +2 -2
  13. package/dist/cjs/src/api-model/models/party-identification.js +2 -2
  14. package/dist/cjs/src/api-model/models/{address.js → submit-inventory-update-request.js} +2 -2
  15. package/dist/cjs/src/api-model/models/{get-order-response.js → submit-inventory-update-response.js} +2 -2
  16. package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
  17. package/dist/cjs/src/client.js +2 -16
  18. package/dist/es/src/api-model/api/update-inventory-api.js +116 -0
  19. package/dist/es/src/api-model/api.js +3 -3
  20. package/dist/es/src/api-model/base.js +2 -2
  21. package/dist/es/src/api-model/common.js +2 -2
  22. package/dist/es/src/api-model/configuration.js +2 -2
  23. package/dist/es/src/api-model/index.js +2 -2
  24. package/dist/es/src/api-model/models/index.js +5 -23
  25. package/dist/es/src/api-model/models/{acknowledgement-status.js → inventory-update.js} +2 -2
  26. package/dist/es/src/api-model/models/{address.js → item-details.js} +2 -2
  27. package/dist/es/src/api-model/models/item-quantity.js +3 -5
  28. package/dist/es/src/api-model/models/model-error.js +2 -2
  29. package/dist/es/src/api-model/models/party-identification.js +2 -2
  30. package/dist/es/src/api-model/models/{get-order-response.js → submit-inventory-update-request.js} +2 -2
  31. package/dist/es/src/api-model/models/{get-orders-response.js → submit-inventory-update-response.js} +2 -2
  32. package/dist/es/src/api-model/models/transaction-reference.js +14 -0
  33. package/dist/es/src/client.js +3 -17
  34. package/dist/types/src/api-model/api/update-inventory-api.d.ts +93 -0
  35. package/dist/types/src/api-model/api.d.ts +3 -3
  36. package/dist/types/src/api-model/base.d.ts +2 -2
  37. package/dist/types/src/api-model/common.d.ts +2 -2
  38. package/dist/types/src/api-model/configuration.d.ts +2 -2
  39. package/dist/types/src/api-model/index.d.ts +2 -2
  40. package/dist/types/src/api-model/models/index.d.ts +5 -23
  41. package/dist/types/src/api-model/models/inventory-update.d.ts +38 -0
  42. package/dist/types/src/api-model/models/item-details.d.ts +43 -0
  43. package/dist/types/src/api-model/models/item-quantity.d.ts +6 -10
  44. package/dist/types/src/api-model/models/model-error.d.ts +2 -2
  45. package/dist/types/src/api-model/models/party-identification.d.ts +3 -17
  46. package/dist/types/src/api-model/models/submit-inventory-update-request.d.ts +25 -0
  47. package/dist/types/src/api-model/models/submit-inventory-update-response.d.ts +31 -0
  48. package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
  49. package/dist/types/src/client.d.ts +2 -2
  50. package/package.json +4 -4
  51. package/dist/cjs/src/api-model/api/vendor-orders-api.js +0 -278
  52. package/dist/cjs/src/api-model/models/gift-details.js +0 -15
  53. package/dist/cjs/src/api-model/models/money.js +0 -15
  54. package/dist/cjs/src/api-model/models/order-acknowledgement-item.js +0 -15
  55. package/dist/cjs/src/api-model/models/order-details-tax-total.js +0 -15
  56. package/dist/cjs/src/api-model/models/order-details.js +0 -22
  57. package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +0 -15
  58. package/dist/cjs/src/api-model/models/order-item-tax-details.js +0 -15
  59. package/dist/cjs/src/api-model/models/order-item.js +0 -15
  60. package/dist/cjs/src/api-model/models/order-list.js +0 -15
  61. package/dist/cjs/src/api-model/models/order.js +0 -15
  62. package/dist/cjs/src/api-model/models/pagination.js +0 -15
  63. package/dist/cjs/src/api-model/models/scheduled-delivery-shipment.js +0 -15
  64. package/dist/cjs/src/api-model/models/shipment-dates.js +0 -15
  65. package/dist/cjs/src/api-model/models/shipment-details.js +0 -15
  66. package/dist/cjs/src/api-model/models/submit-acknowledgement-request.js +0 -15
  67. package/dist/cjs/src/api-model/models/submit-acknowledgement-response.js +0 -15
  68. package/dist/cjs/src/api-model/models/tax-details.js +0 -25
  69. package/dist/cjs/src/api-model/models/tax-registration-details.js +0 -20
  70. package/dist/cjs/src/api-model/models/transaction-id.js +0 -15
  71. package/dist/es/src/api-model/api/vendor-orders-api.js +0 -268
  72. package/dist/es/src/api-model/models/gift-details.js +0 -14
  73. package/dist/es/src/api-model/models/money.js +0 -14
  74. package/dist/es/src/api-model/models/order-acknowledgement-item.js +0 -14
  75. package/dist/es/src/api-model/models/order-details-tax-total.js +0 -14
  76. package/dist/es/src/api-model/models/order-details.js +0 -19
  77. package/dist/es/src/api-model/models/order-item-acknowledgement.js +0 -14
  78. package/dist/es/src/api-model/models/order-item-tax-details.js +0 -14
  79. package/dist/es/src/api-model/models/order-item.js +0 -14
  80. package/dist/es/src/api-model/models/order-list.js +0 -14
  81. package/dist/es/src/api-model/models/order.js +0 -14
  82. package/dist/es/src/api-model/models/pagination.js +0 -14
  83. package/dist/es/src/api-model/models/scheduled-delivery-shipment.js +0 -14
  84. package/dist/es/src/api-model/models/shipment-dates.js +0 -14
  85. package/dist/es/src/api-model/models/shipment-details.js +0 -14
  86. package/dist/es/src/api-model/models/submit-acknowledgement-request.js +0 -14
  87. package/dist/es/src/api-model/models/submit-acknowledgement-response.js +0 -14
  88. package/dist/es/src/api-model/models/tax-details.js +0 -22
  89. package/dist/es/src/api-model/models/tax-registration-details.js +0 -17
  90. package/dist/es/src/api-model/models/transaction-id.js +0 -14
  91. package/dist/types/src/api-model/api/vendor-orders-api.d.ts +0 -226
  92. package/dist/types/src/api-model/models/acknowledgement-status.d.ts +0 -30
  93. package/dist/types/src/api-model/models/address.d.ts +0 -90
  94. package/dist/types/src/api-model/models/get-order-response.d.ts +0 -31
  95. package/dist/types/src/api-model/models/get-orders-response.d.ts +0 -31
  96. package/dist/types/src/api-model/models/gift-details.d.ts +0 -30
  97. package/dist/types/src/api-model/models/money.d.ts +0 -30
  98. package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +0 -63
  99. package/dist/types/src/api-model/models/order-details-tax-total.d.ts +0 -25
  100. package/dist/types/src/api-model/models/order-details.d.ts +0 -90
  101. package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +0 -43
  102. package/dist/types/src/api-model/models/order-item-tax-details.d.ts +0 -25
  103. package/dist/types/src/api-model/models/order-item.d.ts +0 -83
  104. package/dist/types/src/api-model/models/order-list.d.ts +0 -32
  105. package/dist/types/src/api-model/models/order.d.ts +0 -31
  106. package/dist/types/src/api-model/models/pagination.d.ts +0 -24
  107. package/dist/types/src/api-model/models/scheduled-delivery-shipment.d.ts +0 -36
  108. package/dist/types/src/api-model/models/shipment-dates.d.ts +0 -30
  109. package/dist/types/src/api-model/models/shipment-details.d.ts +0 -61
  110. package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +0 -25
  111. package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +0 -31
  112. package/dist/types/src/api-model/models/tax-details.d.ts +0 -53
  113. package/dist/types/src/api-model/models/tax-registration-details.d.ts +0 -48
  114. package/dist/types/src/api-model/models/transaction-id.d.ts +0 -24
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Selling Partner API for Direct Fulfillment Orders
5
- * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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
6
  *
7
7
  * The version of the OpenAPI document: v1
8
8
  *
@@ -11,6 +11,4 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export const ItemQuantityUnitOfMeasureEnum = {
15
- Each: 'Each'
16
- };
14
+ export {};
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Selling Partner API for Direct Fulfillment Orders
5
- * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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
6
  *
7
7
  * The version of the OpenAPI document: v1
8
8
  *
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Selling Partner API for Direct Fulfillment Orders
5
- * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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
6
  *
7
7
  * The version of the OpenAPI document: v1
8
8
  *
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Selling Partner API for Direct Fulfillment Orders
5
- * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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
6
  *
7
7
  * The version of the OpenAPI document: v1
8
8
  *
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Selling Partner API for Direct Fulfillment Orders
5
- * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
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
6
  *
7
7
  * The version of the OpenAPI document: v1
8
8
  *
@@ -0,0 +1,14 @@
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,29 +1,15 @@
1
1
  import { createAxiosInstance } from '@sp-api-sdk/common';
2
- import { Configuration, VendorOrdersApi } from './api-model';
2
+ import { Configuration, UpdateInventoryApi } from './api-model';
3
3
  export const clientRateLimits = [
4
- {
5
- method: 'get',
6
- // eslint-disable-next-line prefer-regex-literals
7
- urlRegex: new RegExp('^/vendor/directFulfillment/orders/v1/purchaseOrders$'),
8
- rate: 10,
9
- burst: 10,
10
- },
11
- {
12
- method: 'get',
13
- // eslint-disable-next-line prefer-regex-literals
14
- urlRegex: new RegExp('^/vendor/directFulfillment/orders/v1/purchaseOrders/[^/]*$'),
15
- rate: 10,
16
- burst: 10,
17
- },
18
4
  {
19
5
  method: 'post',
20
6
  // eslint-disable-next-line prefer-regex-literals
21
- urlRegex: new RegExp('^/vendor/directFulfillment/orders/v1/acknowledgements$'),
7
+ urlRegex: new RegExp('^/vendor/directFulfillment/inventory/v1/warehouses/[^/]*/items$'),
22
8
  rate: 10,
23
9
  burst: 10,
24
10
  },
25
11
  ];
26
- export class VendorDirectFulfillmentOrdersApiClient extends VendorOrdersApi {
12
+ export class VendorDirectFulfillmentOrdersApiClient extends UpdateInventoryApi {
27
13
  constructor(configuration) {
28
14
  const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
29
15
  super(new Configuration(), endpoint, axios);
@@ -0,0 +1,93 @@
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,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/vendor-orders-api';
12
+ export * from './api/update-inventory-api';
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,26 +1,8 @@
1
- export * from './acknowledgement-status';
2
- export * from './address';
3
- export * from './get-order-response';
4
- export * from './get-orders-response';
5
- export * from './gift-details';
1
+ export * from './inventory-update';
2
+ export * from './item-details';
6
3
  export * from './item-quantity';
7
4
  export * from './model-error';
8
- export * from './money';
9
- export * from './order';
10
- export * from './order-acknowledgement-item';
11
- export * from './order-details';
12
- export * from './order-details-tax-total';
13
- export * from './order-item';
14
- export * from './order-item-acknowledgement';
15
- export * from './order-item-tax-details';
16
- export * from './order-list';
17
- export * from './pagination';
18
5
  export * from './party-identification';
19
- export * from './scheduled-delivery-shipment';
20
- export * from './shipment-dates';
21
- export * from './shipment-details';
22
- export * from './submit-acknowledgement-request';
23
- export * from './submit-acknowledgement-response';
24
- export * from './tax-details';
25
- export * from './tax-registration-details';
26
- export * from './transaction-id';
6
+ export * from './submit-inventory-update-request';
7
+ export * from './submit-inventory-update-response';
8
+ export * from './transaction-reference';
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,43 @@
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,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -10,25 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Details of quantity ordered.
13
+ * Details of item quantity.
14
14
  * @export
15
15
  * @interface ItemQuantity
16
16
  */
17
17
  export interface ItemQuantity {
18
18
  /**
19
- * Acknowledged quantity. This value should not be zero.
19
+ * Quantity of units available for a specific item.
20
20
  * @type {number}
21
21
  * @memberof ItemQuantity
22
22
  */
23
23
  'amount'?: number;
24
24
  /**
25
- * Unit of measure for the acknowledged quantity.
25
+ * Unit of measure for the available quantity.
26
26
  * @type {string}
27
27
  * @memberof ItemQuantity
28
28
  */
29
- 'unitOfMeasure'?: ItemQuantityUnitOfMeasureEnum;
29
+ 'unitOfMeasure': string;
30
30
  }
31
- export declare const ItemQuantityUnitOfMeasureEnum: {
32
- readonly Each: "Each";
33
- };
34
- export type ItemQuantityUnitOfMeasureEnum = typeof ItemQuantityUnitOfMeasureEnum[keyof typeof ItemQuantityUnitOfMeasureEnum];
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
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.
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
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -9,8 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { TaxRegistrationDetails } from './tax-registration-details';
14
12
  /**
15
13
  *
16
14
  * @export
@@ -18,21 +16,9 @@ import { TaxRegistrationDetails } from './tax-registration-details';
18
16
  */
19
17
  export interface PartyIdentification {
20
18
  /**
21
- * Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details.
19
+ * Assigned identification for the party.
22
20
  * @type {string}
23
21
  * @memberof PartyIdentification
24
22
  */
25
23
  'partyId': string;
26
- /**
27
- *
28
- * @type {Address}
29
- * @memberof PartyIdentification
30
- */
31
- 'address'?: Address;
32
- /**
33
- *
34
- * @type {TaxRegistrationDetails}
35
- * @memberof PartyIdentification
36
- */
37
- 'taxInfo'?: TaxRegistrationDetails;
38
24
  }
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,31 @@
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 { TransactionReference } from './transaction-reference';
13
+ /**
14
+ * The response schema for the submitInventoryUpdate operation.
15
+ * @export
16
+ * @interface SubmitInventoryUpdateResponse
17
+ */
18
+ export interface SubmitInventoryUpdateResponse {
19
+ /**
20
+ *
21
+ * @type {TransactionReference}
22
+ * @memberof SubmitInventoryUpdateResponse
23
+ */
24
+ 'payload'?: TransactionReference;
25
+ /**
26
+ * A list of error responses returned when a request is unsuccessful.
27
+ * @type {Array<Error>}
28
+ * @memberof SubmitInventoryUpdateResponse
29
+ */
30
+ 'errors'?: Array<Error>;
31
+ }
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransactionReference
16
+ */
17
+ export interface TransactionReference {
18
+ /**
19
+ * GUID 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 TransactionReference
22
+ */
23
+ 'transactionId'?: string;
24
+ }
@@ -1,6 +1,6 @@
1
1
  import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
- import { VendorOrdersApi } from './api-model';
2
+ import { UpdateInventoryApi } from './api-model';
3
3
  export declare const clientRateLimits: RateLimit[];
4
- export declare class VendorDirectFulfillmentOrdersApiClient extends VendorOrdersApi {
4
+ export declare class VendorDirectFulfillmentOrdersApiClient extends UpdateInventoryApi {
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 Orders provides programmatic access to a direct fulfillment vendor's order data.",
5
- "version": "2.0.3",
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.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.3",
21
+ "@sp-api-sdk/common": "2.0.4",
22
22
  "axios": "^1.6.2"
23
23
  },
24
24
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "vendor direct fulfillment orders api"
42
42
  ],
43
- "gitHead": "c81279baeb662780ae3cb42fb60fa11670fed191"
43
+ "gitHead": "96729dd2eabfca855da5eb33f271c0b09b449972"
44
44
  }