@sp-api-sdk/shipping-api-v2 1.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 (372) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/cjs/index.js +18 -0
  4. package/dist/cjs/src/api-model/api/shipping-api.js +1203 -0
  5. package/dist/cjs/src/api-model/api.js +30 -0
  6. package/dist/cjs/src/api-model/base.js +66 -0
  7. package/dist/cjs/src/api-model/common.js +145 -0
  8. package/dist/cjs/src/api-model/configuration.js +91 -0
  9. package/dist/cjs/src/api-model/index.js +32 -0
  10. package/dist/cjs/src/api-model/models/access-point-details.js +15 -0
  11. package/dist/cjs/src/api-model/models/access-point-type.js +31 -0
  12. package/dist/cjs/src/api-model/models/access-point.js +20 -0
  13. package/dist/cjs/src/api-model/models/accessibility-attributes.js +15 -0
  14. package/dist/cjs/src/api-model/models/account-status.js +27 -0
  15. package/dist/cjs/src/api-model/models/account-type.js +26 -0
  16. package/dist/cjs/src/api-model/models/active-account.js +15 -0
  17. package/dist/cjs/src/api-model/models/address.js +15 -0
  18. package/dist/cjs/src/api-model/models/amazon-order-details.js +15 -0
  19. package/dist/cjs/src/api-model/models/amazon-shipment-details.js +15 -0
  20. package/dist/cjs/src/api-model/models/available-value-added-service-group.js +15 -0
  21. package/dist/cjs/src/api-model/models/benefits.js +15 -0
  22. package/dist/cjs/src/api-model/models/cancel-shipment-response.js +15 -0
  23. package/dist/cjs/src/api-model/models/carrier-account-attribute.js +15 -0
  24. package/dist/cjs/src/api-model/models/carrier-account-input.js +15 -0
  25. package/dist/cjs/src/api-model/models/carrier.js +15 -0
  26. package/dist/cjs/src/api-model/models/channel-details.js +15 -0
  27. package/dist/cjs/src/api-model/models/channel-type.js +25 -0
  28. package/dist/cjs/src/api-model/models/charge-component.js +20 -0
  29. package/dist/cjs/src/api-model/models/client-reference-detail.js +20 -0
  30. package/dist/cjs/src/api-model/models/collect-on-delivery.js +15 -0
  31. package/dist/cjs/src/api-model/models/collection-forms-history-record.js +15 -0
  32. package/dist/cjs/src/api-model/models/collections-form-document.js +15 -0
  33. package/dist/cjs/src/api-model/models/currency.js +15 -0
  34. package/dist/cjs/src/api-model/models/dangerous-goods-details.js +36 -0
  35. package/dist/cjs/src/api-model/models/date-range.js +15 -0
  36. package/dist/cjs/src/api-model/models/dimensions.js +20 -0
  37. package/dist/cjs/src/api-model/models/direct-fulfillment-item-identifiers.js +15 -0
  38. package/dist/cjs/src/api-model/models/direct-purchase-request.js +15 -0
  39. package/dist/cjs/src/api-model/models/direct-purchase-response.js +15 -0
  40. package/dist/cjs/src/api-model/models/direct-purchase-result.js +15 -0
  41. package/dist/cjs/src/api-model/models/document-format.js +26 -0
  42. package/dist/cjs/src/api-model/models/document-size.js +20 -0
  43. package/dist/cjs/src/api-model/models/document-type.js +27 -0
  44. package/dist/cjs/src/api-model/models/error-list.js +15 -0
  45. package/dist/cjs/src/api-model/models/event-code.js +34 -0
  46. package/dist/cjs/src/api-model/models/event.js +15 -0
  47. package/dist/cjs/src/api-model/models/exception-operating-hours.js +15 -0
  48. package/dist/cjs/src/api-model/models/excluded-benefit.js +15 -0
  49. package/dist/cjs/src/api-model/models/generate-collection-form-request.js +15 -0
  50. package/dist/cjs/src/api-model/models/generate-collection-form-response.js +15 -0
  51. package/dist/cjs/src/api-model/models/generation-status.js +25 -0
  52. package/dist/cjs/src/api-model/models/geocode.js +15 -0
  53. package/dist/cjs/src/api-model/models/get-access-points-response.js +15 -0
  54. package/dist/cjs/src/api-model/models/get-access-points-result.js +15 -0
  55. package/dist/cjs/src/api-model/models/get-additional-inputs-response.js +15 -0
  56. package/dist/cjs/src/api-model/models/get-carrier-account-form-inputs-response.js +15 -0
  57. package/dist/cjs/src/api-model/models/get-carrier-accounts-request.js +15 -0
  58. package/dist/cjs/src/api-model/models/get-carrier-accounts-response.js +15 -0
  59. package/dist/cjs/src/api-model/models/get-collection-form-history-request.js +15 -0
  60. package/dist/cjs/src/api-model/models/get-collection-form-history-response.js +15 -0
  61. package/dist/cjs/src/api-model/models/get-collection-form-response.js +15 -0
  62. package/dist/cjs/src/api-model/models/get-rates-request.js +15 -0
  63. package/dist/cjs/src/api-model/models/get-rates-response.js +15 -0
  64. package/dist/cjs/src/api-model/models/get-rates-result.js +15 -0
  65. package/dist/cjs/src/api-model/models/get-shipment-documents-response.js +15 -0
  66. package/dist/cjs/src/api-model/models/get-shipment-documents-result.js +15 -0
  67. package/dist/cjs/src/api-model/models/get-tracking-response.js +15 -0
  68. package/dist/cjs/src/api-model/models/get-tracking-result.js +15 -0
  69. package/dist/cjs/src/api-model/models/get-unmanifested-shipments-request.js +15 -0
  70. package/dist/cjs/src/api-model/models/get-unmanifested-shipments-response.js +15 -0
  71. package/dist/cjs/src/api-model/models/index.js +130 -0
  72. package/dist/cjs/src/api-model/models/ineligibility-reason-code.js +33 -0
  73. package/dist/cjs/src/api-model/models/ineligibility-reason.js +15 -0
  74. package/dist/cjs/src/api-model/models/ineligible-rate.js +15 -0
  75. package/dist/cjs/src/api-model/models/input-type.js +25 -0
  76. package/dist/cjs/src/api-model/models/invoice-details.js +15 -0
  77. package/dist/cjs/src/api-model/models/item.js +15 -0
  78. package/dist/cjs/src/api-model/models/link-carrier-account-request.js +15 -0
  79. package/dist/cjs/src/api-model/models/link-carrier-account-response.js +15 -0
  80. package/dist/cjs/src/api-model/models/linkable-account-type.js +15 -0
  81. package/dist/cjs/src/api-model/models/linkable-carrier.js +15 -0
  82. package/dist/cjs/src/api-model/models/liquid-volume.js +25 -0
  83. package/dist/cjs/src/api-model/models/location.js +15 -0
  84. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  85. package/dist/cjs/src/api-model/models/one-click-shipment-request.js +15 -0
  86. package/dist/cjs/src/api-model/models/one-click-shipment-response.js +15 -0
  87. package/dist/cjs/src/api-model/models/one-click-shipment-result.js +15 -0
  88. package/dist/cjs/src/api-model/models/one-click-shipment-value-added-service.js +15 -0
  89. package/dist/cjs/src/api-model/models/operating-hours.js +15 -0
  90. package/dist/cjs/src/api-model/models/package-document-detail.js +15 -0
  91. package/dist/cjs/src/api-model/models/package-document.js +15 -0
  92. package/dist/cjs/src/api-model/models/package.js +15 -0
  93. package/dist/cjs/src/api-model/models/payment-type.js +25 -0
  94. package/dist/cjs/src/api-model/models/print-option.js +15 -0
  95. package/dist/cjs/src/api-model/models/promise.js +15 -0
  96. package/dist/cjs/src/api-model/models/purchase-shipment-request.js +15 -0
  97. package/dist/cjs/src/api-model/models/purchase-shipment-response.js +15 -0
  98. package/dist/cjs/src/api-model/models/purchase-shipment-result.js +15 -0
  99. package/dist/cjs/src/api-model/models/rate-item-id.js +51 -0
  100. package/dist/cjs/src/api-model/models/rate-item-type.js +26 -0
  101. package/dist/cjs/src/api-model/models/rate-item.js +15 -0
  102. package/dist/cjs/src/api-model/models/rate.js +15 -0
  103. package/dist/cjs/src/api-model/models/requested-document-specification.js +15 -0
  104. package/dist/cjs/src/api-model/models/requested-value-added-service.js +15 -0
  105. package/dist/cjs/src/api-model/models/service-selection.js +15 -0
  106. package/dist/cjs/src/api-model/models/service.js +15 -0
  107. package/dist/cjs/src/api-model/models/shipment-type.js +25 -0
  108. package/dist/cjs/src/api-model/models/shipper-instruction.js +15 -0
  109. package/dist/cjs/src/api-model/models/status.js +32 -0
  110. package/dist/cjs/src/api-model/models/supported-document-detail.js +15 -0
  111. package/dist/cjs/src/api-model/models/supported-document-specification.js +15 -0
  112. package/dist/cjs/src/api-model/models/tax-detail.js +15 -0
  113. package/dist/cjs/src/api-model/models/tax-type.js +24 -0
  114. package/dist/cjs/src/api-model/models/time-of-day.js +15 -0
  115. package/dist/cjs/src/api-model/models/time-window.js +15 -0
  116. package/dist/cjs/src/api-model/models/tracking-summary.js +15 -0
  117. package/dist/cjs/src/api-model/models/unlink-carrier-account-request.js +15 -0
  118. package/dist/cjs/src/api-model/models/unlink-carrier-account-response.js +15 -0
  119. package/dist/cjs/src/api-model/models/unmanifested-carrier-information.js +15 -0
  120. package/dist/cjs/src/api-model/models/unmanifested-shipment-location.js +15 -0
  121. package/dist/cjs/src/api-model/models/validation-metadata.js +15 -0
  122. package/dist/cjs/src/api-model/models/value-added-service-details.js +15 -0
  123. package/dist/cjs/src/api-model/models/value-added-service.js +15 -0
  124. package/dist/cjs/src/api-model/models/weight.js +22 -0
  125. package/dist/cjs/src/client.js +133 -0
  126. package/dist/es/index.js +2 -0
  127. package/dist/es/src/api-model/api/shipping-api.js +1193 -0
  128. package/dist/es/src/api-model/api.js +14 -0
  129. package/dist/es/src/api-model/base.js +58 -0
  130. package/dist/es/src/api-model/common.js +133 -0
  131. package/dist/es/src/api-model/configuration.js +87 -0
  132. package/dist/es/src/api-model/index.js +16 -0
  133. package/dist/es/src/api-model/models/access-point-details.js +14 -0
  134. package/dist/es/src/api-model/models/access-point-type.js +28 -0
  135. package/dist/es/src/api-model/models/access-point.js +17 -0
  136. package/dist/es/src/api-model/models/accessibility-attributes.js +14 -0
  137. package/dist/es/src/api-model/models/account-status.js +24 -0
  138. package/dist/es/src/api-model/models/account-type.js +23 -0
  139. package/dist/es/src/api-model/models/active-account.js +14 -0
  140. package/dist/es/src/api-model/models/address.js +14 -0
  141. package/dist/es/src/api-model/models/amazon-order-details.js +14 -0
  142. package/dist/es/src/api-model/models/amazon-shipment-details.js +14 -0
  143. package/dist/es/src/api-model/models/available-value-added-service-group.js +14 -0
  144. package/dist/es/src/api-model/models/benefits.js +14 -0
  145. package/dist/es/src/api-model/models/cancel-shipment-response.js +14 -0
  146. package/dist/es/src/api-model/models/carrier-account-attribute.js +14 -0
  147. package/dist/es/src/api-model/models/carrier-account-input.js +14 -0
  148. package/dist/es/src/api-model/models/carrier.js +14 -0
  149. package/dist/es/src/api-model/models/channel-details.js +14 -0
  150. package/dist/es/src/api-model/models/channel-type.js +22 -0
  151. package/dist/es/src/api-model/models/charge-component.js +17 -0
  152. package/dist/es/src/api-model/models/client-reference-detail.js +17 -0
  153. package/dist/es/src/api-model/models/collect-on-delivery.js +14 -0
  154. package/dist/es/src/api-model/models/collection-forms-history-record.js +14 -0
  155. package/dist/es/src/api-model/models/collections-form-document.js +14 -0
  156. package/dist/es/src/api-model/models/currency.js +14 -0
  157. package/dist/es/src/api-model/models/dangerous-goods-details.js +33 -0
  158. package/dist/es/src/api-model/models/date-range.js +14 -0
  159. package/dist/es/src/api-model/models/dimensions.js +17 -0
  160. package/dist/es/src/api-model/models/direct-fulfillment-item-identifiers.js +14 -0
  161. package/dist/es/src/api-model/models/direct-purchase-request.js +14 -0
  162. package/dist/es/src/api-model/models/direct-purchase-response.js +14 -0
  163. package/dist/es/src/api-model/models/direct-purchase-result.js +14 -0
  164. package/dist/es/src/api-model/models/document-format.js +23 -0
  165. package/dist/es/src/api-model/models/document-size.js +17 -0
  166. package/dist/es/src/api-model/models/document-type.js +24 -0
  167. package/dist/es/src/api-model/models/error-list.js +14 -0
  168. package/dist/es/src/api-model/models/event-code.js +31 -0
  169. package/dist/es/src/api-model/models/event.js +14 -0
  170. package/dist/es/src/api-model/models/exception-operating-hours.js +14 -0
  171. package/dist/es/src/api-model/models/excluded-benefit.js +14 -0
  172. package/dist/es/src/api-model/models/generate-collection-form-request.js +14 -0
  173. package/dist/es/src/api-model/models/generate-collection-form-response.js +14 -0
  174. package/dist/es/src/api-model/models/generation-status.js +22 -0
  175. package/dist/es/src/api-model/models/geocode.js +14 -0
  176. package/dist/es/src/api-model/models/get-access-points-response.js +14 -0
  177. package/dist/es/src/api-model/models/get-access-points-result.js +14 -0
  178. package/dist/es/src/api-model/models/get-additional-inputs-response.js +14 -0
  179. package/dist/es/src/api-model/models/get-carrier-account-form-inputs-response.js +14 -0
  180. package/dist/es/src/api-model/models/get-carrier-accounts-request.js +14 -0
  181. package/dist/es/src/api-model/models/get-carrier-accounts-response.js +14 -0
  182. package/dist/es/src/api-model/models/get-collection-form-history-request.js +14 -0
  183. package/dist/es/src/api-model/models/get-collection-form-history-response.js +14 -0
  184. package/dist/es/src/api-model/models/get-collection-form-response.js +14 -0
  185. package/dist/es/src/api-model/models/get-rates-request.js +14 -0
  186. package/dist/es/src/api-model/models/get-rates-response.js +14 -0
  187. package/dist/es/src/api-model/models/get-rates-result.js +14 -0
  188. package/dist/es/src/api-model/models/get-shipment-documents-response.js +14 -0
  189. package/dist/es/src/api-model/models/get-shipment-documents-result.js +14 -0
  190. package/dist/es/src/api-model/models/get-tracking-response.js +14 -0
  191. package/dist/es/src/api-model/models/get-tracking-result.js +14 -0
  192. package/dist/es/src/api-model/models/get-unmanifested-shipments-request.js +14 -0
  193. package/dist/es/src/api-model/models/get-unmanifested-shipments-response.js +14 -0
  194. package/dist/es/src/api-model/models/index.js +114 -0
  195. package/dist/es/src/api-model/models/ineligibility-reason-code.js +30 -0
  196. package/dist/es/src/api-model/models/ineligibility-reason.js +14 -0
  197. package/dist/es/src/api-model/models/ineligible-rate.js +14 -0
  198. package/dist/es/src/api-model/models/input-type.js +22 -0
  199. package/dist/es/src/api-model/models/invoice-details.js +14 -0
  200. package/dist/es/src/api-model/models/item.js +14 -0
  201. package/dist/es/src/api-model/models/link-carrier-account-request.js +14 -0
  202. package/dist/es/src/api-model/models/link-carrier-account-response.js +14 -0
  203. package/dist/es/src/api-model/models/linkable-account-type.js +14 -0
  204. package/dist/es/src/api-model/models/linkable-carrier.js +14 -0
  205. package/dist/es/src/api-model/models/liquid-volume.js +22 -0
  206. package/dist/es/src/api-model/models/location.js +14 -0
  207. package/dist/es/src/api-model/models/model-error.js +14 -0
  208. package/dist/es/src/api-model/models/one-click-shipment-request.js +14 -0
  209. package/dist/es/src/api-model/models/one-click-shipment-response.js +14 -0
  210. package/dist/es/src/api-model/models/one-click-shipment-result.js +14 -0
  211. package/dist/es/src/api-model/models/one-click-shipment-value-added-service.js +14 -0
  212. package/dist/es/src/api-model/models/operating-hours.js +14 -0
  213. package/dist/es/src/api-model/models/package-document-detail.js +14 -0
  214. package/dist/es/src/api-model/models/package-document.js +14 -0
  215. package/dist/es/src/api-model/models/package.js +14 -0
  216. package/dist/es/src/api-model/models/payment-type.js +22 -0
  217. package/dist/es/src/api-model/models/print-option.js +14 -0
  218. package/dist/es/src/api-model/models/promise.js +14 -0
  219. package/dist/es/src/api-model/models/purchase-shipment-request.js +14 -0
  220. package/dist/es/src/api-model/models/purchase-shipment-response.js +14 -0
  221. package/dist/es/src/api-model/models/purchase-shipment-result.js +14 -0
  222. package/dist/es/src/api-model/models/rate-item-id.js +48 -0
  223. package/dist/es/src/api-model/models/rate-item-type.js +23 -0
  224. package/dist/es/src/api-model/models/rate-item.js +14 -0
  225. package/dist/es/src/api-model/models/rate.js +14 -0
  226. package/dist/es/src/api-model/models/requested-document-specification.js +14 -0
  227. package/dist/es/src/api-model/models/requested-value-added-service.js +14 -0
  228. package/dist/es/src/api-model/models/service-selection.js +14 -0
  229. package/dist/es/src/api-model/models/service.js +14 -0
  230. package/dist/es/src/api-model/models/shipment-type.js +22 -0
  231. package/dist/es/src/api-model/models/shipper-instruction.js +14 -0
  232. package/dist/es/src/api-model/models/status.js +29 -0
  233. package/dist/es/src/api-model/models/supported-document-detail.js +14 -0
  234. package/dist/es/src/api-model/models/supported-document-specification.js +14 -0
  235. package/dist/es/src/api-model/models/tax-detail.js +14 -0
  236. package/dist/es/src/api-model/models/tax-type.js +21 -0
  237. package/dist/es/src/api-model/models/time-of-day.js +14 -0
  238. package/dist/es/src/api-model/models/time-window.js +14 -0
  239. package/dist/es/src/api-model/models/tracking-summary.js +14 -0
  240. package/dist/es/src/api-model/models/unlink-carrier-account-request.js +14 -0
  241. package/dist/es/src/api-model/models/unlink-carrier-account-response.js +14 -0
  242. package/dist/es/src/api-model/models/unmanifested-carrier-information.js +14 -0
  243. package/dist/es/src/api-model/models/unmanifested-shipment-location.js +14 -0
  244. package/dist/es/src/api-model/models/validation-metadata.js +14 -0
  245. package/dist/es/src/api-model/models/value-added-service-details.js +14 -0
  246. package/dist/es/src/api-model/models/value-added-service.js +14 -0
  247. package/dist/es/src/api-model/models/weight.js +19 -0
  248. package/dist/es/src/client.js +129 -0
  249. package/dist/types/index.d.ts +2 -0
  250. package/dist/types/src/api-model/api/shipping-api.d.ts +1014 -0
  251. package/dist/types/src/api-model/api.d.ts +12 -0
  252. package/dist/types/src/api-model/base.d.ts +54 -0
  253. package/dist/types/src/api-model/common.d.ts +66 -0
  254. package/dist/types/src/api-model/configuration.d.ts +83 -0
  255. package/dist/types/src/api-model/index.d.ts +14 -0
  256. package/dist/types/src/api-model/models/access-point-details.d.ts +24 -0
  257. package/dist/types/src/api-model/models/access-point-type.d.ts +27 -0
  258. package/dist/types/src/api-model/models/access-point.d.ts +90 -0
  259. package/dist/types/src/api-model/models/accessibility-attributes.d.ts +30 -0
  260. package/dist/types/src/api-model/models/account-status.d.ts +23 -0
  261. package/dist/types/src/api-model/models/account-type.d.ts +22 -0
  262. package/dist/types/src/api-model/models/active-account.d.ts +30 -0
  263. package/dist/types/src/api-model/models/address.d.ts +91 -0
  264. package/dist/types/src/api-model/models/amazon-order-details.d.ts +24 -0
  265. package/dist/types/src/api-model/models/amazon-shipment-details.d.ts +24 -0
  266. package/dist/types/src/api-model/models/available-value-added-service-group.d.ts +43 -0
  267. package/dist/types/src/api-model/models/benefits.d.ts +31 -0
  268. package/dist/types/src/api-model/models/cancel-shipment-response.d.ts +26 -0
  269. package/dist/types/src/api-model/models/carrier-account-attribute.d.ts +36 -0
  270. package/dist/types/src/api-model/models/carrier-account-input.d.ts +68 -0
  271. package/dist/types/src/api-model/models/carrier.d.ts +30 -0
  272. package/dist/types/src/api-model/models/channel-details.d.ts +39 -0
  273. package/dist/types/src/api-model/models/channel-type.d.ts +21 -0
  274. package/dist/types/src/api-model/models/charge-component.d.ts +36 -0
  275. package/dist/types/src/api-model/models/client-reference-detail.d.ts +35 -0
  276. package/dist/types/src/api-model/models/collect-on-delivery.d.ts +25 -0
  277. package/dist/types/src/api-model/models/collection-forms-history-record.d.ts +50 -0
  278. package/dist/types/src/api-model/models/collections-form-document.d.ts +30 -0
  279. package/dist/types/src/api-model/models/currency.d.ts +30 -0
  280. package/dist/types/src/api-model/models/dangerous-goods-details.d.ts +64 -0
  281. package/dist/types/src/api-model/models/date-range.d.ts +30 -0
  282. package/dist/types/src/api-model/models/dimensions.d.ts +47 -0
  283. package/dist/types/src/api-model/models/direct-fulfillment-item-identifiers.d.ts +30 -0
  284. package/dist/types/src/api-model/models/direct-purchase-request.d.ts +58 -0
  285. package/dist/types/src/api-model/models/direct-purchase-response.d.ts +25 -0
  286. package/dist/types/src/api-model/models/direct-purchase-result.d.ts +31 -0
  287. package/dist/types/src/api-model/models/document-format.d.ts +22 -0
  288. package/dist/types/src/api-model/models/document-size.d.ts +41 -0
  289. package/dist/types/src/api-model/models/document-type.d.ts +23 -0
  290. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  291. package/dist/types/src/api-model/models/event-code.d.ts +30 -0
  292. package/dist/types/src/api-model/models/event.d.ts +38 -0
  293. package/dist/types/src/api-model/models/exception-operating-hours.d.ts +32 -0
  294. package/dist/types/src/api-model/models/excluded-benefit.d.ts +30 -0
  295. package/dist/types/src/api-model/models/generate-collection-form-request.d.ts +38 -0
  296. package/dist/types/src/api-model/models/generate-collection-form-response.d.ts +25 -0
  297. package/dist/types/src/api-model/models/generation-status.d.ts +21 -0
  298. package/dist/types/src/api-model/models/geocode.d.ts +30 -0
  299. package/dist/types/src/api-model/models/get-access-points-response.d.ts +25 -0
  300. package/dist/types/src/api-model/models/get-access-points-result.d.ts +27 -0
  301. package/dist/types/src/api-model/models/get-additional-inputs-response.d.ts +26 -0
  302. package/dist/types/src/api-model/models/get-carrier-account-form-inputs-response.d.ts +25 -0
  303. package/dist/types/src/api-model/models/get-carrier-accounts-request.d.ts +25 -0
  304. package/dist/types/src/api-model/models/get-carrier-accounts-response.d.ts +25 -0
  305. package/dist/types/src/api-model/models/get-collection-form-history-request.d.ts +51 -0
  306. package/dist/types/src/api-model/models/get-collection-form-history-response.d.ts +31 -0
  307. package/dist/types/src/api-model/models/get-collection-form-response.d.ts +25 -0
  308. package/dist/types/src/api-model/models/get-rates-request.d.ts +99 -0
  309. package/dist/types/src/api-model/models/get-rates-response.d.ts +25 -0
  310. package/dist/types/src/api-model/models/get-rates-result.d.ts +38 -0
  311. package/dist/types/src/api-model/models/get-shipment-documents-response.d.ts +25 -0
  312. package/dist/types/src/api-model/models/get-shipment-documents-result.d.ts +31 -0
  313. package/dist/types/src/api-model/models/get-tracking-response.d.ts +25 -0
  314. package/dist/types/src/api-model/models/get-tracking-result.d.ts +50 -0
  315. package/dist/types/src/api-model/models/get-unmanifested-shipments-request.d.ts +25 -0
  316. package/dist/types/src/api-model/models/get-unmanifested-shipments-response.d.ts +25 -0
  317. package/dist/types/src/api-model/models/index.d.ts +114 -0
  318. package/dist/types/src/api-model/models/ineligibility-reason-code.d.ts +29 -0
  319. package/dist/types/src/api-model/models/ineligibility-reason.d.ts +31 -0
  320. package/dist/types/src/api-model/models/ineligible-rate.d.ts +49 -0
  321. package/dist/types/src/api-model/models/input-type.d.ts +21 -0
  322. package/dist/types/src/api-model/models/invoice-details.d.ts +30 -0
  323. package/dist/types/src/api-model/models/item.d.ts +96 -0
  324. package/dist/types/src/api-model/models/link-carrier-account-request.d.ts +44 -0
  325. package/dist/types/src/api-model/models/link-carrier-account-response.d.ts +25 -0
  326. package/dist/types/src/api-model/models/linkable-account-type.d.ts +32 -0
  327. package/dist/types/src/api-model/models/linkable-carrier.d.ts +31 -0
  328. package/dist/types/src/api-model/models/liquid-volume.d.ts +40 -0
  329. package/dist/types/src/api-model/models/location.d.ts +42 -0
  330. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  331. package/dist/types/src/api-model/models/one-click-shipment-request.d.ts +99 -0
  332. package/dist/types/src/api-model/models/one-click-shipment-response.d.ts +25 -0
  333. package/dist/types/src/api-model/models/one-click-shipment-result.d.ts +59 -0
  334. package/dist/types/src/api-model/models/one-click-shipment-value-added-service.d.ts +31 -0
  335. package/dist/types/src/api-model/models/operating-hours.d.ts +37 -0
  336. package/dist/types/src/api-model/models/package-document-detail.d.ts +37 -0
  337. package/dist/types/src/api-model/models/package-document.d.ts +38 -0
  338. package/dist/types/src/api-model/models/package.d.ts +71 -0
  339. package/dist/types/src/api-model/models/payment-type.d.ts +21 -0
  340. package/dist/types/src/api-model/models/print-option.d.ts +43 -0
  341. package/dist/types/src/api-model/models/promise.d.ts +31 -0
  342. package/dist/types/src/api-model/models/purchase-shipment-request.d.ts +52 -0
  343. package/dist/types/src/api-model/models/purchase-shipment-response.d.ts +25 -0
  344. package/dist/types/src/api-model/models/purchase-shipment-result.d.ts +38 -0
  345. package/dist/types/src/api-model/models/rate-item-id.d.ts +47 -0
  346. package/dist/types/src/api-model/models/rate-item-type.d.ts +22 -0
  347. package/dist/types/src/api-model/models/rate-item.d.ts +45 -0
  348. package/dist/types/src/api-model/models/rate.d.ts +110 -0
  349. package/dist/types/src/api-model/models/requested-document-specification.d.ts +57 -0
  350. package/dist/types/src/api-model/models/requested-value-added-service.d.ts +24 -0
  351. package/dist/types/src/api-model/models/service-selection.d.ts +24 -0
  352. package/dist/types/src/api-model/models/service.d.ts +30 -0
  353. package/dist/types/src/api-model/models/shipment-type.d.ts +21 -0
  354. package/dist/types/src/api-model/models/shipper-instruction.d.ts +24 -0
  355. package/dist/types/src/api-model/models/status.d.ts +28 -0
  356. package/dist/types/src/api-model/models/supported-document-detail.d.ts +31 -0
  357. package/dist/types/src/api-model/models/supported-document-specification.d.ts +39 -0
  358. package/dist/types/src/api-model/models/tax-detail.d.ts +31 -0
  359. package/dist/types/src/api-model/models/tax-type.d.ts +20 -0
  360. package/dist/types/src/api-model/models/time-of-day.d.ts +36 -0
  361. package/dist/types/src/api-model/models/time-window.d.ts +30 -0
  362. package/dist/types/src/api-model/models/tracking-summary.d.ts +25 -0
  363. package/dist/types/src/api-model/models/unlink-carrier-account-request.d.ts +25 -0
  364. package/dist/types/src/api-model/models/unlink-carrier-account-response.d.ts +24 -0
  365. package/dist/types/src/api-model/models/unmanifested-carrier-information.d.ts +37 -0
  366. package/dist/types/src/api-model/models/unmanifested-shipment-location.d.ts +31 -0
  367. package/dist/types/src/api-model/models/validation-metadata.d.ts +36 -0
  368. package/dist/types/src/api-model/models/value-added-service-details.d.ts +25 -0
  369. package/dist/types/src/api-model/models/value-added-service.d.ts +37 -0
  370. package/dist/types/src/api-model/models/weight.d.ts +37 -0
  371. package/dist/types/src/client.d.ts +6 -0
  372. package/package.json +44 -0
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { IneligibilityReason } from './ineligibility-reason';
13
+ /**
14
+ * Detailed information for an ineligible shipping service offering.
15
+ * @export
16
+ * @interface IneligibleRate
17
+ */
18
+ export interface IneligibleRate {
19
+ /**
20
+ * An identifier for the shipping service.
21
+ * @type {string}
22
+ * @memberof IneligibleRate
23
+ */
24
+ 'serviceId': string;
25
+ /**
26
+ * The name of the shipping service.
27
+ * @type {string}
28
+ * @memberof IneligibleRate
29
+ */
30
+ 'serviceName': string;
31
+ /**
32
+ * The carrier name for the offering.
33
+ * @type {string}
34
+ * @memberof IneligibleRate
35
+ */
36
+ 'carrierName': string;
37
+ /**
38
+ * The carrier identifier for the offering, provided by the carrier.
39
+ * @type {string}
40
+ * @memberof IneligibleRate
41
+ */
42
+ 'carrierId': string;
43
+ /**
44
+ * A list of reasons why a shipping service offering is ineligible.
45
+ * @type {Array<IneligibilityReason>}
46
+ * @memberof IneligibleRate
47
+ */
48
+ 'ineligibilityReasons': Array<IneligibilityReason>;
49
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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
+ * Type of Input.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const InputType: {
18
+ readonly Textbox: "TEXTBOX";
19
+ readonly Password: "PASSWORD";
20
+ };
21
+ export type InputType = typeof InputType[keyof typeof InputType];
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 invoice details for charges associated with the goods in the package. Only applies to certain regions.
14
+ * @export
15
+ * @interface InvoiceDetails
16
+ */
17
+ export interface InvoiceDetails {
18
+ /**
19
+ * The invoice number of the item.
20
+ * @type {string}
21
+ * @memberof InvoiceDetails
22
+ */
23
+ 'invoiceNumber'?: string;
24
+ /**
25
+ * The invoice date of the item in ISO 8061 format.
26
+ * @type {string}
27
+ * @memberof InvoiceDetails
28
+ */
29
+ 'invoiceDate'?: string;
30
+ }
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { Currency } from './currency';
13
+ import { DangerousGoodsDetails } from './dangerous-goods-details';
14
+ import { DirectFulfillmentItemIdentifiers } from './direct-fulfillment-item-identifiers';
15
+ import { InvoiceDetails } from './invoice-details';
16
+ import { LiquidVolume } from './liquid-volume';
17
+ import { Weight } from './weight';
18
+ /**
19
+ * An item in a package.
20
+ * @export
21
+ * @interface Item
22
+ */
23
+ export interface Item {
24
+ /**
25
+ *
26
+ * @type {Currency}
27
+ * @memberof Item
28
+ */
29
+ 'itemValue'?: Currency;
30
+ /**
31
+ * The product description of the item.
32
+ * @type {string}
33
+ * @memberof Item
34
+ */
35
+ 'description'?: string;
36
+ /**
37
+ * A unique identifier for an item provided by the client.
38
+ * @type {string}
39
+ * @memberof Item
40
+ */
41
+ 'itemIdentifier'?: string;
42
+ /**
43
+ * The number of units. This value is required.
44
+ * @type {number}
45
+ * @memberof Item
46
+ */
47
+ 'quantity': number;
48
+ /**
49
+ *
50
+ * @type {Weight}
51
+ * @memberof Item
52
+ */
53
+ 'weight'?: Weight;
54
+ /**
55
+ *
56
+ * @type {LiquidVolume}
57
+ * @memberof Item
58
+ */
59
+ 'liquidVolume'?: LiquidVolume;
60
+ /**
61
+ * When true, the item qualifies as hazardous materials (hazmat). Defaults to false.
62
+ * @type {boolean}
63
+ * @memberof Item
64
+ */
65
+ 'isHazmat'?: boolean;
66
+ /**
67
+ *
68
+ * @type {DangerousGoodsDetails}
69
+ * @memberof Item
70
+ */
71
+ 'dangerousGoodsDetails'?: DangerousGoodsDetails;
72
+ /**
73
+ * The product type of the item.
74
+ * @type {string}
75
+ * @memberof Item
76
+ */
77
+ 'productType'?: string;
78
+ /**
79
+ *
80
+ * @type {InvoiceDetails}
81
+ * @memberof Item
82
+ */
83
+ 'invoiceDetails'?: InvoiceDetails;
84
+ /**
85
+ * A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon.
86
+ * @type {Array<string>}
87
+ * @memberof Item
88
+ */
89
+ 'serialNumbers'?: Array<string>;
90
+ /**
91
+ *
92
+ * @type {DirectFulfillmentItemIdentifiers}
93
+ * @memberof Item
94
+ */
95
+ 'directFulfillmentItemIdentifiers'?: DirectFulfillmentItemIdentifiers;
96
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { CarrierAccountAttribute } from './carrier-account-attribute';
13
+ import { ClientReferenceDetail } from './client-reference-detail';
14
+ /**
15
+ * The request schema for verify and add the merchant\'s account with a certain carrier.
16
+ * @export
17
+ * @interface LinkCarrierAccountRequest
18
+ */
19
+ export interface LinkCarrierAccountRequest {
20
+ /**
21
+ * Object to pass additional information about the MCI Integrator shipperType: List of ClientReferenceDetail
22
+ * @type {Array<ClientReferenceDetail>}
23
+ * @memberof LinkCarrierAccountRequest
24
+ */
25
+ 'clientReferenceDetails'?: Array<ClientReferenceDetail>;
26
+ /**
27
+ * CarrierAccountType associated with account.
28
+ * @type {string}
29
+ * @memberof LinkCarrierAccountRequest
30
+ */
31
+ 'carrierAccountType': string;
32
+ /**
33
+ * A list of all attributes required by the carrier in order to successfully link the merchant\'s account
34
+ * @type {Array<CarrierAccountAttribute>}
35
+ * @memberof LinkCarrierAccountRequest
36
+ */
37
+ 'carrierAccountAttributes': Array<CarrierAccountAttribute>;
38
+ /**
39
+ * A list of all attributes required by the carrier in order to successfully link the merchant\'s account
40
+ * @type {Array<CarrierAccountAttribute>}
41
+ * @memberof LinkCarrierAccountRequest
42
+ */
43
+ 'encryptedCarrierAccountAttributes'?: Array<CarrierAccountAttribute>;
44
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { AccountStatus } from './account-status';
13
+ /**
14
+ * The Response for the LinkCarrierAccount operation.
15
+ * @export
16
+ * @interface LinkCarrierAccountResponse
17
+ */
18
+ export interface LinkCarrierAccountResponse {
19
+ /**
20
+ *
21
+ * @type {AccountStatus}
22
+ * @memberof LinkCarrierAccountResponse
23
+ */
24
+ 'registrationStatus'?: AccountStatus;
25
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { AccountType } from './account-type';
13
+ import { CarrierAccountInput } from './carrier-account-input';
14
+ /**
15
+ * Info About Linkable Account Type
16
+ * @export
17
+ * @interface LinkableAccountType
18
+ */
19
+ export interface LinkableAccountType {
20
+ /**
21
+ *
22
+ * @type {AccountType}
23
+ * @memberof LinkableAccountType
24
+ */
25
+ 'accountType'?: AccountType;
26
+ /**
27
+ * A list of CarrierAccountInput
28
+ * @type {Array<CarrierAccountInput>}
29
+ * @memberof LinkableAccountType
30
+ */
31
+ 'carrierAccountInputs'?: Array<CarrierAccountInput>;
32
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { LinkableAccountType } from './linkable-account-type';
13
+ /**
14
+ * Info About Linkable Carrier
15
+ * @export
16
+ * @interface LinkableCarrier
17
+ */
18
+ export interface LinkableCarrier {
19
+ /**
20
+ * The carrier identifier for the offering, provided by the carrier.
21
+ * @type {string}
22
+ * @memberof LinkableCarrier
23
+ */
24
+ 'carrierId'?: string;
25
+ /**
26
+ * A list of LinkableAccountType
27
+ * @type {Array<LinkableAccountType>}
28
+ * @memberof LinkableCarrier
29
+ */
30
+ 'linkableAccountTypes'?: Array<LinkableAccountType>;
31
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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
+ * Liquid Volume.
14
+ * @export
15
+ * @interface LiquidVolume
16
+ */
17
+ export interface LiquidVolume {
18
+ /**
19
+ * The unit of measurement.
20
+ * @type {string}
21
+ * @memberof LiquidVolume
22
+ */
23
+ 'unit': LiquidVolumeUnitEnum;
24
+ /**
25
+ * The measurement value.
26
+ * @type {number}
27
+ * @memberof LiquidVolume
28
+ */
29
+ 'value': number;
30
+ }
31
+ export declare const LiquidVolumeUnitEnum: {
32
+ readonly Ml: "ML";
33
+ readonly L: "L";
34
+ readonly FlOz: "FL_OZ";
35
+ readonly Gal: "GAL";
36
+ readonly Pt: "PT";
37
+ readonly Qt: "QT";
38
+ readonly C: "C";
39
+ };
40
+ export type LiquidVolumeUnitEnum = typeof LiquidVolumeUnitEnum[keyof typeof LiquidVolumeUnitEnum];
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 location where the person, business or institution is located.
14
+ * @export
15
+ * @interface Location
16
+ */
17
+ export interface Location {
18
+ /**
19
+ * The state, county or region where the person, business or institution is located.
20
+ * @type {string}
21
+ * @memberof Location
22
+ */
23
+ 'stateOrRegion'?: string;
24
+ /**
25
+ * The city or town where the person, business or institution is located.
26
+ * @type {string}
27
+ * @memberof Location
28
+ */
29
+ 'city'?: string;
30
+ /**
31
+ * The two digit country code. Follows ISO 3166-1 alpha-2 format.
32
+ * @type {string}
33
+ * @memberof Location
34
+ */
35
+ 'countryCode'?: string;
36
+ /**
37
+ * The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation.
38
+ * @type {string}
39
+ * @memberof Location
40
+ */
41
+ 'postalCode'?: string;
42
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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
+ * Error response returned when the request is unsuccessful.
14
+ * @export
15
+ * @interface ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ * An error code that identifies the type of error that occurred.
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * A message that describes the error condition.
26
+ * @type {string}
27
+ * @memberof ModelError
28
+ */
29
+ 'message': string;
30
+ /**
31
+ * Additional details that can help the caller understand or fix the issue.
32
+ * @type {string}
33
+ * @memberof ModelError
34
+ */
35
+ 'details'?: string;
36
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { AccessPointDetails } from './access-point-details';
13
+ import { Address } from './address';
14
+ import { ChannelDetails } from './channel-details';
15
+ import { OneClickShipmentValueAddedService } from './one-click-shipment-value-added-service';
16
+ import { Package } from './package';
17
+ import { RequestedDocumentSpecification } from './requested-document-specification';
18
+ import { ServiceSelection } from './service-selection';
19
+ import { ShipperInstruction } from './shipper-instruction';
20
+ import { TaxDetail } from './tax-detail';
21
+ /**
22
+ * The request schema for the OneClickShipment operation. When the channelType is not Amazon, shipTo is required and when channelType is Amazon shipTo is ignored.
23
+ * @export
24
+ * @interface OneClickShipmentRequest
25
+ */
26
+ export interface OneClickShipmentRequest {
27
+ /**
28
+ *
29
+ * @type {Address}
30
+ * @memberof OneClickShipmentRequest
31
+ */
32
+ 'shipTo'?: Address;
33
+ /**
34
+ *
35
+ * @type {Address}
36
+ * @memberof OneClickShipmentRequest
37
+ */
38
+ 'shipFrom': Address;
39
+ /**
40
+ *
41
+ * @type {Address}
42
+ * @memberof OneClickShipmentRequest
43
+ */
44
+ 'returnTo'?: Address;
45
+ /**
46
+ * The ship date and time (the requested pickup). This defaults to the current date and time.
47
+ * @type {string}
48
+ * @memberof OneClickShipmentRequest
49
+ */
50
+ 'shipDate'?: string;
51
+ /**
52
+ * A list of packages to be shipped through a shipping service offering.
53
+ * @type {Array<Package>}
54
+ * @memberof OneClickShipmentRequest
55
+ */
56
+ 'packages': Array<Package>;
57
+ /**
58
+ * The value-added services to be added to a shipping service purchase.
59
+ * @type {Array<OneClickShipmentValueAddedService>}
60
+ * @memberof OneClickShipmentRequest
61
+ */
62
+ 'valueAddedServicesDetails'?: Array<OneClickShipmentValueAddedService>;
63
+ /**
64
+ * A list of tax detail information.
65
+ * @type {Array<TaxDetail>}
66
+ * @memberof OneClickShipmentRequest
67
+ */
68
+ 'taxDetails'?: Array<TaxDetail>;
69
+ /**
70
+ *
71
+ * @type {ChannelDetails}
72
+ * @memberof OneClickShipmentRequest
73
+ */
74
+ 'channelDetails': ChannelDetails;
75
+ /**
76
+ *
77
+ * @type {RequestedDocumentSpecification}
78
+ * @memberof OneClickShipmentRequest
79
+ */
80
+ 'labelSpecifications': RequestedDocumentSpecification;
81
+ /**
82
+ *
83
+ * @type {ServiceSelection}
84
+ * @memberof OneClickShipmentRequest
85
+ */
86
+ 'serviceSelection': ServiceSelection;
87
+ /**
88
+ *
89
+ * @type {ShipperInstruction}
90
+ * @memberof OneClickShipmentRequest
91
+ */
92
+ 'shipperInstruction'?: ShipperInstruction;
93
+ /**
94
+ *
95
+ * @type {AccessPointDetails}
96
+ * @memberof OneClickShipmentRequest
97
+ */
98
+ 'destinationAccessPointDetails'?: AccessPointDetails;
99
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { OneClickShipmentResult } from './one-click-shipment-result';
13
+ /**
14
+ * The response schema for the OneClickShipment operation.
15
+ * @export
16
+ * @interface OneClickShipmentResponse
17
+ */
18
+ export interface OneClickShipmentResponse {
19
+ /**
20
+ *
21
+ * @type {OneClickShipmentResult}
22
+ * @memberof OneClickShipmentResponse
23
+ */
24
+ 'payload'?: OneClickShipmentResult;
25
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { Carrier } from './carrier';
13
+ import { Currency } from './currency';
14
+ import { PackageDocumentDetail } from './package-document-detail';
15
+ import { Promise } from './promise';
16
+ import { Service } from './service';
17
+ /**
18
+ * The payload for the OneClickShipment API.
19
+ * @export
20
+ * @interface OneClickShipmentResult
21
+ */
22
+ export interface OneClickShipmentResult {
23
+ /**
24
+ * The unique shipment identifier provided by a shipping service.
25
+ * @type {string}
26
+ * @memberof OneClickShipmentResult
27
+ */
28
+ 'shipmentId': string;
29
+ /**
30
+ * A list of post-purchase details about a package that will be shipped using a shipping service.
31
+ * @type {Array<PackageDocumentDetail>}
32
+ * @memberof OneClickShipmentResult
33
+ */
34
+ 'packageDocumentDetails': Array<PackageDocumentDetail>;
35
+ /**
36
+ *
37
+ * @type {Promise}
38
+ * @memberof OneClickShipmentResult
39
+ */
40
+ 'promise': Promise;
41
+ /**
42
+ *
43
+ * @type {Carrier}
44
+ * @memberof OneClickShipmentResult
45
+ */
46
+ 'carrier': Carrier;
47
+ /**
48
+ *
49
+ * @type {Service}
50
+ * @memberof OneClickShipmentResult
51
+ */
52
+ 'service': Service;
53
+ /**
54
+ *
55
+ * @type {Currency}
56
+ * @memberof OneClickShipmentResult
57
+ */
58
+ 'totalCharge': Currency;
59
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Amazon Shipping API
3
+ * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ * Contact: swa-api-core@amazon.com
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 { Currency } from './currency';
13
+ /**
14
+ * A value-added service to be applied to a shipping service purchase.
15
+ * @export
16
+ * @interface OneClickShipmentValueAddedService
17
+ */
18
+ export interface OneClickShipmentValueAddedService {
19
+ /**
20
+ * The identifier of the selected value-added service.
21
+ * @type {string}
22
+ * @memberof OneClickShipmentValueAddedService
23
+ */
24
+ 'id': string;
25
+ /**
26
+ *
27
+ * @type {Currency}
28
+ * @memberof OneClickShipmentValueAddedService
29
+ */
30
+ 'amount'?: Currency;
31
+ }