@shipengine/connect-carrier-api 4.16.0 → 4.16.2
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/billing/billing-categories.d.ts +13 -1
- package/lib/models/billing/billing-categories.js +12 -0
- package/lib/models/billing/billing-categories.js.map +1 -1
- package/lib/models/rates/rate.d.ts +3 -0
- package/lib/models/rates/rate.js +2 -0
- package/lib/models/rates/rate.js.map +1 -1
- package/lib/models/units/carrier-weight.d.ts +8 -0
- package/lib/models/units/carrier-weight.js +12 -0
- package/lib/models/units/carrier-weight.js.map +1 -0
- package/lib/responses/create-label-response.d.ts +2 -0
- package/lib/responses/create-label-response.js +1 -0
- package/lib/responses/create-label-response.js.map +1 -1
- package/package.json +2 -2
- package/spec.json +20 -0
- package/src/models/billing/billing-categories.ts +12 -0
- package/src/models/rates/rate.ts +3 -0
- package/src/models/units/carrier-weight.ts +9 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -21,5 +21,17 @@ export declare enum BillingCategories {
|
|
|
21
21
|
Returns = "returns",
|
|
22
22
|
Notifications = "notifications",
|
|
23
23
|
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
24
|
-
Tip = "tip"
|
|
24
|
+
Tip = "tip",
|
|
25
|
+
/** @description Duties and taxes charged for the shipment; used if DDP is chosen and the carrier supports passing back the estimated duties and taxes for the shipment. */
|
|
26
|
+
DutiesAndTaxes = "duties_and_taxes",
|
|
27
|
+
/** @description Fee for managing the import/export process, often separate from duties and taxes. */
|
|
28
|
+
BrokerageFee = "brokerage_fee",
|
|
29
|
+
/** @description Penalty for providing incorrect information when creating the shipment. For Adjustments use only. */
|
|
30
|
+
AdminFee = "admin_fee",
|
|
31
|
+
/** @description Carrier-assessed adjustment different from the original quote. For Adjustments use only. */
|
|
32
|
+
Adjustment = "adjustment",
|
|
33
|
+
/** @description Auctane service fee charged to the merchant for using the Auctane Fulfillment Logistics Wallet service. For Adjustments use only. */
|
|
34
|
+
AuctaneServiceFee = "auctane_service_fee",
|
|
35
|
+
/** @description Auctane Fulfillment Provider's price to charge the merchant for fulfilling the order. For Adjustments use only. */
|
|
36
|
+
ProductPrice = "product_price"
|
|
25
37
|
}
|
|
@@ -26,5 +26,17 @@ var BillingCategories;
|
|
|
26
26
|
BillingCategories["Notifications"] = "notifications";
|
|
27
27
|
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
28
28
|
BillingCategories["Tip"] = "tip";
|
|
29
|
+
/** @description Duties and taxes charged for the shipment; used if DDP is chosen and the carrier supports passing back the estimated duties and taxes for the shipment. */
|
|
30
|
+
BillingCategories["DutiesAndTaxes"] = "duties_and_taxes";
|
|
31
|
+
/** @description Fee for managing the import/export process, often separate from duties and taxes. */
|
|
32
|
+
BillingCategories["BrokerageFee"] = "brokerage_fee";
|
|
33
|
+
/** @description Penalty for providing incorrect information when creating the shipment. For Adjustments use only. */
|
|
34
|
+
BillingCategories["AdminFee"] = "admin_fee";
|
|
35
|
+
/** @description Carrier-assessed adjustment different from the original quote. For Adjustments use only. */
|
|
36
|
+
BillingCategories["Adjustment"] = "adjustment";
|
|
37
|
+
/** @description Auctane service fee charged to the merchant for using the Auctane Fulfillment Logistics Wallet service. For Adjustments use only. */
|
|
38
|
+
BillingCategories["AuctaneServiceFee"] = "auctane_service_fee";
|
|
39
|
+
/** @description Auctane Fulfillment Provider's price to charge the merchant for fulfilling the order. For Adjustments use only. */
|
|
40
|
+
BillingCategories["ProductPrice"] = "product_price";
|
|
29
41
|
})(BillingCategories || (exports.BillingCategories = BillingCategories = {}));
|
|
30
42
|
//# sourceMappingURL=billing-categories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,IAAY,
|
|
1
|
+
{"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,IAAY,iBAmCX;AAnCD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oFAAoF;IACpF,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,+CAA0B,CAAA;IAC1B,uDAAkC,CAAA;IAClC,sCAAiB,CAAA;IACjB,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,mDAA8B,CAAA;IAC9B,sCAAiB,CAAA;IACjB,wEAAwE;IACxE,iDAA4B,CAAA;IAC5B,iDAAiD;IACjD,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,iGAAiG;IACjG,gCAAW,CAAA;IACX,2KAA2K;IAC3K,wDAAmC,CAAA;IACnC,qGAAqG;IACrG,mDAA8B,CAAA;IAC9B,qHAAqH;IACrH,2CAAsB,CAAA;IACtB,4GAA4G;IAC5G,8CAAyB,CAAA;IACzB,qJAAqJ;IACrJ,8DAAyC,CAAA;IACzC,mIAAmI;IACnI,mDAA8B,CAAA;AAChC,CAAC,EAnCW,iBAAiB,iCAAjB,iBAAiB,QAmC5B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
2
|
import { TimeWindow } from '../time-window';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
/** @description Basic structure for a rate */
|
|
4
5
|
export declare class Rate {
|
|
5
6
|
/** @description The service code uniquely identifies a shipping service that you offer. Which service codes can be passed to you will be configured in ShipEngine. If this field is missing, the rate will be discarded. */
|
|
@@ -32,4 +33,6 @@ export declare class Rate {
|
|
|
32
33
|
zone?: string;
|
|
33
34
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
34
35
|
guaranteed_delivery_days?: number;
|
|
36
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
37
|
+
carrier_weight?: CarrierWeight;
|
|
35
38
|
}
|
package/lib/models/rates/rate.js
CHANGED
|
@@ -33,6 +33,8 @@ class Rate {
|
|
|
33
33
|
zone;
|
|
34
34
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
35
35
|
guaranteed_delivery_days;
|
|
36
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
37
|
+
carrier_weight;
|
|
36
38
|
}
|
|
37
39
|
exports.Rate = Rate;
|
|
38
40
|
//# sourceMappingURL=rate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":";;;AAIA,8CAA8C;AAC9C,MAAa,IAAI;IACf,4NAA4N;IAC5N,YAAY,CAAU;IACtB,wDAAwD;IACxD,aAAa,CAAU;IACvB,8DAA8D;IAC9D,2BAA2B,CAAU;IACrC,qDAAqD;IACrD,kBAAkB,CAAqB;IACvC,iFAAiF;IACjF,cAAc,CAAY;IAC1B,mFAAmF;IACnF,gBAAgB,CAAY;IAC5B,+CAA+C;IAC/C,eAAe,CAAW;IAC1B,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,0DAA0D;IAC1D,eAAe,CAAU;IACzB,2JAA2J;IAC3J,mBAAmB,CAAU;IAC7B,yFAAyF;IACzF,uBAAuB,CAAU;IACjC,iDAAiD;IACjD,YAAY,CAAU;IACtB,6CAA6C;IAC7C,IAAI,CAAU;IACd,6GAA6G;IAC7G,wBAAwB,CAAU;IAClC,oJAAoJ;IACpJ,cAAc,CAAiB;CAChC;AAjCD,oBAiCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WeightUnit } from './weight-unit';
|
|
2
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
3
|
+
export declare class CarrierWeight {
|
|
4
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
5
|
+
value?: number;
|
|
6
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
7
|
+
unit: WeightUnit;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarrierWeight = void 0;
|
|
4
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
5
|
+
class CarrierWeight {
|
|
6
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
7
|
+
value;
|
|
8
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
9
|
+
unit;
|
|
10
|
+
}
|
|
11
|
+
exports.CarrierWeight = CarrierWeight;
|
|
12
|
+
//# sourceMappingURL=carrier-weight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carrier-weight.js","sourceRoot":"","sources":["../../../src/models/units/carrier-weight.ts"],"names":[],"mappings":";;;AAEA,kHAAkH;AAClH,MAAa,aAAa;IACxB,sJAAsJ;IACtJ,KAAK,CAAU;IACf,iHAAiH;IACjH,IAAI,CAAc;CACnB;AALD,sCAKC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseResponse } from './base-response';
|
|
2
2
|
import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails, PudoLocation } from '../models';
|
|
3
|
+
import { CarrierWeight } from '../models/units/carrier-weight';
|
|
3
4
|
/** @description Basic structure for a response to create a label */
|
|
4
5
|
export declare class CreateLabelResponse extends BaseResponse {
|
|
5
6
|
transaction_id: string;
|
|
@@ -22,4 +23,5 @@ export declare class CreateLabelResponse extends BaseResponse {
|
|
|
22
23
|
relay_points?: RelayPointDetails;
|
|
23
24
|
dropoff_location?: PudoLocation;
|
|
24
25
|
pickup_location?: PudoLocation;
|
|
26
|
+
carrier_weight?: CarrierWeight;
|
|
25
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAe/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,cAAc,CAAiB;CAChC;AAtBD,kDAsBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/connect-carrier-api",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.2",
|
|
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.10.
|
|
47
|
+
"@shipengine/connect-runtime": "^4.10.1",
|
|
48
48
|
"express": "^4.18.2",
|
|
49
49
|
"winston": "^3.8.2"
|
|
50
50
|
}
|
package/spec.json
CHANGED
|
@@ -1218,6 +1218,20 @@
|
|
|
1218
1218
|
"type": "string",
|
|
1219
1219
|
"description": "An enumeration of common reasons cancellations occur"
|
|
1220
1220
|
},
|
|
1221
|
+
"CarrierWeight": {
|
|
1222
|
+
"type": "object",
|
|
1223
|
+
"properties": {
|
|
1224
|
+
"value": {
|
|
1225
|
+
"type": "number",
|
|
1226
|
+
"description": "The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes.",
|
|
1227
|
+
"format": "double"
|
|
1228
|
+
},
|
|
1229
|
+
"unit": {
|
|
1230
|
+
"$ref": "#/components/schemas/WeightUnit"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"additionalProperties": false
|
|
1234
|
+
},
|
|
1221
1235
|
"CodPaymentType": {
|
|
1222
1236
|
"enum": [
|
|
1223
1237
|
"any",
|
|
@@ -1489,6 +1503,9 @@
|
|
|
1489
1503
|
},
|
|
1490
1504
|
"paperless_details": {
|
|
1491
1505
|
"$ref": "#/components/schemas/PaperlessDetails"
|
|
1506
|
+
},
|
|
1507
|
+
"carrier_weight": {
|
|
1508
|
+
"$ref": "#/components/schemas/CarrierWeight"
|
|
1492
1509
|
}
|
|
1493
1510
|
},
|
|
1494
1511
|
"additionalProperties": false,
|
|
@@ -3528,6 +3545,9 @@
|
|
|
3528
3545
|
"type": "integer",
|
|
3529
3546
|
"format": "int32",
|
|
3530
3547
|
"nullable": true
|
|
3548
|
+
},
|
|
3549
|
+
"carrier_weight": {
|
|
3550
|
+
"$ref": "#/components/schemas/CarrierWeight"
|
|
3531
3551
|
}
|
|
3532
3552
|
},
|
|
3533
3553
|
"additionalProperties": false,
|
|
@@ -22,4 +22,16 @@ export enum BillingCategories {
|
|
|
22
22
|
Notifications = 'notifications',
|
|
23
23
|
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
24
24
|
Tip = 'tip',
|
|
25
|
+
/** @description Duties and taxes charged for the shipment; used if DDP is chosen and the carrier supports passing back the estimated duties and taxes for the shipment. */
|
|
26
|
+
DutiesAndTaxes = 'duties_and_taxes',
|
|
27
|
+
/** @description Fee for managing the import/export process, often separate from duties and taxes. */
|
|
28
|
+
BrokerageFee = 'brokerage_fee',
|
|
29
|
+
/** @description Penalty for providing incorrect information when creating the shipment. For Adjustments use only. */
|
|
30
|
+
AdminFee = 'admin_fee',
|
|
31
|
+
/** @description Carrier-assessed adjustment different from the original quote. For Adjustments use only. */
|
|
32
|
+
Adjustment = 'adjustment',
|
|
33
|
+
/** @description Auctane service fee charged to the merchant for using the Auctane Fulfillment Logistics Wallet service. For Adjustments use only. */
|
|
34
|
+
AuctaneServiceFee = 'auctane_service_fee',
|
|
35
|
+
/** @description Auctane Fulfillment Provider's price to charge the merchant for fulfilling the order. For Adjustments use only. */
|
|
36
|
+
ProductPrice = 'product_price',
|
|
25
37
|
}
|
package/src/models/rates/rate.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
2
|
import { TimeWindow } from '../time-window';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
|
|
4
5
|
/** @description Basic structure for a rate */
|
|
5
6
|
export class Rate {
|
|
@@ -33,4 +34,6 @@ export class Rate {
|
|
|
33
34
|
zone?: string;
|
|
34
35
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
35
36
|
guaranteed_delivery_days?: number;
|
|
37
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
38
|
+
carrier_weight?: CarrierWeight;
|
|
36
39
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WeightUnit } from './weight-unit';
|
|
2
|
+
|
|
3
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
4
|
+
export class CarrierWeight {
|
|
5
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
8
|
+
unit!: WeightUnit;
|
|
9
|
+
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
PaperlessDetails,
|
|
12
12
|
PudoLocation,
|
|
13
13
|
} from '../models';
|
|
14
|
+
import { CarrierWeight } from '../models/units/carrier-weight';
|
|
14
15
|
|
|
15
16
|
/** @description Basic structure for a response to create a label */
|
|
16
17
|
export class CreateLabelResponse extends BaseResponse {
|
|
@@ -34,4 +35,5 @@ export class CreateLabelResponse extends BaseResponse {
|
|
|
34
35
|
relay_points?: RelayPointDetails;
|
|
35
36
|
dropoff_location?: PudoLocation;
|
|
36
37
|
pickup_location?: PudoLocation;
|
|
38
|
+
carrier_weight?: CarrierWeight;
|
|
37
39
|
}
|