@shipengine/connect-carrier-api 4.18.1 → 4.20.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/lib/app/metadata/confirmation-type.d.ts +2 -1
- package/lib/app/metadata/confirmation-type.js +2 -0
- package/lib/app/metadata/confirmation-type.js.map +1 -1
- package/lib/models/confirmation-types.d.ts +3 -1
- package/lib/models/confirmation-types.js +2 -0
- package/lib/models/confirmation-types.js.map +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/native-rating-details.d.ts +35 -0
- package/lib/models/native-rating-details.js +3 -0
- package/lib/models/native-rating-details.js.map +1 -0
- 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/responses/create-label-response.d.ts +2 -1
- package/lib/responses/create-label-response.js +1 -0
- package/lib/responses/create-label-response.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +301 -448
- package/src/app/metadata/confirmation-type.ts +2 -0
- package/src/models/confirmation-types.ts +2 -0
- package/src/models/index.ts +1 -0
- package/src/models/native-rating-details.ts +37 -0
- package/src/models/rates/rate.ts +3 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -15,6 +15,7 @@ export const ConfirmationDictionarySchema = Joi.object({
|
|
|
15
15
|
Signature: Joi.string().optional(),
|
|
16
16
|
AdultSignature: Joi.string().optional(),
|
|
17
17
|
DirectSignature: Joi.string().optional(),
|
|
18
|
+
DeliveryCode: Joi.string().optional(),
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
export enum ConfirmationTypeEnum {
|
|
@@ -23,6 +24,7 @@ export enum ConfirmationTypeEnum {
|
|
|
23
24
|
Signature = 'Signature',
|
|
24
25
|
AdultSignature = 'AdultSignature',
|
|
25
26
|
DirectSignature = 'DirectSignature',
|
|
27
|
+
DeliveryCode = 'DeliveryCode',
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
export const ConfirmationTypeEnumSchema = Joi.string().valid(
|
|
@@ -10,4 +10,6 @@ export enum ConfirmationTypes {
|
|
|
10
10
|
AdultSignature = 'AdultSignature',
|
|
11
11
|
/** @description Only supported by FedEx. The signature of somebody at the address is required */
|
|
12
12
|
DirectSignature = 'DirectSignature',
|
|
13
|
+
/** @description Delivery code confirmation is requested */
|
|
14
|
+
DeliveryCode = 'DeliveryCode',
|
|
13
15
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @description Contains detailed information about the parameters used in Native Rating implementations to generate rate lookup keys. */
|
|
2
|
+
export interface NativeRatingDetails {
|
|
3
|
+
/** @description The complete key used to extract the rate value from the JSON configuration file. */
|
|
4
|
+
key: string;
|
|
5
|
+
/** @description Contains the source and destination zones for the shipment. */
|
|
6
|
+
zones: Zones;
|
|
7
|
+
/** @description The name of the shipping service used for the shipment. */
|
|
8
|
+
service_name: string;
|
|
9
|
+
/** @description The weight classification of the shipment, indicating the weight range bracket. */
|
|
10
|
+
weight_class: WeightClass;
|
|
11
|
+
/** @description The type of package used for the shipment. */
|
|
12
|
+
package_type: string;
|
|
13
|
+
/** @description The effective date key used in certain Native Rating implementations. */
|
|
14
|
+
date_key: string;
|
|
15
|
+
/** @description Identifies the platform from which the shipment originated (e.g., ShipStation or ShipEngine). */
|
|
16
|
+
platform: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** @description Contains the source and destination zones for the shipment. */
|
|
20
|
+
export interface Zones {
|
|
21
|
+
/** @description The complete zone string. */
|
|
22
|
+
key: string;
|
|
23
|
+
/** @description The source zone identifier. */
|
|
24
|
+
from_zone: string;
|
|
25
|
+
/** @description The destination zone identifier. */
|
|
26
|
+
to_zone: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** @description The weight classification of the shipment, indicating the weight range bracket. */
|
|
30
|
+
export interface WeightClass {
|
|
31
|
+
/** @description The complete weight class string. */
|
|
32
|
+
key: string;
|
|
33
|
+
/** @description The minimum weight value of the weight range. */
|
|
34
|
+
min_weight: string;
|
|
35
|
+
/** @description The maximum weight value of the weight range. */
|
|
36
|
+
max_weight: string;
|
|
37
|
+
}
|
package/src/models/rates/rate.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
2
|
import { TimeWindow } from '../time-window';
|
|
3
3
|
import { CarrierWeight } from '../units/carrier-weight';
|
|
4
|
+
import { NativeRatingDetails } from '../native-rating-details';
|
|
4
5
|
|
|
5
6
|
/** @description Basic structure for a rate */
|
|
6
7
|
export class Rate {
|
|
@@ -36,4 +37,6 @@ export class Rate {
|
|
|
36
37
|
guaranteed_delivery_days?: number;
|
|
37
38
|
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
38
39
|
carrier_weight?: CarrierWeight;
|
|
40
|
+
/** @description Additional details about lookup key used in NativeRating for rate value extraction. */
|
|
41
|
+
native_rating_details?: NativeRatingDetails;
|
|
39
42
|
}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
RelayPointDetails,
|
|
11
11
|
PaperlessDetails,
|
|
12
12
|
PudoLocation,
|
|
13
|
+
NativeRatingDetails,
|
|
13
14
|
} from '../models';
|
|
14
15
|
import { CarrierWeight } from '../models/units/carrier-weight';
|
|
15
16
|
import { LimitIdentifier } from '../models/limit-identifier';
|
|
@@ -38,4 +39,5 @@ export class CreateLabelResponse extends BaseResponse {
|
|
|
38
39
|
pickup_location?: PudoLocation;
|
|
39
40
|
carrier_weight?: CarrierWeight;
|
|
40
41
|
limit_identifiers?: LimitIdentifier[];
|
|
42
|
+
native_rating_details?: NativeRatingDetails;
|
|
41
43
|
}
|