@shipengine/connect-carrier-api 4.11.12 → 4.12.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.
@@ -5,6 +5,7 @@ import { Currency } from '../currency';
5
5
  import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
6
6
  import { ImporterOfRecord } from '../importer-records/importer-of-record';
7
7
  import { CustomsCharges } from './customs-charges';
8
+ import { EstimatedImportCharges } from './estimated-import-charges';
8
9
  /** @description Basic structure for a customs declaration */
9
10
  export declare class Customs {
10
11
  /** @description Indicates the type of contents associated with this shipment */
@@ -29,4 +30,6 @@ export declare class Customs {
29
30
  contents_explanation?: String;
30
31
  /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
31
32
  export_declaration_number?: String;
33
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
34
+ estimated_import_charges?: EstimatedImportCharges;
32
35
  }
@@ -25,6 +25,8 @@ class Customs {
25
25
  contents_explanation;
26
26
  /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
27
27
  export_declaration_number;
28
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
29
+ estimated_import_charges;
28
30
  }
29
31
  exports.Customs = Customs;
30
32
  //# sourceMappingURL=customs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAQA,6DAA6D;AAC7D,MAAa,OAAO;IAClB,gFAAgF;IAChF,QAAQ,CAAuB;IAC/B,+FAA+F;IAC/F,YAAY,CAAsB;IAClC,0FAA0F;IAC1F,aAAa,CAAiB;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAY;IACtC,iJAAiJ;IACjJ,WAAW,CAAY;IACvB,gFAAgF;IAChF,WAAW,CAAU;IACrB,iGAAiG;IACjG,mBAAmB,CAAoB;IACvC,oGAAoG;IACpG,kBAAkB,CAAoB;IACtC,oDAAoD;IACpD,0BAA0B,CAAkB;IAC5C,sDAAsD;IACtD,oBAAoB,CAAU;IAC9B,sNAAsN;IACtN,yBAAyB,CAAU;CACpC;AAvBD,0BAuBC"}
1
+ {"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AASA,6DAA6D;AAC7D,MAAa,OAAO;IAClB,gFAAgF;IAChF,QAAQ,CAAuB;IAC/B,+FAA+F;IAC/F,YAAY,CAAsB;IAClC,0FAA0F;IAC1F,aAAa,CAAiB;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAY;IACtC,iJAAiJ;IACjJ,WAAW,CAAY;IACvB,gFAAgF;IAChF,WAAW,CAAU;IACrB,iGAAiG;IACjG,mBAAmB,CAAoB;IACvC,oGAAoG;IACpG,kBAAkB,CAAoB;IACtC,oDAAoD;IACpD,0BAA0B,CAAkB;IAC5C,sDAAsD;IACtD,oBAAoB,CAAU;IAC9B,sNAAsN;IACtN,yBAAyB,CAAU;IACnC,sNAAsN;IACtN,wBAAwB,CAA0B;CACnD;AAzBD,0BAyBC"}
@@ -0,0 +1,8 @@
1
+ import { Currency } from '../currency';
2
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
3
+ export declare class EstimatedImportCharges {
4
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
5
+ taxes?: Currency;
6
+ /** @description Estimated amount and currency of import duties. */
7
+ duties?: Currency;
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EstimatedImportCharges = void 0;
4
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
5
+ class EstimatedImportCharges {
6
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
7
+ taxes;
8
+ /** @description Estimated amount and currency of import duties. */
9
+ duties;
10
+ }
11
+ exports.EstimatedImportCharges = EstimatedImportCharges;
12
+ //# sourceMappingURL=estimated-import-charges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimated-import-charges.js","sourceRoot":"","sources":["../../../src/models/customs/estimated-import-charges.ts"],"names":[],"mappings":";;;AAEA,mNAAmN;AACnN,MAAa,sBAAsB;IACjC,iIAAiI;IACjI,KAAK,CAAY;IACjB,mEAAmE;IACnE,MAAM,CAAY;CACnB;AALD,wDAKC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.11.12",
3
+ "version": "4.12.0",
4
4
  "description": "This is the typescript/javascript definitions for carrier api",
5
5
  "homepage": "https://connect.shipengine.com",
6
6
  "main": "./lib/index.js",
@@ -44,7 +44,7 @@
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "peerDependencies": {
47
- "@shipengine/connect-runtime": "^4.8.0",
47
+ "@shipengine/connect-runtime": "^4.9.1",
48
48
  "express": "^4.18.2",
49
49
  "winston": "^3.8.2"
50
50
  }
package/spec.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Shipping API",
5
5
  "description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
6
- "version": "1.24.11"
6
+ "version": "1.25.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -1812,6 +1812,9 @@
1812
1812
  "type": "string",
1813
1813
  "description": "An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them.",
1814
1814
  "nullable": true
1815
+ },
1816
+ "estimated_import_charges": {
1817
+ "$ref": "#/components/schemas/EstimatedImportCharges"
1815
1818
  }
1816
1819
  },
1817
1820
  "additionalProperties": false
@@ -2089,6 +2092,50 @@
2089
2092
  ],
2090
2093
  "type": "string"
2091
2094
  },
