@sp-api-sdk/orders-api-v0 1.12.3 → 1.14.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 (76) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +45 -45
  2. package/dist/cjs/src/api-model/models/address.js +4 -9
  3. package/dist/cjs/src/api-model/models/index.js +2 -0
  4. package/dist/cjs/src/api-model/models/order-item.js +4 -9
  5. package/dist/cjs/src/api-model/models/order-items-inner.js +15 -0
  6. package/dist/cjs/src/api-model/models/order.js +30 -55
  7. package/dist/cjs/src/api-model/models/regulated-information-field.js +4 -9
  8. package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +0 -13
  9. package/dist/cjs/src/api-model/models/shipment-status.js +5 -6
  10. package/dist/cjs/src/api-model/models/tax-collection.js +6 -16
  11. package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +0 -10
  12. package/dist/cjs/src/api-model/models/verification-status.js +28 -0
  13. package/dist/cjs/src/client.js +19 -12
  14. package/dist/es/src/api-model/api/orders-v0-api.js +45 -45
  15. package/dist/es/src/api-model/models/address.js +4 -9
  16. package/dist/es/src/api-model/models/index.js +2 -0
  17. package/dist/es/src/api-model/models/order-item.js +4 -9
  18. package/dist/es/src/api-model/models/order-items-inner.js +14 -0
  19. package/dist/es/src/api-model/models/order.js +30 -55
  20. package/dist/es/src/api-model/models/regulated-information-field.js +4 -9
  21. package/dist/es/src/api-model/models/regulated-order-verification-status.js +1 -12
  22. package/dist/es/src/api-model/models/shipment-status.js +5 -6
  23. package/dist/es/src/api-model/models/tax-collection.js +6 -16
  24. package/dist/es/src/api-model/models/update-verification-status-request-body.js +1 -9
  25. package/dist/es/src/api-model/models/verification-status.js +25 -0
  26. package/dist/es/src/client.js +19 -12
  27. package/dist/types/src/api-model/api/orders-v0-api.d.ts +70 -70
  28. package/dist/types/src/api-model/base.d.ts +2 -2
  29. package/dist/types/src/api-model/common.d.ts +7 -7
  30. package/dist/types/src/api-model/models/address.d.ts +18 -21
  31. package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +3 -3
  32. package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +1 -1
  33. package/dist/types/src/api-model/models/buyer-info.d.ts +5 -5
  34. package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +3 -3
  35. package/dist/types/src/api-model/models/buyer-tax-info.d.ts +3 -3
  36. package/dist/types/src/api-model/models/buyer-tax-information.d.ts +4 -4
  37. package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +1 -1
  38. package/dist/types/src/api-model/models/get-order-address-response.d.ts +2 -2
  39. package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +2 -2
  40. package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +2 -2
  41. package/dist/types/src/api-model/models/get-order-items-response.d.ts +2 -2
  42. package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +2 -2
  43. package/dist/types/src/api-model/models/get-order-response.d.ts +2 -2
  44. package/dist/types/src/api-model/models/get-orders-response.d.ts +2 -2
  45. package/dist/types/src/api-model/models/index.d.ts +2 -0
  46. package/dist/types/src/api-model/models/item-buyer-info.d.ts +5 -5
  47. package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +1 -1
  48. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  49. package/dist/types/src/api-model/models/money.d.ts +2 -2
  50. package/dist/types/src/api-model/models/order-address.d.ts +2 -2
  51. package/dist/types/src/api-model/models/order-buyer-info.d.ts +6 -6
  52. package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +6 -6
  53. package/dist/types/src/api-model/models/order-item.d.ts +39 -42
  54. package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +3 -3
  55. package/dist/types/src/api-model/models/order-items-inner.d.ts +30 -0
  56. package/dist/types/src/api-model/models/order-items-list.d.ts +3 -3
  57. package/dist/types/src/api-model/models/order-regulated-info.d.ts +4 -4
  58. package/dist/types/src/api-model/models/order.d.ts +86 -95
  59. package/dist/types/src/api-model/models/orders-list.d.ts +4 -4
  60. package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +2 -2
  61. package/dist/types/src/api-model/models/points-granted-detail.d.ts +2 -2
  62. package/dist/types/src/api-model/models/product-info-detail.d.ts +1 -1
  63. package/dist/types/src/api-model/models/regulated-information-field.d.ts +9 -12
  64. package/dist/types/src/api-model/models/regulated-information.d.ts +1 -1
  65. package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +9 -19
  66. package/dist/types/src/api-model/models/rejection-reason.d.ts +2 -2
  67. package/dist/types/src/api-model/models/shipment-status.d.ts +6 -5
  68. package/dist/types/src/api-model/models/tax-classification.d.ts +2 -2
  69. package/dist/types/src/api-model/models/tax-collection.d.ts +10 -16
  70. package/dist/types/src/api-model/models/update-shipment-status-error-response.d.ts +1 -1
  71. package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +5 -4
  72. package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +1 -1
  73. package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +6 -13
  74. package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
  75. package/dist/types/src/api-model/models/verification-status.d.ts +24 -0
  76. package/package.json +4 -4
