@shipengine/connect-carrier-api 2.2.2 → 2.3.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 (222) hide show
  1. package/lib/app/carrier-app.js +6 -39
  2. package/lib/app/carrier-app.js.map +1 -1
  3. package/lib/app/internal/carrier-specification.js +14 -1
  4. package/lib/app/internal/carrier-specification.js.map +1 -1
  5. package/lib/app/internal/metadata.js.map +1 -1
  6. package/lib/app/metadata/account-modals.d.ts +8 -2
  7. package/lib/app/metadata/account-modals.js.map +1 -1
  8. package/lib/app/metadata/carrier-app-metadata.js.map +1 -1
  9. package/lib/app/metadata/carrier.d.ts +1 -0
  10. package/lib/app/metadata/carrier.js +6 -12
  11. package/lib/app/metadata/carrier.js.map +1 -1
  12. package/lib/app/metadata/label-formats.js.map +1 -1
  13. package/lib/app/metadata/label-sizes.js.map +1 -1
  14. package/lib/app/metadata/monoauth.js.map +1 -1
  15. package/lib/app/metadata/package-type.d.ts +1 -0
  16. package/lib/app/metadata/package-type.js +3 -0
  17. package/lib/app/metadata/package-type.js.map +1 -1
  18. package/lib/app/metadata/service-class.js.map +1 -1
  19. package/lib/app/metadata/service-grade.js.map +1 -1
  20. package/lib/app/metadata/shipping-service.d.ts +1 -0
  21. package/lib/app/metadata/shipping-service.js +7 -16
  22. package/lib/app/metadata/shipping-service.js.map +1 -1
  23. package/lib/index.d.ts +1 -0
  24. package/lib/index.js +1 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/models/addresses/address-base.d.ts +13 -13
  27. package/lib/models/addresses/address-base.js.map +1 -1
  28. package/lib/models/addresses/address-residential-indicator.d.ts +3 -0
  29. package/lib/models/addresses/address-residential-indicator.js +3 -0
  30. package/lib/models/addresses/address-residential-indicator.js.map +1 -1
  31. package/lib/models/addresses/ship-from-display.d.ts +1 -0
  32. package/lib/models/addresses/ship-from-display.js +1 -0
  33. package/lib/models/addresses/ship-from-display.js.map +1 -1
  34. package/lib/models/addresses/ship-from.d.ts +1 -0
  35. package/lib/models/addresses/ship-from.js +1 -0
  36. package/lib/models/addresses/ship-from.js.map +1 -1
  37. package/lib/models/addresses/ship-to.d.ts +1 -0
  38. package/lib/models/addresses/ship-to.js +1 -0
  39. package/lib/models/addresses/ship-to.js.map +1 -1
  40. package/lib/models/advanced-options.d.ts +1 -1
  41. package/lib/models/authorization.d.ts +2 -0
  42. package/lib/models/authorization.js.map +1 -1
  43. package/lib/models/billing/billing-categories.d.ts +1 -1
  44. package/lib/models/billing/billing-categories.js +1 -1
  45. package/lib/models/billing/billing-categories.js.map +1 -1
  46. package/lib/models/billing/billing-line-item.d.ts +5 -0
  47. package/lib/models/billing/billing-line-item.js +2 -2
  48. package/lib/models/billing/billing-line-item.js.map +1 -1
  49. package/lib/models/confirmation-types.d.ts +5 -5
  50. package/lib/models/confirmation-types.js +5 -5
  51. package/lib/models/confirmation-types.js.map +1 -1
  52. package/lib/models/currency.d.ts +2 -0
  53. package/lib/models/currency.js.map +1 -1
  54. package/lib/models/customs/customs-content-types.d.ts +5 -1
  55. package/lib/models/customs/customs-content-types.js +5 -1
  56. package/lib/models/customs/customs-content-types.js.map +1 -1
  57. package/lib/models/customs/customs-item.d.ts +9 -1
  58. package/lib/models/customs/customs-item.js +1 -1
  59. package/lib/models/customs/customs-item.js.map +1 -1
  60. package/lib/models/customs/customs-non-delivery.d.ts +2 -0
  61. package/lib/models/customs/customs-non-delivery.js +2 -0
  62. package/lib/models/customs/customs-non-delivery.js.map +1 -1
  63. package/lib/models/customs/customs.d.ts +6 -1
  64. package/lib/models/customs/customs.js +1 -1
  65. package/lib/models/customs/customs.js.map +1 -1
  66. package/lib/models/documents/document-type.d.ts +4 -0
  67. package/lib/models/documents/document-type.js +4 -0
  68. package/lib/models/documents/document-type.js.map +1 -1
  69. package/lib/models/documents/document.d.ts +3 -0
  70. package/lib/models/documents/document.js.map +1 -1
  71. package/lib/models/errors/detailed-error.d.ts +1 -1
  72. package/lib/models/errors/detailed-error.js +1 -1
  73. package/lib/models/errors/detailed-error.js.map +1 -1
  74. package/lib/models/errors/standardized-error-code.d.ts +1 -1
  75. package/lib/models/errors/standardized-error-code.js +1 -1
  76. package/lib/models/errors/standardized-error-code.js.map +1 -1
  77. package/lib/models/fulfillment-plans/fulfillment-plan-details.d.ts +4 -1
  78. package/lib/models/fulfillment-plans/fulfillment-plan-details.js +1 -1
  79. package/lib/models/fulfillment-plans/fulfillment-plan-details.js.map +1 -1
  80. package/lib/models/fulfillment-plans/fulfillment-plan-items.d.ts +4 -4
  81. package/lib/models/fulfillment-plans/raw-external-source.d.ts +2 -0
  82. package/lib/models/fulfillment-plans/raw-external-source.js +1 -0
  83. package/lib/models/fulfillment-plans/raw-external-source.js.map +1 -1
  84. package/lib/models/labels/document-formats.js.map +1 -1
  85. package/lib/models/labels/form-download.d.ts +2 -0
  86. package/lib/models/labels/form-download.js +1 -0
  87. package/lib/models/labels/form-download.js.map +1 -1
  88. package/lib/models/labels/label-download.d.ts +2 -0
  89. package/lib/models/labels/label-download.js +1 -0
  90. package/lib/models/labels/label-download.js.map +1 -1
  91. package/lib/models/labels/label-package.d.ts +2 -0
  92. package/lib/models/labels/label-package.js.map +1 -1
  93. package/lib/models/labels/return-label-details.d.ts +1 -0
  94. package/lib/models/labels/return-label-details.js.map +1 -1
  95. package/lib/models/labels/void-request.d.ts +2 -0
  96. package/lib/models/labels/void-request.js.map +1 -1
  97. package/lib/models/labels/void-response.d.ts +1 -1
  98. package/lib/models/manifests/label.d.ts +2 -0
  99. package/lib/models/manifests/label.js.map +1 -1
  100. package/lib/models/manifests/manifest.d.ts +5 -1
  101. package/lib/models/manifests/manifest.js +1 -1
  102. package/lib/models/manifests/manifest.js.map +1 -1
  103. package/lib/models/package.d.ts +6 -0
  104. package/lib/models/package.js.map +1 -1
  105. package/lib/models/pickup/cancellation-details.d.ts +1 -0
  106. package/lib/models/pickup/cancellation-details.js.map +1 -1
  107. package/lib/models/pickup/pickup-confirmation.d.ts +3 -0
  108. package/lib/models/pickup/pickup-confirmation.js.map +1 -1
  109. package/lib/models/pickup/pickup-contact-details.d.ts +6 -1
  110. package/lib/models/pickup/pickup-contact-details.js +1 -1
  111. package/lib/models/pickup/pickup-contact-details.js.map +1 -1
  112. package/lib/models/pickup/pickup-location-details.d.ts +1 -0
  113. package/lib/models/pickup/pickup-location-details.js.map +1 -1
  114. package/lib/models/pickup/pickup-package.d.ts +7 -0
  115. package/lib/models/pickup/pickup-package.js.map +1 -1
  116. package/lib/models/pickup/pickup-shipment-details.d.ts +1 -0
  117. package/lib/models/pickup/pickup-shipment-details.js.map +1 -1
  118. package/lib/models/pickup/pickup-window.d.ts +5 -1
  119. package/lib/models/pickup/pickup-window.js +1 -1
  120. package/lib/models/pickup/pickup-window.js.map +1 -1
  121. package/lib/models/pickup/shipment-identifier.d.ts +2 -0
  122. package/lib/models/pickup/shipment-identifier.js.map +1 -1
  123. package/lib/models/pickup/shipped-package.d.ts +7 -0
  124. package/lib/models/pickup/shipped-package.js.map +1 -1
  125. package/lib/models/pickup/shipped-shipment.d.ts +6 -0
  126. package/lib/models/pickup/shipped-shipment.js.map +1 -1
  127. package/lib/models/rates/rate.d.ts +2 -4
  128. package/lib/models/rates/rate.js.map +1 -1
  129. package/lib/models/registration/credentials.d.ts +2 -0
  130. package/lib/models/registration/credentials.js.map +1 -1
  131. package/lib/models/resource-download.d.ts +2 -0
  132. package/lib/models/resource-download.js.map +1 -1
  133. package/lib/models/taxes/tax-identifier.d.ts +1 -1
  134. package/lib/models/taxes/tax-identifier.js +1 -1
  135. package/lib/models/taxes/tax-identifier.js.map +1 -1
  136. package/lib/models/tracking/lat-long.d.ts +2 -2
  137. package/lib/models/tracking/service.d.ts +2 -0
  138. package/lib/models/tracking/service.js.map +1 -1
  139. package/lib/models/tracking/track-event.d.ts +9 -0
  140. package/lib/models/tracking/track-event.js.map +1 -1
  141. package/lib/models/tracking/tracking-info.d.ts +18 -0
  142. package/lib/models/tracking/tracking-info.js.map +1 -1
  143. package/lib/models/tracking/update-method.js.map +1 -1
  144. package/lib/models/units/dimension-details.d.ts +4 -0
  145. package/lib/models/units/dimension-details.js.map +1 -1
  146. package/lib/models/units/weight-details.d.ts +4 -0
  147. package/lib/models/units/weight-details.js.map +1 -1
  148. package/lib/responses/normalize-tracking-data-response.js.map +1 -1
  149. package/lib/responses/validate-inbound-data-response.js.map +1 -1
  150. package/package.json +1 -1
  151. package/spec.json +355 -176
  152. package/src/app/carrier-app-definition.ts +5 -15
  153. package/src/app/carrier-app.ts +9 -45
  154. package/src/app/internal/carrier-specification.ts +20 -7
  155. package/src/app/internal/metadata.ts +1 -3
  156. package/src/app/metadata/account-modals.ts +8 -2
  157. package/src/app/metadata/carrier-app-metadata.ts +1 -6
  158. package/src/app/metadata/carrier.ts +11 -28
  159. package/src/app/metadata/label-formats.ts +1 -3
  160. package/src/app/metadata/label-sizes.ts +1 -3
  161. package/src/app/metadata/monoauth.ts +1 -4
  162. package/src/app/metadata/package-type.ts +4 -0
  163. package/src/app/metadata/service-class.ts +1 -3
  164. package/src/app/metadata/service-grade.ts +1 -3
  165. package/src/app/metadata/shipping-service.ts +10 -24
  166. package/src/index.ts +1 -0
  167. package/src/models/addresses/address-base.ts +13 -14
  168. package/src/models/addresses/address-residential-indicator.ts +3 -0
  169. package/src/models/addresses/ship-from-display.ts +1 -0
  170. package/src/models/addresses/ship-from.ts +1 -0
  171. package/src/models/addresses/ship-to.ts +1 -0
  172. package/src/models/advanced-options.ts +1 -1
  173. package/src/models/authorization.ts +2 -0
  174. package/src/models/billing/billing-categories.ts +2 -4
  175. package/src/models/billing/billing-line-item.ts +8 -6
  176. package/src/models/confirmation-types.ts +5 -5
  177. package/src/models/currency.ts +2 -0
  178. package/src/models/customs/customs-content-types.ts +5 -1
  179. package/src/models/customs/customs-item.ts +9 -1
  180. package/src/models/customs/customs-non-delivery.ts +2 -0
  181. package/src/models/customs/customs.ts +6 -1
  182. package/src/models/documents/document-type.ts +5 -3
  183. package/src/models/documents/document.ts +4 -4
  184. package/src/models/errors/detailed-error.ts +1 -1
  185. package/src/models/errors/standardized-error-code.ts +1 -1
  186. package/src/models/fulfillment-plans/fulfillment-plan-details.ts +4 -1
  187. package/src/models/fulfillment-plans/fulfillment-plan-items.ts +4 -4
  188. package/src/models/fulfillment-plans/raw-external-source.ts +2 -0
  189. package/src/models/labels/document-formats.ts +1 -3
  190. package/src/models/labels/form-download.ts +2 -0
  191. package/src/models/labels/label-download.ts +2 -0
  192. package/src/models/labels/label-package.ts +2 -0
  193. package/src/models/labels/return-label-details.ts +1 -0
  194. package/src/models/labels/void-request.ts +2 -0
  195. package/src/models/labels/void-response.ts +1 -1
  196. package/src/models/manifests/label.ts +2 -0
  197. package/src/models/manifests/manifest.ts +5 -1
  198. package/src/models/package.ts +6 -0
  199. package/src/models/pickup/cancellation-details.ts +1 -0
  200. package/src/models/pickup/pickup-confirmation.ts +4 -4
  201. package/src/models/pickup/pickup-contact-details.ts +6 -1
  202. package/src/models/pickup/pickup-location-details.ts +1 -0
  203. package/src/models/pickup/pickup-package.ts +7 -0
  204. package/src/models/pickup/pickup-shipment-details.ts +1 -0
  205. package/src/models/pickup/pickup-window.ts +5 -1
  206. package/src/models/pickup/shipment-identifier.ts +2 -0
  207. package/src/models/pickup/shipped-package.ts +7 -0
  208. package/src/models/pickup/shipped-shipment.ts +6 -0
  209. package/src/models/rates/rate.ts +3 -8
  210. package/src/models/registration/credentials.ts +2 -0
  211. package/src/models/resource-download.ts +2 -0
  212. package/src/models/taxes/tax-identifier.ts +1 -1
  213. package/src/models/tracking/lat-long.ts +2 -2
  214. package/src/models/tracking/service.ts +2 -0
  215. package/src/models/tracking/track-event.ts +9 -0
  216. package/src/models/tracking/tracking-info.ts +18 -0
  217. package/src/models/tracking/update-method.ts +1 -3
  218. package/src/models/units/dimension-details.ts +4 -0
  219. package/src/models/units/weight-details.ts +4 -0
  220. package/src/responses/normalize-tracking-data-response.ts +1 -6
  221. package/src/responses/validate-inbound-data-response.ts +1 -4
  222. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oDAAoD;AACpD,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oFAAoF;IACpF,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,+CAA0B,CAAA;IAC1B,uDAAkC,CAAA;IAClC,sCAAiB,CAAA;IACjB,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,mDAA8B,CAAA;IAC9B,sCAAiB,CAAA;IACjB,wEAAwE;IACxE,iDAA4B,CAAA;IAC5B,iDAAiD;IACjD,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,kGAAkG;IAClG,gCAAW,CAAA;AACb,CAAC,EAvBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuB5B;AAEY,QAAA,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CACvD,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CACpC,CAAC"}
