@wix/auto_sdk_ecom_delivery-profile 1.0.241 → 1.0.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +63 -61
- package/build/cjs/index.js +44 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +283 -243
- package/build/cjs/index.typings.js +44 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +161 -146
- package/build/cjs/meta.js +44 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +63 -61
- package/build/es/index.mjs +44 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +283 -243
- package/build/es/index.typings.mjs +44 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +161 -146
- package/build/es/meta.mjs +44 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +65 -63
- package/build/internal/cjs/index.js +44 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +285 -245
- package/build/internal/cjs/index.typings.js +44 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +161 -146
- package/build/internal/cjs/meta.js +44 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +65 -63
- package/build/internal/es/index.mjs +44 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +285 -245
- package/build/internal/es/index.typings.mjs +44 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +161 -146
- package/build/internal/es/meta.mjs +44 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,127 +1,143 @@
|
|
|
1
1
|
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
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
|
-
*
|
|
9
|
+
* Delivery profile ID.
|
|
11
10
|
* @format GUID
|
|
12
11
|
* @readonly
|
|
13
12
|
*/
|
|
14
13
|
_id?: string | null;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* Delivery profile name.
|
|
17
16
|
* @minLength 1
|
|
18
17
|
* @maxLength 256
|
|
19
18
|
*/
|
|
20
19
|
name?: string | null;
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
38
|
+
*
|
|
39
|
+
* Currently only for use with Wix Restaurants.
|
|
37
40
|
*/
|
|
38
41
|
createdBy?: CreatedBy;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
59
|
-
* Each region specifies destinations (countries and subdivisions) where products
|
|
60
|
-
*
|
|
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
|
-
*
|
|
68
|
+
* Delivery region ID.
|
|
65
69
|
* @format GUID
|
|
66
70
|
* @readonly
|
|
67
71
|
*/
|
|
68
72
|
_id?: string | null;
|
|
69
73
|
/**
|
|
70
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
130
|
+
* Backup rate amount.
|
|
121
131
|
* @decimalValue options { gte:0, maxScale:6 }
|
|
122
132
|
*/
|
|
123
133
|
amount?: string | null;
|
|
124
|
-
/**
|
|
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
|
-
*
|
|
150
|
+
* Charge amount. For example, `"12.5"`.
|
|
135
151
|
* @maxLength 16
|
|
136
152
|
*/
|
|
137
153
|
amount?: string;
|
|
138
154
|
}
|
|
139
|
-
/**
|
|
155
|
+
/** Geographic destination for a delivery region. */
|
|
140
156
|
interface Destination {
|
|
141
157
|
/**
|
|
142
|
-
* 2-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
209
|
+
* ID of the delivery profile containing the region.
|
|
194
210
|
* @format GUID
|
|
195
211
|
*/
|
|
196
212
|
deliveryProfileId?: string;
|
|
197
213
|
/**
|
|
198
|
-
*
|
|
214
|
+
* ID of the added delivery region.
|
|
199
215
|
* @format GUID
|
|
200
216
|
* @readonly
|
|
201
217
|
*/
|
|
202
218
|
deliveryRegionId?: string | null;
|
|
203
219
|
/**
|
|
204
|
-
*
|
|
220
|
+
* Delivery region name. For example, `"Domestic"`.
|
|
205
221
|
* @minLength 1
|
|
206
222
|
* @maxLength 256
|
|
207
223
|
*/
|
|
208
224
|
name?: string | null;
|
|
209
|
-
/**
|
|
225
|
+
/** Whether the delivery region is active. */
|
|
210
226
|
active?: boolean | null;
|
|
211
227
|
/**
|
|
212
|
-
*
|
|
228
|
+
* Delivery carriers assigned to this region.
|
|
213
229
|
* @maxSize 25
|
|
214
230
|
* @readonly
|
|
215
231
|
*/
|
|
216
232
|
deliveryCarriers?: DeliveryCarrier[];
|
|
217
233
|
/**
|
|
218
|
-
*
|
|
234
|
+
* Geographic destinations covered by this region.
|
|
219
235
|
* @maxSize 200
|
|
220
236
|
*/
|
|
221
237
|
destinations?: Destination[];
|
|
222
238
|
/**
|
|
223
|
-
*
|
|
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
|
-
*
|
|
247
|
+
* ID of the delivery profile that contained the region.
|
|
231
248
|
* @format GUID
|
|
232
249
|
*/
|
|
233
250
|
deliveryProfileId?: string;
|
|
234
251
|
/**
|
|
235
|
-
*
|
|
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
|
-
*
|
|
260
|
+
* ID of the delivery profile containing the region.
|
|
243
261
|
* @format GUID
|
|
244
262
|
*/
|
|
245
263
|
deliveryProfileId?: string;
|
|
246
264
|
/**
|
|
247
|
-
*
|
|
265
|
+
* ID of the updated delivery region.
|
|
248
266
|
* @format GUID
|
|
249
267
|
* @readonly
|
|
250
268
|
*/
|
|
251
269
|
deliveryRegionId?: string | null;
|
|
252
270
|
/**
|
|
253
|
-
*
|
|
271
|
+
* Delivery region name. For example, `"Domestic"`.
|
|
254
272
|
* @minLength 1
|
|
255
273
|
* @maxLength 256
|
|
256
274
|
*/
|
|
257
275
|
name?: string | null;
|
|
258
|
-
/**
|
|
276
|
+
/** Whether the delivery region is active. */
|
|
259
277
|
active?: boolean | null;
|
|
260
278
|
/**
|
|
261
|
-
*
|
|
279
|
+
* Delivery carriers assigned to this region.
|
|
262
280
|
* @maxSize 25
|
|
263
281
|
* @readonly
|
|
264
282
|
*/
|
|
265
283
|
deliveryCarriers?: DeliveryCarrier[];
|
|
266
284
|
/**
|
|
267
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
296
|
+
/** Delivery profile to create. */
|
|
279
297
|
deliveryProfile: DeliveryProfile;
|
|
280
298
|
}
|
|
281
299
|
interface CreateDeliveryProfileResponse {
|
|
282
|
-
/**
|
|
300
|
+
/** Created delivery profile. */
|
|
283
301
|
deliveryProfile?: DeliveryProfile;
|
|
284
302
|
}
|
|
285
303
|
interface GetDeliveryProfileRequest {
|
|
286
304
|
/**
|
|
287
|
-
*
|
|
305
|
+
* Delivery profile ID.
|
|
288
306
|
* @format GUID
|
|
289
307
|
*/
|
|
290
308
|
deliveryProfileId: string;
|
|
291
309
|
}
|
|
292
310
|
interface GetDeliveryProfileResponse {
|
|
293
|
-
/**
|
|
311
|
+
/** Retrieved delivery profile. */
|
|
294
312
|
deliveryProfile?: DeliveryProfile;
|
|
295
313
|
}
|
|
296
314
|
interface UpdateDeliveryProfileRequest {
|
|
297
|
-
/**
|
|
315
|
+
/** Delivery profile to update. */
|
|
298
316
|
deliveryProfile: DeliveryProfile;
|
|
299
317
|
}
|
|
300
318
|
interface UpdateDeliveryProfileResponse {
|
|
301
|
-
/** Updated
|
|
319
|
+
/** Updated delivery profile. */
|
|
302
320
|
deliveryProfile?: DeliveryProfile;
|
|
303
321
|
}
|
|
304
322
|
interface DeleteDeliveryProfileRequest {
|
|
305
323
|
/**
|
|
306
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
*
|
|
434
|
+
* Delivery profile ID.
|
|
417
435
|
* @format GUID
|
|
418
436
|
*/
|
|
419
437
|
deliveryProfileId: string;
|
|
420
|
-
/**
|
|
438
|
+
/** Delivery region to add. */
|
|
421
439
|
deliveryRegion: DeliveryRegion;
|
|
422
440
|
/**
|
|
423
|
-
*
|
|
441
|
+
* Delivery profile revision.
|
|
424
442
|
* @readonly
|
|
425
443
|
*/
|
|
426
444
|
revision?: string | null;
|
|
427
445
|
}
|
|
428
446
|
interface AddDeliveryRegionResponse {
|
|
429
|
-
/**
|
|
447
|
+
/** Updated delivery profile with the new delivery region. */
|
|
430
448
|
deliveryProfile?: DeliveryProfile;
|
|
431
449
|
}
|
|
432
450
|
interface UpdateDeliveryRegionRequest {
|
|
433
451
|
/**
|
|
434
|
-
*
|
|
452
|
+
* Delivery profile ID.
|
|
435
453
|
* @format GUID
|
|
436
454
|
*/
|
|
437
455
|
deliveryProfileId: string;
|
|
438
|
-
/**
|
|
456
|
+
/** Delivery region to update. */
|
|
439
457
|
deliveryRegion: DeliveryRegion;
|
|
440
458
|
/**
|
|
441
|
-
*
|
|
459
|
+
* Delivery profile revision.
|
|
442
460
|
* @readonly
|
|
443
461
|
*/
|
|
444
462
|
revision?: string | null;
|
|
445
463
|
}
|
|
446
464
|
interface UpdateDeliveryRegionResponse {
|
|
447
|
-
/**
|
|
465
|
+
/** Updated delivery profile with the updated delivery region. */
|
|
448
466
|
deliveryProfile?: DeliveryProfile;
|
|
449
467
|
}
|
|
450
468
|
interface GetDeliveryProfileByDeliveryRegionIdRequest {
|
|
451
469
|
/**
|
|
452
|
-
*
|
|
470
|
+
* Delivery region ID.
|
|
453
471
|
* @format GUID
|
|
454
472
|
*/
|
|
455
473
|
deliveryRegionId: string;
|
|
456
474
|
}
|
|
457
475
|
interface GetDeliveryProfileByDeliveryRegionIdResponse {
|
|
458
|
-
/**
|
|
476
|
+
/** Delivery profile containing the requested region. */
|
|
459
477
|
deliveryProfile?: DeliveryProfile;
|
|
460
478
|
}
|
|
461
479
|
interface RemoveDeliveryRegionRequest {
|
|
462
480
|
/**
|
|
463
|
-
*
|
|
481
|
+
* Delivery profile ID.
|
|
464
482
|
* @format GUID
|
|
465
483
|
*/
|
|
466
484
|
deliveryProfileId: string;
|
|
467
485
|
/**
|
|
468
|
-
*
|
|
486
|
+
* Delivery region ID.
|
|
469
487
|
* @format GUID
|
|
470
488
|
*/
|
|
471
489
|
deliveryRegionId: string;
|
|
472
490
|
/**
|
|
473
|
-
*
|
|
491
|
+
* Delivery profile revision.
|
|
474
492
|
* @readonly
|
|
475
493
|
*/
|
|
476
494
|
revision?: string | null;
|
|
477
495
|
}
|
|
478
496
|
interface RemoveDeliveryRegionResponse {
|
|
479
|
-
/**
|
|
497
|
+
/** Updated delivery profile with the delivery region removed. */
|
|
480
498
|
deliveryProfile?: DeliveryProfile;
|
|
481
499
|
}
|
|
482
500
|
interface AddDeliveryCarrierRequest {
|
|
483
501
|
/**
|
|
484
|
-
*
|
|
502
|
+
* Delivery region ID.
|
|
485
503
|
* @format GUID
|
|
486
504
|
*/
|
|
487
505
|
deliveryRegionId: string;
|
|
488
|
-
/**
|
|
506
|
+
/** Delivery carrier to add. */
|
|
489
507
|
deliveryCarrier: DeliveryCarrier;
|
|
490
508
|
}
|
|
491
509
|
interface AddDeliveryCarrierResponse {
|
|
492
|
-
/**
|
|
510
|
+
/** Updated delivery profile. */
|
|
493
511
|
deliveryProfile?: DeliveryProfile;
|
|
494
512
|
}
|
|
495
513
|
interface RemoveDeliveryCarrierRequest {
|
|
496
514
|
/**
|
|
497
|
-
*
|
|
515
|
+
* Delivery region ID.
|
|
498
516
|
* @format GUID
|
|
499
517
|
*/
|
|
500
518
|
deliveryRegionId: string;
|
|
501
519
|
/**
|
|
502
|
-
*
|
|
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
|
-
/**
|
|
526
|
+
/** Updated delivery profile. */
|
|
509
527
|
deliveryProfile?: DeliveryProfile;
|
|
510
528
|
}
|
|
511
529
|
interface UpdateDeliveryCarrierRequest {
|
|
512
530
|
/**
|
|
513
|
-
*
|
|
531
|
+
* Delivery region ID.
|
|
514
532
|
* @format GUID
|
|
515
533
|
*/
|
|
516
534
|
deliveryRegionId: string;
|
|
517
|
-
/**
|
|
535
|
+
/** Delivery carrier to update. */
|
|
518
536
|
deliveryCarrier?: DeliveryCarrier;
|
|
519
537
|
}
|
|
520
538
|
interface UpdateDeliveryCarrierResponse {
|
|
521
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
553
|
+
* Carrier app ID.
|
|
536
554
|
* @format GUID
|
|
537
555
|
*/
|
|
538
556
|
_id?: string;
|
|
539
557
|
/**
|
|
540
|
-
*
|
|
558
|
+
* Carrier display name.
|
|
541
559
|
* @maxLength 256
|
|
542
560
|
*/
|
|
543
561
|
displayName?: string;
|
|
544
562
|
/**
|
|
545
|
-
*
|
|
563
|
+
* Carrier description.
|
|
546
564
|
* @maxLength 200
|
|
547
565
|
*/
|
|
548
566
|
description?: string | null;
|
|
549
567
|
/**
|
|
550
|
-
*
|
|
568
|
+
* URL to learn more about the carrier.
|
|
551
569
|
* @maxLength 200
|
|
552
570
|
*/
|
|
553
571
|
learnMoreUrl?: string | null;
|
|
554
572
|
/**
|
|
555
|
-
*
|
|
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
|
-
/**
|
|
579
|
+
/** Whether a backup rate is required for this carrier. */
|
|
562
580
|
fallbackDefinitionMandatory?: boolean | null;
|
|
563
581
|
/**
|
|
564
|
-
*
|
|
582
|
+
* URL for the carrier's thumbnail image.
|
|
565
583
|
* @format WEB_URL
|
|
566
584
|
*/
|
|
567
585
|
thumbnailUrl?: string | null;
|
|
568
|
-
/**
|
|
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
|
|
592
|
+
/** Scope of destinations. When `WORLDWIDE` is selected, the `destinations` list is empty. */
|
|
575
593
|
destinationScope?: DestinationScopeWithLiterals;
|
|
576
594
|
/**
|
|
577
|
-
*
|
|
595
|
+
* List of configured destinations.
|
|
578
596
|
* @maxSize 200
|
|
579
597
|
*/
|
|
580
598
|
destinations?: Destination[];
|
|
581
599
|
}
|
|
582
600
|
declare enum DestinationScope {
|
|
583
|
-
/**
|
|
601
|
+
/** Specific destinations are configured. */
|
|
584
602
|
SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
|
|
585
|
-
/** All
|
|
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
|
-
/**
|
|
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
|
|
617
|
+
/** Delivery destination properties for Rest of World. */
|
|
600
618
|
restOfWorld?: DeliveryDestinationProperties;
|
|
601
619
|
/**
|
|
602
|
-
* List of countries and
|
|
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
|
-
/**
|
|
626
|
+
/** Whether a postal code is required for delivery to this destination. */
|
|
609
627
|
postalCodeRequired?: boolean;
|
|
610
|
-
/**
|
|
628
|
+
/** Whether only pickup is available at this destination. */
|
|
611
629
|
pickupOnly?: boolean;
|
|
612
630
|
}
|
|
613
631
|
interface CountryDeliveryProperties {
|
|
614
632
|
/**
|
|
615
|
-
*
|
|
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
|
|
657
|
+
* Delivery profile ID.
|
|
640
658
|
* @format GUID
|
|
641
659
|
*/
|
|
642
660
|
deliveryProfileId: string;
|
|
643
661
|
/**
|
|
644
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
679
|
+
/** Metadata for the result, including success or error information. */
|
|
662
680
|
deliveryCarrierMetadata?: ItemMetadata;
|
|
663
|
-
/**
|
|
681
|
+
/** Delivery carrier details. */
|
|
664
682
|
deliveryCarrierDetails?: DeliveryCarrierDetails;
|
|
665
683
|
/**
|
|
666
|
-
*
|
|
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
|
-
*
|
|
711
|
+
* Carrier app ID.
|
|
694
712
|
* @format GUID
|
|
695
713
|
*/
|
|
696
714
|
_id?: string;
|
|
697
715
|
/**
|
|
698
|
-
*
|
|
716
|
+
* Carrier display name.
|
|
699
717
|
* @maxLength 256
|
|
700
718
|
*/
|
|
701
719
|
displayName?: string;
|
|
702
720
|
/**
|
|
703
|
-
*
|
|
721
|
+
* Carrier description.
|
|
704
722
|
* @maxLength 200
|
|
705
723
|
*/
|
|
706
724
|
description?: string | null;
|
|
707
725
|
/**
|
|
708
|
-
*
|
|
726
|
+
* URL to learn more about the carrier.
|
|
709
727
|
* @maxLength 200
|
|
710
728
|
*/
|
|
711
729
|
learnMoreUrl?: string | null;
|
|
712
730
|
/**
|
|
713
|
-
*
|
|
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
|
-
/**
|
|
737
|
+
/** Whether a backup rate is required for this carrier. */
|
|
720
738
|
fallbackDefinitionMandatory?: boolean | null;
|
|
721
739
|
/**
|
|
722
|
-
*
|
|
740
|
+
* URL for the carrier's thumbnail image.
|
|
723
741
|
* @format WEB_URL
|
|
724
742
|
*/
|
|
725
743
|
thumbnailUrl?: string | null;
|
|
726
|
-
/**
|
|
744
|
+
/** Whether the carrier supports retrieving carrier settings. */
|
|
727
745
|
toggleGetCarrierSettingsEnabled?: boolean;
|
|
728
|
-
/**
|
|
746
|
+
/** Whether the carrier supports updating carrier active status. */
|
|
729
747
|
toggleUpdateCarrierActiveStatusEnabled?: boolean;
|
|
730
748
|
}
|
|
731
749
|
interface DeliveryCarrierRegionalSettings {
|
|
732
750
|
/**
|
|
733
|
-
*
|
|
751
|
+
* Delivery region ID.
|
|
734
752
|
* @format GUID
|
|
735
753
|
*/
|
|
736
754
|
deliveryRegionId?: string;
|
|
737
755
|
/**
|
|
738
|
-
*
|
|
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
|
-
*
|
|
764
|
+
* Table title.
|
|
747
765
|
* @maxLength 256
|
|
748
766
|
*/
|
|
749
767
|
title?: string;
|
|
750
768
|
/**
|
|
751
|
-
*
|
|
769
|
+
* Table columns.
|
|
752
770
|
* @maxSize 200
|
|
753
771
|
*/
|
|
754
772
|
columns?: Column[];
|
|
755
773
|
/**
|
|
756
|
-
*
|
|
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
|
-
*
|
|
781
|
+
* Column key, used to retrieve data from rows.
|
|
764
782
|
* @maxLength 256
|
|
765
783
|
*/
|
|
766
784
|
key?: string;
|
|
767
785
|
/**
|
|
768
|
-
*
|
|
786
|
+
* Column display name.
|
|
769
787
|
* @maxLength 256
|
|
770
788
|
*/
|
|
771
789
|
name?: string;
|
|
772
790
|
}
|
|
773
791
|
interface Row {
|
|
774
792
|
/**
|
|
775
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
812
|
+
* Carrier app ID.
|
|
798
813
|
* @format GUID
|
|
799
814
|
*/
|
|
800
815
|
carrierId: string;
|
|
801
816
|
/**
|
|
802
|
-
*
|
|
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
|
|
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
|
-
/**
|
|
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,6 +1740,8 @@ 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
|
|
1743
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1744
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1726
1745
|
* @permissionScope Manage eCommerce - all permissions
|
|
1727
1746
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1728
1747
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1736,7 +1755,9 @@ interface DeliveryProfileDeletedEnvelope {
|
|
|
1736
1755
|
entity: DeliveryProfile;
|
|
1737
1756
|
metadata: EventMetadata;
|
|
1738
1757
|
}
|
|
1739
|
-
/**
|
|
1758
|
+
/**
|
|
1759
|
+
* Triggered when a delivery profile is deleted.
|
|
1760
|
+
* @permissionScope Manage Stores - all permissions
|
|
1740
1761
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1741
1762
|
* @permissionScope Manage Stores
|
|
1742
1763
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1744,6 +1765,8 @@ interface DeliveryProfileDeletedEnvelope {
|
|
|
1744
1765
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1745
1766
|
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
1746
1767
|
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
1768
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1769
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1747
1770
|
* @permissionScope Manage eCommerce - all permissions
|
|
1748
1771
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1749
1772
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1757,7 +1780,9 @@ interface DeliveryProfileRegionAddedEnvelope {
|
|
|
1757
1780
|
data: DeliveryRegionAdded;
|
|
1758
1781
|
metadata: EventMetadata;
|
|
1759
1782
|
}
|
|
1760
|
-
/**
|
|
1783
|
+
/**
|
|
1784
|
+
* Triggered when a delivery region is added to a delivery profile.
|
|
1785
|
+
* @permissionScope Manage Stores - all permissions
|
|
1761
1786
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1762
1787
|
* @permissionScope Manage Stores
|
|
1763
1788
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1765,6 +1790,8 @@ interface DeliveryProfileRegionAddedEnvelope {
|
|
|
1765
1790
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1766
1791
|
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
1767
1792
|
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
1793
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1794
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1768
1795
|
* @permissionScope Manage eCommerce - all permissions
|
|
1769
1796
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1770
1797
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1778,7 +1805,9 @@ interface DeliveryProfileRegionRemovedEnvelope {
|
|
|
1778
1805
|
data: DeliveryRegionRemoved;
|
|
1779
1806
|
metadata: EventMetadata;
|
|
1780
1807
|
}
|
|
1781
|
-
/**
|
|
1808
|
+
/**
|
|
1809
|
+
* Triggered when a delivery region is removed from a delivery profile.
|
|
1810
|
+
* @permissionScope Manage Stores - all permissions
|
|
1782
1811
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1783
1812
|
* @permissionScope Manage Stores
|
|
1784
1813
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1786,6 +1815,8 @@ interface DeliveryProfileRegionRemovedEnvelope {
|
|
|
1786
1815
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1787
1816
|
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
1788
1817
|
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
1818
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1819
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1789
1820
|
* @permissionScope Manage eCommerce - all permissions
|
|
1790
1821
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1791
1822
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1799,7 +1830,9 @@ interface DeliveryProfileRegionUpdatedEnvelope {
|
|
|
1799
1830
|
data: DeliveryRegionUpdated;
|
|
1800
1831
|
metadata: EventMetadata;
|
|
1801
1832
|
}
|
|
1802
|
-
/**
|
|
1833
|
+
/**
|
|
1834
|
+
* Triggered when a delivery region is updated.
|
|
1835
|
+
* @permissionScope Manage Stores - all permissions
|
|
1803
1836
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1804
1837
|
* @permissionScope Manage Stores
|
|
1805
1838
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1807,6 +1840,8 @@ interface DeliveryProfileRegionUpdatedEnvelope {
|
|
|
1807
1840
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1808
1841
|
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
1809
1842
|
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
1843
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1844
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1810
1845
|
* @permissionScope Manage eCommerce - all permissions
|
|
1811
1846
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1812
1847
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1822,7 +1857,9 @@ interface DeliveryProfileUpdatedEnvelope {
|
|
|
1822
1857
|
/** @hidden */
|
|
1823
1858
|
modifiedFields: Record<string, any>;
|
|
1824
1859
|
}
|
|
1825
|
-
/**
|
|
1860
|
+
/**
|
|
1861
|
+
* Triggered when a delivery profile is updated.
|
|
1862
|
+
* @permissionScope Manage Stores - all permissions
|
|
1826
1863
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1827
1864
|
* @permissionScope Manage Stores
|
|
1828
1865
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1830,6 +1867,8 @@ interface DeliveryProfileUpdatedEnvelope {
|
|
|
1830
1867
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1831
1868
|
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
1832
1869
|
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
1870
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1871
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1833
1872
|
* @permissionScope Manage eCommerce - all permissions
|
|
1834
1873
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1835
1874
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1840,13 +1879,11 @@ interface DeliveryProfileUpdatedEnvelope {
|
|
|
1840
1879
|
*/
|
|
1841
1880
|
declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>): void;
|
|
1842
1881
|
/**
|
|
1843
|
-
* Creates a
|
|
1882
|
+
* Creates a delivery profile.
|
|
1844
1883
|
*
|
|
1845
|
-
* The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
|
|
1846
1884
|
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1849
|
-
* @param deliveryProfile - DeliveryProfile to be created.
|
|
1885
|
+
* A site can have up to 99 delivery profiles. Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.
|
|
1886
|
+
* @param deliveryProfile - Delivery profile to create.
|
|
1850
1887
|
* @public
|
|
1851
1888
|
* @documentationMaturity preview
|
|
1852
1889
|
* @requiredField deliveryProfile
|
|
@@ -1855,42 +1892,31 @@ declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdate
|
|
|
1855
1892
|
* @requiredField deliveryProfile.name
|
|
1856
1893
|
* @permissionId ECOM.DELIVERY_PROFILE_CREATE
|
|
1857
1894
|
* @applicableIdentity APP
|
|
1858
|
-
* @returns
|
|
1895
|
+
* @returns Created delivery profile.
|
|
1859
1896
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile
|
|
1860
1897
|
*/
|
|
1861
1898
|
declare function createDeliveryProfile(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`, 6>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
|
|
1862
1899
|
__applicationErrorsType?: CreateDeliveryProfileApplicationErrors;
|
|
1863
1900
|
}>;
|
|
1864
1901
|
/**
|
|
1865
|
-
* Retrieves a
|
|
1866
|
-
* @param deliveryProfileId -
|
|
1902
|
+
* Retrieves a delivery profile.
|
|
1903
|
+
* @param deliveryProfileId - Delivery profile ID.
|
|
1867
1904
|
* @public
|
|
1868
1905
|
* @documentationMaturity preview
|
|
1869
1906
|
* @requiredField deliveryProfileId
|
|
1870
1907
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
1871
1908
|
* @applicableIdentity APP
|
|
1872
|
-
* @returns
|
|
1909
|
+
* @returns Retrieved delivery profile.
|
|
1873
1910
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile
|
|
1874
1911
|
*/
|
|
1875
1912
|
declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2>>;
|
|
1876
1913
|
/**
|
|
1877
|
-
* Updates a
|
|
1878
|
-
*
|
|
1879
|
-
* Each time the DeliveryProfile is updated,
|
|
1880
|
-
* `revision` increments by 1.
|
|
1881
|
-
* The current `revision` must be passed when updating the DeliveryProfile.
|
|
1882
|
-
* This ensures you're working with the latest DeliveryProfile
|
|
1883
|
-
* and prevents unintended overwrites.
|
|
1884
|
-
* Revision is required for all updates, including partial updates via field_mask,
|
|
1885
|
-
* to prevent concurrent modification conflicts.
|
|
1914
|
+
* Updates a delivery profile.
|
|
1886
1915
|
*
|
|
1887
|
-
*
|
|
1888
|
-
* To manage delivery regions within this profile, use the AddDeliveryRegion, UpdateDeliveryRegion,
|
|
1889
|
-
* and RemoveDeliveryRegion methods. These dedicated methods ensure proper validation of destinations and carriers.
|
|
1916
|
+
* 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.
|
|
1890
1917
|
*
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
* @param _id - DeliveryProfile ID.
|
|
1918
|
+
* 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).
|
|
1919
|
+
* @param _id - Delivery profile ID.
|
|
1894
1920
|
* @public
|
|
1895
1921
|
* @documentationMaturity preview
|
|
1896
1922
|
* @requiredField _id
|
|
@@ -1898,7 +1924,7 @@ declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNulla
|
|
|
1898
1924
|
* @requiredField deliveryProfile.revision
|
|
1899
1925
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1900
1926
|
* @applicableIdentity APP
|
|
1901
|
-
* @returns Updated
|
|
1927
|
+
* @returns Updated delivery profile.
|
|
1902
1928
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile
|
|
1903
1929
|
*/
|
|
1904
1930
|
declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`, 2>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
|
|
@@ -1906,63 +1932,65 @@ declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullable
|
|
|
1906
1932
|
}>;
|
|
1907
1933
|
interface UpdateDeliveryProfile {
|
|
1908
1934
|
/**
|
|
1909
|
-
*
|
|
1935
|
+
* Delivery profile ID.
|
|
1910
1936
|
* @format GUID
|
|
1911
1937
|
* @readonly
|
|
1912
1938
|
*/
|
|
1913
1939
|
_id?: string | null;
|
|
1914
1940
|
/**
|
|
1915
|
-
*
|
|
1941
|
+
* Delivery profile name.
|
|
1916
1942
|
* @minLength 1
|
|
1917
1943
|
* @maxLength 256
|
|
1918
1944
|
*/
|
|
1919
1945
|
name?: string | null;
|
|
1920
1946
|
/**
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1947
|
+
* Whether this is the default delivery profile.
|
|
1948
|
+
*
|
|
1949
|
+
* > **Notes:**
|
|
1950
|
+
* >
|
|
1951
|
+
* > - 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.
|
|
1952
|
+
* > - Default status can't be changed or transferred to another profile.
|
|
1953
|
+
* > - The default profile can't be deleted because every site requires one for core delivery functionality.
|
|
1925
1954
|
* @readonly
|
|
1926
1955
|
*/
|
|
1927
1956
|
default?: boolean | null;
|
|
1928
1957
|
/**
|
|
1929
|
-
*
|
|
1958
|
+
* Delivery regions in this profile.
|
|
1930
1959
|
* @maxSize 100
|
|
1931
1960
|
*/
|
|
1932
1961
|
deliveryRegions?: DeliveryRegion[];
|
|
1933
1962
|
/**
|
|
1934
1963
|
* Information about who created the delivery profile.
|
|
1935
|
-
*
|
|
1964
|
+
*
|
|
1965
|
+
* Currently only for use with Wix Restaurants.
|
|
1936
1966
|
*/
|
|
1937
1967
|
createdBy?: CreatedBy;
|
|
1938
1968
|
/**
|
|
1939
|
-
*
|
|
1969
|
+
* 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.
|
|
1940
1970
|
* @readonly
|
|
1941
1971
|
*/
|
|
1942
1972
|
revision?: string | null;
|
|
1943
1973
|
/**
|
|
1944
|
-
* Date and time the
|
|
1974
|
+
* Date and time the delivery profile was created.
|
|
1945
1975
|
* @readonly
|
|
1946
1976
|
*/
|
|
1947
1977
|
_createdDate?: Date | null;
|
|
1948
1978
|
/**
|
|
1949
|
-
* Date and time the
|
|
1979
|
+
* Date and time the delivery profile was last updated.
|
|
1950
1980
|
* @readonly
|
|
1951
1981
|
*/
|
|
1952
1982
|
_updatedDate?: Date | null;
|
|
1953
|
-
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields
|
|
1983
|
+
/** 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. */
|
|
1954
1984
|
extendedFields?: ExtendedFields;
|
|
1955
1985
|
}
|
|
1956
1986
|
/**
|
|
1957
|
-
* Deletes a
|
|
1987
|
+
* Deletes a delivery profile.
|
|
1958
1988
|
*
|
|
1959
|
-
* Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
|
|
1960
1989
|
*
|
|
1961
|
-
* Permanently deletes the delivery profile. This action
|
|
1962
|
-
* carrier configurations will also be removed.
|
|
1990
|
+
* Permanently deletes the delivery profile, including all associated delivery regions and carrier configurations. This action can't be undone.
|
|
1963
1991
|
*
|
|
1964
|
-
*
|
|
1965
|
-
* @param deliveryProfileId -
|
|
1992
|
+
* The default delivery profile can't be deleted because every site requires one for core delivery functionality.
|
|
1993
|
+
* @param deliveryProfileId - Delivery profile ID.
|
|
1966
1994
|
* @public
|
|
1967
1995
|
* @documentationMaturity preview
|
|
1968
1996
|
* @requiredField deliveryProfileId
|
|
@@ -1972,14 +2000,17 @@ interface UpdateDeliveryProfile {
|
|
|
1972
2000
|
*/
|
|
1973
2001
|
declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>;
|
|
1974
2002
|
/**
|
|
1975
|
-
* Retrieves a list of
|
|
2003
|
+
* Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.
|
|
2004
|
+
*
|
|
2005
|
+
* Query Delivery Profiles runs with these defaults, which you can override:
|
|
1976
2006
|
*
|
|
1977
|
-
*
|
|
2007
|
+
* - `createdDate` is sorted in `DESC` order.
|
|
2008
|
+
* - `paging.limit` is `50`.
|
|
2009
|
+
* - `paging.offset` is `0`.
|
|
1978
2010
|
*
|
|
1979
|
-
*
|
|
2011
|
+
* 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).
|
|
1980
2012
|
*
|
|
1981
|
-
* [
|
|
1982
|
-
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
2013
|
+
* To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
1983
2014
|
* @public
|
|
1984
2015
|
* @documentationMaturity preview
|
|
1985
2016
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -2136,9 +2167,9 @@ type DeliveryProfileQuery = {
|
|
|
2136
2167
|
}[];
|
|
2137
2168
|
};
|
|
2138
2169
|
/**
|
|
2139
|
-
*
|
|
2140
|
-
* @param deliveryProfileId -
|
|
2141
|
-
* @param deliveryRegion -
|
|
2170
|
+
* Adds a delivery region to an existing delivery profile.
|
|
2171
|
+
* @param deliveryProfileId - Delivery profile ID.
|
|
2172
|
+
* @param deliveryRegion - Delivery region to add.
|
|
2142
2173
|
* @public
|
|
2143
2174
|
* @documentationMaturity preview
|
|
2144
2175
|
* @requiredField deliveryProfileId
|
|
@@ -2155,19 +2186,16 @@ declare function addDeliveryRegion(deliveryProfileId: string, deliveryRegion: No
|
|
|
2155
2186
|
}>;
|
|
2156
2187
|
interface AddDeliveryRegionOptions {
|
|
2157
2188
|
/**
|
|
2158
|
-
*
|
|
2189
|
+
* Delivery profile revision.
|
|
2159
2190
|
* @readonly
|
|
2160
2191
|
*/
|
|
2161
2192
|
revision?: string | null;
|
|
2162
2193
|
}
|
|
2163
2194
|
/**
|
|
2164
|
-
*
|
|
2165
|
-
* Pass the latest `revision` for a successful update
|
|
2195
|
+
* Updates a delivery region.
|
|
2166
2196
|
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2169
|
-
* UpdateDeliveryCarrier to modify carrier settings, and RemoveDeliveryCarrier to remove a carrier.
|
|
2170
|
-
* This ensures proper validation and event tracking for carrier changes.
|
|
2197
|
+
*
|
|
2198
|
+
* 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).
|
|
2171
2199
|
* @public
|
|
2172
2200
|
* @documentationMaturity preview
|
|
2173
2201
|
* @requiredField deliveryRegion
|
|
@@ -2184,12 +2212,12 @@ declare function updateDeliveryRegion(identifiers: NonNullablePaths<UpdateDelive
|
|
|
2184
2212
|
}>;
|
|
2185
2213
|
interface UpdateDeliveryRegionIdentifiers {
|
|
2186
2214
|
/**
|
|
2187
|
-
*
|
|
2215
|
+
* Delivery profile ID.
|
|
2188
2216
|
* @format GUID
|
|
2189
2217
|
*/
|
|
2190
2218
|
deliveryProfileId: string;
|
|
2191
2219
|
/**
|
|
2192
|
-
*
|
|
2220
|
+
* Delivery region ID.
|
|
2193
2221
|
* @format GUID
|
|
2194
2222
|
* @readonly
|
|
2195
2223
|
*/
|
|
@@ -2197,46 +2225,50 @@ interface UpdateDeliveryRegionIdentifiers {
|
|
|
2197
2225
|
}
|
|
2198
2226
|
interface UpdateDeliveryRegion {
|
|
2199
2227
|
/**
|
|
2200
|
-
*
|
|
2228
|
+
* Delivery region ID.
|
|
2201
2229
|
* @format GUID
|
|
2202
2230
|
* @readonly
|
|
2203
2231
|
*/
|
|
2204
2232
|
_id?: string | null;
|
|
2205
2233
|
/**
|
|
2206
|
-
*
|
|
2234
|
+
* Delivery region name. For example, `"Domestic"` or `"International"`.
|
|
2207
2235
|
* @minLength 1
|
|
2208
2236
|
* @maxLength 256
|
|
2209
2237
|
*/
|
|
2210
2238
|
name?: string | null;
|
|
2211
|
-
/**
|
|
2239
|
+
/**
|
|
2240
|
+
* Whether this delivery region is active and available during checkout.
|
|
2241
|
+
*
|
|
2242
|
+
* Default: `true`
|
|
2243
|
+
*/
|
|
2212
2244
|
active?: boolean | null;
|
|
2213
2245
|
/**
|
|
2214
|
-
*
|
|
2246
|
+
* Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
|
|
2215
2247
|
* @maxSize 25
|
|
2216
2248
|
* @readonly
|
|
2217
2249
|
*/
|
|
2218
2250
|
deliveryCarriers?: DeliveryCarrier[];
|
|
2219
2251
|
/**
|
|
2220
|
-
*
|
|
2252
|
+
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
2221
2253
|
* @maxSize 250
|
|
2222
2254
|
*/
|
|
2223
2255
|
destinations?: Destination[];
|
|
2224
2256
|
/**
|
|
2225
|
-
*
|
|
2257
|
+
* Date and time the delivery region was created.
|
|
2226
2258
|
* @readonly
|
|
2227
2259
|
*/
|
|
2228
2260
|
_createdDate?: Date | null;
|
|
2229
2261
|
}
|
|
2230
2262
|
interface UpdateDeliveryRegionOptions {
|
|
2231
2263
|
/**
|
|
2232
|
-
*
|
|
2264
|
+
* Delivery profile revision.
|
|
2233
2265
|
* @readonly
|
|
2234
2266
|
*/
|
|
2235
2267
|
revision?: string | null;
|
|
2236
2268
|
}
|
|
2237
2269
|
/**
|
|
2238
|
-
* Retrieves a
|
|
2239
|
-
* @param deliveryRegionId -
|
|
2270
|
+
* Retrieves a delivery profile by delivery region ID.
|
|
2271
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2240
2272
|
* @public
|
|
2241
2273
|
* @documentationMaturity preview
|
|
2242
2274
|
* @requiredField deliveryRegionId
|
|
@@ -2248,7 +2280,7 @@ declare function getDeliveryProfileByDeliveryRegionId(deliveryRegionId: string):
|
|
|
2248
2280
|
__applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;
|
|
2249
2281
|
}>;
|
|
2250
2282
|
/**
|
|
2251
|
-
*
|
|
2283
|
+
* Removes a delivery region from a delivery profile.
|
|
2252
2284
|
* @public
|
|
2253
2285
|
* @documentationMaturity preview
|
|
2254
2286
|
* @requiredField identifiers
|
|
@@ -2263,26 +2295,26 @@ declare function removeDeliveryRegion(identifiers: NonNullablePaths<RemoveDelive
|
|
|
2263
2295
|
}>;
|
|
2264
2296
|
interface RemoveDeliveryRegionIdentifiers {
|
|
2265
2297
|
/**
|
|
2266
|
-
*
|
|
2298
|
+
* Delivery profile ID.
|
|
2267
2299
|
* @format GUID
|
|
2268
2300
|
*/
|
|
2269
2301
|
deliveryProfileId: string;
|
|
2270
2302
|
/**
|
|
2271
|
-
*
|
|
2303
|
+
* Delivery region ID.
|
|
2272
2304
|
* @format GUID
|
|
2273
2305
|
*/
|
|
2274
2306
|
deliveryRegionId: string;
|
|
2275
2307
|
}
|
|
2276
2308
|
interface RemoveDeliveryRegionOptions {
|
|
2277
2309
|
/**
|
|
2278
|
-
*
|
|
2310
|
+
* Delivery profile revision.
|
|
2279
2311
|
* @readonly
|
|
2280
2312
|
*/
|
|
2281
2313
|
revision?: string | null;
|
|
2282
2314
|
}
|
|
2283
2315
|
/**
|
|
2284
|
-
*
|
|
2285
|
-
* @param deliveryRegionId -
|
|
2316
|
+
* Adds a delivery carrier to a delivery region.
|
|
2317
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2286
2318
|
* @public
|
|
2287
2319
|
* @documentationMaturity preview
|
|
2288
2320
|
* @requiredField deliveryRegionId
|
|
@@ -2298,12 +2330,12 @@ declare function addDeliveryCarrier(deliveryRegionId: string, options: NonNullab
|
|
|
2298
2330
|
__validationErrorsType?: AddDeliveryCarrierValidationErrors;
|
|
2299
2331
|
}>;
|
|
2300
2332
|
interface AddDeliveryCarrierOptions {
|
|
2301
|
-
/**
|
|
2333
|
+
/** Delivery carrier to add. */
|
|
2302
2334
|
deliveryCarrier: DeliveryCarrier;
|
|
2303
2335
|
}
|
|
2304
2336
|
/**
|
|
2305
|
-
*
|
|
2306
|
-
* @param deliveryRegionId -
|
|
2337
|
+
* Removes a delivery carrier from a delivery region.
|
|
2338
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2307
2339
|
* @public
|
|
2308
2340
|
* @documentationMaturity preview
|
|
2309
2341
|
* @requiredField deliveryRegionId
|
|
@@ -2318,14 +2350,14 @@ declare function removeDeliveryCarrier(deliveryRegionId: string, options: NonNul
|
|
|
2318
2350
|
}>;
|
|
2319
2351
|
interface RemoveDeliveryCarrierOptions {
|
|
2320
2352
|
/**
|
|
2321
|
-
*
|
|
2353
|
+
* App ID of the delivery carrier to remove.
|
|
2322
2354
|
* @format GUID
|
|
2323
2355
|
*/
|
|
2324
2356
|
appId: string;
|
|
2325
2357
|
}
|
|
2326
2358
|
/**
|
|
2327
|
-
*
|
|
2328
|
-
* @param deliveryRegionId -
|
|
2359
|
+
* Updates a delivery carrier's settings in a delivery region.
|
|
2360
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2329
2361
|
* @public
|
|
2330
2362
|
* @documentationMaturity preview
|
|
2331
2363
|
* @requiredField deliveryRegionId
|
|
@@ -2338,11 +2370,14 @@ declare function updateDeliveryCarrier(deliveryRegionId: string, options?: NonNu
|
|
|
2338
2370
|
__applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;
|
|
2339
2371
|
}>;
|
|
2340
2372
|
interface UpdateDeliveryCarrierOptions {
|
|
2341
|
-
/**
|
|
2373
|
+
/** Delivery carrier to update. */
|
|
2342
2374
|
deliveryCarrier?: DeliveryCarrier;
|
|
2343
2375
|
}
|
|
2344
2376
|
/**
|
|
2345
|
-
*
|
|
2377
|
+
* Retrieves a list of all delivery carriers installed on a site.
|
|
2378
|
+
*
|
|
2379
|
+
*
|
|
2380
|
+
* Use this method to discover available carriers before adding them to delivery regions.
|
|
2346
2381
|
* @public
|
|
2347
2382
|
* @documentationMaturity preview
|
|
2348
2383
|
* @permissionId ECOM.DELIVERY_CARRIER_READ
|
|
@@ -2351,7 +2386,10 @@ interface UpdateDeliveryCarrierOptions {
|
|
|
2351
2386
|
*/
|
|
2352
2387
|
declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`, 4>>;
|
|
2353
2388
|
/**
|
|
2354
|
-
* Retrieves delivery destination properties
|
|
2389
|
+
* Retrieves delivery destination properties.
|
|
2390
|
+
*
|
|
2391
|
+
*
|
|
2392
|
+
* 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.
|
|
2355
2393
|
* @public
|
|
2356
2394
|
* @documentationMaturity preview
|
|
2357
2395
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -2360,9 +2398,11 @@ declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListI
|
|
|
2360
2398
|
*/
|
|
2361
2399
|
declare function getDeliveryDestinationProperties(): Promise<NonNullablePaths<GetDeliveryDestinationPropertiesResponse, `restOfWorld.postalCodeRequired` | `restOfWorld.pickupOnly` | `countries` | `countries.${number}.country` | `countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `countries.${number}.deliveryDestinationProperties.pickupOnly`, 5>>;
|
|
2362
2400
|
/**
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2401
|
+
* Retrieves delivery carrier settings for a delivery profile.
|
|
2402
|
+
*
|
|
2403
|
+
*
|
|
2404
|
+
* Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than List Installed Delivery Carriers.
|
|
2405
|
+
* @param deliveryProfileId - Delivery profile ID.
|
|
2366
2406
|
* @public
|
|
2367
2407
|
* @documentationMaturity preview
|
|
2368
2408
|
* @requiredField deliveryProfileId
|
|
@@ -2375,7 +2415,7 @@ declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListD
|
|
|
2375
2415
|
}>;
|
|
2376
2416
|
interface ListDeliveryCarriersOptions {
|
|
2377
2417
|
/**
|
|
2378
|
-
*
|
|
2418
|
+
* App IDs of the delivery carriers to retrieve settings for.
|
|
2379
2419
|
* @format GUID
|
|
2380
2420
|
* @minSize 1
|
|
2381
2421
|
* @maxSize 25
|
|
@@ -2384,15 +2424,15 @@ interface ListDeliveryCarriersOptions {
|
|
|
2384
2424
|
}
|
|
2385
2425
|
interface UpdateCarrierSettingsOptions {
|
|
2386
2426
|
/**
|
|
2387
|
-
*
|
|
2427
|
+
* ID of the dashboard table row that triggered the change.
|
|
2388
2428
|
* @format GUID
|
|
2389
2429
|
*/
|
|
2390
2430
|
rowId: string;
|
|
2391
|
-
/** New status */
|
|
2431
|
+
/** New active status. */
|
|
2392
2432
|
active: boolean | null;
|
|
2393
2433
|
}
|
|
2394
2434
|
/**
|
|
2395
|
-
* Sets delivery carrier's active status.
|
|
2435
|
+
* Sets a delivery carrier's active status.
|
|
2396
2436
|
* @param carrierAppId - Carrier app ID.
|
|
2397
2437
|
* @public
|
|
2398
2438
|
* @documentationMaturity preview
|