@shipengine/js-api 4.24.1 → 4.24.2-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/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 = "pending_approval" | "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;
|
|
@@ -99,7 +107,6 @@ export type CarrierConnection = {
|
|
|
99
107
|
carrierCode: "dhl_express_walleted";
|
|
100
108
|
nickname: string;
|
|
101
109
|
};
|
|
102
|
-
export type WalletTransactionType = "adjustment" | "purchase" | "reload" | "void";
|
|
103
110
|
export type WalletTransaction = {
|
|
104
111
|
amount: number;
|
|
105
112
|
balance: number;
|
|
@@ -126,16 +133,15 @@ export type CarrierZone = {
|
|
|
126
133
|
/**
|
|
127
134
|
* @category Entities
|
|
128
135
|
*/
|
|
129
|
-
/** @internal */
|
|
130
|
-
export type CarrierTermsStatus = "saved" | "not_found" | "already_saved" | "error";
|
|
131
|
-
export type CarrierTermCategory = "funding_source" | "carrier" | "insurance";
|
|
132
136
|
export interface CarrierTerm {
|
|
133
137
|
status?: CarrierTermsStatus;
|
|
134
138
|
termCategory?: CarrierTermCategory;
|
|
135
139
|
termType: string;
|
|
136
140
|
version: string;
|
|
137
141
|
}
|
|
138
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* @category Responses
|
|
144
|
+
*/
|
|
139
145
|
export interface CarrierAutoFundingSettingsResponse {
|
|
140
146
|
autoPurchaseAmount: number;
|
|
141
147
|
autoPurchaseCutoff?: number;
|