@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/customer-invoices-api.js +213 -0
  5. package/dist/cjs/src/api-model/api/vendor-shipping-api.js +329 -0
  6. package/dist/cjs/src/api-model/api/vendor-shipping-labels-api.js +271 -0
  7. package/dist/cjs/src/api-model/api.js +19 -0
  8. package/dist/cjs/src/api-model/base.js +62 -0
  9. package/dist/cjs/src/api-model/common.js +137 -0
  10. package/dist/cjs/src/api-model/configuration.js +42 -0
  11. package/dist/cjs/src/api-model/index.js +19 -0
  12. package/dist/cjs/src/api-model/models/address.js +15 -0
  13. package/dist/cjs/src/api-model/models/container.js +25 -0
  14. package/dist/cjs/src/api-model/models/customer-invoice-list.js +15 -0
  15. package/dist/cjs/src/api-model/models/customer-invoice.js +15 -0
  16. package/dist/cjs/src/api-model/models/dimensions.js +25 -0
  17. package/dist/cjs/src/api-model/models/get-customer-invoice-response.js +15 -0
  18. package/dist/cjs/src/api-model/models/get-customer-invoices-response.js +15 -0
  19. package/dist/cjs/src/api-model/models/get-packing-slip-list-response.js +15 -0
  20. package/dist/cjs/src/api-model/models/get-packing-slip-response.js +15 -0
  21. package/dist/cjs/src/api-model/models/get-shipping-label-list-response.js +15 -0
  22. package/dist/cjs/src/api-model/models/get-shipping-label-response.js +15 -0
  23. package/dist/cjs/src/api-model/models/index.js +40 -0
  24. package/dist/cjs/src/api-model/models/item-quantity.js +15 -0
  25. package/dist/cjs/src/api-model/models/item.js +15 -0
  26. package/dist/cjs/src/api-model/models/label-data.js +15 -0
  27. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  28. package/dist/cjs/src/api-model/models/package.js +15 -0
  29. package/dist/cjs/src/api-model/models/packed-item.js +15 -0
  30. package/dist/cjs/src/api-model/models/packing-slip-list.js +15 -0
  31. package/dist/cjs/src/api-model/models/packing-slip.js +24 -0
  32. package/dist/cjs/src/api-model/models/pagination.js +15 -0
  33. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  34. package/dist/cjs/src/api-model/models/shipment-confirmation.js +15 -0
  35. package/dist/cjs/src/api-model/models/shipment-details.js +25 -0
  36. package/dist/cjs/src/api-model/models/shipment-status-update.js +15 -0
  37. package/dist/cjs/src/api-model/models/shipping-label-list.js +15 -0
  38. package/dist/cjs/src/api-model/models/shipping-label-request.js +15 -0
  39. package/dist/cjs/src/api-model/models/shipping-label.js +25 -0
  40. package/dist/cjs/src/api-model/models/status-update-details-shipment-schedule.js +15 -0
  41. package/dist/cjs/src/api-model/models/status-update-details.js +15 -0
  42. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-request.js +15 -0
  43. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-response.js +15 -0
  44. package/dist/cjs/src/api-model/models/submit-shipment-status-updates-request.js +15 -0
  45. package/dist/cjs/src/api-model/models/submit-shipment-status-updates-response.js +15 -0
  46. package/dist/cjs/src/api-model/models/submit-shipping-labels-request.js +15 -0
  47. package/dist/cjs/src/api-model/models/submit-shipping-labels-response.js +15 -0
  48. package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
  49. package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
  50. package/dist/cjs/src/api-model/models/weight.js +25 -0
  51. package/dist/cjs/src/client.js +83 -0
  52. package/dist/cjs/src/error.js +10 -0
  53. package/dist/es/index.js +3 -0
  54. package/dist/es/src/api-model/api/customer-invoices-api.js +205 -0
  55. package/dist/es/src/api-model/api/vendor-shipping-api.js +321 -0
  56. package/dist/es/src/api-model/api/vendor-shipping-labels-api.js +263 -0
  57. package/dist/es/src/api-model/api.js +16 -0
  58. package/dist/es/src/api-model/base.js +56 -0
  59. package/dist/es/src/api-model/common.js +125 -0
  60. package/dist/es/src/api-model/configuration.js +38 -0
  61. package/dist/es/src/api-model/index.js +16 -0
  62. package/dist/es/src/api-model/models/address.js +14 -0
  63. package/dist/es/src/api-model/models/container.js +22 -0
  64. package/dist/es/src/api-model/models/customer-invoice-list.js +14 -0
  65. package/dist/es/src/api-model/models/customer-invoice.js +14 -0
  66. package/dist/es/src/api-model/models/dimensions.js +22 -0
  67. package/dist/es/src/api-model/models/get-customer-invoice-response.js +14 -0
  68. package/dist/es/src/api-model/models/get-customer-invoices-response.js +14 -0
  69. package/dist/es/src/api-model/models/get-packing-slip-list-response.js +14 -0
  70. package/dist/es/src/api-model/models/get-packing-slip-response.js +14 -0
  71. package/dist/es/src/api-model/models/get-shipping-label-list-response.js +14 -0
  72. package/dist/es/src/api-model/models/get-shipping-label-response.js +14 -0
  73. package/dist/es/src/api-model/models/index.js +37 -0
  74. package/dist/es/src/api-model/models/item-quantity.js +14 -0
  75. package/dist/es/src/api-model/models/item.js +14 -0
  76. package/dist/es/src/api-model/models/label-data.js +14 -0
  77. package/dist/es/src/api-model/models/model-error.js +14 -0
  78. package/dist/es/src/api-model/models/package.js +14 -0
  79. package/dist/es/src/api-model/models/packed-item.js +14 -0
  80. package/dist/es/src/api-model/models/packing-slip-list.js +14 -0
  81. package/dist/es/src/api-model/models/packing-slip.js +21 -0
  82. package/dist/es/src/api-model/models/pagination.js +14 -0
  83. package/dist/es/src/api-model/models/party-identification.js +14 -0
  84. package/dist/es/src/api-model/models/shipment-confirmation.js +14 -0
  85. package/dist/es/src/api-model/models/shipment-details.js +22 -0
  86. package/dist/es/src/api-model/models/shipment-status-update.js +14 -0
  87. package/dist/es/src/api-model/models/shipping-label-list.js +14 -0
  88. package/dist/es/src/api-model/models/shipping-label-request.js +14 -0
  89. package/dist/es/src/api-model/models/shipping-label.js +22 -0
  90. package/dist/es/src/api-model/models/status-update-details-shipment-schedule.js +14 -0
  91. package/dist/es/src/api-model/models/status-update-details.js +14 -0
  92. package/dist/es/src/api-model/models/submit-shipment-confirmations-request.js +14 -0
  93. package/dist/es/src/api-model/models/submit-shipment-confirmations-response.js +14 -0
  94. package/dist/es/src/api-model/models/submit-shipment-status-updates-request.js +14 -0
  95. package/dist/es/src/api-model/models/submit-shipment-status-updates-response.js +14 -0
  96. package/dist/es/src/api-model/models/submit-shipping-labels-request.js +14 -0
  97. package/dist/es/src/api-model/models/submit-shipping-labels-response.js +14 -0
  98. package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
  99. package/dist/es/src/api-model/models/transaction-reference.js +14 -0
  100. package/dist/es/src/api-model/models/weight.js +22 -0
  101. package/dist/es/src/client.js +79 -0
  102. package/dist/es/src/error.js +6 -0
  103. package/dist/types/index.d.ts +3 -0
  104. package/dist/types/src/api-model/api/customer-invoices-api.d.ts +171 -0
  105. package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +259 -0
  106. package/dist/types/src/api-model/api/vendor-shipping-labels-api.d.ts +215 -0
  107. package/dist/types/src/api-model/api.d.ts +14 -0
  108. package/dist/types/src/api-model/base.d.ts +55 -0
  109. package/dist/types/src/api-model/common.d.ts +65 -0
  110. package/dist/types/src/api-model/configuration.d.ts +83 -0
  111. package/dist/types/src/api-model/index.d.ts +14 -0
  112. package/dist/types/src/api-model/models/address.d.ts +84 -0
  113. package/dist/types/src/api-model/models/container.d.ts +101 -0
  114. package/dist/types/src/api-model/models/customer-invoice-list.d.ts +32 -0
  115. package/dist/types/src/api-model/models/customer-invoice.d.ts +30 -0
  116. package/dist/types/src/api-model/models/dimensions.d.ts +50 -0
  117. package/dist/types/src/api-model/models/get-customer-invoice-response.d.ts +31 -0
  118. package/dist/types/src/api-model/models/get-customer-invoices-response.d.ts +31 -0
  119. package/dist/types/src/api-model/models/get-packing-slip-list-response.d.ts +31 -0
  120. package/dist/types/src/api-model/models/get-packing-slip-response.d.ts +31 -0
  121. package/dist/types/src/api-model/models/get-shipping-label-list-response.d.ts +31 -0
  122. package/dist/types/src/api-model/models/get-shipping-label-response.d.ts +31 -0
  123. package/dist/types/src/api-model/models/index.d.ts +37 -0
  124. package/dist/types/src/api-model/models/item-quantity.d.ts +30 -0
  125. package/dist/types/src/api-model/models/item.d.ts +43 -0
  126. package/dist/types/src/api-model/models/label-data.d.ts +48 -0
  127. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  128. package/dist/types/src/api-model/models/package.d.ts +62 -0
  129. package/dist/types/src/api-model/models/packed-item.d.ts +43 -0
  130. package/dist/types/src/api-model/models/packing-slip-list.d.ts +32 -0
  131. package/dist/types/src/api-model/models/packing-slip.d.ts +43 -0
  132. package/dist/types/src/api-model/models/pagination.d.ts +24 -0
  133. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  134. package/dist/types/src/api-model/models/shipment-confirmation.d.ts +58 -0
  135. package/dist/types/src/api-model/models/shipment-details.d.ts +56 -0
  136. package/dist/types/src/api-model/models/shipment-status-update.d.ts +44 -0
  137. package/dist/types/src/api-model/models/shipping-label-list.d.ts +32 -0
  138. package/dist/types/src/api-model/models/shipping-label-request.d.ts +44 -0
  139. package/dist/types/src/api-model/models/shipping-label.d.ts +58 -0
  140. package/dist/types/src/api-model/models/status-update-details-shipment-schedule.d.ts +36 -0
  141. package/dist/types/src/api-model/models/status-update-details.d.ts +56 -0
  142. package/dist/types/src/api-model/models/submit-shipment-confirmations-request.d.ts +25 -0
  143. package/dist/types/src/api-model/models/submit-shipment-confirmations-response.d.ts +31 -0
  144. package/dist/types/src/api-model/models/submit-shipment-status-updates-request.d.ts +25 -0
  145. package/dist/types/src/api-model/models/submit-shipment-status-updates-response.d.ts +31 -0
  146. package/dist/types/src/api-model/models/submit-shipping-labels-request.d.ts +25 -0
  147. package/dist/types/src/api-model/models/submit-shipping-labels-response.d.ts +31 -0
  148. package/dist/types/src/api-model/models/tax-registration-details.d.ts +51 -0
  149. package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
  150. package/dist/types/src/api-model/models/weight.d.ts +38 -0
  151. package/dist/types/src/client.d.ts +13 -0
  152. package/dist/types/src/error.d.ts +3 -0
  153. package/package.json +53 -0
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var ShipmentDetailsShipmentStatusEnum;
19
+ (function (ShipmentDetailsShipmentStatusEnum) {
20
+ ShipmentDetailsShipmentStatusEnum["Shipped"] = "SHIPPED";
21
+ ShipmentDetailsShipmentStatusEnum["FloorDenial"] = "FLOOR_DENIAL";
22
+ })(ShipmentDetailsShipmentStatusEnum || (ShipmentDetailsShipmentStatusEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var ShippingLabelLabelFormatEnum;
19
+ (function (ShippingLabelLabelFormatEnum) {
20
+ ShippingLabelLabelFormatEnum["Png"] = "PNG";
21
+ ShippingLabelLabelFormatEnum["Zpl"] = "ZPL";
22
+ })(ShippingLabelLabelFormatEnum || (ShippingLabelLabelFormatEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var TaxRegistrationDetailsTaxRegistrationTypeEnum;
19
+ (function (TaxRegistrationDetailsTaxRegistrationTypeEnum) {
20
+ TaxRegistrationDetailsTaxRegistrationTypeEnum["Vat"] = "VAT";
21
+ TaxRegistrationDetailsTaxRegistrationTypeEnum["Gst"] = "GST";
22
+ })(TaxRegistrationDetailsTaxRegistrationTypeEnum || (TaxRegistrationDetailsTaxRegistrationTypeEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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 {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Direct Fulfillment Shipping
5
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
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
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var WeightUnitOfMeasureEnum;
19
+ (function (WeightUnitOfMeasureEnum) {
20
+ WeightUnitOfMeasureEnum["Kg"] = "KG";
21
+ WeightUnitOfMeasureEnum["Lb"] = "LB";
22
+ })(WeightUnitOfMeasureEnum || (WeightUnitOfMeasureEnum = {}));
@@ -0,0 +1,79 @@
1
+ /* eslint-disable prefer-regex-literals */
2
+ import { endpoints, awsRegionByCode, createAxiosInstance } from '@sp-api-sdk/common';
3
+ import { Configuration, VendorShippingLabelsApi } from './api-model';
4
+ import { VendorDirectFulfillmentShippingApiError } from './error';
5
+ export const RATE_LIMITS = [
6
+ {
7
+ method: 'get',
8
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shippingLabels$'),
9
+ rate: 10,
10
+ burst: 10,
11
+ },
12
+ {
13
+ method: 'post',
14
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shippingLabels$'),
15
+ rate: 10,
16
+ burst: 10,
17
+ },
18
+ {
19
+ method: 'get',
20
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shippingLabels/[^/]*$'),
21
+ rate: 10,
22
+ burst: 10,
23
+ },
24
+ {
25
+ method: 'post',
26
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shipmentConfirmations$'),
27
+ rate: 10,
28
+ burst: 10,
29
+ },
30
+ {
31
+ method: 'post',
32
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates$'),
33
+ rate: 10,
34
+ burst: 10,
35
+ },
36
+ {
37
+ method: 'get',
38
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/customerInvoices$'),
39
+ rate: 10,
40
+ burst: 10,
41
+ },
42
+ {
43
+ method: 'get',
44
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/customerInvoices/[^/]*$'),
45
+ rate: 10,
46
+ burst: 10,
47
+ },
48
+ {
49
+ method: 'get',
50
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/packingSlips$'),
51
+ rate: 10,
52
+ burst: 10,
53
+ },
54
+ {
55
+ method: 'get',
56
+ urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/packingSlips/[^/]*$'),
57
+ rate: 10,
58
+ burst: 10,
59
+ },
60
+ ];
61
+ export class VendorDirectFulfillmentShippingApiClient extends VendorShippingLabelsApi {
62
+ constructor(parameters) {
63
+ const region = awsRegionByCode[parameters.region] ?? parameters.region;
64
+ const { rateLimiting, ...clientParameters } = parameters;
65
+ const axiosParameters = { ...clientParameters, region };
66
+ if (rateLimiting?.retry) {
67
+ axiosParameters.rateLimits = RATE_LIMITS;
68
+ axiosParameters.onRetry = rateLimiting.onRetry;
69
+ }
70
+ const axiosInstance = createAxiosInstance(axiosParameters);
71
+ const configuration = new Configuration();
72
+ const environment = parameters.sandbox ? 'sandbox' : 'production';
73
+ const endpoint = endpoints[environment][region];
74
+ if (!endpoint) {
75
+ throw new VendorDirectFulfillmentShippingApiError(`Unknown region : ${region}`);
76
+ }
77
+ super(configuration, endpoint, axiosInstance);
78
+ }
79
+ }
@@ -0,0 +1,6 @@
1
+ export class VendorDirectFulfillmentShippingApiError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = 'VendorDirectFulfillmentShippingApiError';
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/client';
2
+ export * from './src/error';
3
+ export * from './src/api-model/models';
@@ -0,0 +1,171 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Shipping
3
+ * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetCustomerInvoiceResponse } from '../models';
16
+ import { GetCustomerInvoicesResponse } from '../models';
17
+ /**
18
+ * CustomerInvoicesApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const CustomerInvoicesApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
22
+ /**
23
+ * Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
24
+ * @param {string} purchaseOrderNumber Purchase order number of the shipment for which to return the invoice.
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ getCustomerInvoice: (purchaseOrderNumber: string, options?: any) => Promise<RequestArgs>;
29
+ /**
30
+ * Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
31
+ * @param {string} createdAfter Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
32
+ * @param {string} createdBefore Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
33
+ * @param {string} [shipFromPartyId] The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
34
+ * @param {number} [limit] The limit to the number of records returned
35
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort ASC or DESC by order creation date.
36
+ * @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.
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getCustomerInvoices: (createdAfter: string, createdBefore: string, shipFromPartyId?: string | undefined, limit?: number | undefined, sortOrder?: "ASC" | "DESC" | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
41
+ };
42
+ /**
43
+ * CustomerInvoicesApi - functional programming interface
44
+ * @export
45
+ */
46
+ export declare const CustomerInvoicesApiFp: (configuration?: Configuration | undefined) => {
47
+ /**
48
+ * Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
49
+ * @param {string} purchaseOrderNumber Purchase order number of the shipment for which to return the invoice.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ getCustomerInvoice(purchaseOrderNumber: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetCustomerInvoiceResponse>>;
54
+ /**
55
+ * Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
56
+ * @param {string} createdAfter Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
57
+ * @param {string} createdBefore Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
58
+ * @param {string} [shipFromPartyId] The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
59
+ * @param {number} [limit] The limit to the number of records returned
60
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort ASC or DESC by order creation date.
61
+ * @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.
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ getCustomerInvoices(createdAfter: string, createdBefore: string, shipFromPartyId?: string | undefined, limit?: number | undefined, sortOrder?: "ASC" | "DESC" | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetCustomerInvoicesResponse>>;
66
+ };
67
+ /**
68
+ * CustomerInvoicesApi - factory interface
69
+ * @export
70
+ */
71
+ export declare const CustomerInvoicesApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
72
+ /**
73
+ * Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
74
+ * @param {string} purchaseOrderNumber Purchase order number of the shipment for which to return the invoice.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ getCustomerInvoice(purchaseOrderNumber: string, options?: any): AxiosPromise<GetCustomerInvoiceResponse>;
79
+ /**
80
+ * Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
81
+ * @param {string} createdAfter Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
82
+ * @param {string} createdBefore Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
83
+ * @param {string} [shipFromPartyId] The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
84
+ * @param {number} [limit] The limit to the number of records returned
85
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort ASC or DESC by order creation date.
86
+ * @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.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ getCustomerInvoices(createdAfter: string, createdBefore: string, shipFromPartyId?: string | undefined, limit?: number | undefined, sortOrder?: "ASC" | "DESC" | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<GetCustomerInvoicesResponse>;
91
+ };
92
+ /**
93
+ * Request parameters for getCustomerInvoice operation in CustomerInvoicesApi.
94
+ * @export
95
+ * @interface CustomerInvoicesApiGetCustomerInvoiceRequest
96
+ */
97
+ export interface CustomerInvoicesApiGetCustomerInvoiceRequest {
98
+ /**
99
+ * Purchase order number of the shipment for which to return the invoice.
100
+ * @type {string}
101
+ * @memberof CustomerInvoicesApiGetCustomerInvoice
102
+ */
103
+ readonly purchaseOrderNumber: string;
104
+ }
105
+ /**
106
+ * Request parameters for getCustomerInvoices operation in CustomerInvoicesApi.
107
+ * @export
108
+ * @interface CustomerInvoicesApiGetCustomerInvoicesRequest
109
+ */
110
+ export interface CustomerInvoicesApiGetCustomerInvoicesRequest {
111
+ /**
112
+ * Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
113
+ * @type {string}
114
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
115
+ */
116
+ readonly createdAfter: string;
117
+ /**
118
+ * Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
119
+ * @type {string}
120
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
121
+ */
122
+ readonly createdBefore: string;
123
+ /**
124
+ * The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
125
+ * @type {string}
126
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
127
+ */
128
+ readonly shipFromPartyId?: string;
129
+ /**
130
+ * The limit to the number of records returned
131
+ * @type {number}
132
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
133
+ */
134
+ readonly limit?: number;
135
+ /**
136
+ * Sort ASC or DESC by order creation date.
137
+ * @type {'ASC' | 'DESC'}
138
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
139
+ */
140
+ readonly sortOrder?: 'ASC' | 'DESC';
141
+ /**
142
+ * Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
143
+ * @type {string}
144
+ * @memberof CustomerInvoicesApiGetCustomerInvoices
145
+ */
146
+ readonly nextToken?: string;
147
+ }
148
+ /**
149
+ * CustomerInvoicesApi - object-oriented interface
150
+ * @export
151
+ * @class CustomerInvoicesApi
152
+ * @extends {BaseAPI}
153
+ */
154
+ export declare class CustomerInvoicesApi extends BaseAPI {
155
+ /**
156
+ * Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
157
+ * @param {CustomerInvoicesApiGetCustomerInvoiceRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ * @memberof CustomerInvoicesApi
161
+ */
162
+ getCustomerInvoice(requestParameters: CustomerInvoicesApiGetCustomerInvoiceRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoiceResponse>>;
163
+ /**
164
+ * Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
165
+ * @param {CustomerInvoicesApiGetCustomerInvoicesRequest} requestParameters Request parameters.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ * @memberof CustomerInvoicesApi
169
+ */
170
+ getCustomerInvoices(requestParameters: CustomerInvoicesApiGetCustomerInvoicesRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoicesResponse>>;
171
+ }