@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.
Files changed (37) hide show
  1. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
  2. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
  3. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
  4. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
  5. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
  6. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
  7. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +186 -117
  8. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
  9. package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
  10. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
  11. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
  12. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
  13. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
  14. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
  15. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
  16. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +186 -117
  17. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
  18. package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
  19. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
  20. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
  21. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
  22. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
  23. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
  24. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
  25. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +187 -117
  26. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
  27. package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
  28. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +1 -1
  29. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +1 -1
  30. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -1
  31. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts +174 -116
  32. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +3 -3
  33. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -1
  34. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +187 -117
  35. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +3 -3
  36. package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -1
  37. package/package.json +2 -2
@@ -1,9 +1,16 @@
1
1
  export interface DeliveryRatesGateway {
2
- /** @readonly */
2
+ /**
3
+ * @format GUID
4
+ * @readonly
5
+ */
3
6
  _id?: string | null;
4
7
  }
5
8
  export interface GetDeliverySolutionsRequest {
6
- /** list of items to delivery that each of them points to delivery profile and delivery rule. */
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
- /** Currency - Defaults to site's currency */
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
- /** list of user preferences which are delivery options codes combined with delivery carrier app id */
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
- /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
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
- /** The ID of the line item. */
51
+ /**
52
+ * The ID of the line item.
53
+ * @minLength 1
54
+ * @maxLength 100
55
+ */
35
56
  _id?: string;
36
- /** Item name. */
57
+ /**
58
+ * Item name.
59
+ * @maxLength 400
60
+ */
37
61
  name?: string;
38
- /** The number of items ordered. */
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
- /** Price of a single item after discounts. */
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
- /** Total line item price before discounts. */
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
- /** Price of a single item before discounts. */
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
- /** Total line item price after discounts. This is equal to `price` multiplied by `quantity`. */
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
- /** For delivery rates by delivery profile id */
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
- /** ID of the item within the catalog it belongs to. */
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 [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
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
- /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
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
- /** Country code. */
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
- /** Contact's phone number. */
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
- /** Email associated with the address. */
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, due to an error */
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
- /** The delivery carrier app id */
251
+ /**
252
+ * The delivery carrier app id
253
+ * @format GUID
254
+ */
189
255
  appId?: string | null;
190
- /** The delivery option code */
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
- /** Delivery Options with their associated items */
284
+ /**
285
+ * Delivery Options with their associated items
286
+ * @maxSize 300
287
+ */
211
288
  deliverySolutions?: DeliverySolution[];
212
- /** If a delivery carrier could not calculate rates, the error will be detailed here */
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
- /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
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
- /** Delivery rate title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"`, or `"First-Class Package International"`. */
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
- /** Delivery solution allocations to different delivery carriers and delivery regions */
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
- /** When the item is expected to be delivered in free text. For example, `"3-5 business days"`. */
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
- /** Instructions for delivery. For example, for pickup: `"Ensure to come during business hours, and please don't park in the disabled spot"`. */
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
- /** The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). */
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
- /** 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. */
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
- /** Additional costs. For example, a handling fee for packaging fragile items. */
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
- /** Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`. */
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
- /** Cost of additional charge. For example, `12.5`. */
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
- /** The carrier app id */
403
+ /**
404
+ * The carrier app id
405
+ * @format GUID
406
+ */
291
407
  appId?: string | null;
292
- /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
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
- /** The delivery region id. */
415
+ /**
416
+ * The delivery region id.
417
+ * @format GUID
418
+ */
297
419
  _id?: string | null;
298
- /** The delivery region name. */
420
+ /**
421
+ * The delivery region name.
422
+ * @maxLength 100
423
+ */
299
424
  name?: string | null;
300
425
  }
301
426
  export interface ApplicableLineItems {
302
- /** Line items that the delivery solution is for. */
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
- /** The carrier app id */
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
- /** Currency - Defaults to site's currency */
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
- /** list of user preferences which are delivery options codes combined with delivery carrier app id */
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
- /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
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 {};
@@ -57,11 +57,11 @@ var VatType;
57
57
  })(VatType || (exports.VatType = VatType = {}));
58
58
  var WeightUnit;
