@shipengine/connect-carrier-api 4.0.0-beta.3 → 4.0.1
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/README.md +10 -18
- package/lib/app/create-endpoint-mapping.js +2 -0
- package/lib/app/create-endpoint-mapping.js.map +1 -1
- package/lib/carrier-app.d.ts +7 -0
- package/lib/carrier-app.js +15 -0
- package/lib/carrier-app.js.map +1 -0
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +6 -0
- package/lib/constants.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/models/advanced-options.d.ts +5 -0
- package/lib/models/advanced-options.js.map +1 -1
- package/lib/models/bill-to.d.ts +14 -0
- package/lib/models/bill-to.js +14 -0
- package/lib/models/bill-to.js.map +1 -0
- package/lib/models/billing/billing-to-party.d.ts +10 -0
- package/lib/models/billing/billing-to-party.js +15 -0
- package/lib/models/billing/billing-to-party.js.map +1 -0
- package/lib/models/billing/index.d.ts +1 -0
- package/lib/models/billing/index.js +1 -0
- package/lib/models/billing/index.js.map +1 -1
- package/lib/models/cod-payment-type.d.ts +9 -0
- package/lib/models/cod-payment-type.js +14 -0
- package/lib/models/cod-payment-type.js.map +1 -0
- package/lib/models/collect-on-delivery.d.ts +9 -0
- package/lib/models/collect-on-delivery.js +8 -0
- package/lib/models/collect-on-delivery.js.map +1 -0
- package/lib/models/customs/customs-charges.d.ts +2 -0
- package/lib/models/customs/customs-charges.js.map +1 -1
- package/lib/models/customs/customs.d.ts +1 -1
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +3 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/taxes/tax-identifier.d.ts +3 -1
- package/lib/models/taxes/tax-identifier.js.map +1 -1
- package/lib/requests/create-label-request.d.ts +3 -1
- package/lib/requests/create-label-request.js.map +1 -1
- package/lib/requests/get-rates-request.d.ts +3 -1
- package/lib/requests/get-rates-request.js.map +1 -1
- package/package.json +3 -3
- package/spec.json +54 -1
- package/src/app/create-endpoint-mapping.ts +2 -0
- package/src/carrier-app.ts +11 -0
- package/src/constants.ts +2 -0
- package/src/index.ts +2 -0
- package/src/models/advanced-options.ts +5 -0
- package/src/models/bill-to.ts +15 -0
- package/src/models/billing/billing-to-party.ts +10 -0
- package/src/models/billing/index.ts +1 -0
- package/src/models/cod-payment-type.ts +9 -0
- package/src/models/collect-on-delivery.ts +10 -0
- package/src/models/customs/customs-charges.ts +2 -0
- package/src/models/customs/customs.ts +1 -1
- package/src/models/index.ts +3 -0
- package/src/models/taxes/tax-identifier.ts +3 -1
- package/src/requests/create-label-request.ts +3 -0
- package/src/requests/get-rates-request.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/models/addresses/address-base-schema.d.ts +0 -2
- package/lib/models/addresses/address-base-schema.js +0 -24
- package/lib/models/addresses/address-base-schema.js.map +0 -1
- package/lib/models/addresses/pudo-location-schema.d.ts +0 -2
- package/lib/models/addresses/pudo-location-schema.js +0 -11
- package/lib/models/addresses/pudo-location-schema.js.map +0 -1
- package/lib/models/addresses/ship-to-schema.d.ts +0 -2
- package/lib/models/addresses/ship-to-schema.js +0 -11
- package/lib/models/addresses/ship-to-schema.js.map +0 -1
- package/lib/models/pickup/shipped-shipment-schema.d.ts +0 -3
- package/lib/models/pickup/shipped-shipment-schema.js +0 -21
- package/lib/models/pickup/shipped-shipment-schema.js.map +0 -1
- package/lib/requests/cancel-notification-request-schema.d.ts +0 -2
- package/lib/requests/cancel-notification-request-schema.js +0 -12
- package/lib/requests/cancel-notification-request-schema.js.map +0 -1
- package/src/models/addresses/address-base-schema.ts +0 -20
- package/src/models/addresses/pudo-location-schema.ts +0 -7
- package/src/models/addresses/ship-to-schema.ts +0 -7
- package/src/models/pickup/shipped-shipment-schema.ts +0 -18
- package/src/requests/cancel-notification-request-schema.ts +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @description Specifies which payment method is permitted when Collect on Delivery (COD) is requested on a shipment */
|
|
2
|
+
export enum CodPaymentType {
|
|
3
|
+
/** @description Any payment method is permitted */
|
|
4
|
+
Any = 'any',
|
|
5
|
+
/** @description Only cash is permitted */
|
|
6
|
+
Cash = 'cash',
|
|
7
|
+
/** @description Only guaranteed funds are permitted, such as a money order or cashier's check */
|
|
8
|
+
GuaranteedFunds = 'guaranteed_funds',
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CodPaymentType } from './cod-payment-type';
|
|
2
|
+
import { Currency } from './currency';
|
|
3
|
+
|
|
4
|
+
/** @description This model represents the option to defer payment for a shipment, otherwise known as Collect on Delivery (COD) */
|
|
5
|
+
export class CollectOnDelivery {
|
|
6
|
+
/** @description The payment amount for Collect on Delivery (COD) */
|
|
7
|
+
payment_amount!: Currency;
|
|
8
|
+
/** @description The payment method permitted for Collect on Delivery (COD) */
|
|
9
|
+
payment_type?: CodPaymentType;
|
|
10
|
+
}
|
|
@@ -6,6 +6,8 @@ export class CustomsCharges {
|
|
|
6
6
|
freight_charge?: Currency;
|
|
7
7
|
/** @description Other charge for international shipments. */
|
|
8
8
|
other_charge?: Currency;
|
|
9
|
+
/** @description : Description for other charge for international shipments.*/
|
|
10
|
+
other_charge_description?: string;
|
|
9
11
|
/** @description Insurance charge for international shipments. */
|
|
10
12
|
insurance_charge?: Currency;
|
|
11
13
|
/** @description Discount for international shipments. */
|
|
@@ -21,7 +21,7 @@ export class Customs {
|
|
|
21
21
|
/** @description Declaration statement to be placed on the commercial invoice */
|
|
22
22
|
declaration?: string;
|
|
23
23
|
/** @description Incoterms specify who is responsible for paying for and managing the shipment*/
|
|
24
|
-
|
|
24
|
+
terms_of_trade_code?: TermsOfTradeCode;
|
|
25
25
|
/** @description The owner or purchaser of the products being imported into a destination country.*/
|
|
26
26
|
importer_of_record?: ImporterOfRecord;
|
|
27
27
|
/** @description The charges related with customs.*/
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './addresses';
|
|
2
2
|
export * from './advanced-options';
|
|
3
3
|
export * from './authorization';
|
|
4
|
+
export * from './cod-payment-type';
|
|
5
|
+
export * from './collect-on-delivery';
|
|
4
6
|
export * from './billing';
|
|
5
7
|
export * from './confirmation-types';
|
|
6
8
|
export * from './currency-schema';
|
|
@@ -31,3 +33,4 @@ export * from './time-window-schema';
|
|
|
31
33
|
export * from './time-window';
|
|
32
34
|
export * from './tracking';
|
|
33
35
|
export * from './units';
|
|
36
|
+
export * from './bill-to';
|
|
@@ -6,8 +6,10 @@ export class TaxIdentifier {
|
|
|
6
6
|
id!: string;
|
|
7
7
|
/** @description The Tax ID type */
|
|
8
8
|
type!: TaxIdentifierType;
|
|
9
|
-
/** @
|
|
9
|
+
/** @deprecated This property has been deprecated, please use registration_country instead */
|
|
10
10
|
registration_county?: string;
|
|
11
|
+
/** @description The country where the Tax ID is registered with */
|
|
12
|
+
registration_country?: string;
|
|
11
13
|
/** @description Description of the tax ID that may give the customs agent more context */
|
|
12
14
|
description?: string;
|
|
13
15
|
}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
RelayPointDetails,
|
|
18
18
|
DisplayScheme,
|
|
19
19
|
Customs,
|
|
20
|
+
BillTo,
|
|
20
21
|
} from '../models';
|
|
21
22
|
|
|
22
23
|
/** @description Basic structure for a request to create a label */
|
|
@@ -54,4 +55,6 @@ export class CreateLabelRequest extends BaseRequest {
|
|
|
54
55
|
/** @description Display schemes that the label will be returned in. Label is returned by default */
|
|
55
56
|
display_schemes?: DisplayScheme[];
|
|
56
57
|
customs?: Customs;
|
|
58
|
+
/** @description Bill the shipping charges to this entity. If null, it should be assumed the "shipper" is responsible for the shipping charges. */
|
|
59
|
+
bill_shipping_to?: BillTo;
|
|
57
60
|
}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
PudoLocation,
|
|
11
11
|
FulfillmentPlanDetails,
|
|
12
12
|
TimeWindow,
|
|
13
|
+
BillTo,
|
|
13
14
|
} from '../models';
|
|
14
15
|
import { ShipmentItem } from '../models/shipment-item';
|
|
15
16
|
|
|
@@ -33,4 +34,6 @@ export class GetRatesRequest extends BaseRequest {
|
|
|
33
34
|
carrier_pickup_window?: TimeWindow;
|
|
34
35
|
/** Items included in the shipment */
|
|
35
36
|
items?: ShipmentItem[];
|
|
37
|
+
/** @description Bill the shipping charges to this entity. If null, it should be assumed the "shipper" is responsible for the shipping charges. */
|
|
38
|
+
bill_shipping_to?: BillTo;
|
|
36
39
|
}
|