@shipengine/connect-carrier-api 4.1.6 → 4.1.8
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/lib/models/advanced-options.d.ts +2 -0
- package/lib/models/advanced-options.js +2 -0
- package/lib/models/advanced-options.js.map +1 -1
- package/lib/models/package.d.ts +3 -3
- package/lib/models/package.js +2 -2
- package/lib/models/package.js.map +1 -1
- package/lib/models/products.d.ts +30 -0
- package/lib/models/products.js +32 -0
- package/lib/models/products.js.map +1 -0
- package/package.json +1 -1
- package/spec.json +95 -5
- package/src/models/advanced-options.ts +2 -0
- package/src/models/package.ts +3 -3
- package/src/models/products.ts +31 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -18,6 +18,8 @@ export declare class AdvancedOptions {
|
|
|
18
18
|
additional_handling?: boolean;
|
|
19
19
|
/** @description Describes details for Collect on Delivery (COD) if requested for the shipment */
|
|
20
20
|
collect_on_delivery?: CollectOnDelivery;
|
|
21
|
+
/** @description Whether client is requesting the ability to upload documents like commercial invoice after the shipment has been processed */
|
|
22
|
+
own_document_upload?: boolean;
|
|
21
23
|
/** @description Any other custom shipping options */
|
|
22
24
|
[key: string]: any;
|
|
23
25
|
}
|
|
@@ -19,6 +19,8 @@ class AdvancedOptions {
|
|
|
19
19
|
additional_handling;
|
|
20
20
|
/** @description Describes details for Collect on Delivery (COD) if requested for the shipment */
|
|
21
21
|
collect_on_delivery;
|
|
22
|
+
/** @description Whether client is requesting the ability to upload documents like commercial invoice after the shipment has been processed */
|
|
23
|
+
own_document_upload;
|
|
22
24
|
}
|
|
23
25
|
exports.AdvancedOptions = AdvancedOptions;
|
|
24
26
|
//# sourceMappingURL=advanced-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AAGA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,yDAAyD;IACzD,gBAAgB,CAAW;IAC3B,iEAAiE;IACjE,UAAU,CAAW;IACrB,oEAAoE;IACpE,cAAc,CAAW;IACzB,8EAA8E;IAC9E,qBAAqB,CAAW;IAChC,6DAA6D;IAC7D,iBAAiB,CAAW;IAC5B,iGAAiG;IACjG,GAAG,CAAY;IACf,wFAAwF;IACxF,mBAAmB,CAAW;IAC9B,iGAAiG;IACjG,mBAAmB,CAAqB;
|
|
1
|
+
{"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AAGA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,yDAAyD;IACzD,gBAAgB,CAAW;IAC3B,iEAAiE;IACjE,UAAU,CAAW;IACrB,oEAAoE;IACpE,cAAc,CAAW;IACzB,8EAA8E;IAC9E,qBAAqB,CAAW;IAChC,6DAA6D;IAC7D,iBAAiB,CAAW;IAC5B,iGAAiG;IACjG,GAAG,CAAY;IACf,wFAAwF;IACxF,mBAAmB,CAAW;IAC9B,iGAAiG;IACjG,mBAAmB,CAAqB;IACxC,8IAA8I;IAC9I,mBAAmB,CAAW;CAG/B;AArBD,0CAqBC"}
|
package/lib/models/package.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { WeightDetails } from './units/weight-details';
|
|
|
3
3
|
import { Currency } from './currency';
|
|
4
4
|
import { LabelMessage } from './labels/label-message';
|
|
5
5
|
import { Customs } from './customs';
|
|
6
|
-
import {
|
|
6
|
+
import { Products } from './products';
|
|
7
7
|
/** @description Basic structure for a package */
|
|
8
8
|
export declare class Package {
|
|
9
9
|
/** @description Package code defined for the carrier in ShipEngine. */
|
|
@@ -20,6 +20,6 @@ export declare class Package {
|
|
|
20
20
|
label_messages?: LabelMessage;
|
|
21
21
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
22
22
|
customs?: Customs;
|
|
23
|
-
/** @description List of
|
|
24
|
-
|
|
23
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
24
|
+
products?: Products[];
|
|
25
25
|
}
|
package/lib/models/package.js
CHANGED
|
@@ -17,8 +17,8 @@ class Package {
|
|
|
17
17
|
label_messages;
|
|
18
18
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
19
19
|
customs;
|
|
20
|
-
/** @description List of
|
|
21
|
-
|
|
20
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
21
|
+
products;
|
|
22
22
|
}
|
|
23
23
|
exports.Package = Package;
|
|
24
24
|
//# sourceMappingURL=package.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/models/package.ts"],"names":[],"mappings":";;;AAOA,iDAAiD;AACjD,MAAa,OAAO;IAClB,uEAAuE;IACvE,YAAY,CAAU;IACtB,sIAAsI;IACtI,mBAAmB,CAAU;IAC7B,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;IAClB,
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/models/package.ts"],"names":[],"mappings":";;;AAOA,iDAAiD;AACjD,MAAa,OAAO;IAClB,uEAAuE;IACvE,YAAY,CAAU;IACtB,sIAAsI;IACtI,mBAAmB,CAAU;IAC7B,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;IAClB,oGAAoG;IACpG,QAAQ,CAAc;CACvB;AAjBD,0BAiBC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WeightDetails } from './units/weight-details';
|
|
2
|
+
import { Currency } from './currency';
|
|
3
|
+
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
|
+
/** @description Basic structure for a product */
|
|
5
|
+
export declare class Products {
|
|
6
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
9
|
+
quantity?: number;
|
|
10
|
+
/** @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 */
|
|
11
|
+
value?: Currency;
|
|
12
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
13
|
+
country_of_origin?: string;
|
|
14
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
15
|
+
harmonized_tariff_code?: string;
|
|
16
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
17
|
+
sku?: string;
|
|
18
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
19
|
+
sku_description?: string;
|
|
20
|
+
/** @description Detailed information about the weight of this item */
|
|
21
|
+
item_weight?: WeightDetails;
|
|
22
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
23
|
+
product_url?: string;
|
|
24
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
25
|
+
vat_rate?: number;
|
|
26
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
27
|
+
mid_code?: string;
|
|
28
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
|
+
dangerous_goods?: DangerousGoods[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Products = void 0;
|
|
4
|
+
/** @description Basic structure for a product */
|
|
5
|
+
class Products {
|
|
6
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
7
|
+
description;
|
|
8
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
9
|
+
quantity;
|
|
10
|
+
/** @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 */
|
|
11
|
+
value;
|
|
12
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
13
|
+
country_of_origin;
|
|
14
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
15
|
+
harmonized_tariff_code;
|
|
16
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
17
|
+
sku;
|
|
18
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
19
|
+
sku_description;
|
|
20
|
+
/** @description Detailed information about the weight of this item */
|
|
21
|
+
item_weight;
|
|
22
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
23
|
+
product_url;
|
|
24
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
25
|
+
vat_rate;
|
|
26
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
27
|
+
mid_code;
|
|
28
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
|
+
dangerous_goods;
|
|
30
|
+
}
|
|
31
|
+
exports.Products = Products;
|
|
32
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/models/products.ts"],"names":[],"mappings":";;;AAIA,iDAAiD;AACjD,MAAa,QAAQ;IACnB,mJAAmJ;IACnJ,WAAW,CAAU;IACrB,4GAA4G;IAC5G,QAAQ,CAAU;IAClB,mKAAmK;IACnK,KAAK,CAAY;IACjB,sFAAsF;IACtF,iBAAiB,CAAU;IAC3B,8GAA8G;IAC9G,sBAAsB,CAAU;IAChC,oGAAoG;IACpG,GAAG,CAAU;IACb,gHAAgH;IAChH,eAAe,CAAU;IACzB,sEAAsE;IACtE,WAAW,CAAiB;IAC5B,0LAA0L;IAC1L,WAAW,CAAU;IACrB,oHAAoH;IACpH,QAAQ,CAAU;IAClB,yNAAyN;IACzN,QAAQ,CAAU;IAClB,qGAAqG;IACrG,eAAe,CAAoB;CACpC;AAzBD,4BAyBC"}
|
package/package.json
CHANGED
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.18.
|
|
6
|
+
"version": "1.18.7"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -792,6 +792,10 @@
|
|
|
792
792
|
},
|
|
793
793
|
"collect_on_delivery": {
|
|
794
794
|
"$ref": "#/components/schemas/CollectOnDelivery"
|
|
795
|
+
},
|
|
796
|
+
"own_document_upload": {
|
|
797
|
+
"type": "boolean",
|
|
798
|
+
"description": "Describes whether client is requesting the ability to upload documents like commercial invoice after the shipment has been processed"
|
|
795
799
|
}
|
|
796
800
|
},
|
|
797
801
|
"additionalProperties": { },
|
|
@@ -2914,12 +2918,12 @@
|
|
|
2914
2918
|
"customs": {
|
|
2915
2919
|
"$ref": "#/components/schemas/Customs"
|
|
2916
2920
|
},
|
|
2917
|
-
"
|
|
2921
|
+
"products": {
|
|
2918
2922
|
"type": "array",
|
|
2919
2923
|
"items": {
|
|
2920
|
-
"$ref": "#/components/schemas/
|
|
2924
|
+
"$ref": "#/components/schemas/Products"
|
|
2921
2925
|
},
|
|
2922
|
-
"description": "List of
|
|
2926
|
+
"description": "List of products associated with this package.",
|
|
2923
2927
|
"nullable": true
|
|
2924
2928
|
}
|
|
2925
2929
|
},
|
|
@@ -3091,6 +3095,92 @@
|
|
|
3091
3095
|
"additionalProperties": false,
|
|
3092
3096
|
"description": "This model represents a window of time a pickup could be made."
|
|
3093
3097
|
},
|
|
3098
|
+
"Products": {
|
|
3099
|
+
"required": [
|
|
3100
|
+
"value"
|
|
3101
|
+
],
|
|
3102
|
+
"type": "object",
|
|
3103
|
+
"properties": {
|
|
3104
|
+
"description": {
|
|
3105
|
+
"type": "string",
|
|
3106
|
+
"description": "A user specified free form string describing this customs item. If the field is absent the user has\r\nnot specified a description.",
|
|
3107
|
+
"nullable": true
|
|
3108
|
+
},
|
|
3109
|
+
"quantity": {
|
|
3110
|
+
"type": "integer",
|
|
3111
|
+
"description": "The user specified count of items in this declaration. This value should be 1 or greater",
|
|
3112
|
+
"format": "int32"
|
|
3113
|
+
},
|
|
3114
|
+
"value": {
|
|
3115
|
+
"required": [
|
|
3116
|
+
"currency",
|
|
3117
|
+
"amount"
|
|
3118
|
+
],
|
|
3119
|
+
"type": "object",
|
|
3120
|
+
"properties": {
|
|
3121
|
+
"amount": {
|
|
3122
|
+
"type": "string",
|
|
3123
|
+
"description": "Decimal currency value, as a string."
|
|
3124
|
+
},
|
|
3125
|
+
"currency": {
|
|
3126
|
+
"type": "string",
|
|
3127
|
+
"description": "Alpha-3 currency code complying with ISO 4217."
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
"description": "The user specified declared customs value of this customs item. Generally, this value needs to be greater\r\nthan 0 to be accepted through customs.",
|
|
3131
|
+
"nullable": true
|
|
3132
|
+
},
|
|
3133
|
+
"country_of_origin": {
|
|
3134
|
+
"type": "string",
|
|
3135
|
+
"description": "The user specified declared country of origin of this customs item.",
|
|
3136
|
+
"nullable": true
|
|
3137
|
+
},
|
|
3138
|
+
"harmonized_tariff_code": {
|
|
3139
|
+
"type": "string",
|
|
3140
|
+
"description": "The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information.",
|
|
3141
|
+
"nullable": true
|
|
3142
|
+
},
|
|
3143
|
+
"sku": {
|
|
3144
|
+
"type": "string",
|
|
3145
|
+
"description": "The user specified SKU of this customs item. This field is completely free form.",
|
|
3146
|
+
"nullable": true
|
|
3147
|
+
},
|
|
3148
|
+
"sku_description": {
|
|
3149
|
+
"type": "string",
|
|
3150
|
+
"description": "The user specified SKU description of this customs item. This field is completely free form.",
|
|
3151
|
+
"nullable": true
|
|
3152
|
+
},
|
|
3153
|
+
"item_weight": {
|
|
3154
|
+
"$ref": "#/components/schemas/WeightDetails"
|
|
3155
|
+
},
|
|
3156
|
+
"product_url": {
|
|
3157
|
+
"type": "string",
|
|
3158
|
+
"description": "A link to the item being shipped on the seller's website, used by customs officials\r\nto visually compare the item in the package to the available photo on the website.",
|
|
3159
|
+
"nullable": true
|
|
3160
|
+
},
|
|
3161
|
+
"vat_rate": {
|
|
3162
|
+
"type": "number",
|
|
3163
|
+
"description": "The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1.",
|
|
3164
|
+
"format": "double",
|
|
3165
|
+
"nullable": true
|
|
3166
|
+
},
|
|
3167
|
+
"mid_code": {
|
|
3168
|
+
"type": "string",
|
|
3169
|
+
"description": "The Manufacturer Identification Code (MID). It is ussed as an alternative to the full\r\nname and address of a manufacturer, shipper or exporter and is always required for\r\nU.S. formal customs entries.",
|
|
3170
|
+
"nullable": true
|
|
3171
|
+
},
|
|
3172
|
+
"dangerous_goods": {
|
|
3173
|
+
"type": "array",
|
|
3174
|
+
"items": {
|
|
3175
|
+
"$ref": "#/components/schemas/DangerousGoods"
|
|
3176
|
+
},
|
|
3177
|
+
"description": "List of dangerous Goods model associated with this package passed to the carrier.",
|
|
3178
|
+
"nullable": true
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
"additionalProperties": false,
|
|
3182
|
+
"description": "This model represents the product information for a single item."
|
|
3183
|
+
},
|
|
3094
3184
|
"PudoLocation": {
|
|
3095
3185
|
"required": [
|
|
3096
3186
|
"postal_code",
|
|
@@ -4538,4 +4628,4 @@
|
|
|
4538
4628
|
"description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
|
|
4539
4629
|
}
|
|
4540
4630
|
]
|
|
4541
|
-
}
|
|
4631
|
+
}
|
|
@@ -19,6 +19,8 @@ export class AdvancedOptions {
|
|
|
19
19
|
additional_handling?: boolean;
|
|
20
20
|
/** @description Describes details for Collect on Delivery (COD) if requested for the shipment */
|
|
21
21
|
collect_on_delivery?: CollectOnDelivery;
|
|
22
|
+
/** @description Whether client is requesting the ability to upload documents like commercial invoice after the shipment has been processed */
|
|
23
|
+
own_document_upload?: boolean;
|
|
22
24
|
/** @description Any other custom shipping options */
|
|
23
25
|
[key: string]: any;
|
|
24
26
|
}
|
package/src/models/package.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { WeightDetails } from './units/weight-details';
|
|
|
3
3
|
import { Currency } from './currency';
|
|
4
4
|
import { LabelMessage } from './labels/label-message';
|
|
5
5
|
import { Customs } from './customs';
|
|
6
|
-
import {
|
|
6
|
+
import { Products } from './products';
|
|
7
7
|
|
|
8
8
|
/** @description Basic structure for a package */
|
|
9
9
|
export class Package {
|
|
@@ -21,6 +21,6 @@ export class Package {
|
|
|
21
21
|
label_messages?: LabelMessage;
|
|
22
22
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
23
23
|
customs?: Customs;
|
|
24
|
-
/** @description List of
|
|
25
|
-
|
|
24
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
25
|
+
products?: Products[];
|
|
26
26
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WeightDetails } from './units/weight-details';
|
|
2
|
+
import { Currency } from './currency';
|
|
3
|
+
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
|
+
|
|
5
|
+
/** @description Basic structure for a product */
|
|
6
|
+
export class Products {
|
|
7
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
10
|
+
quantity?: number;
|
|
11
|
+
/** @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 */
|
|
12
|
+
value?: Currency;
|
|
13
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
14
|
+
country_of_origin?: string;
|
|
15
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
16
|
+
harmonized_tariff_code?: string;
|
|
17
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
18
|
+
sku?: string;
|
|
19
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
20
|
+
sku_description?: string;
|
|
21
|
+
/** @description Detailed information about the weight of this item */
|
|
22
|
+
item_weight?: WeightDetails;
|
|
23
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
24
|
+
product_url?: string;
|
|
25
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
26
|
+
vat_rate?: number;
|
|
27
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
28
|
+
mid_code?: string;
|
|
29
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
30
|
+
dangerous_goods?: DangerousGoods[];
|
|
31
|
+
}
|