@shipengine/js-api 1.8.1 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -138,7 +138,6 @@ export interface Product {
138
138
  description?: string;
139
139
  harmonizedTariffCode?: string;
140
140
  midCode?: string;
141
- productId?: string;
142
141
  productUrl?: string;
143
142
  quantity: number;
144
143
  sku?: string;
@@ -196,12 +195,30 @@ export type OriginTypes = "pickup" | "drop_off";
196
195
  * @category Entities
197
196
  */
198
197
  export type PaymentTypes = "any" | "cash" | "cash_equivalent" | "none";
198
+ /**
199
+ * @deprecated since July 2023
200
+ */
201
+ export interface CustomsItem {
202
+ countryOfOrigin?: string;
203
+ customsItemId?: string;
204
+ description?: string;
205
+ harmonizedTariffCode?: string;
206
+ quantity: number;
207
+ sku?: string;
208
+ skuDescription?: string;
209
+ unitOfMeasure?: string;
210
+ value: Money | number;
211
+ }
199
212
  /**
200
213
  * @category Entities
201
214
  */
202
215
  export type Customs = {
203
216
  contents: CustomsContents;
204
217
  contentsExplanation?: string;
218
+ /**
219
+ * @deprecated since July 2023
220
+ */
221
+ customsItems?: CustomsItem[];
205
222
  declaration?: string;
206
223
  importerOfRecord?: Address;
207
224
  invoiceAdditionalDetails?: CustomsInvoiceAdditionalDetails;