@@ -20,5 +20,5 @@ export interface UpdateShipmentStatusErrorResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof UpdateShipmentStatusErrorResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { OrderItemsInner } from './order-items-inner';
12
13
  import { ShipmentStatus } from './shipment-status';
13
14
  /**
14
15
  * Request to update the status of shipment of an order.
@@ -21,17 +22,17 @@ export interface UpdateShipmentStatusRequest {
21
22
  * @type {string}
22
23
  * @memberof UpdateShipmentStatusRequest
23
24
  */
24
- marketplaceId: string;
25
+ 'marketplaceId': string;
25
26
  /**
26
27
  *
27
28
  * @type {ShipmentStatus}
28
29
  * @memberof UpdateShipmentStatusRequest
29
30
  */
30
- shipmentStatus: ShipmentStatus;
31
+ 'shipmentStatus': ShipmentStatus;
31
32
  /**
32
33
  * the list of order items and quantities when the seller wants to partially update the shipment status of the order
33
- * @type {Array<object>}
34
+ * @type {Array<OrderItemsInner>}
34
35
  * @memberof UpdateShipmentStatusRequest
35
36
  */
36
- orderItems?: Array<object>;
37
+ 'orderItems'?: Array<OrderItemsInner>;
37
38
  }
@@ -20,5 +20,5 @@ export interface UpdateVerificationStatusErrorResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof UpdateVerificationStatusErrorResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { VerificationStatus } from './verification-status';
12
13
  /**
13
14
  * The updated values of the VerificationStatus field.
14
15
  * @export
@@ -16,29 +17,21 @@
16
17
  */
17
18
  export interface UpdateVerificationStatusRequestBody {
18
19
  /**
19
- * The new verification status of the order.
20
- * @type {string}
20
+ *
21
+ * @type {VerificationStatus}
21
22
  * @memberof UpdateVerificationStatusRequestBody
22
23
  */
23
- status: UpdateVerificationStatusRequestBodyStatusEnum;
24
+ 'status': VerificationStatus;
24
25
  /**
25
26
  * The identifier for the order\'s regulated information reviewer.
26
27
  * @type {string}
27
28
  * @memberof UpdateVerificationStatusRequestBody
28
29
  */
29
- externalReviewerId: string;
30
+ 'externalReviewerId': string;
30
31
  /**
31
32
  * The unique identifier for the rejection reason used for rejecting the order\'s regulated information. Only required if the new status is rejected.
32
33
  * @type {string}
33
34
  * @memberof UpdateVerificationStatusRequestBody
34
35
  */
35
- rejectionReasonId?: string;
36
- }
37
- /**
38
- * @export
39
- * @enum {string}
40
- */
41
- export declare enum UpdateVerificationStatusRequestBodyStatusEnum {
42
- Approved = "Approved",
43
- Rejected = "Rejected"
36
+ 'rejectionReasonId'?: string;
44
37
  }
@@ -21,5 +21,5 @@ export interface UpdateVerificationStatusRequest {
21
21
  * @type {UpdateVerificationStatusRequestBody}
22
22
  * @memberof UpdateVerificationStatusRequest
23
23
  */
24
- regulatedOrderVerificationStatus: UpdateVerificationStatusRequestBody;
24
+ 'regulatedOrderVerificationStatus': UpdateVerificationStatusRequestBody;
25
25
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Orders
3
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
4
+ *
5
+ * The version of the OpenAPI document: v0
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
+ * The verification status of the order.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const VerificationStatus: {
18
+ readonly Pending: "Pending";
19
+ readonly Approved: "Approved";
20
+ readonly Rejected: "Rejected";
21
+ readonly Expired: "Expired";
22
+ readonly Cancelled: "Cancelled";
23
+ };
24
+ export declare type VerificationStatus = typeof VerificationStatus[keyof typeof VerificationStatus];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/orders-api-v0",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.",
5
- "version": "1.12.3",
5
+ "version": "1.14.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.16",
31
- "@sp-api-sdk/common": "^1.9.2",
30
+ "@sp-api-sdk/auth": "^1.9.18",
31
+ "@sp-api-sdk/common": "^1.9.4",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "orders api"
52
52
  ],
53
- "gitHead": "a7c5d10323f6fbaea18fe0669afb4c66a5898554"
53
+ "gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
54
54
  }