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