@wix/auto_sdk_ecom_delivery-solutions 1.0.2 → 1.0.4
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/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +186 -117
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +186 -117
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +187 -117
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +187 -117
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export interface DeliveryRatesGateway {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @format GUID
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
3
6
|
_id?: string | null;
|
|
4
7
|
}
|
|
5
8
|
export interface GetDeliverySolutionsRequest {
|
|
6
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* list of items to delivery that each of them points to delivery profile and delivery rule.
|
|
11
|
+
* @minSize 1
|
|
12
|
+
* @maxSize 300
|
|
13
|
+
*/
|
|
7
14
|
lineItems: DeliverableItem[];
|
|
8
15
|
/** Destination the items should deliver to */
|
|
9
16
|
destination: Address;
|
|
@@ -13,50 +20,93 @@ export interface GetDeliverySolutionsRequest {
|
|
|
13
20
|
* @targetRemovalDate 2025-04-01
|
|
14
21
|
*/
|
|
15
22
|
origin?: Address;
|
|
16
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Currency - Defaults to site's currency
|
|
25
|
+
* @format CURRENCY
|
|
26
|
+
*/
|
|
17
27
|
currency: string | null;
|
|
18
28
|
/** Contact details */
|
|
19
29
|
contactDetails?: FullAddressContactDetails;
|
|
20
30
|
/** Measure unit - defaults to site's weight unit */
|
|
21
31
|
weightUnit?: WeightUnit;
|
|
22
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* list of user preferences which are delivery options codes combined with delivery carrier app id
|
|
34
|
+
* @maxSize 5
|
|
35
|
+
*/
|
|
23
36
|
userPreferences?: UserPreference[];
|
|
24
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
39
|
+
* @format GUID
|
|
40
|
+
*/
|
|
25
41
|
purchaseFlowId?: string | null;
|
|
26
42
|
/**
|
|
27
43
|
* Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
28
44
|
* For example, a Wix Pay Link ID.
|
|
29
45
|
* @internal
|
|
46
|
+
* @maxSize 20
|
|
30
47
|
*/
|
|
31
48
|
externalReferences?: ExternalReference[];
|
|
32
49
|
}
|
|
33
50
|
export interface DeliverableItem {
|
|
34
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The ID of the line item.
|
|
53
|
+
* @minLength 1
|
|
54
|
+
* @maxLength 100
|
|
55
|
+
*/
|
|
35
56
|
_id?: string;
|
|
36
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Item name.
|
|
59
|
+
* @maxLength 400
|
|
60
|
+
*/
|
|
37
61
|
name?: string;
|
|
38
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The number of items ordered.
|
|
64
|
+
* @max 999999999
|
|
65
|
+
*/
|
|
39
66
|
quantity?: number;
|
|
40
67
|
/** Reference to the item's origin catalog. */
|
|
41
68
|
catalogReference?: CatalogReference;
|
|
42
69
|
/** Physical properties of the item. */
|
|
43
70
|
physicalProperties?: PhysicalProperties;
|
|
44
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Price of a single item after discounts.
|
|
73
|
+
* @format DECIMAL_VALUE
|
|
74
|
+
* @decimalValue options { gte:0, maxScale:36 }
|
|
75
|
+
*/
|
|
45
76
|
price?: string;
|
|
46
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Total line item price before discounts.
|
|
79
|
+
* @format DECIMAL_VALUE
|
|
80
|
+
* @decimalValue options { gte:0, maxScale:36 }
|
|
81
|
+
*/
|
|
47
82
|
totalPriceBeforeDiscount?: string | null;
|
|
48
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Price of a single item before discounts.
|
|
85
|
+
* @format DECIMAL_VALUE
|
|
86
|
+
* @decimalValue options { gte:0, maxScale:36 }
|
|
87
|
+
*/
|
|
49
88
|
priceBeforeDiscount?: string | null;
|
|
50
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Total line item price after discounts. This is equal to `price` multiplied by `quantity`.
|
|
91
|
+
* @format DECIMAL_VALUE
|
|
92
|
+
* @decimalValue options { gte:0, maxScale:36 }
|
|
93
|
+
*/
|
|
51
94
|
totalPrice?: string | null;
|
|
52
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* For delivery rates by delivery profile id
|
|
97
|
+
* @format GUID
|
|
98
|
+
*/
|
|
53
99
|
deliveryProfileId?: string | null;
|
|
54
100
|
/** whether tax is included in line item price */
|
|
55
101
|
taxIncludedInPrice?: boolean | null;
|
|
56
102
|
}
|
|
57
103
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
58
104
|
export interface CatalogReference {
|
|
59
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* ID of the item within the catalog it belongs to.
|
|
107
|
+
* @minLength 1
|
|
108
|
+
* @maxLength 36
|
|
109
|
+
*/
|
|
60
110
|
catalogItemId?: string;
|
|
61
111
|
/**
|
|
62
112
|
* ID of the app providing the catalog.
|
|
@@ -67,19 +117,23 @@ export interface CatalogReference {
|
|
|
67
117
|
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
68
118
|
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
69
119
|
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
120
|
+
* @minLength 1
|
|
70
121
|
*/
|
|
71
122
|
appId?: string;
|
|
72
123
|
/**
|
|
73
124
|
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
74
125
|
*
|
|
75
|
-
* For products and variants from a Wix Stores catalog, learn more about
|
|
126
|
+
* For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
|
|
76
127
|
*/
|
|
77
128
|
options?: Record<string, any> | null;
|
|
78
129
|
}
|
|
79
130
|
export interface PhysicalProperties {
|
|
80
131
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
81
132
|
weight?: number | null;
|
|
82
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
135
|
+
* @maxLength 40
|
|
136
|
+
*/
|
|
83
137
|
sku?: string | null;
|
|
84
138
|
/** Whether this line item is shippable. */
|
|
85
139
|
shippable?: boolean;
|
|
@@ -90,7 +144,10 @@ export interface Address extends AddressStreetOneOf {
|
|
|
90
144
|
streetAddress?: StreetAddress;
|
|
91
145
|
/** Main address line, usually street and number as free text. */
|
|
92
146
|
addressLine1?: string | null;
|
|
93
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* Country code.
|
|
149
|
+
* @format COUNTRY
|
|
150
|
+
*/
|
|
94
151
|
country?: string | null;
|
|
95
152
|
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
96
153
|
subdivision?: string | null;
|
|
@@ -147,11 +204,17 @@ export interface FullAddressContactDetails {
|
|
|
147
204
|
firstName?: string | null;
|
|
148
205
|
/** Contact's last name. */
|
|
149
206
|
lastName?: string | null;
|
|
150
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Contact's phone number.
|
|
209
|
+
* @format PHONE
|
|
210
|
+
*/
|
|
151
211
|
phone?: string | null;
|
|
152
212
|
/** Contact's company name. */
|
|
153
213
|
company?: string | null;
|
|
154
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* Email associated with the address.
|
|
216
|
+
* @format EMAIL
|
|
217
|
+
*/
|
|
155
218
|
email?: string | null;
|
|
156
219
|
/** Tax info. Currently usable only in Brazil. */
|
|
157
220
|
vatId?: VatId;
|
|
@@ -177,28 +240,39 @@ export declare enum VatType {
|
|
|
177
240
|
CNPJ = "CNPJ"
|
|
178
241
|
}
|
|
179
242
|
export declare enum WeightUnit {
|
|
180
|
-
/** Weight unit can't be classified
|
|
243
|
+
/** Weight unit can't be classified due to an error. */
|
|
181
244
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
182
|
-
/** Kilograms */
|
|
245
|
+
/** Kilograms. */
|
|
183
246
|
KG = "KG",
|
|
184
|
-
/** Pounds */
|
|
247
|
+
/** Pounds. */
|
|
185
248
|
LB = "LB"
|
|
186
249
|
}
|
|
187
250
|
export interface UserPreference {
|
|
188
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* The delivery carrier app id
|
|
253
|
+
* @format GUID
|
|
254
|
+
*/
|
|
189
255
|
appId?: string | null;
|
|
190
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* The delivery option code
|
|
258
|
+
* @maxLength 250
|
|
259
|
+
*/
|
|
191
260
|
code?: string;
|
|
192
261
|
}
|
|
193
262
|
export interface ExternalReference {
|
|
194
263
|
/**
|
|
195
264
|
* ID of the app associated with the purchase flow.
|
|
196
265
|
* For example, the Wix Pay Links app ID.
|
|
266
|
+
* @format GUID
|
|
267
|
+
* @immutable
|
|
197
268
|
*/
|
|
198
269
|
appId?: string;
|
|
199
270
|
/**
|
|
200
271
|
* Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
201
272
|
* For example, a Wix Pay Link ID.
|
|
273
|
+
* @minLength 1
|
|
274
|
+
* @maxLength 100
|
|
275
|
+
* @immutable
|
|
202
276
|
*/
|
|
203
277
|
resourceId?: string | null;
|
|
204
278
|
}
|
|
@@ -207,29 +281,51 @@ export interface ExternalReference {
|
|
|
207
281
|
* on Errors throw a business error from TC to catch and trigger destination completion
|
|
208
282
|
*/
|
|
209
283
|
export interface GetDeliverySolutionsResponse {
|
|
210
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Delivery Options with their associated items
|
|
286
|
+
* @maxSize 300
|
|
287
|
+
*/
|
|
211
288
|
deliverySolutions?: DeliverySolution[];
|
|
212
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* If a delivery carrier could not calculate rates, the error will be detailed here
|
|
291
|
+
* @maxSize 50
|
|
292
|
+
*/
|
|
213
293
|
errors?: DeliveryCarrierError[];
|
|
214
294
|
}
|
|
215
295
|
export interface DeliverySolution {
|
|
216
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
298
|
+
* @maxLength 250
|
|
299
|
+
*/
|
|
217
300
|
code?: string;
|
|
218
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* Delivery rate title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"`, or `"First-Class Package International"`.
|
|
303
|
+
* @maxLength 250
|
|
304
|
+
*/
|
|
219
305
|
title?: string;
|
|
220
306
|
/** Delivery logistics. */
|
|
221
307
|
logistics?: DeliveryLogistics;
|
|
222
308
|
/** Delivery cost. */
|
|
223
309
|
cost?: DeliveryCost;
|
|
224
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* Delivery solution allocations to different delivery carriers and delivery regions
|
|
312
|
+
* @minSize 1
|
|
313
|
+
* @maxSize 300
|
|
314
|
+
*/
|
|
225
315
|
deliveryAllocations?: DeliveryAllocation[];
|
|
226
316
|
/** If the delivery solution is a partial and doesn't apply to all items. */
|
|
227
317
|
partial?: boolean | null;
|
|
228
318
|
}
|
|
229
319
|
export interface DeliveryLogistics {
|
|
230
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* When the item is expected to be delivered in free text. For example, `"3-5 business days"`.
|
|
322
|
+
* @maxLength 1000
|
|
323
|
+
*/
|
|
231
324
|
deliveryTime?: string | null;
|
|
232
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* Instructions for delivery. For example, for pickup: `"Ensure to come during business hours, and please don't park in the disabled spot"`.
|
|
327
|
+
* @maxLength 1000
|
|
328
|
+
*/
|
|
233
329
|
instructions?: string | null;
|
|
234
330
|
/** Pickup details. Should be returned only if order is for pickup. */
|
|
235
331
|
pickupDetails?: PickupDetails;
|
|
@@ -260,19 +356,36 @@ export interface DeliveryTimeSlot {
|
|
|
260
356
|
to?: Date | null;
|
|
261
357
|
}
|
|
262
358
|
export interface DeliveryCost {
|
|
263
|
-
/**
|
|
359
|
+
/**
|
|
360
|
+
* The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).
|
|
361
|
+
* @format DECIMAL_VALUE
|
|
362
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
363
|
+
*/
|
|
264
364
|
price?: string;
|
|
265
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* Currency of the shipping rate price as a 3-letter [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217). Must align with the `currency` passed to the function under the `metadata` field.
|
|
367
|
+
* @format CURRENCY
|
|
368
|
+
*/
|
|
266
369
|
currency?: string;
|
|
267
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* Additional costs. For example, a handling fee for packaging fragile items.
|
|
372
|
+
* @maxSize 100
|
|
373
|
+
*/
|
|
268
374
|
additionalCharges?: AdditionalCharge[];
|
|
269
375
|
}
|
|
270
376
|
export interface AdditionalCharge {
|
|
271
377
|
/** Additional charge type. */
|
|
272
378
|
type?: ChargeType;
|
|
273
|
-
/**
|
|
379
|
+
/**
|
|
380
|
+
* Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
|
|
381
|
+
* @maxLength 250
|
|
382
|
+
*/
|
|
274
383
|
description?: string | null;
|
|
275
|
-
/**
|
|
384
|
+
/**
|
|
385
|
+
* Cost of additional charge. For example, `12.5`.
|
|
386
|
+
* @format DECIMAL_VALUE
|
|
387
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
388
|
+
*/
|
|
276
389
|
price?: string;
|
|
277
390
|
}
|
|
278
391
|
export declare enum ChargeType {
|
|
@@ -287,23 +400,43 @@ export interface DeliveryAllocation {
|
|
|
287
400
|
applicableLineItems?: ApplicableLineItems;
|
|
288
401
|
}
|
|
289
402
|
export interface Carrier {
|
|
290
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* The carrier app id
|
|
405
|
+
* @format GUID
|
|
406
|
+
*/
|
|
291
407
|
appId?: string | null;
|
|
292
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
410
|
+
* @maxLength 250
|
|
411
|
+
*/
|
|
293
412
|
code?: string;
|
|
294
413
|
}
|
|
295
414
|
export interface Region {
|
|
296
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* The delivery region id.
|
|
417
|
+
* @format GUID
|
|
418
|
+
*/
|
|
297
419
|
_id?: string | null;
|
|
298
|
-
/**
|
|
420
|
+
/**
|
|
421
|
+
* The delivery region name.
|
|
422
|
+
* @maxLength 100
|
|
423
|
+
*/
|
|
299
424
|
name?: string | null;
|
|
300
425
|
}
|
|
301
426
|
export interface ApplicableLineItems {
|
|
302
|
-
/**
|
|
427
|
+
/**
|
|
428
|
+
* Line items that the delivery solution is for.
|
|
429
|
+
* @maxSize 300
|
|
430
|
+
* @minLength 1
|
|
431
|
+
* @maxLength 100
|
|
432
|
+
*/
|
|
303
433
|
lineItemIds?: string[];
|
|
304
434
|
}
|
|
305
435
|
export interface DeliveryCarrierError {
|
|
306
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* The carrier app id
|
|
438
|
+
* @format GUID
|
|
439
|
+
*/
|
|
307
440
|
appId?: string | null;
|
|
308
441
|
/** The error details */
|
|
309
442
|
errorDetails?: Details;
|
|
@@ -402,78 +535,6 @@ export interface SystemError {
|
|
|
402
535
|
/** Error code. */
|
|
403
536
|
errorCode?: string | null;
|
|
404
537
|
}
|
|
405
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
406
|
-
createdEvent?: EntityCreatedEvent;
|
|
407
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
408
|
-
deletedEvent?: EntityDeletedEvent;
|
|
409
|
-
actionEvent?: ActionEvent;
|
|
410
|
-
/**
|
|
411
|
-
* Unique event ID.
|
|
412
|
-
* Allows clients to ignore duplicate webhooks.
|
|
413
|
-
*/
|
|
414
|
-
_id?: string;
|
|
415
|
-
/**
|
|
416
|
-
* Assumes actions are also always typed to an entity_type
|
|
417
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
418
|
-
*/
|
|
419
|
-
entityFqdn?: string;
|
|
420
|
-
/**
|
|
421
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
422
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
423
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
424
|
-
*/
|
|
425
|
-
slug?: string;
|
|
426
|
-
/** ID of the entity associated with the event. */
|
|
427
|
-
entityId?: string;
|
|
428
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
429
|
-
eventTime?: Date | null;
|
|
430
|
-
/**
|
|
431
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
432
|
-
* (for example, GDPR).
|
|
433
|
-
*/
|
|
434
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
435
|
-
/** If present, indicates the action that triggered the event. */
|
|
436
|
-
originatedFrom?: string | null;
|
|
437
|
-
/**
|
|
438
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
439
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
440
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
441
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
442
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
443
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
444
|
-
*/
|
|
445
|
-
entityEventSequence?: string | null;
|
|
446
|
-
}
|
|
447
|
-
/** @oneof */
|
|
448
|
-
export interface DomainEventBodyOneOf {
|
|
449
|
-
createdEvent?: EntityCreatedEvent;
|
|
450
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
451
|
-
deletedEvent?: EntityDeletedEvent;
|
|
452
|
-
actionEvent?: ActionEvent;
|
|
453
|
-
}
|
|
454
|
-
export interface EntityCreatedEvent {
|
|
455
|
-
entity?: string;
|
|
456
|
-
}
|
|
457
|
-
export interface RestoreInfo {
|
|
458
|
-
deletedDate?: Date | null;
|
|
459
|
-
}
|
|
460
|
-
export interface EntityUpdatedEvent {
|
|
461
|
-
/**
|
|
462
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
463
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
464
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
465
|
-
*/
|
|
466
|
-
currentEntity?: string;
|
|
467
|
-
}
|
|
468
|
-
export interface EntityDeletedEvent {
|
|
469
|
-
/** Entity that was deleted */
|
|
470
|
-
deletedEntity?: string | null;
|
|
471
|
-
}
|
|
472
|
-
export interface ActionEvent {
|
|
473
|
-
body?: string;
|
|
474
|
-
}
|
|
475
|
-
export interface Empty {
|
|
476
|
-
}
|
|
477
538
|
interface StreetAddressNonNullableFields {
|
|
478
539
|
number: string;
|
|
479
540
|
name: string;
|
|
@@ -567,15 +628,24 @@ export interface GetDeliverySolutionsOptions {
|
|
|
567
628
|
* @targetRemovalDate 2025-04-01
|
|
568
629
|
*/
|
|
569
630
|
origin?: Address;
|
|
570
|
-
/**
|
|
631
|
+
/**
|
|
632
|
+
* Currency - Defaults to site's currency
|
|
633
|
+
* @format CURRENCY
|
|
634
|
+
*/
|
|
571
635
|
currency: string | null;
|
|
572
636
|
/** Contact details */
|
|
573
637
|
contactDetails?: FullAddressContactDetails;
|
|
574
638
|
/** Measure unit - defaults to site's weight unit */
|
|
575
639
|
weightUnit?: WeightUnit;
|
|
576
|
-
/**
|
|
640
|
+
/**
|
|
641
|
+
* list of user preferences which are delivery options codes combined with delivery carrier app id
|
|
642
|
+
* @maxSize 5
|
|
643
|
+
*/
|
|
577
644
|
userPreferences?: UserPreference[];
|
|
578
|
-
/**
|
|
645
|
+
/**
|
|
646
|
+
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
647
|
+
* @format GUID
|
|
648
|
+
*/
|
|
579
649
|
purchaseFlowId?: string | null;
|
|
580
650
|
}
|
|
581
651
|
export {};
|
|
@@ -31,11 +31,11 @@ export var VatType;
|
|
|
31
31
|
})(VatType || (VatType = {}));
|
|
32
32
|
export var WeightUnit;
|
|
33
33
|
(function (WeightUnit) {
|
|
34
|
-
/** Weight unit can't be classified
|
|
34
|
+
/** Weight unit can't be classified due to an error. */
|
|
35
35
|
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
36
|
-
/** Kilograms */
|
|
36
|
+
/** Kilograms. */
|
|
37
37
|
WeightUnit["KG"] = "KG";
|
|
38
|
-
/** Pounds */
|
|
38
|
+
/** Pounds. */
|
|
39
39
|
WeightUnit["LB"] = "LB";
|
|
40
40
|
})(WeightUnit || (WeightUnit = {}));
|
|
41
41
|
export var PickupMethod;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,+CAA+C,MAAM,sEAAsE,CAAC;AACxI,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,+CAA+C,MAAM,sEAAsE,CAAC;AACxI,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAqMlF,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,CAA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
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_delivery-solutions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.gateways.ecom.v1.delivery_rates_gateway"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "c319f0ab072fd4634be2fd576f67bcceb8de77fe9fffe594a975e48f"
|
|
52
52
|
}
|