@shipengine/js-api 4.23.1 → 4.24.1-next.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/carriers/types.d.ts +11 -5
- package/labels/types.d.ts +1 -1
- package/package.json +1 -1
package/carriers/types.d.ts
CHANGED
|
@@ -3,6 +3,13 @@ import { DimensionsWithUnit } from "../dimensions";
|
|
|
3
3
|
import { LabelDisplayScheme } from "../labels";
|
|
4
4
|
import { CreditCard, Money } from "../payments";
|
|
5
5
|
import { WeightWithUnit } from "../weight";
|
|
6
|
+
/**
|
|
7
|
+
* @category Entities
|
|
8
|
+
*/
|
|
9
|
+
export type CarrierTermsStatus = "saved" | "not_found" | "already_saved" | "error";
|
|
10
|
+
export type CarrierTermCategory = "funding_source" | "carrier" | "insurance";
|
|
11
|
+
export type WalletTransactionType = "adjustment" | "purchase" | "reload" | "void";
|
|
12
|
+
export type CarrierConnectionStatus = "PendingApproval" | "Approved";
|
|
6
13
|
/**
|
|
7
14
|
* @category Entities
|
|
8
15
|
*/
|
|
@@ -65,6 +72,7 @@ export interface Carrier {
|
|
|
65
72
|
balance: number;
|
|
66
73
|
carrierCode: string;
|
|
67
74
|
carrierId: string;
|
|
75
|
+
connectionStatus?: CarrierConnectionStatus;
|
|
68
76
|
friendlyName: string;
|
|
69
77
|
fundingSourceId?: string;
|
|
70
78
|
hasMultiPackageSupportingServices: boolean;
|
|
@@ -97,7 +105,6 @@ export type CarrierConnection = {
|
|
|
97
105
|
carrierCode: "dhl_express_walleted";
|
|
98
106
|
nickname: string;
|
|
99
107
|
};
|
|
100
|
-
export type WalletTransactionType = "adjustment" | "purchase" | "reload" | "void";
|
|
101
108
|
export type WalletTransaction = {
|
|
102
109
|
amount: number;
|
|
103
110
|
balance: number;
|
|
@@ -124,16 +131,15 @@ export type CarrierZone = {
|
|
|
124
131
|
/**
|
|
125
132
|
* @category Entities
|
|
126
133
|
*/
|
|
127
|
-
/** @internal */
|
|
128
|
-
export type CarrierTermsStatus = "saved" | "not_found" | "already_saved" | "error";
|
|
129
|
-
export type CarrierTermCategory = "funding_source" | "carrier" | "insurance";
|
|
130
134
|
export interface CarrierTerm {
|
|
131
135
|
status?: CarrierTermsStatus;
|
|
132
136
|
termCategory?: CarrierTermCategory;
|
|
133
137
|
termType: string;
|
|
134
138
|
version: string;
|
|
135
139
|
}
|
|
136
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* @category Responses
|
|
142
|
+
*/
|
|
137
143
|
export interface CarrierAutoFundingSettingsResponse {
|
|
138
144
|
autoPurchaseAmount: number;
|
|
139
145
|
autoPurchaseCutoff?: number;
|
package/labels/types.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type RefundStatus = "request_scheduled" | "pending" | "approved" | "rejec
|
|
|
15
15
|
/**
|
|
16
16
|
* Columns available for label exports
|
|
17
17
|
*/
|
|
18
|
-
export type LabelColumns = "shipment_id" | "label_id" | "external_order_id" | "external_shipment_id" | "packages" | "recipient" | "shipping_service" | "created_date" | "ship_date" | "status" | "tracking_status";
|
|
18
|
+
export type LabelColumns = "shipment_id" | "label_id" | "external_order_id" | "external_shipment_id" | "packages" | "recipient" | "shipping_service" | "created_date" | "ship_date" | "status" | "tracking_status" | "refund_status";
|
|
19
19
|
export type Label = {
|
|
20
20
|
alternativeIdentifiers?: string[];
|
|
21
21
|
batchId: string;
|