@wix/auto_sdk_ecom_delivery-profile 1.0.242 → 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.map +1 -1
- package/build/cjs/index.typings.d.ts +271 -243
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +161 -146
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +63 -61
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +271 -243
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +161 -146
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +65 -63
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +273 -245
- 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.map +1 -1
- package/build/internal/es/index.d.mts +65 -63
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +273 -245
- 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.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
|
|
@@ -1738,7 +1755,9 @@ interface DeliveryProfileDeletedEnvelope {
|
|
|
1738
1755
|
entity: DeliveryProfile;
|
|
1739
1756
|
metadata: EventMetadata;
|
|
1740
1757
|
}
|
|
1741
|
-
/**
|
|
1758
|
+
/**
|
|
1759
|
+
* Triggered when a delivery profile is deleted.
|
|
1760
|
+
* @permissionScope Manage Stores - all permissions
|
|
1742
1761
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1743
1762
|
* @permissionScope Manage Stores
|
|
1744
1763
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1761,7 +1780,9 @@ interface DeliveryProfileRegionAddedEnvelope {
|
|
|
1761
1780
|
data: DeliveryRegionAdded;
|
|
1762
1781
|
metadata: EventMetadata;
|
|
1763
1782
|
}
|
|
1764
|
-
/**
|
|
1783
|
+
/**
|
|
1784
|
+
* Triggered when a delivery region is added to a delivery profile.
|
|
1785
|
+
* @permissionScope Manage Stores - all permissions
|
|
1765
1786
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1766
1787
|
* @permissionScope Manage Stores
|
|
1767
1788
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1784,7 +1805,9 @@ interface DeliveryProfileRegionRemovedEnvelope {
|
|
|
1784
1805
|
data: DeliveryRegionRemoved;
|
|
1785
1806
|
metadata: EventMetadata;
|
|
1786
1807
|
}
|
|
1787
|
-
/**
|
|
1808
|
+
/**
|
|
1809
|
+
* Triggered when a delivery region is removed from a delivery profile.
|
|
1810
|
+
* @permissionScope Manage Stores - all permissions
|
|
1788
1811
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1789
1812
|
* @permissionScope Manage Stores
|
|
1790
1813
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1807,7 +1830,9 @@ interface DeliveryProfileRegionUpdatedEnvelope {
|
|
|
1807
1830
|
data: DeliveryRegionUpdated;
|
|
1808
1831
|
metadata: EventMetadata;
|
|
1809
1832
|
}
|
|
1810
|
-
/**
|
|
1833
|
+
/**
|
|
1834
|
+
* Triggered when a delivery region is updated.
|
|
1835
|
+
* @permissionScope Manage Stores - all permissions
|
|
1811
1836
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1812
1837
|
* @permissionScope Manage Stores
|
|
1813
1838
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1832,7 +1857,9 @@ interface DeliveryProfileUpdatedEnvelope {
|
|
|
1832
1857
|
/** @hidden */
|
|
1833
1858
|
modifiedFields: Record<string, any>;
|
|
1834
1859
|
}
|
|
1835
|
-
/**
|
|
1860
|
+
/**
|
|
1861
|
+
* Triggered when a delivery profile is updated.
|
|
1862
|
+
* @permissionScope Manage Stores - all permissions
|
|
1836
1863
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1837
1864
|
* @permissionScope Manage Stores
|
|
1838
1865
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1852,13 +1879,11 @@ interface DeliveryProfileUpdatedEnvelope {
|
|
|
1852
1879
|
*/
|
|
1853
1880
|
declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>): void;
|
|
1854
1881
|
/**
|
|
1855
|
-
* Creates a
|
|
1882
|
+
* Creates a delivery profile.
|
|
1856
1883
|
*
|
|
1857
|
-
* The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
|
|
1858
1884
|
*
|
|
1859
|
-
*
|
|
1860
|
-
*
|
|
1861
|
-
* @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.
|
|
1862
1887
|
* @public
|
|
1863
1888
|
* @documentationMaturity preview
|
|
1864
1889
|
* @requiredField deliveryProfile
|
|
@@ -1867,42 +1892,31 @@ declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdate
|
|
|
1867
1892
|
* @requiredField deliveryProfile.name
|
|
1868
1893
|
* @permissionId ECOM.DELIVERY_PROFILE_CREATE
|
|
1869
1894
|
* @applicableIdentity APP
|
|
1870
|
-
* @returns
|
|
1895
|
+
* @returns Created delivery profile.
|
|
1871
1896
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile
|
|
1872
1897
|
*/
|
|
1873
1898
|
declare function createDeliveryProfile(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`, 6>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
|
|
1874
1899
|
__applicationErrorsType?: CreateDeliveryProfileApplicationErrors;
|
|
1875
1900
|
}>;
|
|
1876
1901
|
/**
|
|
1877
|
-
* Retrieves a
|
|
1878
|
-
* @param deliveryProfileId -
|
|
1902
|
+
* Retrieves a delivery profile.
|
|
1903
|
+
* @param deliveryProfileId - Delivery profile ID.
|
|
1879
1904
|
* @public
|
|
1880
1905
|
* @documentationMaturity preview
|
|
1881
1906
|
* @requiredField deliveryProfileId
|
|
1882
1907
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
1883
1908
|
* @applicableIdentity APP
|
|
1884
|
-
* @returns
|
|
1909
|
+
* @returns Retrieved delivery profile.
|
|
1885
1910
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile
|
|
1886
1911
|
*/
|
|
1887
1912
|
declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2>>;
|
|
1888
1913
|
/**
|
|
1889
|
-
* Updates a
|
|
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.
|
|
1914
|
+
* Updates a delivery profile.
|
|
1898
1915
|
*
|
|
1899
|
-
*
|
|
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.
|
|
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.
|
|
1902
1917
|
*
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1905
|
-
* @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.
|
|
1906
1920
|
* @public
|
|
1907
1921
|
* @documentationMaturity preview
|
|
1908
1922
|
* @requiredField _id
|
|
@@ -1910,7 +1924,7 @@ declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNulla
|
|
|
1910
1924
|
* @requiredField deliveryProfile.revision
|
|
1911
1925
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1912
1926
|
* @applicableIdentity APP
|
|
1913
|
-
* @returns Updated
|
|
1927
|
+
* @returns Updated delivery profile.
|
|
1914
1928
|
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile
|
|
1915
1929
|
*/
|
|
1916
1930
|
declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`, 2>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {
|
|
@@ -1918,63 +1932,65 @@ declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullable
|
|
|
1918
1932
|
}>;
|
|
1919
1933
|
interface UpdateDeliveryProfile {
|
|
1920
1934
|
/**
|
|
1921
|
-
*
|
|
1935
|
+
* Delivery profile ID.
|
|
1922
1936
|
* @format GUID
|
|
1923
1937
|
* @readonly
|
|
1924
1938
|
*/
|
|
1925
1939
|
_id?: string | null;
|
|
1926
1940
|
/**
|
|
1927
|
-
*
|
|
1941
|
+
* Delivery profile name.
|
|
1928
1942
|
* @minLength 1
|
|
1929
1943
|
* @maxLength 256
|
|
1930
1944
|
*/
|
|
1931
1945
|
name?: string | null;
|
|
1932
1946
|
/**
|
|
1933
|
-
*
|
|
1934
|
-
*
|
|
1935
|
-
*
|
|
1936
|
-
*
|
|
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.
|
|
1937
1954
|
* @readonly
|
|
1938
1955
|
*/
|
|
1939
1956
|
default?: boolean | null;
|
|
1940
1957
|
/**
|
|
1941
|
-
*
|
|
1958
|
+
* Delivery regions in this profile.
|
|
1942
1959
|
* @maxSize 100
|
|
1943
1960
|
*/
|
|
1944
1961
|
deliveryRegions?: DeliveryRegion[];
|
|
1945
1962
|
/**
|
|
1946
1963
|
* Information about who created the delivery profile.
|
|
1947
|
-
*
|
|
1964
|
+
*
|
|
1965
|
+
* Currently only for use with Wix Restaurants.
|
|
1948
1966
|
*/
|
|
1949
1967
|
createdBy?: CreatedBy;
|
|
1950
1968
|
/**
|
|
1951
|
-
*
|
|
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.
|
|
1952
1970
|
* @readonly
|
|
1953
1971
|
*/
|
|
1954
1972
|
revision?: string | null;
|
|
1955
1973
|
/**
|
|
1956
|
-
* Date and time the
|
|
1974
|
+
* Date and time the delivery profile was created.
|
|
1957
1975
|
* @readonly
|
|
1958
1976
|
*/
|
|
1959
1977
|
_createdDate?: Date | null;
|
|
1960
1978
|
/**
|
|
1961
|
-
* Date and time the
|
|
1979
|
+
* Date and time the delivery profile was last updated.
|
|
1962
1980
|
* @readonly
|
|
1963
1981
|
*/
|
|
1964
1982
|
_updatedDate?: Date | null;
|
|
1965
|
-
/** [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. */
|
|
1966
1984
|
extendedFields?: ExtendedFields;
|
|
1967
1985
|
}
|
|
1968
1986
|
/**
|
|
1969
|
-
* Deletes a
|
|
1987
|
+
* Deletes a delivery profile.
|
|
1970
1988
|
*
|
|
1971
|
-
* Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
|
|
1972
1989
|
*
|
|
1973
|
-
* Permanently deletes the delivery profile. This action
|
|
1974
|
-
* 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.
|
|
1975
1991
|
*
|
|
1976
|
-
*
|
|
1977
|
-
* @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.
|
|
1978
1994
|
* @public
|
|
1979
1995
|
* @documentationMaturity preview
|
|
1980
1996
|
* @requiredField deliveryProfileId
|
|
@@ -1984,14 +2000,17 @@ interface UpdateDeliveryProfile {
|
|
|
1984
2000
|
*/
|
|
1985
2001
|
declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>;
|
|
1986
2002
|
/**
|
|
1987
|
-
* 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:
|
|
1988
2006
|
*
|
|
1989
|
-
*
|
|
2007
|
+
* - `createdDate` is sorted in `DESC` order.
|
|
2008
|
+
* - `paging.limit` is `50`.
|
|
2009
|
+
* - `paging.offset` is `0`.
|
|
1990
2010
|
*
|
|
1991
|
-
*
|
|
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).
|
|
1992
2012
|
*
|
|
1993
|
-
* [
|
|
1994
|
-
* [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).
|
|
1995
2014
|
* @public
|
|
1996
2015
|
* @documentationMaturity preview
|
|
1997
2016
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -2148,9 +2167,9 @@ type DeliveryProfileQuery = {
|
|
|
2148
2167
|
}[];
|
|
2149
2168
|
};
|
|
2150
2169
|
/**
|
|
2151
|
-
*
|
|
2152
|
-
* @param deliveryProfileId -
|
|
2153
|
-
* @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.
|
|
2154
2173
|
* @public
|
|
2155
2174
|
* @documentationMaturity preview
|
|
2156
2175
|
* @requiredField deliveryProfileId
|
|
@@ -2167,19 +2186,16 @@ declare function addDeliveryRegion(deliveryProfileId: string, deliveryRegion: No
|
|
|
2167
2186
|
}>;
|
|
2168
2187
|
interface AddDeliveryRegionOptions {
|
|
2169
2188
|
/**
|
|
2170
|
-
*
|
|
2189
|
+
* Delivery profile revision.
|
|
2171
2190
|
* @readonly
|
|
2172
2191
|
*/
|
|
2173
2192
|
revision?: string | null;
|
|
2174
2193
|
}
|
|
2175
2194
|
/**
|
|
2176
|
-
*
|
|
2177
|
-
* Pass the latest `revision` for a successful update
|
|
2195
|
+
* Updates a delivery region.
|
|
2178
2196
|
*
|
|
2179
|
-
*
|
|
2180
|
-
*
|
|
2181
|
-
* UpdateDeliveryCarrier to modify carrier settings, and RemoveDeliveryCarrier to remove a carrier.
|
|
2182
|
-
* 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).
|
|
2183
2199
|
* @public
|
|
2184
2200
|
* @documentationMaturity preview
|
|
2185
2201
|
* @requiredField deliveryRegion
|
|
@@ -2196,12 +2212,12 @@ declare function updateDeliveryRegion(identifiers: NonNullablePaths<UpdateDelive
|
|
|
2196
2212
|
}>;
|
|
2197
2213
|
interface UpdateDeliveryRegionIdentifiers {
|
|
2198
2214
|
/**
|
|
2199
|
-
*
|
|
2215
|
+
* Delivery profile ID.
|
|
2200
2216
|
* @format GUID
|
|
2201
2217
|
*/
|
|
2202
2218
|
deliveryProfileId: string;
|
|
2203
2219
|
/**
|
|
2204
|
-
*
|
|
2220
|
+
* Delivery region ID.
|
|
2205
2221
|
* @format GUID
|
|
2206
2222
|
* @readonly
|
|
2207
2223
|
*/
|
|
@@ -2209,46 +2225,50 @@ interface UpdateDeliveryRegionIdentifiers {
|
|
|
2209
2225
|
}
|
|
2210
2226
|
interface UpdateDeliveryRegion {
|
|
2211
2227
|
/**
|
|
2212
|
-
*
|
|
2228
|
+
* Delivery region ID.
|
|
2213
2229
|
* @format GUID
|
|
2214
2230
|
* @readonly
|
|
2215
2231
|
*/
|
|
2216
2232
|
_id?: string | null;
|
|
2217
2233
|
/**
|
|
2218
|
-
*
|
|
2234
|
+
* Delivery region name. For example, `"Domestic"` or `"International"`.
|
|
2219
2235
|
* @minLength 1
|
|
2220
2236
|
* @maxLength 256
|
|
2221
2237
|
*/
|
|
2222
2238
|
name?: string | null;
|
|
2223
|
-
/**
|
|
2239
|
+
/**
|
|
2240
|
+
* Whether this delivery region is active and available during checkout.
|
|
2241
|
+
*
|
|
2242
|
+
* Default: `true`
|
|
2243
|
+
*/
|
|
2224
2244
|
active?: boolean | null;
|
|
2225
2245
|
/**
|
|
2226
|
-
*
|
|
2246
|
+
* Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
|
|
2227
2247
|
* @maxSize 25
|
|
2228
2248
|
* @readonly
|
|
2229
2249
|
*/
|
|
2230
2250
|
deliveryCarriers?: DeliveryCarrier[];
|
|
2231
2251
|
/**
|
|
2232
|
-
*
|
|
2252
|
+
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
2233
2253
|
* @maxSize 250
|
|
2234
2254
|
*/
|
|
2235
2255
|
destinations?: Destination[];
|
|
2236
2256
|
/**
|
|
2237
|
-
*
|
|
2257
|
+
* Date and time the delivery region was created.
|
|
2238
2258
|
* @readonly
|
|
2239
2259
|
*/
|
|
2240
2260
|
_createdDate?: Date | null;
|
|
2241
2261
|
}
|
|
2242
2262
|
interface UpdateDeliveryRegionOptions {
|
|
2243
2263
|
/**
|
|
2244
|
-
*
|
|
2264
|
+
* Delivery profile revision.
|
|
2245
2265
|
* @readonly
|
|
2246
2266
|
*/
|
|
2247
2267
|
revision?: string | null;
|
|
2248
2268
|
}
|
|
2249
2269
|
/**
|
|
2250
|
-
* Retrieves a
|
|
2251
|
-
* @param deliveryRegionId -
|
|
2270
|
+
* Retrieves a delivery profile by delivery region ID.
|
|
2271
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2252
2272
|
* @public
|
|
2253
2273
|
* @documentationMaturity preview
|
|
2254
2274
|
* @requiredField deliveryRegionId
|
|
@@ -2260,7 +2280,7 @@ declare function getDeliveryProfileByDeliveryRegionId(deliveryRegionId: string):
|
|
|
2260
2280
|
__applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;
|
|
2261
2281
|
}>;
|
|
2262
2282
|
/**
|
|
2263
|
-
*
|
|
2283
|
+
* Removes a delivery region from a delivery profile.
|
|
2264
2284
|
* @public
|
|
2265
2285
|
* @documentationMaturity preview
|
|
2266
2286
|
* @requiredField identifiers
|
|
@@ -2275,26 +2295,26 @@ declare function removeDeliveryRegion(identifiers: NonNullablePaths<RemoveDelive
|
|
|
2275
2295
|
}>;
|
|
2276
2296
|
interface RemoveDeliveryRegionIdentifiers {
|
|
2277
2297
|
/**
|
|
2278
|
-
*
|
|
2298
|
+
* Delivery profile ID.
|
|
2279
2299
|
* @format GUID
|
|
2280
2300
|
*/
|
|
2281
2301
|
deliveryProfileId: string;
|
|
2282
2302
|
/**
|
|
2283
|
-
*
|
|
2303
|
+
* Delivery region ID.
|
|
2284
2304
|
* @format GUID
|
|
2285
2305
|
*/
|
|
2286
2306
|
deliveryRegionId: string;
|
|
2287
2307
|
}
|
|
2288
2308
|
interface RemoveDeliveryRegionOptions {
|
|
2289
2309
|
/**
|
|
2290
|
-
*
|
|
2310
|
+
* Delivery profile revision.
|
|
2291
2311
|
* @readonly
|
|
2292
2312
|
*/
|
|
2293
2313
|
revision?: string | null;
|
|
2294
2314
|
}
|
|
2295
2315
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
* @param deliveryRegionId -
|
|
2316
|
+
* Adds a delivery carrier to a delivery region.
|
|
2317
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2298
2318
|
* @public
|
|
2299
2319
|
* @documentationMaturity preview
|
|
2300
2320
|
* @requiredField deliveryRegionId
|
|
@@ -2310,12 +2330,12 @@ declare function addDeliveryCarrier(deliveryRegionId: string, options: NonNullab
|
|
|
2310
2330
|
__validationErrorsType?: AddDeliveryCarrierValidationErrors;
|
|
2311
2331
|
}>;
|
|
2312
2332
|
interface AddDeliveryCarrierOptions {
|
|
2313
|
-
/**
|
|
2333
|
+
/** Delivery carrier to add. */
|
|
2314
2334
|
deliveryCarrier: DeliveryCarrier;
|
|
2315
2335
|
}
|
|
2316
2336
|
/**
|
|
2317
|
-
*
|
|
2318
|
-
* @param deliveryRegionId -
|
|
2337
|
+
* Removes a delivery carrier from a delivery region.
|
|
2338
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2319
2339
|
* @public
|
|
2320
2340
|
* @documentationMaturity preview
|
|
2321
2341
|
* @requiredField deliveryRegionId
|
|
@@ -2330,14 +2350,14 @@ declare function removeDeliveryCarrier(deliveryRegionId: string, options: NonNul
|
|
|
2330
2350
|
}>;
|
|
2331
2351
|
interface RemoveDeliveryCarrierOptions {
|
|
2332
2352
|
/**
|
|
2333
|
-
*
|
|
2353
|
+
* App ID of the delivery carrier to remove.
|
|
2334
2354
|
* @format GUID
|
|
2335
2355
|
*/
|
|
2336
2356
|
appId: string;
|
|
2337
2357
|
}
|
|
2338
2358
|
/**
|
|
2339
|
-
*
|
|
2340
|
-
* @param deliveryRegionId -
|
|
2359
|
+
* Updates a delivery carrier's settings in a delivery region.
|
|
2360
|
+
* @param deliveryRegionId - Delivery region ID.
|
|
2341
2361
|
* @public
|
|
2342
2362
|
* @documentationMaturity preview
|
|
2343
2363
|
* @requiredField deliveryRegionId
|
|
@@ -2350,11 +2370,14 @@ declare function updateDeliveryCarrier(deliveryRegionId: string, options?: NonNu
|
|
|
2350
2370
|
__applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;
|
|
2351
2371
|
}>;
|
|
2352
2372
|
interface UpdateDeliveryCarrierOptions {
|
|
2353
|
-
/**
|
|
2373
|
+
/** Delivery carrier to update. */
|
|
2354
2374
|
deliveryCarrier?: DeliveryCarrier;
|
|
2355
2375
|
}
|
|
2356
2376
|
/**
|
|
2357
|
-
*
|
|
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.
|
|
2358
2381
|
* @public
|
|
2359
2382
|
* @documentationMaturity preview
|
|
2360
2383
|
* @permissionId ECOM.DELIVERY_CARRIER_READ
|
|
@@ -2363,7 +2386,10 @@ interface UpdateDeliveryCarrierOptions {
|
|
|
2363
2386
|
*/
|
|
2364
2387
|
declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`, 4>>;
|
|
2365
2388
|
/**
|
|
2366
|
-
* 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.
|
|
2367
2393
|
* @public
|
|
2368
2394
|
* @documentationMaturity preview
|
|
2369
2395
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -2372,9 +2398,11 @@ declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListI
|
|
|
2372
2398
|
*/
|
|
2373
2399
|
declare function getDeliveryDestinationProperties(): Promise<NonNullablePaths<GetDeliveryDestinationPropertiesResponse, `restOfWorld.postalCodeRequired` | `restOfWorld.pickupOnly` | `countries` | `countries.${number}.country` | `countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `countries.${number}.deliveryDestinationProperties.pickupOnly`, 5>>;
|
|
2374
2400
|
/**
|
|
2375
|
-
*
|
|
2376
|
-
*
|
|
2377
|
-
*
|
|
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.
|
|
2378
2406
|
* @public
|
|
2379
2407
|
* @documentationMaturity preview
|
|
2380
2408
|
* @requiredField deliveryProfileId
|
|
@@ -2387,7 +2415,7 @@ declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListD
|
|
|
2387
2415
|
}>;
|
|
2388
2416
|
interface ListDeliveryCarriersOptions {
|
|
2389
2417
|
/**
|
|
2390
|
-
*
|
|
2418
|
+
* App IDs of the delivery carriers to retrieve settings for.
|
|
2391
2419
|
* @format GUID
|
|
2392
2420
|
* @minSize 1
|
|
2393
2421
|
* @maxSize 25
|
|
@@ -2396,15 +2424,15 @@ interface ListDeliveryCarriersOptions {
|
|
|
2396
2424
|
}
|
|
2397
2425
|
interface UpdateCarrierSettingsOptions {
|
|
2398
2426
|
/**
|
|
2399
|
-
*
|
|
2427
|
+
* ID of the dashboard table row that triggered the change.
|
|
2400
2428
|
* @format GUID
|
|
2401
2429
|
*/
|
|
2402
2430
|
rowId: string;
|
|
2403
|
-
/** New status */
|
|
2431
|
+
/** New active status. */
|
|
2404
2432
|
active: boolean | null;
|
|
2405
2433
|
}
|
|
2406
2434
|
/**
|
|
2407
|
-
* Sets delivery carrier's active status.
|
|
2435
|
+
* Sets a delivery carrier's active status.
|
|
2408
2436
|
* @param carrierAppId - Carrier app ID.
|
|
2409
2437
|
* @public
|
|
2410
2438
|
* @documentationMaturity preview
|