59
59
  (function (WeightUnit) {
60
- /** Weight unit can't be classified, due to an error */
60
+ /** Weight unit can't be classified due to an error. */
61
61
  WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
62
- /** Kilograms */
62
+ /** Kilograms. */
63
63
  WeightUnit["KG"] = "KG";
64
- /** Pounds */
64
+ /** Pounds. */
65
65
  WeightUnit["LB"] = "LB";
66
66
  })(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
67
67
  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,sEAAuF;AACvF,oFAGiD;AAEjD,sJAAwI;AACxI,sEAA4F;AAC5F,sEAA4F;AAC5F,sFAAkF;AA4IlF,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3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AC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,eAAe;gBACzB,cAAc,EAAE,qBAAqB;gBACrC,UAAU,EAAE,iBAAiB;gBAC7B,eAAe,EAAE,sBAAsB;gBACvC,cAAc,EAAE,qBAAqB;aACtC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1ED,oDA0EC"}
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,sEAAuF;AACvF,oFAGiD;AAEjD,sJAAwI;AACxI,sEAA4F;AAC5F,sEAA4F;AAC5F,sFAAkF;AAqMlF,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,+BAAf,eAAe,QAc1B;AAqCD,qBAAqB;AACrB,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,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C,UAAU,EAAE,iBAAiB;gBAC7B,eAAe,EAAE,sBAAsB;gBACvC,cAAc,EAAE,qBAAqB;aACtC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1ED,oDA0EC"}
@@ -2,4 +2,4 @@ import { getDeliverySolutions as publicGetDeliverySolutions } from './gateways-e
2
2
  import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
3
  export declare const getDeliverySolutions: MaybeContext<BuildRESTFunction<typeof publicGetDeliverySolutions> & typeof publicGetDeliverySolutions>;
4
4
  export { SubdivisionType, VatType, WeightUnit, PickupMethod, ChargeType, RuleType, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
5
- export { DeliveryRatesGateway, GetDeliverySolutionsRequest, DeliverableItem, CatalogReference, PhysicalProperties, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, FullAddressContactDetails, VatId, UserPreference, ExternalReference, GetDeliverySolutionsResponse, DeliverySolution, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, DeliveryCost, AdditionalCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, DeliveryCarrierError, Details, DetailsKindOneOf, ApplicationError, ValidationError, FieldViolation, SystemError, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, GetDeliverySolutionsResponseNonNullableFields, GetDeliverySolutionsOptions, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
5
+ export { DeliveryRatesGateway, GetDeliverySolutionsRequest, DeliverableItem, CatalogReference, PhysicalProperties, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, FullAddressContactDetails, VatId, UserPreference, ExternalReference, GetDeliverySolutionsResponse, DeliverySolution, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, DeliveryCost, AdditionalCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, DeliveryCarrierError, Details, DetailsKindOneOf, ApplicationError, ValidationError, FieldViolation, SystemError, GetDeliverySolutionsResponseNonNullableFields, GetDeliverySolutionsOptions, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
@@ -13,4 +13,4 @@ interface GetDeliverySolutionsSignature {
13
13
  */
14
14
  (lineItems: DeliverableItem[], options?: GetDeliverySolutionsOptions | undefined): Promise<GetDeliverySolutionsResponse & GetDeliverySolutionsResponseNonNullableFields>;
15
15
  }
16
- export { ActionEvent, AdditionalCharge, Address, AddressLocation, AddressStreetOneOf, ApplicableLineItems, ApplicationError, Carrier, CatalogReference, ChargeType, DeliverableItem, DeliveryAllocation, DeliveryCarrierError, DeliveryCost, DeliveryLogistics, DeliveryRatesGateway, DeliverySolution, DeliveryTimeSlot, Details, DetailsKindOneOf, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExternalReference, FieldViolation, FullAddressContactDetails, GetDeliverySolutionsOptions, GetDeliverySolutionsRequest, GetDeliverySolutionsResponse, GetDeliverySolutionsResponseNonNullableFields, PhysicalProperties, PickupDetails, PickupMethod, Region, RestoreInfo, RuleType, StreetAddress, Subdivision, SubdivisionType, SystemError, UserPreference, ValidationError, VatId, VatType, WeightUnit, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
16
+ export { AdditionalCharge, Address, AddressLocation, AddressStreetOneOf, ApplicableLineItems, ApplicationError, Carrier, CatalogReference, ChargeType, DeliverableItem, DeliveryAllocation, DeliveryCarrierError, DeliveryCost, DeliveryLogistics, DeliveryRatesGateway, DeliverySolution, DeliveryTimeSlot, Details, DetailsKindOneOf, ExternalReference, FieldViolation, FullAddressContactDetails, GetDeliverySolutionsOptions, GetDeliverySolutionsRequest, GetDeliverySolutionsResponse, GetDeliverySolutionsResponseNonNullableFields, PhysicalProperties, PickupDetails, PickupMethod, Region, RuleType, StreetAddress, Subdivision, SubdivisionType, SystemError, UserPreference, ValidationError, VatId, VatType, WeightUnit, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
@@ -1 +1 @@
1
- {"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,oBAAoB,IAAI,6BAA6B,GACtD,MAAM,2EAA2E,CAAC;AAEnF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,SAA4B,EAC5B,OAAqC,EACrC,EAAE,CACF,6BAA6B,CAC3B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAiBD,OAAO,EAUL,UAAU,EA0BV,YAAY,EAGZ,QAAQ,EAGR,eAAe,EAKf,OAAO,EACP,UAAU,GACX,MAAM,2EAA2E,CAAC"}
1
+ {"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,oBAAoB,IAAI,6BAA6B,GACtD,MAAM,2EAA2E,CAAC;AAEnF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,SAA4B,EAC5B,OAAqC,EACrC,EAAE,CACF,6BAA6B,CAC3B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAiBD,OAAO,EASL,UAAU,EAoBV,YAAY,EAEZ,QAAQ,EAGR,eAAe,EAKf,OAAO,EACP,UAAU,GACX,MAAM,2EAA2E,CAAC"}