@shipengine/js-api 2.3.0 → 2.4.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.
package/index.js CHANGED
@@ -113,13 +113,13 @@ var CustomsContentsType = /* @__PURE__ */ ((CustomsContentsType2) => {
113
113
  CustomsContentsType2["SAMPLE"] = "sample";
114
114
  return CustomsContentsType2;
115
115
  })(CustomsContentsType || {});
116
- var MovementType = /* @__PURE__ */ ((MovementType2) => {
117
- MovementType2["B2C"] = "b2c";
118
- MovementType2["C2B"] = "c2b";
119
- MovementType2["C2C"] = "c2c";
120
- MovementType2["B2B"] = "b2b";
121
- return MovementType2;
122
- })(MovementType || {});
116
+ var MovementIndicator = /* @__PURE__ */ ((MovementIndicator2) => {
117
+ MovementIndicator2["B2B"] = "b2b";
118
+ MovementIndicator2["B2C"] = "b2c";
119
+ MovementIndicator2["C2B"] = "c2b";
120
+ MovementIndicator2["C2C"] = "c2c";
121
+ return MovementIndicator2;
122
+ })(MovementIndicator || {});
123
123
  var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
124
124
  CustomsNonDeliveryType2["RETURN_TO_SENDER"] = "return_to_sender";
125
125
  CustomsNonDeliveryType2["TREAT_AS_ABANDONED"] = "treat_as_abandoned";
@@ -127,6 +127,8 @@ var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
127
127
  })(CustomsNonDeliveryType || {});
128
128
  var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
129
129
  InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
130
+ InsuranceProviderType2["PARCELGUARD"] = "parcelguard";
131
+ InsuranceProviderType2["X_COVER"] = "x_cover";
130
132
  InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
131
133
  InsuranceProviderType2["CARRIER"] = "carrier";
132
134
  InsuranceProviderType2["THIRD_PARTY"] = "third_party";
@@ -147,7 +149,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
147
149
  MetadataCapability,
148
150
  MetadataRequirement,
149
151
  MetadataSatisfyingFormTypes,
150
- MovementType,
152
+ MovementIndicator,
151
153
  RateCardStatus
152
154
  }, Symbol.toStringTag, { value: 'Module' }));
153
155
 
@@ -21749,7 +21751,7 @@ exports.LabelsAPI = LabelsAPI;
21749
21751
  exports.MetadataCapability = MetadataCapability;
21750
21752
  exports.MetadataRequirement = MetadataRequirement;
21751
21753
  exports.MetadataSatisfyingFormTypes = MetadataSatisfyingFormTypes;
21752
- exports.MovementType = MovementType;
21754
+ exports.MovementIndicator = MovementIndicator;
21753
21755
  exports.OrderSourcesAPI = OrderSourcesAPI;
21754
21756
  exports.RateCardStatus = RateCardStatus;
21755
21757
  exports.RateCardsAPI = RateCardsAPI;
package/index.mjs CHANGED
@@ -109,13 +109,13 @@ var CustomsContentsType = /* @__PURE__ */ ((CustomsContentsType2) => {
109
109
  CustomsContentsType2["SAMPLE"] = "sample";
110
110
  return CustomsContentsType2;
111
111
  })(CustomsContentsType || {});
112
- var MovementType = /* @__PURE__ */ ((MovementType2) => {
113
- MovementType2["B2C"] = "b2c";
114
- MovementType2["C2B"] = "c2b";
115
- MovementType2["C2C"] = "c2c";
116
- MovementType2["B2B"] = "b2b";
117
- return MovementType2;
118
- })(MovementType || {});
112
+ var MovementIndicator = /* @__PURE__ */ ((MovementIndicator2) => {
113
+ MovementIndicator2["B2B"] = "b2b";
114
+ MovementIndicator2["B2C"] = "b2c";
115
+ MovementIndicator2["C2B"] = "c2b";
116
+ MovementIndicator2["C2C"] = "c2c";
117
+ return MovementIndicator2;
118
+ })(MovementIndicator || {});
119
119
  var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
120
120
  CustomsNonDeliveryType2["RETURN_TO_SENDER"] = "return_to_sender";
121
121
  CustomsNonDeliveryType2["TREAT_AS_ABANDONED"] = "treat_as_abandoned";
@@ -123,6 +123,8 @@ var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
123
123
  })(CustomsNonDeliveryType || {});
124
124
  var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
125
125
  InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
126
+ InsuranceProviderType2["PARCELGUARD"] = "parcelguard";
127
+ InsuranceProviderType2["X_COVER"] = "x_cover";
126
128
  InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
127
129
  InsuranceProviderType2["CARRIER"] = "carrier";
128
130
  InsuranceProviderType2["THIRD_PARTY"] = "third_party";
@@ -143,7 +145,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
143
145
  MetadataCapability,
144
146
  MetadataRequirement,
145
147
  MetadataSatisfyingFormTypes,
146
- MovementType,
148
+ MovementIndicator,
147
149
  RateCardStatus
148
150
  }, Symbol.toStringTag, { value: 'Module' }));
149
151
 
@@ -21727,4 +21729,4 @@ class ShipEngineAPI {
21727
21729
  }
21728
21730
  }
21729
21731
 
21730
- export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementType, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
21732
+ export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -26,11 +26,11 @@ export declare enum CustomsContentsType {
26
26
  RETURNED_GOODS = "returned_goods",
27
27
  SAMPLE = "sample"
28
28
  }
29
- export declare enum MovementType {
29
+ export declare enum MovementIndicator {
30
+ B2B = "b2b",
30
31
  B2C = "b2c",
31
32
  C2B = "c2b",
32
- C2C = "c2c",
33
- B2B = "b2b"
33
+ C2C = "c2c"
34
34
  }
35
35
  export declare enum CustomsNonDeliveryType {
36
36
  RETURN_TO_SENDER = "return_to_sender",
@@ -74,6 +74,8 @@ export type DangerousGoodsRegulationLevel = "lightly_regulated" | "fully_regulat
74
74
  export type DangerousGoodsTransportMean = "ground" | "water" | "cargo_aircraft_only" | "passenger_aircraft";
75
75
  export declare enum InsuranceProviderType {
76
76
  FUNDING_SOURCE = "funding_source",
77
+ PARCELGUARD = "parcelguard",
78
+ X_COVER = "x_cover",
77
79
  SHIPSURANCE = "shipsurance",
78
80
  CARRIER = "carrier",
79
81
  THIRD_PARTY = "third_party",
@@ -160,7 +162,7 @@ export type Customs = {
160
162
  termsOfTradeCode?: CustomsTermsOfTradeCode;
161
163
  };
162
164
  export type WindsorFrameworkDetails = {
163
- movementIndicator: MovementType;
165
+ movementIndicator: MovementIndicator;
164
166
  notAtRisk: boolean;
165
167
  };
166
168
  export interface Shipment {
@@ -172,6 +174,7 @@ export interface Shipment {
172
174
  billToCountryCode?: string;
173
175
  billToParty?: BillToParties;
174
176
  billToPostalCode?: string;
177
+ canadaDeliveredDuty?: "sender_prepay" | null;
175
178
  collectOnDelivery?: {
176
179
  paymentAmount: Money;
177
180
  paymentType: PaymentTypes;