1
+ {"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oDAAoD;AACpD,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oFAAoF;IACpF,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,+CAA0B,CAAA;IAC1B,uDAAkC,CAAA;IAClC,sCAAiB,CAAA;IACjB,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,mDAA8B,CAAA;IAC9B,sCAAiB,CAAA;IACjB,wEAAwE;IACxE,iDAA4B,CAAA;IAC5B,iDAAiD;IACjD,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,iGAAiG;IACjG,gCAAW,CAAA;AACb,CAAC,EAvBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuB5B;AAEY,QAAA,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC"}
@@ -3,10 +3,15 @@ import { Currency } from '../currency';
3
3
  import Joi from 'joi';
4
4
  /** @description Basic structure of each charge or line item */
5
5
  export declare class BillingLineItem {
6
+ /** A generalized category for what type of billing line item this is */
6
7
  billing_category: BillingCategories;
8
+ /** @description If the carrier provides a description from their API about the billing charge (not specific to the user). Maximum length of 100 characters. */
7
9
  carrier_description?: string;
10
+ /** @description If the carrier provides a billing code for */
8
11
  carrier_billing_code?: string;
12
+ /** @description This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters. */
9
13
  memo?: string;
14
+ /** @description Total amount of the line item */
10
15
  amount: Currency;
11
16
  }
12
17
  export declare const BillingLineItemSchema: Joi.ObjectSchema<any>;
@@ -11,9 +11,9 @@ class BillingLineItem {
11
11
  exports.BillingLineItem = BillingLineItem;
12
12
  exports.BillingLineItemSchema = joi_1.default.object({
13
13
  billing_category: billing_categories_1.BillingCategoriesSchema.required(),
14
- carrier_description: joi_1.default.string().optional().empty(),
14
+ carrier_description: joi_1.default.string().optional().empty().max(100),
15
15
  carrier_billing_code: joi_1.default.string().optional().empty(),
16
- memo: joi_1.default.string().optional().empty(),
16
+ memo: joi_1.default.string().optional().empty().max(250),
17
17
  amount: currency_1.CurrencySchema.required(),
18
18
  });
19
19
  //# sourceMappingURL=billing-line-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;;AAAA,6DAG8B;AAC9B,0CAAuD;AACvD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,eAAe;CAM3B;AAND,0CAMC;AAEY,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,4CAAuB,CAAC,QAAQ,EAAE;IACpD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACpD,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrD,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,yBAAc,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
1
+ {"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;;AAAA,6DAAkF;AAClF,0CAAuD;AACvD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,eAAe;CAW3B;AAXD,0CAWC;AAEY,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,4CAAuB,CAAC,QAAQ,EAAE;IACpD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7D,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrD,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC9C,MAAM,EAAE,yBAAc,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  /** @description Types of delivery confirmation */
2
2
  export declare enum ConfirmationTypes {
3
- /** @description No confirmation is requested. */
3
+ /** @description No confirmation is requested */
4
4
  None = "None",
5
- /** @description Delivery confirmation is requested. */
5
+ /** @description Delivery confirmation is requested */
6
6
  Delivery = "Delivery",
7
- /** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present). */
7
+ /** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present) */
8
8
  Signature = "Signature",
9
- /** @description A signature of an adult is required. */
9
+ /** @description A signature of an adult is required */
10
10
  AdultSignature = "AdultSignature",
11
- /** @description Only supported by FedEx. The signature of somebody at the address is required. */
11
+ /** @description Only supported by FedEx. The signature of somebody at the address is required */
12
12
  DirectSignature = "DirectSignature"
13
13
  }
@@ -4,15 +4,15 @@ exports.ConfirmationTypes = void 0;
4
4
  /** @description Types of delivery confirmation */
5
5
  var ConfirmationTypes;
6
6
  (function (ConfirmationTypes) {
7
- /** @description No confirmation is requested. */
7
+ /** @description No confirmation is requested */
8
8
  ConfirmationTypes["None"] = "None";
9
- /** @description Delivery confirmation is requested. */
9
+ /** @description Delivery confirmation is requested */
10
10
  ConfirmationTypes["Delivery"] = "Delivery";
11
- /** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present). */
11
+ /** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present) */
12
12
  ConfirmationTypes["Signature"] = "Signature";
13
- /** @description A signature of an adult is required. */
13
+ /** @description A signature of an adult is required */
14
14
  ConfirmationTypes["AdultSignature"] = "AdultSignature";
15
- /** @description Only supported by FedEx. The signature of somebody at the address is required. */
15
+ /** @description Only supported by FedEx. The signature of somebody at the address is required */
16
16
  ConfirmationTypes["DirectSignature"] = "DirectSignature";
17
17
  })(ConfirmationTypes = exports.ConfirmationTypes || (exports.ConfirmationTypes = {}));
18
18
  //# sourceMappingURL=confirmation-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"confirmation-types.js","sourceRoot":"","sources":["../../src/models/confirmation-types.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,iDAAiD;IACjD,kCAAa,CAAA;IACb,uDAAuD;IACvD,0CAAqB,CAAA;IACrB,mLAAmL;IACnL,4CAAuB,CAAA;IACvB,wDAAwD;IACxD,sDAAiC,CAAA;IACjC,kGAAkG;IAClG,wDAAmC,CAAA;AACrC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B"}
1
+ {"version":3,"file":"confirmation-types.js","sourceRoot":"","sources":["../../src/models/confirmation-types.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,gDAAgD;IAChD,kCAAa,CAAA;IACb,sDAAsD;IACtD,0CAAqB,CAAA;IACrB,kLAAkL;IAClL,4CAAuB,CAAA;IACvB,uDAAuD;IACvD,sDAAiC,CAAA;IACjC,iGAAiG;IACjG,wDAAmC,CAAA;AACrC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B"}
@@ -1,7 +1,9 @@
1
1
  import Joi from 'joi';
2
2
  /** @description Basic structure for defining an amount of money and its currency */
3
3
  export declare class Currency {
4
+ /** @description The ISO 4217 Currency Code (USD, EUR, etc) https://www.iso.org/iso-4217-currency-codes.html */
4
5
  currency: string;
6
+ /** @description The amount */
5
7
  amount: string;
6
8
  }
7
9
  export declare const CurrencySchema: Joi.ObjectSchema<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oFAAoF;AACpF,MAAa,QAAQ;CAGpB;AAHD,4BAGC;AAEY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
1
+ {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oFAAoF;AACpF,MAAa,QAAQ;CAKpB;AALD,4BAKC;AAEY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
@@ -1,9 +1,13 @@
1
1
  /** @description Denotes the type of content for customs */
2
2
  export declare enum CustomsContentTypes {
3
+ /** @description This is generalized merchandise that someone has purchased */
3
4
  Merchandise = "merchandise",
5
+ /** @description Documents that are being shipped */
4
6
  Documents = "documents",
7
+ /** @description An item that is being shipped as a gift (not purchased) */
5
8
  Gift = "gift",
6
- /** @description e.g. a flooring sample */
9
+ /** @description Sample goods that are being shipped */
7
10
  Sample = "sample",
11
+ /** @description Items that are being returned */
8
12
  ReturnedGoods = "returned_goods"
9
13
  }
@@ -4,11 +4,15 @@ exports.CustomsContentTypes = void 0;
4
4
  /** @description Denotes the type of content for customs */
5
5
  var CustomsContentTypes;
6
6
  (function (CustomsContentTypes) {
7
+ /** @description This is generalized merchandise that someone has purchased */
7
8
  CustomsContentTypes["Merchandise"] = "merchandise";
9
+ /** @description Documents that are being shipped */
8
10
  CustomsContentTypes["Documents"] = "documents";
11
+ /** @description An item that is being shipped as a gift (not purchased) */
9
12
  CustomsContentTypes["Gift"] = "gift";
10
- /** @description e.g. a flooring sample */
13
+ /** @description Sample goods that are being shipped */
11
14
  CustomsContentTypes["Sample"] = "sample";
15
+ /** @description Items that are being returned */
12
16
  CustomsContentTypes["ReturnedGoods"] = "returned_goods";
13
17
  })(CustomsContentTypes = exports.CustomsContentTypes || (exports.CustomsContentTypes = {}));
14
18
  //# sourceMappingURL=customs-content-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customs-content-types.js","sourceRoot":"","sources":["../../../src/models/customs/customs-content-types.ts"],"names":[],"mappings":";;;AAAA,4DAA4D;AAC5D,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,kDAA2B,CAAA;IAC3B,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,0CAA0C;IAC1C,wCAAiB,CAAA;IACjB,uDAAgC,CAAA;AAClC,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B"}
1
+ {"version":3,"file":"customs-content-types.js","sourceRoot":"","sources":["../../../src/models/customs/customs-content-types.ts"],"names":[],"mappings":";;;AAAA,4DAA4D;AAC5D,IAAY,mBAWX;AAXD,WAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,kDAA2B,CAAA;IAC3B,oDAAoD;IACpD,8CAAuB,CAAA;IACvB,2EAA2E;IAC3E,oCAAa,CAAA;IACb,uDAAuD;IACvD,wCAAiB,CAAA;IACjB,iDAAiD;IACjD,uDAAgC,CAAA;AAClC,CAAC,EAXW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAW9B"}
@@ -1,13 +1,21 @@
1
1
  import { Currency } from '../currency';
2
2
  import { WeightDetails } from '../units';
3
- /** @description Basic structure of an item in a customs declaration */
3
+ /** @description This model represents the customs declaration for a single item */
4
4
  export declare class CustomsItem {
5
+ /** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
5
6
  description?: string;
7
+ /** @description The user specified count of items in this declaration. This value should be 1 or greater */
6
8
  quantity?: number;
9
+ /** @description The user specified declared customs value of this customs item. Generally, this value needs to be greater than 0 to be accepted through customs */
7
10
  value?: Currency;
11
+ /** @description The user specified declared country of origin of this customs item */
8
12
  country_of_origin?: string;
13
+ /** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
9
14
  harmonized_tariff_code?: string;
15
+ /** @description The user specified SKU of this customs item. This field is completely free form. */
10
16
  sku?: string;
17
+ /** @description The user specified SKU description of this customs item. This field is completely free form. */
11
18
  sku_description?: string;
19
+ /** @description Detailed information about the weight of this item */
12
20
  item_weight?: WeightDetails;
13
21
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomsItem = void 0;
4
- /** @description Basic structure of an item in a customs declaration */
4
+ /** @description This model represents the customs declaration for a single item */
5
5
  class CustomsItem {
6
6
  }
7
7
  exports.CustomsItem = CustomsItem;
@@ -1 +1 @@
1
- {"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,uEAAuE;AACvE,MAAa,WAAW;CASvB;AATD,kCASC"}
1
+ {"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,mFAAmF;AACnF,MAAa,WAAW;CAiBvB;AAjBD,kCAiBC"}
@@ -1,5 +1,7 @@
1
1
  /** @description Denotes the action that should be taken when a shipment is not deliverable */
2
2
  export declare enum CustomsNonDelivery {
3
+ /** @description Make an attempt to return this package to sender if unable to deliver */
3
4
  ReturnToSender = "return_to_sender",
5
+ /** @description Do not make an attempt to return this package to sender if unable to deliver */
4
6
  TreatAsAbandoned = "treat_as_abandoned"
5
7
  }
@@ -4,7 +4,9 @@ exports.CustomsNonDelivery = void 0;
4
4
  /** @description Denotes the action that should be taken when a shipment is not deliverable */
5
5
  var CustomsNonDelivery;
6
6
  (function (CustomsNonDelivery) {
7
+ /** @description Make an attempt to return this package to sender if unable to deliver */
7
8
  CustomsNonDelivery["ReturnToSender"] = "return_to_sender";
9
+ /** @description Do not make an attempt to return this package to sender if unable to deliver */
8
10
  CustomsNonDelivery["TreatAsAbandoned"] = "treat_as_abandoned";
9
11
  })(CustomsNonDelivery = exports.CustomsNonDelivery || (exports.CustomsNonDelivery = {}));
10
12
  //# sourceMappingURL=customs-non-delivery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customs-non-delivery.js","sourceRoot":"","sources":["../../../src/models/customs/customs-non-delivery.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yDAAmC,CAAA;IACnC,6DAAuC,CAAA;AACzC,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"customs-non-delivery.js","sourceRoot":"","sources":["../../../src/models/customs/customs-non-delivery.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yFAAyF;IACzF,yDAAmC,CAAA;IACnC,gGAAgG;IAChG,6DAAuC,CAAA;AACzC,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
@@ -2,11 +2,16 @@ import { CustomsContentTypes } from './customs-content-types';
2
2
  import { CustomsNonDelivery } from './customs-non-delivery';
3
3
  import { CustomsItem } from './customs-item';
4
4
  import { Currency } from '../currency';
5
- /** @description Basic structure for a customs declaration. */
5
+ /** @description Basic structure for a customs declaration */
6
6
  export declare class Customs {
7
+ /** @description Indicates the type of contents associated with this shipment */
7
8
  contents?: CustomsContentTypes;
9
+ /** @description Indicates what the seller would like done in case of an issue with delivery */
8
10
  non_delivery?: CustomsNonDelivery;
11
+ /** @description A list of customs items to declare */
9
12
  customs_items: CustomsItem[];
13
+ /** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
10
14
  buyer_shipping_amount_paid?: Currency;
15
+ /** @description The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill_duties_to_sender) shipments. */
11
16
  duties_paid?: Currency;
12
17
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Customs = void 0;
4
- /** @description Basic structure for a customs declaration. */
4
+ /** @description Basic structure for a customs declaration */
5
5
  class Customs {
6
6
  }
7
7
  exports.Customs = Customs;
@@ -1 +1 @@
1
- {"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAKA,8DAA8D;AAC9D,MAAa,OAAO;CAMnB;AAND,0BAMC"}
1
+ {"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAKA,6DAA6D;AAC7D,MAAa,OAAO;CAWnB;AAXD,0BAWC"}
@@ -1,9 +1,13 @@
1
1
  import Joi from 'joi';
2
2
  /** @description Types of documents */
3
3
  export declare enum DocumentType {
4
+ /** @description A shipping label */
4
5
  Label = "label",
6
+ /** @description A form that lists the details of goods that are being imported or exported when a citizen or visitor enters a customs territory (country's borders) */
5
7
  CustomsForm = "customs_form",
8
+ /** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
6
9
  CommercialInvoice = "commercial_invoice",
10
+ /** @description A legal document issued by a carrier to a shipper that details the type, quantity, and destination of the goods being carried (does not indicate the ownership of goods nor does it carry a title to the goods being sold) */
7
11
  BillOfLading = "bill_of_lading"
8
12
  }
9
13
  export declare const DocumentTypeSchema: Joi.StringSchema;
@@ -6,9 +6,13 @@ const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  /** @description Types of documents */
7
7
  var DocumentType;
8
8
  (function (DocumentType) {
9
+ /** @description A shipping label */
9
10
  DocumentType["Label"] = "label";
11
+ /** @description A form that lists the details of goods that are being imported or exported when a citizen or visitor enters a customs territory (country's borders) */
10
12
  DocumentType["CustomsForm"] = "customs_form";
13
+ /** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
11
14
  DocumentType["CommercialInvoice"] = "commercial_invoice";
15
+ /** @description A legal document issued by a carrier to a shipper that details the type, quantity, and destination of the goods being carried (does not indicate the ownership of goods nor does it carry a title to the goods being sold) */
12
16
  DocumentType["BillOfLading"] = "bill_of_lading";
13
17
  })(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
14
18
  exports.DocumentTypeSchema = joi_1.default.string().valid(...Object.values(DocumentType));
@@ -1 +1 @@
1
- {"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,sCAAsC;AACtC,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,4CAA4B,CAAA;IAC5B,wDAAwC,CAAA;IACxC,+CAA+B,CAAA;AACjC,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAClD,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/B,CAAC"}
1
+ {"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,sCAAsC;AACtC,IAAY,YASX;AATD,WAAY,YAAY;IACtB,oCAAoC;IACpC,+BAAe,CAAA;IACf,uKAAuK;IACvK,4CAA4B,CAAA;IAC5B,sMAAsM;IACtM,wDAAwC,CAAA;IACxC,8OAA8O;IAC9O,+CAA+B,CAAA;AACjC,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC"}
@@ -3,8 +3,11 @@ import { DocumentFormat } from '../labels/document-formats';
3
3
  import Joi from 'joi';
4
4
  /** @description Basic structure for a document */
5
5
  export declare class Document {
6
+ /** @description The document type(s) being returned. In most cases this is just a single document type; however, some carriers return multiple document types in the same PDF or ZPL */
6
7
  type: DocumentType[];
8
+ /** @description Base64 encoded data for the document */
7
9
  data: string;
10
+ /** @description The format the document is in (Pdf, Zpl, etc) */
8
11
  format: DocumentFormat;
9
12
  }
10
13
  export declare const DocumentSchema: Joi.ObjectSchema<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/models/documents/document.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,iEAGoC;AACpC,sDAAsB;AAEtB,kDAAkD;AAClD,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AACY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAkB,CAAC;IAC7D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,uCAAoB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/models/documents/document.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,iEAAkF;AAClF,sDAAsB;AAEtB,kDAAkD;AAClD,MAAa,QAAQ;CAOpB;AAPD,4BAOC;AACY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAkB,CAAC;IAC7D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,uCAAoB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { StandardizedErrorCode } from './standardized-error-code';
2
- /** @description Basic structure for an error */
2
+ /** @deprecated Please Use Runtime Errors */
3
3
  export declare class DetailedError {
4
4
  standardized_error_code: StandardizedErrorCode;
5
5
  external_error_code?: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DetailedError = void 0;
4
- /** @description Basic structure for an error */
4
+ /** @deprecated Please Use Runtime Errors */
5
5
  class DetailedError {
6
6
  }
7
7
  exports.DetailedError = DetailedError;
@@ -1 +1 @@
1
- {"version":3,"file":"detailed-error.js","sourceRoot":"","sources":["../../../src/models/errors/detailed-error.ts"],"names":[],"mappings":";;;AAEA,gDAAgD;AAChD,MAAa,aAAa;CAMzB;AAND,sCAMC"}
1
+ {"version":3,"file":"detailed-error.js","sourceRoot":"","sources":["../../../src/models/errors/detailed-error.ts"],"names":[],"mappings":";;;AAEA,4CAA4C;AAC5C,MAAa,aAAa;CAMzB;AAND,sCAMC"}
@@ -1,4 +1,4 @@
1
- /** @description Error codes for DetailedError */
1
+ /** @deprecated Please Use Runtime Errors */
2
2
  export declare enum StandardizedErrorCode {
3
3
  Generic = 0,
4
4
  Serialization = 1,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StandardizedErrorCode = void 0;
4
- /** @description Error codes for DetailedError */
4
+ /** @deprecated Please Use Runtime Errors */
5
5
  var StandardizedErrorCode;
6
6
  (function (StandardizedErrorCode) {
7
7
  StandardizedErrorCode[StandardizedErrorCode["Generic"] = 0] = "Generic";
@@ -1 +1 @@
1
- {"version":3,"file":"standardized-error-code.js","sourceRoot":"","sources":["../../../src/models/errors/standardized-error-code.ts"],"names":[],"mappings":";;;AAAA,iDAAiD;AACjD,IAAY,qBAcX;AAdD,WAAY,qBAAqB;IAC/B,uEAAW,CAAA;IACX,mFAAiB,CAAA;IACjB,yGAA4B,CAAA;IAC5B,6EAAc,CAAA;IACd,+FAAwB,CAAA;IACxB,mGAA0B,CAAA;IAC1B,iHAAiC,CAAA;IACjC,yGAA6B,CAAA;IAC7B,uGAA4B,CAAA;IAC5B,+FAAwB,CAAA;IACxB,+GAAgC,CAAA;IAChC,uGAA4B,CAAA;IAC5B,iGAAyB,CAAA;AAC3B,CAAC,EAdW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAchC"}
1
+ {"version":3,"file":"standardized-error-code.js","sourceRoot":"","sources":["../../../src/models/errors/standardized-error-code.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,IAAY,qBAcX;AAdD,WAAY,qBAAqB;IAC/B,uEAAW,CAAA;IACX,mFAAiB,CAAA;IACjB,yGAA4B,CAAA;IAC5B,6EAAc,CAAA;IACd,+FAAwB,CAAA;IACxB,mGAA0B,CAAA;IAC1B,iHAAiC,CAAA;IACjC,yGAA6B,CAAA;IAC7B,uGAA4B,CAAA;IAC5B,+FAAwB,CAAA;IACxB,+GAAgC,CAAA;IAChC,uGAA4B,CAAA;IAC5B,iGAAyB,CAAA;AAC3B,CAAC,EAdW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAchC"}
@@ -1,9 +1,12 @@
1
1
  import { Identifier } from '../identifier';
2
2
  import { FulfillmentPlanItems } from './fulfillment-plan-items';
3
3
  import { RawExternalSource } from './raw-external-source';
4
- /** @description Basic structure for a fulfillment plan */
4
+ /** @description This model contains information about the fulfillment plan. */
5
5
  export declare class FulfillmentPlanDetails {
6
+ /** @description A list of identifiers for the sales order. */
6
7
  external_sales_order_identifiers?: Identifier[];
8
+ /** @description Information about the fulfillment plan item. */
7
9
  items?: FulfillmentPlanItems[];
10
+ /** @description This model represents a raw external source of information */
8
11
  raw_external_source?: RawExternalSource;
9
12
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FulfillmentPlanDetails = void 0;
4
- /** @description Basic structure for a fulfillment plan */
4
+ /** @description This model contains information about the fulfillment plan. */
5
5
  class FulfillmentPlanDetails {
6
6
  }
7
7
  exports.FulfillmentPlanDetails = FulfillmentPlanDetails;
@@ -1 +1 @@
1
- {"version":3,"file":"fulfillment-plan-details.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/fulfillment-plan-details.ts"],"names":[],"mappings":";;;AAIA,0DAA0D;AAC1D,MAAa,sBAAsB;CAIlC;AAJD,wDAIC"}
1
+ {"version":3,"file":"fulfillment-plan-details.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/fulfillment-plan-details.ts"],"names":[],"mappings":";;;AAIA,+EAA+E;AAC/E,MAAa,sBAAsB;CAOlC;AAPD,wDAOC"}
@@ -1,12 +1,12 @@
1
1
  import { Identifier } from '../identifier';
2
2
  /** @description Information about the fulfillment plan for a set of items */
3
3
  export declare class FulfillmentPlanItems {
4
- /** @description List of identifiers for the sales order */
4
+ /** @description A list of identifiers for the sales order */
5
5
  external_sales_order_identifiers?: Identifier[];
6
- /** @description List of identifiers specific to the selling channel */
6
+ /** @description A list of identifiers specific to the selling channel */
7
7
  external_product_identifiers?: Identifier[];
8
- /** @description Name of the item */
8
+ /** @description The name of the item */
9
9
  name?: string;
10
- /** @description Number of items */
10
+ /** @description The number of items */
11
11
  quantity?: number;
12
12
  }
@@ -1,3 +1,5 @@
1
+ /** @description This model represents a raw external source of information. */
1
2
  export declare class RawExternalSource {
3
+ /** @description Canonical representation of the fulfillment plan's and/or sales order's original source */
2
4
  marketplace_code?: string;
3
5
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RawExternalSource = void 0;
4
+ /** @description This model represents a raw external source of information. */
4
5
  class RawExternalSource {
5
6
  }
6
7
  exports.RawExternalSource = RawExternalSource;
@@ -1 +1 @@
1
- {"version":3,"file":"raw-external-source.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/raw-external-source.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;CAE7B;AAFD,8CAEC"}
1
+ {"version":3,"file":"raw-external-source.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/raw-external-source.ts"],"names":[],"mappings":";;;AAAA,+EAA+E;AAC/E,MAAa,iBAAiB;CAG7B;AAHD,8CAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-formats.js","sourceRoot":"","sources":["../../../src/models/labels/document-formats.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,mCAAmC;AACnC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,6BAAW,CAAA;AACb,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AACY,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CACpD,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CACjC,CAAC"}
1
+ {"version":3,"file":"document-formats.js","sourceRoot":"","sources":["../../../src/models/labels/document-formats.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,mCAAmC;AACnC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,6BAAW,CAAA;AACb,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AACY,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import Joi from 'joi';
2
2
  import { ResourceDownload } from '../resource-download';
3
+ /** @description This provides any additional forms that go with the label. For example, customs forms. Exactly one of the keys should be populated. Set href is the forms should be downloaded separately. Set data if the forms are returned directly in the response. */
3
4
  export declare class FormDownload extends ResourceDownload {
5
+ /** @description The base64 encoded resource data. */
4
6
  form_data?: string;
5
7
  }
6
8
  export declare const FormDownloadSchema: Joi.ObjectSchema<any>;
@@ -4,6 +4,7 @@ exports.FormDownloadSchema = exports.FormDownload = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  const resource_download_1 = require("../resource-download");
7
+ /** @description This provides any additional forms that go with the label. For example, customs forms. Exactly one of the keys should be populated. Set href is the forms should be downloaded separately. Set data if the forms are returned directly in the response. */
7
8
  class FormDownload extends resource_download_1.ResourceDownload {
8
9
  }
9
10
  exports.FormDownload = FormDownload;
@@ -1 +1 @@
1
- {"version":3,"file":"form-download.js","sourceRoot":"","sources":["../../../src/models/labels/form-download.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,MAAa,YAAa,SAAQ,oCAAgB;CAEjD;AAFD,oCAEC;AAEY,QAAA,kBAAkB,GAAG,0CAAsB,CAAC,IAAI,CAAC;IAC5D,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC3C,CAAC,CAAC"}
1
+ {"version":3,"file":"form-download.js","sourceRoot":"","sources":["../../../src/models/labels/form-download.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,2QAA2Q;AAC3Q,MAAa,YAAa,SAAQ,oCAAgB;CAGjD;AAHD,oCAGC;AAEY,QAAA,kBAAkB,GAAG,0CAAsB,CAAC,IAAI,CAAC;IAC5D,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC3C,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import Joi from 'joi';
2
2
  import { ResourceDownload } from '../resource-download';
3
+ /** @description This object provides the requested label that was just created. Exactly one of the keys should be populated. Set href if the label should be downloaded separately. Set data if the label is returned directly in the response. */
3
4
  export declare class LabelDownload extends ResourceDownload {
5
+ /** @description The base64 encoded resource data. */
4
6
  label_data?: string;
5
7
  }
6
8
  export declare const LabelDownloadSchema: Joi.ObjectSchema<any>;
@@ -4,6 +4,7 @@ exports.LabelDownloadSchema = exports.LabelDownload = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  const resource_download_1 = require("../resource-download");
7
+ /** @description This object provides the requested label that was just created. Exactly one of the keys should be populated. Set href if the label should be downloaded separately. Set data if the label is returned directly in the response. */
7
8
  class LabelDownload extends resource_download_1.ResourceDownload {
8
9
  }
9
10
  exports.LabelDownload = LabelDownload;
@@ -1 +1 @@
1
- {"version":3,"file":"label-download.js","sourceRoot":"","sources":["../../../src/models/labels/label-download.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,MAAa,aAAc,SAAQ,oCAAgB;CAElD;AAFD,sCAEC;AAEY,QAAA,mBAAmB,GAAG,0CAAsB,CAAC,IAAI,CAAC;IAC7D,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"label-download.js","sourceRoot":"","sources":["../../../src/models/labels/label-download.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,mPAAmP;AACnP,MAAa,aAAc,SAAQ,oCAAgB;CAGlD;AAHD,sCAGC;AAEY,QAAA,mBAAmB,GAAG,0CAAsB,CAAC,IAAI,CAAC;IAC7D,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC5C,CAAC,CAAC"}
@@ -3,9 +3,11 @@ import { Document } from '../documents';
3
3
  import Joi from 'joi';
4
4
  /** @description Package information provided by the carrier */
5
5
  export declare class LabelPackage {
6
+ /** @description Tracking number for the package */
6
7
  tracking_number?: string;
7
8
  /** @description Non-tracking alternative ids associated with this package */
8
9
  alternative_identifiers?: Identifier[];
10
+ /** @description Documents associated with this package, if documents are not specified at a package level, use the Documents array at the CreateLabelResponse level. */
9
11
  documents?: Document[];
10
12
  }
11
13
  export declare const LabelPackageSchema: Joi.ObjectSchema<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"label-package.js","sourceRoot":"","sources":["../../../src/models/labels/label-package.ts"],"names":[],"mappings":";;;;AAAA,8CAA6D;AAC7D,4CAAwD;AACxD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,YAAY;CAKxB;AALD,oCAKC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,6BAAgB,CAAC;IACvE,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,0BAAc,CAAC;CACxD,CAAC,CAAC"}
1
+ {"version":3,"file":"label-package.js","sourceRoot":"","sources":["../../../src/models/labels/label-package.ts"],"names":[],"mappings":";;;;AAAA,8CAA6D;AAC7D,4CAAwD;AACxD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,YAAY;CAOxB;AAPD,oCAOC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,6BAAgB,CAAC;IACvE,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,0BAAc,CAAC;CACxD,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  /** @description Basic structure for a return label */
2
2
  export declare class ReturnLabelDetails {
3
+ /** @description A return merchandise authorization (RMA) is an associated number assigned to process the return, this number is often printed on the label, and used when the original shipper processes the inbound return. */
3
4
  rma_number?: string;
4
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"return-label-details.js","sourceRoot":"","sources":["../../../src/models/labels/return-label-details.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,MAAa,kBAAkB;CAE9B;AAFD,gDAEC"}
1
+ {"version":3,"file":"return-label-details.js","sourceRoot":"","sources":["../../../src/models/labels/return-label-details.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,MAAa,kBAAkB;CAG9B;AAHD,gDAGC"}
@@ -2,6 +2,8 @@ import { ShippedShipment } from '../pickup/shipped-shipment';
2
2
  import { ShipFrom } from '../addresses';
3
3
  /** @description Basic structure for a request to void a label */
4
4
  export declare class VoidRequest extends ShippedShipment {
5
+ /** @description Uniquely identifies this request to void a label. Must be returned in a void response. */
5
6
  void_request_id: string;
7
+ /** @description The location the shipment was shipped from */
6
8
  ship_from: ShipFrom;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"void-request.js","sourceRoot":"","sources":["../../../src/models/labels/void-request.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,iEAAiE;AACjE,MAAa,WAAY,SAAQ,kCAAe;CAG/C;AAHD,kCAGC"}
1
+ {"version":3,"file":"void-request.js","sourceRoot":"","sources":["../../../src/models/labels/void-request.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,iEAAiE;AACjE,MAAa,WAAY,SAAQ,kCAAe;CAK/C;AALD,kCAKC"}
@@ -8,7 +8,7 @@ export declare class VoidResponse {
8
8
  message?: string;
9
9
  /** @description Any errors from attempting to void */
10
10
  errors?: string[];
11
- /** @description Individual Billing Line items which remain after voiding the label, e.g. a cancellation fee. */
11
+ /** @description Individual Billing Line items which remain after voiding the label, e.g. a cancellation fee */
12
12
  billing_line_items?: BillingLineItem[];
13
13
  }
14
14
  export declare const VoidResponseSchema: Joi.ObjectSchema<any>;
@@ -1,5 +1,7 @@
1
1
  /** @description Basic structure of a manifest label */
2
2
  export declare class Label {
3
+ /** @description The carrier tracking number for this shipment */
3
4
  tracking_number?: string;
5
+ /** @description The carrier specific identifier for this shipment */
4
6
  carrier_transaction_id?: string;
5
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/models/manifests/label.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,MAAa,KAAK;CAGjB;AAHD,sBAGC"}
1
+ {"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/models/manifests/label.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,MAAa,KAAK;CAKjB;AALD,sBAKC"}
@@ -1,10 +1,14 @@
1
1
  import Joi from 'joi';
2
2
  import { ResourceDownload } from '../resource-download';
3
- /** @description Basic structure of a manifest */
3
+ /** @description This model represents a single manifest created with a shipping provider. */
4
4
  export declare class Manifest {
5
+ /** @description The unique identifier for this manifest. */
5
6
  manifest_id?: string;
7
+ /** @description The resource and where it can be downloaded */
6
8
  document_download?: ResourceDownload;
9
+ /** @deprecated This property is no longer used please use the document_download */
7
10
  document_href?: string;
11
+ /** @deprecated This property is no longer used please use the document_download */
8
12
  document_data?: string;
9
13
  }
10
14
  export declare const ManifestSchema: Joi.ObjectSchema<any>;
@@ -4,7 +4,7 @@ exports.ManifestSchema = exports.Manifest = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  const resource_download_1 = require("../resource-download");
7
- /** @description Basic structure of a manifest */
7
+ /** @description This model represents a single manifest created with a shipping provider. */
8
8
  class Manifest {
9
9
  }
10
10
  exports.Manifest = Manifest;
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,iDAAiD;AACjD,MAAa,QAAQ;CAKpB;AALD,4BAKC;AAEY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,iBAAiB,EAAE,0CAAsB,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC/C,CAAC,CAAC"}
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAgF;AAEhF,6FAA6F;AAC7F,MAAa,QAAQ;CASpB;AATD,4BASC;AAEY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,iBAAiB,EAAE,0CAAsB,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC/C,CAAC,CAAC"}