@shipengine/js-api 4.24.0 → 4.24.1-next.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.
@@ -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;
@@ -73,8 +81,10 @@ export interface Carrier {
73
81
  packages: CarrierPackage[];
74
82
  primary: boolean;
75
83
  requiresFundedAmount: boolean;
84
+ sendRates: boolean;
76
85
  services: CarrierService[];
77
86
  supportsLabelMessages: boolean;
87
+ supportsUserManagedRates: boolean;
78
88
  }
79
89
  /**
80
90
  * @category Entities
@@ -97,7 +107,6 @@ export type CarrierConnection = {
97
107
  carrierCode: "dhl_express_walleted";
98
108
  nickname: string;
99
109
  };
100
- export type WalletTransactionType = "adjustment" | "purchase" | "reload" | "void";
101
110
  export type WalletTransaction = {
102
111
  amount: number;
103
112
  balance: number;
@@ -124,16 +133,15 @@ export type CarrierZone = {
124
133
  /**
125
134
  * @category Entities
126
135
  */
127
- /** @internal */
128
- export type CarrierTermsStatus = "saved" | "not_found" | "already_saved" | "error";
129
- export type CarrierTermCategory = "funding_source" | "carrier" | "insurance";
130
136
  export interface CarrierTerm {
131
137
  status?: CarrierTermsStatus;
132
138
  termCategory?: CarrierTermCategory;
133
139
  termType: string;
134
140
  version: string;
135
141
  }
136
- /** @internal */
142
+ /**
143
+ * @category Responses
144
+ */
137
145
  export interface CarrierAutoFundingSettingsResponse {
138
146
  autoPurchaseAmount: number;
139
147
  autoPurchaseCutoff?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "4.24.0",
3
+ "version": "4.24.1-next.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {