@wix/auto_sdk_ecom_delivery-solutions 1.0.7 → 1.0.8
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.ts → cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.mts → es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.mts → internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.ts → internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -18
- package/build/index.d.ts +0 -18
- package/build/index.js +0 -256
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -226
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -18
- package/build/internal/index.d.ts +0 -18
- package/build/internal/index.js +0 -256
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -226
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -495
- package/build/internal/meta.d.ts +0 -495
- package/build/internal/meta.js +0 -127
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -100
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -495
- package/build/meta.d.ts +0 -495
- package/build/meta.js +0 -127
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -100
- package/build/meta.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface DeliveryRatesGateway {
|
|
1
|
+
export interface DeliveryRatesGateway {
|
|
2
2
|
/**
|
|
3
3
|
* @format GUID
|
|
4
4
|
* @readonly
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
id?: string | null;
|
|
7
7
|
}
|
|
8
|
-
interface GetDeliverySolutionsRequest {
|
|
8
|
+
export interface GetDeliverySolutionsRequest {
|
|
9
9
|
/**
|
|
10
10
|
* list of items to delivery that each of them points to delivery profile and delivery rule.
|
|
11
11
|
* @minSize 1
|
|
@@ -39,14 +39,20 @@ interface GetDeliverySolutionsRequest {
|
|
|
39
39
|
* @format GUID
|
|
40
40
|
*/
|
|
41
41
|
purchaseFlowId?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
44
|
+
* For example, a Wix Pay Link ID.
|
|
45
|
+
* @maxSize 20
|
|
46
|
+
*/
|
|
47
|
+
externalReferences?: ExternalReference[];
|
|
42
48
|
}
|
|
43
|
-
interface DeliverableItem {
|
|
49
|
+
export interface DeliverableItem {
|
|
44
50
|
/**
|
|
45
51
|
* The ID of the line item.
|
|
46
52
|
* @minLength 1
|
|
47
53
|
* @maxLength 100
|
|
48
54
|
*/
|
|
49
|
-
|
|
55
|
+
id?: string;
|
|
50
56
|
/**
|
|
51
57
|
* Item name.
|
|
52
58
|
* @maxLength 400
|
|
@@ -94,7 +100,7 @@ interface DeliverableItem {
|
|
|
94
100
|
taxIncludedInPrice?: boolean | null;
|
|
95
101
|
}
|
|
96
102
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
97
|
-
interface CatalogReference {
|
|
103
|
+
export interface CatalogReference {
|
|
98
104
|
/**
|
|
99
105
|
* ID of the item within the catalog it belongs to.
|
|
100
106
|
* @minLength 1
|
|
@@ -120,7 +126,7 @@ interface CatalogReference {
|
|
|
120
126
|
*/
|
|
121
127
|
options?: Record<string, any> | null;
|
|
122
128
|
}
|
|
123
|
-
interface PhysicalProperties {
|
|
129
|
+
export interface PhysicalProperties {
|
|
124
130
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
125
131
|
weight?: number | null;
|
|
126
132
|
/**
|
|
@@ -132,11 +138,11 @@ interface PhysicalProperties {
|
|
|
132
138
|
shippable?: boolean;
|
|
133
139
|
}
|
|
134
140
|
/** Physical address */
|
|
135
|
-
interface Address extends AddressStreetOneOf {
|
|
141
|
+
export interface Address extends AddressStreetOneOf {
|
|
136
142
|
/** Street name and number. */
|
|
137
143
|
streetAddress?: StreetAddress;
|
|
138
144
|
/** Main address line, usually street and number as free text. */
|
|
139
|
-
|
|
145
|
+
addressLine?: string | null;
|
|
140
146
|
/**
|
|
141
147
|
* Country code.
|
|
142
148
|
* @format COUNTRY
|
|
@@ -152,31 +158,31 @@ interface Address extends AddressStreetOneOf {
|
|
|
152
158
|
addressLine2?: string | null;
|
|
153
159
|
}
|
|
154
160
|
/** @oneof */
|
|
155
|
-
interface AddressStreetOneOf {
|
|
161
|
+
export interface AddressStreetOneOf {
|
|
156
162
|
/** Street name and number. */
|
|
157
163
|
streetAddress?: StreetAddress;
|
|
158
164
|
/** Main address line, usually street and number as free text. */
|
|
159
165
|
addressLine?: string | null;
|
|
160
166
|
}
|
|
161
|
-
interface StreetAddress {
|
|
167
|
+
export interface StreetAddress {
|
|
162
168
|
/** Street number. */
|
|
163
169
|
number?: string;
|
|
164
170
|
/** Street name. */
|
|
165
171
|
name?: string;
|
|
166
172
|
}
|
|
167
|
-
interface AddressLocation {
|
|
173
|
+
export interface AddressLocation {
|
|
168
174
|
/** Address latitude. */
|
|
169
175
|
latitude?: number | null;
|
|
170
176
|
/** Address longitude. */
|
|
171
177
|
longitude?: number | null;
|
|
172
178
|
}
|
|
173
|
-
interface Subdivision {
|
|
179
|
+
export interface Subdivision {
|
|
174
180
|
/** Short subdivision code. */
|
|
175
181
|
code?: string;
|
|
176
182
|
/** Subdivision full name. */
|
|
177
183
|
name?: string;
|
|
178
184
|
}
|
|
179
|
-
declare enum SubdivisionType {
|
|
185
|
+
export declare enum SubdivisionType {
|
|
180
186
|
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
181
187
|
/** State */
|
|
182
188
|
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
@@ -192,7 +198,7 @@ declare enum SubdivisionType {
|
|
|
192
198
|
COUNTRY = "COUNTRY"
|
|
193
199
|
}
|
|
194
200
|
/** Full contact details for an address */
|
|
195
|
-
interface FullAddressContactDetails {
|
|
201
|
+
export interface FullAddressContactDetails {
|
|
196
202
|
/** Contact's first name. */
|
|
197
203
|
firstName?: string | null;
|
|
198
204
|
/** Contact's last name. */
|
|
@@ -212,9 +218,9 @@ interface FullAddressContactDetails {
|
|
|
212
218
|
/** Tax info. Currently usable only in Brazil. */
|
|
213
219
|
vatId?: VatId;
|
|
214
220
|
}
|
|
215
|
-
interface VatId {
|
|
221
|
+
export interface VatId {
|
|
216
222
|
/** Customer's tax ID. */
|
|
217
|
-
|
|
223
|
+
id?: string;
|
|
218
224
|
/**
|
|
219
225
|
* Tax type.
|
|
220
226
|
*
|
|
@@ -225,14 +231,14 @@ interface VatId {
|
|
|
225
231
|
type?: VatType;
|
|
226
232
|
}
|
|
227
233
|
/** tax info types */
|
|
228
|
-
declare enum VatType {
|
|
234
|
+
export declare enum VatType {
|
|
229
235
|
UNSPECIFIED = "UNSPECIFIED",
|
|
230
236
|
/** CPF - for individual tax payers. */
|
|
231
237
|
CPF = "CPF",
|
|
232
238
|
/** CNPJ - for corporations */
|
|
233
239
|
CNPJ = "CNPJ"
|
|
234
240
|
}
|
|
235
|
-
declare enum WeightUnit {
|
|
241
|
+
export declare enum WeightUnit {
|
|
236
242
|
/** Weight unit can't be classified due to an error. */
|
|
237
243
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
238
244
|
/** Kilograms. */
|
|
@@ -240,7 +246,7 @@ declare enum WeightUnit {
|
|
|
240
246
|
/** Pounds. */
|
|
241
247
|
LB = "LB"
|
|
242
248
|
}
|
|
243
|
-
interface UserPreference {
|
|
249
|
+
export interface UserPreference {
|
|
244
250
|
/**
|
|
245
251
|
* The delivery carrier app id
|
|
246
252
|
* @format GUID
|
|
@@ -252,7 +258,7 @@ interface UserPreference {
|
|
|
252
258
|
*/
|
|
253
259
|
code?: string;
|
|
254
260
|
}
|
|
255
|
-
interface ExternalReference {
|
|
261
|
+
export interface ExternalReference {
|
|
256
262
|
/**
|
|
257
263
|
* ID of the app associated with the purchase flow.
|
|
258
264
|
* For example, the Wix Pay Links app ID.
|
|
@@ -273,7 +279,7 @@ interface ExternalReference {
|
|
|
273
279
|
* Each delivery option has a list of items that can be delivered by it - the chosen one
|
|
274
280
|
* on Errors throw a business error from TC to catch and trigger destination completion
|
|
275
281
|
*/
|
|
276
|
-
interface GetDeliverySolutionsResponse {
|
|
282
|
+
export interface GetDeliverySolutionsResponse {
|
|
277
283
|
/**
|
|
278
284
|
* Delivery Options with their associated items
|
|
279
285
|
* @maxSize 300
|
|
@@ -285,7 +291,7 @@ interface GetDeliverySolutionsResponse {
|
|
|
285
291
|
*/
|
|
286
292
|
errors?: DeliveryCarrierError[];
|
|
287
293
|
}
|
|
288
|
-
interface DeliverySolution {
|
|
294
|
+
export interface DeliverySolution {
|
|
289
295
|
/**
|
|
290
296
|
* Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
291
297
|
* @maxLength 250
|
|
@@ -309,7 +315,7 @@ interface DeliverySolution {
|
|
|
309
315
|
/** If the delivery solution is a partial and doesn't apply to all items. */
|
|
310
316
|
partial?: boolean | null;
|
|
311
317
|
}
|
|
312
|
-
interface DeliveryLogistics {
|
|
318
|
+
export interface DeliveryLogistics {
|
|
313
319
|
/**
|
|
314
320
|
* When the item is expected to be delivered in free text. For example, `"3-5 business days"`.
|
|
315
321
|
* @maxLength 1000
|
|
@@ -325,7 +331,7 @@ interface DeliveryLogistics {
|
|
|
325
331
|
/** Date and Time of the delivery option */
|
|
326
332
|
deliveryTimeSlot?: DeliveryTimeSlot;
|
|
327
333
|
}
|
|
328
|
-
interface PickupDetails {
|
|
334
|
+
export interface PickupDetails {
|
|
329
335
|
/** Pickup address. */
|
|
330
336
|
address?: Address;
|
|
331
337
|
/**
|
|
@@ -337,18 +343,18 @@ interface PickupDetails {
|
|
|
337
343
|
*/
|
|
338
344
|
pickupMethod?: PickupMethod;
|
|
339
345
|
}
|
|
340
|
-
declare enum PickupMethod {
|
|
346
|
+
export declare enum PickupMethod {
|
|
341
347
|
UNKNOWN_METHOD = "UNKNOWN_METHOD",
|
|
342
348
|
STORE_PICKUP = "STORE_PICKUP",
|
|
343
349
|
PICKUP_POINT = "PICKUP_POINT"
|
|
344
350
|
}
|
|
345
|
-
interface DeliveryTimeSlot {
|
|
351
|
+
export interface DeliveryTimeSlot {
|
|
346
352
|
/** starting time of the delivery time slot */
|
|
347
353
|
from?: Date | null;
|
|
348
354
|
/** ending time of the delivery time slot */
|
|
349
355
|
to?: Date | null;
|
|
350
356
|
}
|
|
351
|
-
interface DeliveryCost {
|
|
357
|
+
export interface DeliveryCost {
|
|
352
358
|
/**
|
|
353
359
|
* The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).
|
|
354
360
|
* @format DECIMAL_VALUE
|
|
@@ -366,7 +372,7 @@ interface DeliveryCost {
|
|
|
366
372
|
*/
|
|
367
373
|
additionalCharges?: AdditionalCharge[];
|
|
368
374
|
}
|
|
369
|
-
interface AdditionalCharge {
|
|
375
|
+
export interface AdditionalCharge {
|
|
370
376
|
/** Additional charge type. */
|
|
371
377
|
type?: ChargeType;
|
|
372
378
|
/**
|
|
@@ -381,10 +387,10 @@ interface AdditionalCharge {
|
|
|
381
387
|
*/
|
|
382
388
|
price?: string;
|
|
383
389
|
}
|
|
384
|
-
declare enum ChargeType {
|
|
390
|
+
export declare enum ChargeType {
|
|
385
391
|
HANDLING_FEE = "HANDLING_FEE"
|
|
386
392
|
}
|
|
387
|
-
interface DeliveryAllocation {
|
|
393
|
+
export interface DeliveryAllocation {
|
|
388
394
|
/** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
|
|
389
395
|
deliveryCarrier?: Carrier;
|
|
390
396
|
/** The delivery region that are relevant for this delivery solution. */
|
|
@@ -392,7 +398,7 @@ interface DeliveryAllocation {
|
|
|
392
398
|
/** Populated if the delivery solution is a partially supplied by this carrier. */
|
|
393
399
|
applicableLineItems?: ApplicableLineItems;
|
|
394
400
|
}
|
|
395
|
-
interface Carrier {
|
|
401
|
+
export interface Carrier {
|
|
396
402
|
/**
|
|
397
403
|
* The carrier app id
|
|
398
404
|
* @format GUID
|
|
@@ -404,19 +410,19 @@ interface Carrier {
|
|
|
404
410
|
*/
|
|
405
411
|
code?: string;
|
|
406
412
|
}
|
|
407
|
-
interface Region {
|
|
413
|
+
export interface Region {
|
|
408
414
|
/**
|
|
409
415
|
* The delivery region id.
|
|
410
416
|
* @format GUID
|
|
411
417
|
*/
|
|
412
|
-
|
|
418
|
+
id?: string | null;
|
|
413
419
|
/**
|
|
414
420
|
* The delivery region name.
|
|
415
421
|
* @maxLength 100
|
|
416
422
|
*/
|
|
417
423
|
name?: string | null;
|
|
418
424
|
}
|
|
419
|
-
interface ApplicableLineItems {
|
|
425
|
+
export interface ApplicableLineItems {
|
|
420
426
|
/**
|
|
421
427
|
* Line items that the delivery solution is for.
|
|
422
428
|
* @maxSize 300
|
|
@@ -425,7 +431,7 @@ interface ApplicableLineItems {
|
|
|
425
431
|
*/
|
|
426
432
|
lineItemIds?: string[];
|
|
427
433
|
}
|
|
428
|
-
interface DeliveryCarrierError {
|
|
434
|
+
export interface DeliveryCarrierError {
|
|
429
435
|
/**
|
|
430
436
|
* The carrier app id
|
|
431
437
|
* @format GUID
|
|
@@ -434,7 +440,7 @@ interface DeliveryCarrierError {
|
|
|
434
440
|
/** The error details */
|
|
435
441
|
errorDetails?: Details;
|
|
436
442
|
}
|
|
437
|
-
interface Details extends DetailsKindOneOf {
|
|
443
|
+
export interface Details extends DetailsKindOneOf {
|
|
438
444
|
applicationError?: ApplicationError;
|
|
439
445
|
validationError?: ValidationError;
|
|
440
446
|
systemError?: SystemError;
|
|
@@ -445,12 +451,12 @@ interface Details extends DetailsKindOneOf {
|
|
|
445
451
|
tracing?: Record<string, string>;
|
|
446
452
|
}
|
|
447
453
|
/** @oneof */
|
|
448
|
-
interface DetailsKindOneOf {
|
|
454
|
+
export interface DetailsKindOneOf {
|
|
449
455
|
applicationError?: ApplicationError;
|
|
450
456
|
validationError?: ValidationError;
|
|
451
457
|
systemError?: SystemError;
|
|
452
458
|
}
|
|
453
|
-
interface ApplicationError {
|
|
459
|
+
export interface ApplicationError {
|
|
454
460
|
/** Error code. */
|
|
455
461
|
code?: string;
|
|
456
462
|
/** Description of the error. */
|
|
@@ -490,10 +496,10 @@ interface ApplicationError {
|
|
|
490
496
|
* ]
|
|
491
497
|
* }
|
|
492
498
|
*/
|
|
493
|
-
interface ValidationError {
|
|
499
|
+
export interface ValidationError {
|
|
494
500
|
fieldViolations?: FieldViolation[];
|
|
495
501
|
}
|
|
496
|
-
declare enum RuleType {
|
|
502
|
+
export declare enum RuleType {
|
|
497
503
|
VALIDATION = "VALIDATION",
|
|
498
504
|
OTHER = "OTHER",
|
|
499
505
|
MAX = "MAX",
|
|
@@ -516,7 +522,7 @@ declare enum RuleType {
|
|
|
516
522
|
EXACT_SIZE = "EXACT_SIZE",
|
|
517
523
|
REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
|
|
518
524
|
}
|
|
519
|
-
interface FieldViolation {
|
|
525
|
+
export interface FieldViolation {
|
|
520
526
|
field?: string;
|
|
521
527
|
description?: string;
|
|
522
528
|
violatedRule?: RuleType;
|
|
@@ -524,38 +530,7 @@ interface FieldViolation {
|
|
|
524
530
|
ruleName?: string | null;
|
|
525
531
|
data?: Record<string, any> | null;
|
|
526
532
|
}
|
|
527
|
-
interface SystemError {
|
|
533
|
+
export interface SystemError {
|
|
528
534
|
/** Error code. */
|
|
529
535
|
errorCode?: string | null;
|
|
530
536
|
}
|
|
531
|
-
interface GetDeliverySolutionsOptions {
|
|
532
|
-
/** Destination the items should deliver to */
|
|
533
|
-
destination: Address;
|
|
534
|
-
/**
|
|
535
|
-
* Origin the items should deliver from
|
|
536
|
-
* @deprecated Origin the items should deliver from
|
|
537
|
-
* @targetRemovalDate 2025-04-01
|
|
538
|
-
*/
|
|
539
|
-
origin?: Address;
|
|
540
|
-
/**
|
|
541
|
-
* Currency - Defaults to site's currency
|
|
542
|
-
* @format CURRENCY
|
|
543
|
-
*/
|
|
544
|
-
currency: string | null;
|
|
545
|
-
/** Contact details */
|
|
546
|
-
contactDetails?: FullAddressContactDetails;
|
|
547
|
-
/** Measure unit - defaults to site's weight unit */
|
|
548
|
-
weightUnit?: WeightUnit;
|
|
549
|
-
/**
|
|
550
|
-
* list of user preferences which are delivery options codes combined with delivery carrier app id
|
|
551
|
-
* @maxSize 5
|
|
552
|
-
*/
|
|
553
|
-
userPreferences?: UserPreference[];
|
|
554
|
-
/**
|
|
555
|
-
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
556
|
-
* @format GUID
|
|
557
|
-
*/
|
|
558
|
-
purchaseFlowId?: string | null;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
export { type Address as A, type SystemError as B, ChargeType as C, type DeliverableItem as D, type ExternalReference as E, type FullAddressContactDetails as F, type GetDeliverySolutionsOptions as G, PickupMethod as P, RuleType as R, SubdivisionType as S, type UserPreference as U, VatType as V, WeightUnit as W, type GetDeliverySolutionsResponse as a, type DeliveryRatesGateway as b, type GetDeliverySolutionsRequest as c, type CatalogReference as d, type PhysicalProperties as e, type AddressStreetOneOf as f, type StreetAddress as g, type AddressLocation as h, type Subdivision as i, type VatId as j, type DeliverySolution as k, type DeliveryLogistics as l, type PickupDetails as m, type DeliveryTimeSlot as n, type DeliveryCost as o, type AdditionalCharge as p, type DeliveryAllocation as q, type Carrier as r, type Region as s, type ApplicableLineItems as t, type DeliveryCarrierError as u, type Details as v, type DetailsKindOneOf as w, type ApplicationError as x, type ValidationError as y, type FieldViolation as z };
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export var SubdivisionType;
|
|
2
|
+
(function (SubdivisionType) {
|
|
3
|
+
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
4
|
+
/** State */
|
|
5
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
6
|
+
/** County */
|
|
7
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
8
|
+
/** City/town */
|
|
9
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
10
|
+
/** Neighborhood/quarter */
|
|
11
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
12
|
+
/** Street/block */
|
|
13
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
14
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
15
|
+
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
16
|
+
})(SubdivisionType || (SubdivisionType = {}));
|
|
17
|
+
/** tax info types */
|
|
18
|
+
export var VatType;
|
|
19
|
+
(function (VatType) {
|
|
20
|
+
VatType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
21
|
+
/** CPF - for individual tax payers. */
|
|
22
|
+
VatType["CPF"] = "CPF";
|
|
23
|
+
/** CNPJ - for corporations */
|
|
24
|
+
VatType["CNPJ"] = "CNPJ";
|
|
25
|
+
})(VatType || (VatType = {}));
|
|
26
|
+
export var WeightUnit;
|
|
27
|
+
(function (WeightUnit) {
|
|
28
|
+
/** Weight unit can't be classified due to an error. */
|
|
29
|
+
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
30
|
+
/** Kilograms. */
|
|
31
|
+
WeightUnit["KG"] = "KG";
|
|
32
|
+
/** Pounds. */
|
|
33
|
+
WeightUnit["LB"] = "LB";
|
|
34
|
+
})(WeightUnit || (WeightUnit = {}));
|
|
35
|
+
export var PickupMethod;
|
|
36
|
+
(function (PickupMethod) {
|
|
37
|
+
PickupMethod["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
38
|
+
PickupMethod["STORE_PICKUP"] = "STORE_PICKUP";
|
|
39
|
+
PickupMethod["PICKUP_POINT"] = "PICKUP_POINT";
|
|
40
|
+
})(PickupMethod || (PickupMethod = {}));
|
|
41
|
+
export var ChargeType;
|
|
42
|
+
(function (ChargeType) {
|
|
43
|
+
ChargeType["HANDLING_FEE"] = "HANDLING_FEE";
|
|
44
|
+
})(ChargeType || (ChargeType = {}));
|
|
45
|
+
export var RuleType;
|
|
46
|
+
(function (RuleType) {
|
|
47
|
+
RuleType["VALIDATION"] = "VALIDATION";
|
|
48
|
+
RuleType["OTHER"] = "OTHER";
|
|
49
|
+
RuleType["MAX"] = "MAX";
|
|
50
|
+
RuleType["MIN"] = "MIN";
|
|
51
|
+
RuleType["MAX_LENGTH"] = "MAX_LENGTH";
|
|
52
|
+
RuleType["MIN_LENGTH"] = "MIN_LENGTH";
|
|
53
|
+
RuleType["MAX_SIZE"] = "MAX_SIZE";
|
|
54
|
+
RuleType["MIN_SIZE"] = "MIN_SIZE";
|
|
55
|
+
RuleType["FORMAT"] = "FORMAT";
|
|
56
|
+
RuleType["DECIMAL_LTE"] = "DECIMAL_LTE";
|
|
57
|
+
RuleType["DECIMAL_GTE"] = "DECIMAL_GTE";
|
|
58
|
+
RuleType["DECIMAL_LT"] = "DECIMAL_LT";
|
|
59
|
+
RuleType["DECIMAL_GT"] = "DECIMAL_GT";
|
|
60
|
+
RuleType["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
|
|
61
|
+
RuleType["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
|
|
62
|
+
RuleType["REQUIRED_FIELD"] = "REQUIRED_FIELD";
|
|
63
|
+
RuleType["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
|
|
64
|
+
RuleType["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
|
|
65
|
+
RuleType["EXACT_LENGTH"] = "EXACT_LENGTH";
|
|
66
|
+
RuleType["EXACT_SIZE"] = "EXACT_SIZE";
|
|
67
|
+
RuleType["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
|
|
68
|
+
})(RuleType || (RuleType = {}));
|
|
69
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.ts"],"names":[],"mappings":"AAkMA,MAAM,CAAN,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,KAAf,eAAe,QAc1B;AAqCD,qBAAqB;AACrB,MAAM,CAAN,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;AAED,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,uDAAuD;IACvD,iEAAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,cAAc;IACd,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAyGD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,6CAA6B,CAAA;AAC/B,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AA4CD,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2CAA6B,CAAA;AAC/B,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB;AAwHD,MAAM,CAAN,IAAY,QAsBX;AAtBD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,qDAAyC,CAAA;IACzC,6CAAiC,CAAA;IACjC,mDAAuC,CAAA;IACvC,iDAAqC,CAAA;IACrC,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;AACjD,CAAC,EAtBW,QAAQ,KAAR,QAAQ,QAsBnB"}
|