@wix/auto_sdk_ecom_delivery-profile 1.0.242 → 1.0.244

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.
@@ -1,127 +1,143 @@
1
1
  import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
- * A DeliveryProfile is a collection of delivery configurations that define shipping options for products.
5
- * Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver
6
- * to those destinations. Use delivery profiles to organize and manage different shipping strategies for your store.
4
+ * A delivery profile is a collection of delivery regions that define shipping options for products.
5
+ * Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver to those destinations.
7
6
  */
8
7
  interface DeliveryProfile {
9
8
  /**
10
- * DeliveryProfile ID.
9
+ * Delivery profile ID.
11
10
  * @format GUID
12
11
  * @readonly
13
12
  */
14
13
  _id?: string | null;
15
14
  /**
16
- * DeliveryProfile name.
15
+ * Delivery profile name.
17
16
  * @minLength 1
18
17
  * @maxLength 256
19
18
  */
20
19
  name?: string | null;
21
20
  /**
22
- * Indicates whether this is the default DeliveryProfile.
23
- * The first delivery profile is automatically created and marked as default when the Wix Stores app is installed.
24
- * Default status cannot be changed or transferred to another profile.
25
- * The default profile cannot be deleted because every site requires one for core delivery functionality.
21
+ * Whether this is the default delivery profile.
22
+ *
23
+ * > **Notes:**
24
+ * >
25
+ * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.
26
+ * > - Default status can't be changed or transferred to another profile.
27
+ * > - The default profile can't be deleted because every site requires one for core delivery functionality.
26
28
  * @readonly
27
29
  */
28
30
  default?: boolean | null;
29
31
  /**
30
- * A list of DeliveryProfile regions.
32
+ * Delivery regions in this profile.
31
33
  * @maxSize 100
32
34
  */
33
35
  deliveryRegions?: DeliveryRegion[];
34
36
  /**
35
37
  * Information about who created the delivery profile.
36
- * Contains either an app ID (for profiles created by apps) or a user ID (for profiles created by site users).
38
+ *
39
+ * Currently only for use with Wix Restaurants.
37
40
  */
38
41
  createdBy?: CreatedBy;
39
42
  /**
40
- * DeliveryProfile revision.
43
+ * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.
41
44
  * @readonly
42
45
  */
43
46
  revision?: string | null;
44
47
  /**
45
- * Date and time the DeliveryProfile was created.
48
+ * Date and time the delivery profile was created.
46
49
  * @readonly
47
50
  */
48
51
  _createdDate?: Date | null;
49
52
  /**
50
- * Date and time the DeliveryProfile was last updated.
53
+ * Date and time the delivery profile was last updated.
51
54
  * @readonly
52
55
  */
53
56
  _updatedDate?: Date | null;
54
- /** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields ) must be configured in the app dashboard before they can be accessed with API calls. */
57
+ /** Custom field data for the delivery profile object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
55
58
  extendedFields?: ExtendedFields;
56
59
  }
57
60
  /**
58
- * A DeliveryRegion defines a geographic area and its associated delivery carriers.
59
- * Each region specifies destinations (countries and subdivisions) where products
60
- * can be shipped and the carriers available for those deliveries.
61
+ * A delivery region defines a geographic area and its associated delivery carriers.
62
+ * Each region specifies destinations (countries and subdivisions) where products can be shipped and the carriers available for those deliveries.
63
+ *
64
+ * During the eCommerce onboarding flow, an "International" region with empty destinations is automatically created. This serves as a "Rest of World" configuration that applies to destinations not explicitly defined in other regions.
61
65
  */
62
66
  interface DeliveryRegion {
63
67
  /**
64
- * The delivery region id.
68
+ * Delivery region ID.
65
69
  * @format GUID
66
70
  * @readonly
67
71
  */
68
72
  _id?: string | null;
69
73
  /**
70
- * Optional name of the region, for example: "Domestic".
74
+ * Delivery region name. For example, `"Domestic"` or `"International"`.
71
75
  * @minLength 1
72
76
  * @maxLength 256
73
77
  */
74
78
  name?: string | null;
75
- /** Indicates that this delivery region is active, default value is true. */
79
+ /**
80
+ * Whether this delivery region is active and available during checkout.
81
+ *
82
+ * Default: `true`
83
+ */
76
84
  active?: boolean | null;
77
85
  /**
78
- * The spi implementers id of shipping-rates spi, assigned to this delivery region.
86
+ * Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
79
87
  * @maxSize 25
80
88
  * @readonly
81
89
  */
82
90
  deliveryCarriers?: DeliveryCarrier[];
83
91
  /**
84
- * The operation region of this delivery region, if empty than it is global.
92
+ * Geographic destinations covered by this region. If empty, the region applies globally.
85
93
  * @maxSize 250
86
94
  */
87
95
  destinations?: Destination[];
88
96
  /**
89
- * Represents the time this Profile was created
97
+ * Date and time the delivery region was created.
90
98
  * @readonly
91
99
  */
92
100
  _createdDate?: Date | null;
93
101
  }
94
102
  interface DeliveryCarrier {
95
103
  /**
96
- * ID of the app providing the content.
97
- *
98
- * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
104
+ * Carrier app ID.
99
105
  *
100
- * Can be fetched by ListDeliveryCarriers api.
106
+ * Get app IDs from the [app dashboard](https://dev.wix.com/dc3/my-apps/), or by calling [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).
101
107
  * @format GUID
102
108
  */
103
109
  appId?: string;
104
- /** Backup rate to be used in case the cost returned by the provider is empty. */
110
+ /**
111
+ * Backup rate to use when the carrier doesn't return a rate for a specific shipping option.
112
+ *
113
+ * When `active` is `false` and the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.
114
+ */
105
115
  backupRate?: BackupRate;
106
116
  /**
107
- * Additional charges to add to the delivery rate for this carrier
117
+ * Additional charges to add to the delivery rate. These charges are combined with the carrier's rate into a single shipping cost and itemized in order details.
108
118
  * @maxSize 10
109
119
  */
110
120
  additionalCharges?: AdditionalCharge[];
111
121
  }
112
122
  interface BackupRate {
113
123
  /**
114
- * Default rate title that will concatenate to the delivery options the provider will offer.
124
+ * Title displayed for the backup rate. For example, `"Standard Shipping"`.
115
125
  * @minLength 1
116
126
  * @maxLength 32
117
127
  */
118
128
  title?: string | null;
119
129
  /**
120
- * Default amount price for all delivery options that the provider will offer.
130
+ * Backup rate amount.
121
131
  * @decimalValue options { gte:0, maxScale:6 }
122
132
  */
123
133
  amount?: string | null;
124
- /** Should the default rate be used. Default value is false. */
134
+ /**
135
+ * Whether the backup rate is active.
136
+ *
137
+ * When `false`, if the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.
138
+ *
139
+ * Default: `false`
140
+ */
125
141
  active?: boolean;
126
142
  }
127
143
  interface AdditionalCharge {
@@ -131,21 +147,20 @@ interface AdditionalCharge {
131
147
  */
132
148
  description?: string | null;
133
149
  /**
134
- * Cost of additional charge. For example, `12.5`.
150
+ * Charge amount. For example, `"12.5"`.
135
151
  * @maxLength 16
136
152
  */
137
153
  amount?: string;
138
154
  }
139
- /** Defines the area inside one country that is relevant for this delivery region. */
155
+ /** Geographic destination for a delivery region. */
140
156
  interface Destination {
141
157
  /**
142
- * 2-letters code represents the country of the delivery destinations
158
+ * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
143
159
  * @format COUNTRY
144
160
  */
145
161
  countryCode?: string;
146
162
  /**
147
- * subdivisions - Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
148
- * If empty, the delivery region applies to the entire country.
163
+ * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `"US-CA"` for California. If empty, the delivery region applies to the entire country.
149
164
  * @maxSize 100
150
165
  * @minLength 1
151
166
  * @maxLength 256
@@ -154,12 +169,12 @@ interface Destination {
154
169
  }
155
170
  interface CreatedBy extends CreatedByIdOneOf {
156
171
  /**
157
- * App ID - when the delivery profile was created by an external application or Wix service.
172
+ * App ID, when the delivery profile was created by an external application or Wix service.
158
173
  * @format GUID
159
174
  */
160
175
  appId?: string | null;
161
176
  /**
162
- * User ID - when the delivery profile was created by a Wix user.
177
+ * Wix user ID, when the delivery profile was created by a Wix user.
163
178
  * @format GUID
164
179
  */
165
180
  userId?: string | null;
@@ -167,12 +182,12 @@ interface CreatedBy extends CreatedByIdOneOf {
167
182
  /** @oneof */
168
183
  interface CreatedByIdOneOf {
169
184
  /**
170
- * App ID - when the delivery profile was created by an external application or Wix service.
185
+ * App ID, when the delivery profile was created by an external application or Wix service.
171
186
  * @format GUID
172
187
  */
173
188
  appId?: string | null;
174
189
  /**
175
- * User ID - when the delivery profile was created by a Wix user.
190
+ * Wix user ID, when the delivery profile was created by a Wix user.
176
191
  * @format GUID
177
192
  */
178
193
  userId?: string | null;
@@ -188,122 +203,125 @@ interface ExtendedFields {
188
203
  */
189
204
  namespaces?: Record<string, Record<string, any>>;
190
205
  }
206
+ /** Event payload for when a delivery region is added to a delivery profile. */
191
207
  interface DeliveryRegionAdded {
192
208
  /**
193
- * The DeliveryProfile owns this region.
209
+ * ID of the delivery profile containing the region.
194
210
  * @format GUID
195
211
  */
196
212
  deliveryProfileId?: string;
197
213
  /**
198
- * The delivery region id.
214
+ * ID of the added delivery region.
199
215
  * @format GUID
200
216
  * @readonly
201
217
  */
202
218
  deliveryRegionId?: string | null;
203
219
  /**
204
- * Optional name of the delivery region, for example: "Domestic".
220
+ * Delivery region name. For example, `"Domestic"`.
205
221
  * @minLength 1
206
222
  * @maxLength 256
207
223
  */
208
224
  name?: string | null;
209
- /** Indicates that this delivery region is active, default value is true. */
225
+ /** Whether the delivery region is active. */
210
226
  active?: boolean | null;
211
227
  /**
212
- * The spi implementers id of shipping-rates spi, assigned to this delivery region.
228
+ * Delivery carriers assigned to this region.
213
229
  * @maxSize 25
214
230
  * @readonly
215
231
  */
216
232
  deliveryCarriers?: DeliveryCarrier[];
217
233
  /**
218
- * The operation region of this delivery region, if empty than it is global.
234
+ * Geographic destinations covered by this region.
219
235
  * @maxSize 200
220
236
  */
221
237
  destinations?: Destination[];
222
238
  /**
223
- * Represents the time this Profile was created
239
+ * Date and time the delivery region was created.
224
240
  * @readonly
225
241
  */
226
242
  _createdDate?: Date | null;
227
243
  }
244
+ /** Event payload for when a delivery region is removed from a delivery profile. */
228
245
  interface DeliveryRegionRemoved {
229
246
  /**
230
- * The DeliveryProfile owns this region.
247
+ * ID of the delivery profile that contained the region.
231
248
  * @format GUID
232
249
  */
233
250
  deliveryProfileId?: string;
234
251
  /**
235
- * The removed DeliveryRegion id.
252
+ * ID of the removed delivery region.
236
253
  * @format GUID
237
254
  */
238
255
  deliveryRegionId?: string;
239
256
  }
257
+ /** Event payload for when a delivery region is updated. */
240
258
  interface DeliveryRegionUpdated {
241
259
  /**
242
- * The DeliveryProfile owns this DeliveryRegion.
260
+ * ID of the delivery profile containing the region.
243
261
  * @format GUID
244
262
  */
245
263
  deliveryProfileId?: string;
246
264
  /**
247
- * The delivery region id.
265
+ * ID of the updated delivery region.
248
266
  * @format GUID
249
267
  * @readonly
250
268
  */
251
269
  deliveryRegionId?: string | null;
252
270
  /**
253
- * Optional name of the delivery region, for example: "Domestic".
271
+ * Delivery region name. For example, `"Domestic"`.
254
272
  * @minLength 1
255
273
  * @maxLength 256
256
274
  */
257
275
  name?: string | null;
258
- /** Indicates that this delivery region is active, default value is true. */
276
+ /** Whether the delivery region is active. */
259
277
  active?: boolean | null;
260
278
  /**
261
- * The spi implementers id of shipping-rates spi, assigned to this delivery region.
279
+ * Delivery carriers assigned to this region.
262
280
  * @maxSize 25
263
281
  * @readonly
264
282
  */
265
283
  deliveryCarriers?: DeliveryCarrier[];
266
284
  /**
267
- * The operation region of this delivery region, if empty than it is global.
285
+ * Geographic destinations covered by this region. If empty, the region applies globally.
268
286
  * @maxSize 200
269
287
  */
270
288
  destinations?: Destination[];
271
289
  /**
272
- * Represents the time this Profile was created
290
+ * Date and time the delivery region was created.
273
291
  * @readonly
274
292
  */
275
293
  _createdDate?: Date | null;
276
294
  }
277
295
  interface CreateDeliveryProfileRequest {
278
- /** DeliveryProfile to be created. */
296
+ /** Delivery profile to create. */
279
297
  deliveryProfile: DeliveryProfile;
280
298
  }
281
299
  interface CreateDeliveryProfileResponse {
282
- /** The created DeliveryProfile. */
300
+ /** Created delivery profile. */
283
301
  deliveryProfile?: DeliveryProfile;
284
302
  }
285
303
  interface GetDeliveryProfileRequest {
286
304
  /**
287
- * ID of the DeliveryProfile to retrieve.
305
+ * Delivery profile ID.
288
306
  * @format GUID
289
307
  */
290
308
  deliveryProfileId: string;
291
309
  }
292
310
  interface GetDeliveryProfileResponse {
293
- /** The requested DeliveryProfile. */
311
+ /** Retrieved delivery profile. */
294
312
  deliveryProfile?: DeliveryProfile;
295
313
  }
296
314
  interface UpdateDeliveryProfileRequest {
297
- /** DeliveryProfile to be updated, may be partial. */
315
+ /** Delivery profile to update. */
298
316
  deliveryProfile: DeliveryProfile;
299
317
  }
300
318
  interface UpdateDeliveryProfileResponse {
301
- /** Updated DeliveryProfile. */
319
+ /** Updated delivery profile. */
302
320
  deliveryProfile?: DeliveryProfile;
303
321
  }
304
322
  interface DeleteDeliveryProfileRequest {
305
323
  /**
306
- * Id of the DeliveryProfile to delete.
324
+ * Delivery profile ID.
307
325
  * @format GUID
308
326
  */
309
327
  deliveryProfileId: string;
@@ -312,7 +330,7 @@ interface DeleteDeliveryProfileResponse {
312
330
  }
313
331
  interface DeleteDefaultDeliveryProfileRequest {
314
332
  /**
315
- * Id of the DeliveryProfile to delete.
333
+ * Delivery profile ID.
316
334
  * @format GUID
317
335
  */
318
336
  deliveryProfileId?: string;
@@ -320,7 +338,7 @@ interface DeleteDefaultDeliveryProfileRequest {
320
338
  interface DeleteDefaultDeliveryProfileResponse {
321
339
  }
322
340
  interface QueryDeliveryProfilesRequest {
323
- /** WQL expression. */
341
+ /** Query options. */
324
342
  query?: CursorQuery;
325
343
  }
326
344
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -379,11 +397,11 @@ interface CursorPaging {
379
397
  }
380
398
  interface QueryDeliveryProfilesResponse {
381
399
  /**
382
- * List of DeliveryProfiles.
400
+ * List of delivery profiles.
383
401
  * @maxSize 100
384
402
  */
385
403
  deliveryProfiles?: DeliveryProfile[];
386
- /** Paging metadata */
404
+ /** Paging metadata. */
387
405
  pagingMetadata?: CursorPagingMetadata;
388
406
  }
389
407
  interface CursorPagingMetadata {
@@ -413,176 +431,176 @@ interface Cursors {
413
431
  }
414
432
  interface AddDeliveryRegionRequest {
415
433
  /**
416
- * delivery profile id to associated with the DeliveryRegion
434
+ * Delivery profile ID.
417
435
  * @format GUID
418
436
  */
419
437
  deliveryProfileId: string;
420
- /** DeliveryRegion to be created */
438
+ /** Delivery region to add. */
421
439
  deliveryRegion: DeliveryRegion;
422
440
  /**
423
- * DeliveryProfile revision.
441
+ * Delivery profile revision.
424
442
  * @readonly
425
443
  */
426
444
  revision?: string | null;
427
445
  }
428
446
  interface AddDeliveryRegionResponse {
429
- /** The updated DeliveryProfile with the new DeliveryRegion */
447
+ /** Updated delivery profile with the new delivery region. */
430
448
  deliveryProfile?: DeliveryProfile;
431
449
  }
432
450
  interface UpdateDeliveryRegionRequest {
433
451
  /**
434
- * DeliveryProfile id that owns the DeliveryRegion
452
+ * Delivery profile ID.
435
453
  * @format GUID
436
454
  */
437
455
  deliveryProfileId: string;
438
- /** DeliveryRegion to be updated, may be partial */
456
+ /** Delivery region to update. */
439
457
  deliveryRegion: DeliveryRegion;
440
458
  /**
441
- * DeliveryProfile revision.
459
+ * Delivery profile revision.
442
460
  * @readonly
443
461
  */
444
462
  revision?: string | null;
445
463
  }
446
464
  interface UpdateDeliveryRegionResponse {
447
- /** The updated DeliveryProfile with the updated DeliveryRegion */
465
+ /** Updated delivery profile with the updated delivery region. */
448
466
  deliveryProfile?: DeliveryProfile;
449
467
  }
450
468
  interface GetDeliveryProfileByDeliveryRegionIdRequest {
451
469
  /**
452
- * ID of the DeliveryRegion to retrieve the profile for.
470
+ * Delivery region ID.
453
471
  * @format GUID
454
472
  */
455
473
  deliveryRegionId: string;
456
474
  }
457
475
  interface GetDeliveryProfileByDeliveryRegionIdResponse {
458
- /** The DeliveryProfile containing the requested region. */
476
+ /** Delivery profile containing the requested region. */
459
477
  deliveryProfile?: DeliveryProfile;
460
478
  }
461
479
  interface RemoveDeliveryRegionRequest {
462
480
  /**
463
- * DeliveryProfile id that owns the DeliveryRegion
481
+ * Delivery profile ID.
464
482
  * @format GUID
465
483
  */
466
484
  deliveryProfileId: string;
467
485
  /**
468
- * Id of the DeliveryRegion to delete
486
+ * Delivery region ID.
469
487
  * @format GUID
470
488
  */
471
489
  deliveryRegionId: string;
472
490
  /**
473
- * DeliveryProfile revision.
491
+ * Delivery profile revision.
474
492
  * @readonly
475
493
  */
476
494
  revision?: string | null;
477
495
  }
478
496
  interface RemoveDeliveryRegionResponse {
479
- /** The updated DeliveryProfile without DeliveryRegion */
497
+ /** Updated delivery profile with the delivery region removed. */
480
498
  deliveryProfile?: DeliveryProfile;
481
499
  }
482
500
  interface AddDeliveryCarrierRequest {
483
501
  /**
484
- * delivery_region id to associated with the delivery_carrier.
502
+ * Delivery region ID.
485
503
  * @format GUID
486
504
  */
487
505
  deliveryRegionId: string;
488
- /** delivery_carrier to be added. */
506
+ /** Delivery carrier to add. */
489
507
  deliveryCarrier: DeliveryCarrier;
490
508
  }
491
509
  interface AddDeliveryCarrierResponse {
492
- /** The updated DeliveryProfile */
510
+ /** Updated delivery profile. */
493
511
  deliveryProfile?: DeliveryProfile;
494
512
  }
495
513
  interface RemoveDeliveryCarrierRequest {
496
514
  /**
497
- * Id of the DeliveryRegion
515
+ * Delivery region ID.
498
516
  * @format GUID
499
517
  */
500
518
  deliveryRegionId: string;
501
519
  /**
502
- * DeliveryCarrier app id to be removed.
520
+ * App ID of the delivery carrier to remove.
503
521
  * @format GUID
504
522
  */
505
523
  appId: string;
506
524
  }
507
525
  interface RemoveDeliveryCarrierResponse {
508
- /** The updated DeliveryProfile */
526
+ /** Updated delivery profile. */
509
527
  deliveryProfile?: DeliveryProfile;
510
528
  }
511
529
  interface UpdateDeliveryCarrierRequest {
512
530
  /**
513
- * DeliveryRegion id
531
+ * Delivery region ID.
514
532
  * @format GUID
515
533
  */
516
534
  deliveryRegionId: string;
517
- /** Updated delivery_carrier */
535
+ /** Delivery carrier to update. */
518
536
  deliveryCarrier?: DeliveryCarrier;
519
537
  }
520
538
  interface UpdateDeliveryCarrierResponse {
521
- /** The updated DeliveryProfile with the updated DeliveryCarrier */
539
+ /** Updated delivery profile with the updated delivery carrier. */
522
540
  deliveryProfile?: DeliveryProfile;
523
541
  }
524
542
  interface ListInstalledDeliveryCarriersRequest {
525
543
  }
526
544
  interface ListInstalledDeliveryCarriersResponse {
527
545
  /**
528
- * The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
546
+ * List of installed delivery carriers on the site.
529
547
  * @maxSize 100
530
548
  */
531
549
  installedDeliveryCarriers?: InstalledDeliveryCarrier[];
532
550
  }
533
551
  interface InstalledDeliveryCarrier {
534
552
  /**
535
- * The id of the provider.
553
+ * Carrier app ID.
536
554
  * @format GUID
537
555
  */
538
556
  _id?: string;
539
557
  /**
540
- * The name of the Provider.
558
+ * Carrier display name.
541
559
  * @maxLength 256
542
560
  */
543
561
  displayName?: string;
544
562
  /**
545
- * Provider's description.
563
+ * Carrier description.
546
564
  * @maxLength 200
547
565
  */
548
566
  description?: string | null;
549
567
  /**
550
- * A link to learn more about the provider.
568
+ * URL to learn more about the carrier.
551
569
  * @maxLength 200
552
570
  */
553
571
  learnMoreUrl?: string | null;
554
572
  /**
555
- * Dashboard URL for the provider.
573
+ * URL to the carrier's dashboard.
556
574
  * @minLength 1
557
575
  * @maxLength 2048
558
576
  * @format WEB_URL
559
577
  */
560
578
  dashboardUrl?: string | null;
561
- /** If the provider fallback definition is mandatory. */
579
+ /** Whether a backup rate is required for this carrier. */
562
580
  fallbackDefinitionMandatory?: boolean | null;
563
581
  /**
564
- * Thumbnail image for provider.
582
+ * URL for the carrier's thumbnail image.
565
583
  * @format WEB_URL
566
584
  */
567
585
  thumbnailUrl?: string | null;
568
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
586
+ /** Whether the carrier supports retrieving carrier settings. */
569
587
  toggleGetCarrierSettingsEnabled?: boolean;
570
588
  }
571
589
  interface ListDeliveryDestinationsRequest {
572
590
  }
573
591
  interface ListDeliveryDestinationsResponse {
574
- /** Scope of destinations, when worldwide is selected, the destinations list will be empty. */
592
+ /** Scope of destinations. When `WORLDWIDE` is selected, the `destinations` list is empty. */
575
593
  destinationScope?: DestinationScopeWithLiterals;
576
594
  /**
577
- * The list of destinations
595
+ * List of configured destinations.
578
596
  * @maxSize 200
579
597
  */
580
598
  destinations?: Destination[];
581
599
  }
582
600
  declare enum DestinationScope {
583
- /** No additional destinations are requested */
601
+ /** Specific destinations are configured. */
584
602
  SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
585
- /** All Destinations */
603
+ /** All destinations worldwide. */
586
604
  WORLDWIDE = "WORLDWIDE"
587
605
  }
588
606
  /** @enumType */
@@ -590,36 +608,36 @@ type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' |
590
608
  interface RequiredZipcodeRequest {
591
609
  }
592
610
  interface RequiredZipcodeResponse {
593
- /** If the site requires a zipcode for delivery */
611
+ /** Whether the site requires a postal code for delivery. */
594
612
  requiredZipcode?: boolean;
595
613
  }
596
614
  interface GetDeliveryDestinationPropertiesRequest {
597
615
  }
598
616
  interface GetDeliveryDestinationPropertiesResponse {
599
- /** Delivery destination properties for Rest Of World */
617
+ /** Delivery destination properties for Rest of World. */
600
618
  restOfWorld?: DeliveryDestinationProperties;
601
619
  /**
602
- * List of countries and subdivisions and their delivery destination properties
620
+ * List of countries and their delivery destination properties.
603
621
  * @maxSize 195
604
622
  */
605
623
  countries?: CountryDeliveryProperties[];
606
624
  }
607
625
  interface DeliveryDestinationProperties {
608
- /** True if postal code is required for delivery in this destination */
626
+ /** Whether a postal code is required for delivery to this destination. */
609
627
  postalCodeRequired?: boolean;
610
- /** True if only pickup is available in this destination */
628
+ /** Whether only pickup is available at this destination. */
611
629
  pickupOnly?: boolean;
612
630
  }
613
631
  interface CountryDeliveryProperties {
614
632
  /**
615
- * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
633
+ * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
616
634
  * @format COUNTRY
617
635
  */
618
636
  country?: string;
619
- /** Delivery destination properties for country */
637
+ /** Delivery destination properties for the country. */
620
638
  deliveryDestinationProperties?: DeliveryDestinationProperties;
621
639
  /**
622
- * List of subdivisions and their delivery destination properties
640
+ * List of subdivisions and their delivery destination properties.
623
641
  * @maxSize 100
624
642
  */
625
643
  subdivisions?: SubdivisionDeliveryProperties[];
@@ -631,17 +649,17 @@ interface SubdivisionDeliveryProperties {
631
649
  * @maxLength 5
632
650
  */
633
651
  subdivision?: string;
634
- /** Delivery destination properties for subdivision */
652
+ /** Delivery destination properties for the subdivision. */
635
653
  deliveryDestinationProperties?: DeliveryDestinationProperties;
636
654
  }
637
655
  interface ListDeliveryCarriersRequest {
638
656
  /**
639
- * Delivery profile id.
657
+ * Delivery profile ID.
640
658
  * @format GUID
641
659
  */
642
660
  deliveryProfileId: string;
643
661
  /**
644
- * Delivery app ids to get settings for.
662
+ * App IDs of the delivery carriers to retrieve settings for.
645
663
  * @format GUID
646
664
  * @minSize 1
647
665
  * @maxSize 25
@@ -650,7 +668,7 @@ interface ListDeliveryCarriersRequest {
650
668
  }
651
669
  interface ListDeliveryCarriersResponse {
652
670
  /**
653
- * The list of delivery settings for the given requests
671
+ * List of delivery carrier results.
654
672
  * @maxSize 100
655
673
  */
656
674
  results?: ListDeliveryCarriersResult[];
@@ -658,12 +676,12 @@ interface ListDeliveryCarriersResponse {
658
676
  bulkActionMetadata?: BulkActionMetadata;
659
677
  }
660
678
  interface ListDeliveryCarriersResult {
661
- /** Information about successful action or error for failure. */
679
+ /** Metadata for the result, including success or error information. */
662
680
  deliveryCarrierMetadata?: ItemMetadata;
663
- /** The delivery carrier details */
681
+ /** Delivery carrier details. */
664
682
  deliveryCarrierDetails?: DeliveryCarrierDetails;
665
683
  /**
666
- * The delivery settings for the delivery profile and delivery region.
684
+ * Regional settings for the delivery carrier.
667
685
  * @minSize 1
668
686
  * @maxSize 5
669
687
  */
@@ -690,52 +708,52 @@ interface ApplicationError {
690
708
  }
691
709
  interface DeliveryCarrierDetails {
692
710
  /**
693
- * The id of the provider.
711
+ * Carrier app ID.
694
712
  * @format GUID
695
713
  */
696
714
  _id?: string;
697
715
  /**
698
- * The name of the Provider.
716
+ * Carrier display name.
699
717
  * @maxLength 256
700
718
  */
701
719
  displayName?: string;
702
720
  /**
703
- * Provider's description.
721
+ * Carrier description.
704
722
  * @maxLength 200
705
723
  */
706
724
  description?: string | null;
707
725
  /**
708
- * A link to learn more about the provider.
726
+ * URL to learn more about the carrier.
709
727
  * @maxLength 200
710
728
  */
711
729
  learnMoreUrl?: string | null;
712
730
  /**
713
- * Dashboard URL for the provider.
731
+ * URL to the carrier's dashboard.
714
732
  * @minLength 1
715
733
  * @maxLength 2048
716
734
  * @format WEB_URL
717
735
  */
718
736
  dashboardUrl?: string | null;
719
- /** If the provider fallback definition is mandatory. */
737
+ /** Whether a backup rate is required for this carrier. */
720
738
  fallbackDefinitionMandatory?: boolean | null;
721
739
  /**
722
- * Thumbnail image for provider.
740
+ * URL for the carrier's thumbnail image.
723
741
  * @format WEB_URL
724
742
  */
725
743
  thumbnailUrl?: string | null;
726
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
744
+ /** Whether the carrier supports retrieving carrier settings. */
727
745
  toggleGetCarrierSettingsEnabled?: boolean;
728
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
746
+ /** Whether the carrier supports updating carrier active status. */
729
747
  toggleUpdateCarrierActiveStatusEnabled?: boolean;
730
748
  }
731
749
  interface DeliveryCarrierRegionalSettings {
732
750
  /**
733
- * The delivery rule id.
751
+ * Delivery region ID.
734
752
  * @format GUID
735
753
  */
736
754
  deliveryRegionId?: string;
737
755
  /**
738
- * The shipping table values that are associated with the delivery rule. Can be multiple if the provider is an aggregator of multiple carriers.
756
+ * Dashboard tables with shipping configuration for this region. Multiple tables can exist if the carrier is an aggregator of multiple services.
739
757
  * @minSize 1
740
758
  * @maxSize 5
741
759
  */
@@ -743,45 +761,42 @@ interface DeliveryCarrierRegionalSettings {
743
761
  }
744
762
  interface DashboardTable {
745
763
  /**
746
- * The title of the delivery settings that will be displayed in the UI.
764
+ * Table title.
747
765
  * @maxLength 256
748
766
  */
749
767
  title?: string;
750
768
  /**
751
- * The columns of the delivery settings that will be displayed in the UI.
769
+ * Table columns.
752
770
  * @maxSize 200
753
771
  */
754
772
  columns?: Column[];
755
773
  /**
756
- * The content of the delivery settings. Each row is a map of column name to value.
774
+ * Table rows containing the configuration data.
757
775
  * @maxSize 25
758
776
  */
759
777
  rows?: Row[];
760
778
  }
761
779
  interface Column {
762
780
  /**
763
- * The name of the column. This is used to get the data from the row.
781
+ * Column key, used to retrieve data from rows.
764
782
  * @maxLength 256
765
783
  */
766
784
  key?: string;
767
785
  /**
768
- * The title of the column that will be displayed in the UI.
786
+ * Column display name.
769
787
  * @maxLength 256
770
788
  */
771
789
  name?: string;
772
790
  }
773
791
  interface Row {
774
792
  /**
775
- * The external key of the data presented in a row. This is used to identify the row in the UI for editing.
793
+ * Unique row identifier, used to identify the row for editing.
776
794
  * @maxLength 256
777
795
  */
778
796
  key?: string;
779
- /**
780
- * The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
781
- * Data will be in JSON format.
782
- */
797
+ /** Row data as a JSON object. Each key corresponds to a column key. */
783
798
  data?: Record<string, any> | null;
784
- /** The configuration's status of the current row. */
799
+ /** Whether this row's configuration is active. */
785
800
  active?: boolean;
786
801
  }
787
802
  interface BulkActionMetadata {
@@ -794,16 +809,16 @@ interface BulkActionMetadata {
794
809
  }
795
810
  interface UpdateCarrierSettingsRequest {
796
811
  /**
797
- * Carrier id.
812
+ * Carrier app ID.
798
813
  * @format GUID
799
814
  */
800
815
  carrierId: string;
801
816
  /**
802
- * Row id triggered the change
817
+ * ID of the dashboard table row that triggered the change.
803
818
  * @format GUID
804
819
  */
805
820
  rowId: string;
806
- /** New status */
821
+ /** New active status. */
807
822
  active: boolean | null;
808
823
  }
809
824
  interface UpdateCarrierSettingsResponse {
@@ -833,7 +848,7 @@ interface UpdateExtendedFieldsRequest {
833
848
  namespaceData: Record<string, any> | null;
834
849
  }
835
850
  interface UpdateExtendedFieldsResponse {
836
- /** Updated DeliveryProfile. */
851
+ /** Updated delivery profile. */
837
852
  deliveryProfile?: DeliveryProfile;
838
853
  }
839
854
  interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
@@ -1715,7 +1730,9 @@ interface DeliveryProfileCreatedEnvelope {
1715
1730
  entity: DeliveryProfile;
1716
1731
  metadata: EventMetadata;
1717
1732
  }
1718
- /** @permissionScope Manage Stores - all permissions
1733
+ /**
1734
+ * Triggered when a delivery profile is created.
1735
+ * @permissionScope Manage Stores - all permissions
1719
1736
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1720
1737
  * @permissionScope Manage Stores
1721
1738
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1723,8 +1740,6 @@ interface DeliveryProfileCreatedEnvelope {
1723
1740
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1724
1741
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1725
1742
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1726
- * @permissionScope Manage Restaurants - all permissions
1727
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1728
1743
  * @permissionScope Manage eCommerce - all permissions
1729
1744
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1730
1745
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1738,7 +1753,9 @@ interface DeliveryProfileDeletedEnvelope {
1738
1753
  entity: DeliveryProfile;
1739
1754
  metadata: EventMetadata;
1740
1755
  }
1741
- /** @permissionScope Manage Stores - all permissions
1756
+ /**
1757
+ * Triggered when a delivery profile is deleted.
1758
+ * @permissionScope Manage Stores - all permissions
1742
1759
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1743
1760
  * @permissionScope Manage Stores
1744
1761
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1746,8 +1763,6 @@ interface DeliveryProfileDeletedEnvelope {
1746
1763
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1747
1764
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1748
1765
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1749
- * @permissionScope Manage Restaurants - all permissions
1750
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1751
1766
  * @permissionScope Manage eCommerce - all permissions
1752
1767
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1753
1768
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1761,7 +1776,9 @@ interface DeliveryProfileRegionAddedEnvelope {
1761
1776
  data: DeliveryRegionAdded;
1762
1777
  metadata: EventMetadata;
1763
1778
  }
1764
- /** @permissionScope Manage Stores - all permissions
1779
+ /**
1780
+ * Triggered when a delivery region is added to a delivery profile.
1781
+ * @permissionScope Manage Stores - all permissions
1765
1782
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1766
1783
  * @permissionScope Manage Stores
1767
1784
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1769,8 +1786,6 @@ interface DeliveryProfileRegionAddedEnvelope {
1769
1786
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1770
1787
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1771
1788
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1772
- * @permissionScope Manage Restaurants - all permissions
1773
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1774
1789
  * @permissionScope Manage eCommerce - all permissions
1775
1790
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1776
1791
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1784,7 +1799,9 @@ interface DeliveryProfileRegionRemovedEnvelope {
1784
1799
  data: DeliveryRegionRemoved;
1785
1800
  metadata: EventMetadata;
1786
1801
  }
1787
- /** @permissionScope Manage Stores - all permissions
1802
+ /**
1803
+ * Triggered when a delivery region is removed from a delivery profile.
1804
+ * @permissionScope Manage Stores - all permissions
1788
1805
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1789
1806
  * @permissionScope Manage Stores
1790
1807
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1792,8 +1809,6 @@ interface DeliveryProfileRegionRemovedEnvelope {
1792
1809
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1793
1810
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1794
1811
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1795
- * @permissionScope Manage Restaurants - all permissions
1796
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1797
1812
  * @permissionScope Manage eCommerce - all permissions
1798
1813
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1799
1814
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1807,7 +1822,9 @@ interface DeliveryProfileRegionUpdatedEnvelope {
1807
1822
  data: DeliveryRegionUpdated;
1808
1823
  metadata: EventMetadata;
1809
1824
  }
1810
- /** @permissionScope Manage Stores - all permissions
1825
+ /**
1826
+ * Triggered when a delivery region is updated.
1827
+ * @permissionScope Manage Stores - all permissions
1811
1828
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1812
1829
  * @permissionScope Manage Stores
1813
1830
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1815,8 +1832,6 @@ interface DeliveryProfileRegionUpdatedEnvelope {
1815
1832
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1816
1833
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1817
1834
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1818
- * @permissionScope Manage Restaurants - all permissions
1819
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1820
1835
  * @permissionScope Manage eCommerce - all permissions
1821
1836
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1822
1837
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1832,7 +1847,9 @@ interface DeliveryProfileUpdatedEnvelope {
1832
1847
  /** @hidden */
1833
1848
  modifiedFields: Record<string, any>;
1834
1849
  }
1835
- /** @permissionScope Manage Stores - all permissions
1850
+ /**
1851
+ * Triggered when a delivery profile is updated.
1852
+ * @permissionScope Manage Stores - all permissions
1836
1853
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1837
1854
  * @permissionScope Manage Stores
1838
1855
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
@@ -1840,8 +1857,6 @@ interface DeliveryProfileUpdatedEnvelope {
1840
1857
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1841
1858
  * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1842
1859
  * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1843
- * @permissionScope Manage Restaurants - all permissions
1844
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1845
1860
  * @permissionScope Manage eCommerce - all permissions
1846
1861
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1847
1862
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -1852,13 +1867,11 @@ interface DeliveryProfileUpdatedEnvelope {
1852
1867
  */
1853
1868
  declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>): void;
1854
1869
  /**
1855
- * Creates a DeliveryProfile.
1870
+ * Creates a delivery profile.
1856
1871
  *
1857
- * The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
1858
1872
  *
1859
- * Note: A site can have up to 99 delivery profiles.
1860
- * Attempts to exceed this limit will fail with DELIVERY_PROFILES_LIMIT_EXCEEDED.
1861
- * @param deliveryProfile - DeliveryProfile to be created.
1873
+ * A site can have up to 99 delivery profiles. Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.
1874
+ * @param deliveryProfile - Delivery profile to create.
1862
1875
  * @public
1863
1876
  * @documentationMaturity preview
1864
1877
  * @requiredField deliveryProfile
@@ -1867,42 +1880,31 @@ declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdate
1867
1880
  * @requiredField deliveryProfile.name
1868
1881
  * @permissionId ECOM.DELIVERY_PROFILE_CREATE
1869
1882
  * @applicableIdentity APP
1870
- * @returns The created DeliveryProfile.
1883
+ * @returns Created delivery profile.
1871
1884
  * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile
1872
1885
  */
1873
1886
  declare function createDeliveryProfile(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`, 6>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
1874
1887
  __applicationErrorsType?: CreateDeliveryProfileApplicationErrors;
1875
1888
  }>;
1876
1889
  /**
1877
- * Retrieves a DeliveryProfile.
1878
- * @param deliveryProfileId - ID of the DeliveryProfile to retrieve.
1890
+ * Retrieves a delivery profile.
1891
+ * @param deliveryProfileId - Delivery profile ID.
1879
1892
  * @public
1880
1893
  * @documentationMaturity preview
1881
1894
  * @requiredField deliveryProfileId
1882
1895
  * @permissionId ECOM.DELIVERY_PROFILE_READ
1883
1896
  * @applicableIdentity APP
1884
- * @returns The requested DeliveryProfile.
1897
+ * @returns Retrieved delivery profile.
1885
1898
  * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile
1886
1899
  */
1887
1900
  declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2>>;
1888
1901
  /**
1889
- * Updates a DeliveryProfile.
1890
- *
1891
- * Each time the DeliveryProfile is updated,
1892
- * `revision` increments by 1.
1893
- * The current `revision` must be passed when updating the DeliveryProfile.
1894
- * This ensures you're working with the latest DeliveryProfile
1895
- * and prevents unintended overwrites.
1896
- * Revision is required for all updates, including partial updates via field_mask,
1897
- * to prevent concurrent modification conflicts.
1902
+ * Updates a delivery profile.
1898
1903
  *
1899
- * This method does not allow updating the DeliveryRegions in this DeliveryProfile.
1900
- * To manage delivery regions within this profile, use the AddDeliveryRegion, UpdateDeliveryRegion,
1901
- * and RemoveDeliveryRegion methods. These dedicated methods ensure proper validation of destinations and carriers.
1904
+ * Each time the delivery profile is updated, `revision` increments by 1. The current `revision` must be passed when updating the delivery profile. This ensures you're working with the latest delivery profile and prevents unintended overwrites.
1902
1905
  *
1903
- * Note: The field mask is automatically inferred from the fields you provide in delivery_profile.
1904
- * You don't need to manually specify which fields to update.
1905
- * @param _id - DeliveryProfile ID.
1906
+ * This method doesn't support updating delivery regions in the profile. To manage delivery regions, use [Add Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-region), [Update Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-region), or [Remove Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-region).
1907
+ * @param _id - Delivery profile ID.
1906
1908
  * @public
1907
1909
  * @documentationMaturity preview
1908
1910
  * @requiredField _id
@@ -1910,7 +1912,7 @@ declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNulla
1910
1912
  * @requiredField deliveryProfile.revision
1911
1913
  * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1912
1914
  * @applicableIdentity APP
1913
- * @returns Updated DeliveryProfile.
1915
+ * @returns Updated delivery profile.
1914
1916
  * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile
1915
1917
  */
1916
1918
  declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`, 2>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
@@ -1918,63 +1920,65 @@ declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullable
1918
1920
  }>;
1919
1921
  interface UpdateDeliveryProfile {
1920
1922
  /**
1921
- * DeliveryProfile ID.
1923
+ * Delivery profile ID.
1922
1924
  * @format GUID
1923
1925
  * @readonly
1924
1926
  */
1925
1927
  _id?: string | null;
1926
1928
  /**
1927
- * DeliveryProfile name.
1929
+ * Delivery profile name.
1928
1930
  * @minLength 1
1929
1931
  * @maxLength 256
1930
1932
  */
1931
1933
  name?: string | null;
1932
1934
  /**
1933
- * Indicates whether this is the default DeliveryProfile.
1934
- * The first delivery profile is automatically created and marked as default when the Wix Stores app is installed.
1935
- * Default status cannot be changed or transferred to another profile.
1936
- * The default profile cannot be deleted because every site requires one for core delivery functionality.
1935
+ * Whether this is the default delivery profile.
1936
+ *
1937
+ * > **Notes:**
1938
+ * >
1939
+ * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.
1940
+ * > - Default status can't be changed or transferred to another profile.
1941
+ * > - The default profile can't be deleted because every site requires one for core delivery functionality.
1937
1942
  * @readonly
1938
1943
  */
1939
1944
  default?: boolean | null;
1940
1945
  /**
1941
- * A list of DeliveryProfile regions.
1946
+ * Delivery regions in this profile.
1942
1947
  * @maxSize 100
1943
1948
  */
1944
1949
  deliveryRegions?: DeliveryRegion[];
1945
1950
  /**
1946
1951
  * Information about who created the delivery profile.
1947
- * Contains either an app ID (for profiles created by apps) or a user ID (for profiles created by site users).
1952
+ *
1953
+ * Currently only for use with Wix Restaurants.
1948
1954
  */
1949
1955
  createdBy?: CreatedBy;
1950
1956
  /**
1951
- * DeliveryProfile revision.
1957
+ * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.
1952
1958
  * @readonly
1953
1959
  */
1954
1960
  revision?: string | null;
1955
1961
  /**
1956
- * Date and time the DeliveryProfile was created.
1962
+ * Date and time the delivery profile was created.
1957
1963
  * @readonly
1958
1964
  */
1959
1965
  _createdDate?: Date | null;
1960
1966
  /**
1961
- * Date and time the DeliveryProfile was last updated.
1967
+ * Date and time the delivery profile was last updated.
1962
1968
  * @readonly
1963
1969
  */
1964
1970
  _updatedDate?: Date | null;
1965
- /** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields ) must be configured in the app dashboard before they can be accessed with API calls. */
1971
+ /** Custom field data for the delivery profile object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
1966
1972
  extendedFields?: ExtendedFields;
1967
1973
  }
1968
1974
  /**
1969
- * Deletes a DeliveryProfile.
1975
+ * Deletes a delivery profile.
1970
1976
  *
1971
- * Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
1972
1977
  *
1973
- * Permanently deletes the delivery profile. This action cannot be undone. All associated delivery regions and
1974
- * carrier configurations will also be removed.
1978
+ * Permanently deletes the delivery profile, including all associated delivery regions and carrier configurations. This action can't be undone.
1975
1979
  *
1976
- * Cannot delete the default delivery profile because every site requires one for core delivery functionality.
1977
- * @param deliveryProfileId - Id of the DeliveryProfile to delete.
1980
+ * The default delivery profile can't be deleted because every site requires one for core delivery functionality.
1981
+ * @param deliveryProfileId - Delivery profile ID.
1978
1982
  * @public
1979
1983
  * @documentationMaturity preview
1980
1984
  * @requiredField deliveryProfileId
@@ -1984,14 +1988,17 @@ interface UpdateDeliveryProfile {
1984
1988
  */
1985
1989
  declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>;
1986
1990
  /**
1987
- * Retrieves a list of DeliveryProfiles, given the provided [paging, filtering, and sorting][1].
1991
+ * Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.
1992
+ *
1993
+ * Query Delivery Profiles runs with these defaults, which you can override:
1988
1994
  *
1989
- * Up to 100 DeliveryProfiles can be returned per request.
1995
+ * - `createdDate` is sorted in `DESC` order.
1996
+ * - `paging.limit` is `50`.
1997
+ * - `paging.offset` is `0`.
1990
1998
  *
1991
- * To learn how to query DeliveryProfiles, see [API Query Language][2].
1999
+ * For field support for filters and sorting, see [Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/supported-filters).
1992
2000
  *
1993
- * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
1994
- * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
2001
+ * To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
1995
2002
  * @public
1996
2003
  * @documentationMaturity preview
1997
2004
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -2148,9 +2155,9 @@ type DeliveryProfileQuery = {
2148
2155
  }[];
2149
2156
  };
2150
2157
  /**
2151
- * Creates a new DeliveryRegion in an existing DeliveryProfile.
2152
- * @param deliveryProfileId - delivery profile id to associated with the DeliveryRegion
2153
- * @param deliveryRegion - DeliveryRegion to be created
2158
+ * Adds a delivery region to an existing delivery profile.
2159
+ * @param deliveryProfileId - Delivery profile ID.
2160
+ * @param deliveryRegion - Delivery region to add.
2154
2161
  * @public
2155
2162
  * @documentationMaturity preview
2156
2163
  * @requiredField deliveryProfileId
@@ -2167,19 +2174,16 @@ declare function addDeliveryRegion(deliveryProfileId: string, deliveryRegion: No
2167
2174
  }>;
2168
2175
  interface AddDeliveryRegionOptions {
2169
2176
  /**
2170
- * DeliveryProfile revision.
2177
+ * Delivery profile revision.
2171
2178
  * @readonly
2172
2179
  */
2173
2180
  revision?: string | null;
2174
2181
  }
2175
2182
  /**
2176
- * Update a DeliveryRegion, supports partial update
2177
- * Pass the latest `revision` for a successful update
2183
+ * Updates a delivery region.
2178
2184
  *
2179
- * This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
2180
- * Delivery carriers within a region must be managed using dedicated methods: AddDeliveryCarrier to add a carrier,
2181
- * UpdateDeliveryCarrier to modify carrier settings, and RemoveDeliveryCarrier to remove a carrier.
2182
- * This ensures proper validation and event tracking for carrier changes.
2185
+ *
2186
+ * This method doesn't support updating delivery carriers in the region. To manage carriers, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), or [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier).
2183
2187
  * @public
2184
2188
  * @documentationMaturity preview
2185
2189
  * @requiredField deliveryRegion
@@ -2196,12 +2200,12 @@ declare function updateDeliveryRegion(identifiers: NonNullablePaths<UpdateDelive
2196
2200
  }>;
2197
2201
  interface UpdateDeliveryRegionIdentifiers {
2198
2202
  /**
2199
- * DeliveryProfile id that owns the DeliveryRegion
2203
+ * Delivery profile ID.
2200
2204
  * @format GUID
2201
2205
  */
2202
2206
  deliveryProfileId: string;
2203
2207
  /**
2204
- * The delivery region id.
2208
+ * Delivery region ID.
2205
2209
  * @format GUID
2206
2210
  * @readonly
2207
2211
  */
@@ -2209,46 +2213,50 @@ interface UpdateDeliveryRegionIdentifiers {
2209
2213
  }
2210
2214
  interface UpdateDeliveryRegion {
2211
2215
  /**
2212
- * The delivery region id.
2216
+ * Delivery region ID.
2213
2217
  * @format GUID
2214
2218
  * @readonly
2215
2219
  */
2216
2220
  _id?: string | null;
2217
2221
  /**
2218
- * Optional name of the region, for example: "Domestic".
2222
+ * Delivery region name. For example, `"Domestic"` or `"International"`.
2219
2223
  * @minLength 1
2220
2224
  * @maxLength 256
2221
2225
  */
2222
2226
  name?: string | null;
2223
- /** Indicates that this delivery region is active, default value is true. */
2227
+ /**
2228
+ * Whether this delivery region is active and available during checkout.
2229
+ *
2230
+ * Default: `true`
2231
+ */
2224
2232
  active?: boolean | null;
2225
2233
  /**
2226
- * The spi implementers id of shipping-rates spi, assigned to this delivery region.
2234
+ * Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
2227
2235
  * @maxSize 25
2228
2236
  * @readonly
2229
2237
  */
2230
2238
  deliveryCarriers?: DeliveryCarrier[];
2231
2239
  /**
2232
- * The operation region of this delivery region, if empty than it is global.
2240
+ * Geographic destinations covered by this region. If empty, the region applies globally.
2233
2241
  * @maxSize 250
2234
2242
  */
2235
2243
  destinations?: Destination[];
2236
2244
  /**
2237
- * Represents the time this Profile was created
2245
+ * Date and time the delivery region was created.
2238
2246
  * @readonly
2239
2247
  */
2240
2248
  _createdDate?: Date | null;
2241
2249
  }
2242
2250
  interface UpdateDeliveryRegionOptions {
2243
2251
  /**
2244
- * DeliveryProfile revision.
2252
+ * Delivery profile revision.
2245
2253
  * @readonly
2246
2254
  */
2247
2255
  revision?: string | null;
2248
2256
  }
2249
2257
  /**
2250
- * Retrieves a DeliveryProfile by delivery region ID.
2251
- * @param deliveryRegionId - ID of the DeliveryRegion to retrieve the profile for.
2258
+ * Retrieves a delivery profile by delivery region ID.
2259
+ * @param deliveryRegionId - Delivery region ID.
2252
2260
  * @public
2253
2261
  * @documentationMaturity preview
2254
2262
  * @requiredField deliveryRegionId
@@ -2260,7 +2268,7 @@ declare function getDeliveryProfileByDeliveryRegionId(deliveryRegionId: string):
2260
2268
  __applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;
2261
2269
  }>;
2262
2270
  /**
2263
- * Delete a DeliveryRegion
2271
+ * Removes a delivery region from a delivery profile.
2264
2272
  * @public
2265
2273
  * @documentationMaturity preview
2266
2274
  * @requiredField identifiers
@@ -2275,26 +2283,26 @@ declare function removeDeliveryRegion(identifiers: NonNullablePaths<RemoveDelive
2275
2283
  }>;
2276
2284
  interface RemoveDeliveryRegionIdentifiers {
2277
2285
  /**
2278
- * DeliveryProfile id that owns the DeliveryRegion
2286
+ * Delivery profile ID.
2279
2287
  * @format GUID
2280
2288
  */
2281
2289
  deliveryProfileId: string;
2282
2290
  /**
2283
- * Id of the DeliveryRegion to delete
2291
+ * Delivery region ID.
2284
2292
  * @format GUID
2285
2293
  */
2286
2294
  deliveryRegionId: string;
2287
2295
  }
2288
2296
  interface RemoveDeliveryRegionOptions {
2289
2297
  /**
2290
- * DeliveryProfile revision.
2298
+ * Delivery profile revision.
2291
2299
  * @readonly
2292
2300
  */
2293
2301
  revision?: string | null;
2294
2302
  }
2295
2303
  /**
2296
- * Add a delivery_carrier to a delivery region
2297
- * @param deliveryRegionId - delivery_region id to associated with the delivery_carrier.
2304
+ * Adds a delivery carrier to a delivery region.
2305
+ * @param deliveryRegionId - Delivery region ID.
2298
2306
  * @public
2299
2307
  * @documentationMaturity preview
2300
2308
  * @requiredField deliveryRegionId
@@ -2310,12 +2318,12 @@ declare function addDeliveryCarrier(deliveryRegionId: string, options: NonNullab
2310
2318
  __validationErrorsType?: AddDeliveryCarrierValidationErrors;
2311
2319
  }>;
2312
2320
  interface AddDeliveryCarrierOptions {
2313
- /** delivery_carrier to be added. */
2321
+ /** Delivery carrier to add. */
2314
2322
  deliveryCarrier: DeliveryCarrier;
2315
2323
  }
2316
2324
  /**
2317
- * Remove a delivery_carrier from a delivery region
2318
- * @param deliveryRegionId - Id of the DeliveryRegion
2325
+ * Removes a delivery carrier from a delivery region.
2326
+ * @param deliveryRegionId - Delivery region ID.
2319
2327
  * @public
2320
2328
  * @documentationMaturity preview
2321
2329
  * @requiredField deliveryRegionId
@@ -2330,14 +2338,14 @@ declare function removeDeliveryCarrier(deliveryRegionId: string, options: NonNul
2330
2338
  }>;
2331
2339
  interface RemoveDeliveryCarrierOptions {
2332
2340
  /**
2333
- * DeliveryCarrier app id to be removed.
2341
+ * App ID of the delivery carrier to remove.
2334
2342
  * @format GUID
2335
2343
  */
2336
2344
  appId: string;
2337
2345
  }
2338
2346
  /**
2339
- * Update a delivery carrier in a delivery region
2340
- * @param deliveryRegionId - DeliveryRegion id
2347
+ * Updates a delivery carrier's settings in a delivery region.
2348
+ * @param deliveryRegionId - Delivery region ID.
2341
2349
  * @public
2342
2350
  * @documentationMaturity preview
2343
2351
  * @requiredField deliveryRegionId
@@ -2350,11 +2358,14 @@ declare function updateDeliveryCarrier(deliveryRegionId: string, options?: NonNu
2350
2358
  __applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;
2351
2359
  }>;
2352
2360
  interface UpdateDeliveryCarrierOptions {
2353
- /** Updated delivery_carrier */
2361
+ /** Delivery carrier to update. */
2354
2362
  deliveryCarrier?: DeliveryCarrier;
2355
2363
  }
2356
2364
  /**
2357
- * List all installed delivery carriers in order to set their ids in delivery rules
2365
+ * Retrieves a list of all delivery carriers installed on a site.
2366
+ *
2367
+ *
2368
+ * Use this method to discover available carriers before adding them to delivery regions.
2358
2369
  * @public
2359
2370
  * @documentationMaturity preview
2360
2371
  * @permissionId ECOM.DELIVERY_CARRIER_READ
@@ -2363,7 +2374,10 @@ interface UpdateDeliveryCarrierOptions {
2363
2374
  */
2364
2375
  declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`, 4>>;
2365
2376
  /**
2366
- * Retrieves delivery destination properties by ROW, and aggregated country and subdivision
2377
+ * Retrieves delivery destination properties.
2378
+ *
2379
+ *
2380
+ * Returns properties for Rest of World, as well as aggregated country and subdivision data. Properties include whether postal codes are required and whether pickup is the only delivery option for each destination.
2367
2381
  * @public
2368
2382
  * @documentationMaturity preview
2369
2383
  * @permissionId ECOM.DELIVERY_PROFILE_READ
@@ -2372,9 +2386,11 @@ declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListI
2372
2386
  */
2373
2387
  declare function getDeliveryDestinationProperties(): Promise<NonNullablePaths<GetDeliveryDestinationPropertiesResponse, `restOfWorld.postalCodeRequired` | `restOfWorld.pickupOnly` | `countries` | `countries.${number}.country` | `countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `countries.${number}.deliveryDestinationProperties.pickupOnly`, 5>>;
2374
2388
  /**
2375
- * Get delivery carrier settings for a delivery profile and delivery region.
2376
- * These are returned in a table format for the dashboard.
2377
- * @param deliveryProfileId - Delivery profile id.
2389
+ * Retrieves delivery carrier settings for a delivery profile.
2390
+ *
2391
+ *
2392
+ * Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than List Installed Delivery Carriers.
2393
+ * @param deliveryProfileId - Delivery profile ID.
2378
2394
  * @public
2379
2395
  * @documentationMaturity preview
2380
2396
  * @requiredField deliveryProfileId
@@ -2387,7 +2403,7 @@ declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListD
2387
2403
  }>;
2388
2404
  interface ListDeliveryCarriersOptions {
2389
2405
  /**
2390
- * Delivery app ids to get settings for.
2406
+ * App IDs of the delivery carriers to retrieve settings for.
2391
2407
  * @format GUID
2392
2408
  * @minSize 1
2393
2409
  * @maxSize 25
@@ -2395,8 +2411,8 @@ interface ListDeliveryCarriersOptions {
2395
2411
  appIds?: string[];
2396
2412
  }
2397
2413
  /**
2398
- * Update carrier's external active settings
2399
- * @param carrierId - Carrier id.
2414
+ * Updates a carrier's external active settings.
2415
+ * @param carrierId - Carrier app ID.
2400
2416
  * @internal
2401
2417
  * @documentationMaturity preview
2402
2418
  * @requiredField carrierId
@@ -2412,15 +2428,15 @@ declare function updateCarrierSettings(carrierId: string, options: NonNullablePa
2412
2428
  }>;
2413
2429
  interface UpdateCarrierSettingsOptions {
2414
2430
  /**
2415
- * Row id triggered the change
2431
+ * ID of the dashboard table row that triggered the change.
2416
2432
  * @format GUID
2417
2433
  */
2418
2434
  rowId: string;
2419
- /** New status */
2435
+ /** New active status. */
2420
2436
  active: boolean | null;
2421
2437
  }
2422
2438
  /**
2423
- * Sets delivery carrier's active status.
2439
+ * Sets a delivery carrier's active status.
2424
2440
  * @param carrierAppId - Carrier app ID.
2425
2441
  * @public
2426
2442
  * @documentationMaturity preview