2095
+ "EstimatedImportCharges": {
2096
+ "type": "object",
2097
+ "properties": {
2098
+ "taxes": {
2099
+ "required": [
2100
+ "currency",
2101
+ "amount"
2102
+ ],
2103
+ "type": "object",
2104
+ "properties": {
2105
+ "amount": {
2106
+ "type": "string",
2107
+ "description": "Decimal currency value, as a string."
2108
+ },
2109
+ "currency": {
2110
+ "type": "string",
2111
+ "description": "Alpha-3 currency code complying with ISO 4217."
2112
+ }
2113
+ },
2114
+ "description": "Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST).",
2115
+ "nullable": true
2116
+ },
2117
+ "duties": {
2118
+ "required": [
2119
+ "currency",
2120
+ "amount"
2121
+ ],
2122
+ "type": "object",
2123
+ "properties": {
2124
+ "amount": {
2125
+ "type": "string",
2126
+ "description": "Decimal currency value, as a string."
2127
+ },
2128
+ "currency": {
2129
+ "type": "string",
2130
+ "description": "Alpha-3 currency code complying with ISO 4217."
2131
+ }
2132
+ },
2133
+ "description": "Estimated amount and currency of import duties.",
2134
+ "nullable": true
2135
+ }
2136
+ },
2137
+ "additionalProperties": false
2138
+ },
2092
2139
  "ExampleRegisterRequest": {
2093
2140
  "type": "object",
2094
2141
  "additionalProperties": false
@@ -3076,51 +3123,6 @@
3076
3123
  ],
3077
3124
  "type": "string"
3078
3125
  },
3079
- "UnitOfMeasureEnum": {
3080
- "enum": [
3081
- "barrel",
3082
- "bundle",
3083
- "bag",
3084
- "bunch",
3085
- "box",
3086
- "bolt",
3087
- "butt",
3088
- "canister",
3089
- "centimeter",
3090
- "container",
3091
- "crate",
3092
- "case",
3093
- "carton",
3094
- "cylinder",
3095
- "dozen",
3096
- "each",
3097
- "envelope",
3098
- "feet",
3099
- "kilogram",
3100
- "kilograms",
3101
- "pound",
3102
- "pounds",
3103
- "liter",
3104
- "meter",
3105
- "number",
3106
- "packet",
3107
- "pallet",
3108
- "piece",
3109
- "pieces",
3110
- "proof_liters",
3111
- "package",
3112
- "pair",
3113
- "pairs",
3114
- "roll",
3115
- "set",
3116
- "square_meters",
3117
- "square_yards",
3118
- "tube",
3119
- "yard",
3120
- "other"
3121
- ],
3122
- "type": "string"
3123
- },
3124
3126
  "PaperlessDetails": {
3125
3127
  "type": "object",
3126
3128
  "properties": {
@@ -3477,7 +3479,6 @@
3477
3479
  },
3478
3480
  "guaranteed_delivery_days": {
3479
3481
  "type": "integer",
3480
- "description": "Guaranteed delivery days. The number of days it will take for the package to be delivered. <example>1</example>",
3481
3482
  "format": "int32",
3482
3483
  "nullable": true
3483
3484
  }
@@ -4432,14 +4433,14 @@
4432
4433
  },
4433
4434
  "start_window": {
4434
4435
  "type": "string",
4435
- "description": "The start of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with local offset)",
4436
+ "description": "The start of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format,with offset)",
4436
4437
  "format": "date-time",
4437
4438
  "nullable": true,
4438
4439
  "example": "2021-08-20T14:38:36.859237-05:00"
4439
4440
  },
4440
4441
  "end_window": {
4441
4442
  "type": "string",
4442
- "description": "The end of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with local offset)",
4443
+ "description": "The end of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with offset)",
4443
4444
  "format": "date-time",
4444
4445
  "nullable": true,
4445
4446
  "example": "2021-08-20T18:38:36.859237-05:00"
@@ -4717,6 +4718,51 @@
4717
4718
  ],
4718
4719
  "type": "string"
4719
4720
  },
4721
+ "UnitOfMeasureEnum": {
4722
+ "enum": [
4723
+ "barrel",
4724
+ "bundle",
4725
+ "bag",
4726
+ "bunch",
4727
+ "box",
4728
+ "bolt",
4729
+ "butt",
4730
+ "canister",
4731
+ "centimeter",
4732
+ "container",
4733
+ "crate",
4734
+ "case",
4735
+ "carton",
4736
+ "cylinder",
4737
+ "dozen",
4738
+ "each",
4739
+ "envelope",
4740
+ "feet",
4741
+ "kilogram",
4742
+ "kilograms",
4743
+ "pound",
4744
+ "pounds",
4745
+ "liter",
4746
+ "meter",
4747
+ "number",
4748
+ "packet",
4749
+ "pallet",
4750
+ "piece",
4751
+ "pieces",
4752
+ "proof_liters",
4753
+ "package",
4754
+ "pair",
4755
+ "pairs",
4756
+ "roll",
4757
+ "set",
4758
+ "square_meters",
4759
+ "square_yards",
4760
+ "tube",
4761
+ "yard",
4762
+ "other"
4763
+ ],
4764
+ "type": "string"
4765
+ },
4720
4766
  "UpdateMethods": {
4721
4767
  "enum": [
4722
4768
  "append",
@@ -5149,4 +5195,4 @@
5149
5195
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5150
5196
  }
5151
5197
  ]
5152
- }
5198
+ }
@@ -5,6 +5,7 @@ import { Currency } from '../currency';
5
5
  import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
6
6
  import { ImporterOfRecord } from '../importer-records/importer-of-record';
7
7
  import { CustomsCharges } from './customs-charges';
8
+ import { EstimatedImportCharges } from './estimated-import-charges';
8
9
 
9
10
  /** @description Basic structure for a customs declaration */
10
11
  export class Customs {
@@ -30,4 +31,6 @@ export class Customs {
30
31
  contents_explanation?: String;
31
32
  /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
32
33
  export_declaration_number?: String;
34
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
35
+ estimated_import_charges?: EstimatedImportCharges;
33
36
  }
@@ -0,0 +1,9 @@
1
+ import { Currency } from '../currency';
2
+
3
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
4
+ export class EstimatedImportCharges {
5
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
6
+ taxes?: Currency;
7
+ /** @description Estimated amount and currency of import duties. */
8
+ duties?: Currency;
9
+ }