@shipengine/js-api 1.8.1 → 1.10.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.10.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -135,10 +135,9 @@ export type TaxableIdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "io
135
135
  export interface Product {
136
136
  countryOfOrigin?: string;
137
137
  dangerousGoods?: DangerousGoods;
138
- description?: string;
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,31 @@ 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
+ valueCurrency?: string;
212
+ }
199
213
  /**
200
214
  * @category Entities
201
215
  */
202
216
  export type Customs = {
203
217
  contents: CustomsContents;
204
218
  contentsExplanation?: string;
219
+ /**
220
+ * @deprecated since July 2023
221
+ */
222
+ customsItems?: CustomsItem[];
205
223
  declaration?: string;
206
224
  importerOfRecord?: Address;
207
225
  invoiceAdditionalDetails?: CustomsInvoiceAdditionalDetails;