@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
package/build/cjs/meta.d.ts
CHANGED
|
@@ -2,127 +2,143 @@ import { CreateDeliveryProfileRequest as CreateDeliveryProfileRequest$1, CreateD
|
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* A
|
|
6
|
-
* Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver
|
|
7
|
-
* to those destinations. Use delivery profiles to organize and manage different shipping strategies for your store.
|
|
5
|
+
* A delivery profile is a collection of delivery regions that define shipping options for products.
|
|
6
|
+
* Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver to those destinations.
|
|
8
7
|
*/
|
|
9
8
|
interface DeliveryProfile {
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
10
|
+
* Delivery profile ID.
|
|
12
11
|
* @format GUID
|
|
13
12
|
* @readonly
|
|
14
13
|
*/
|
|
15
14
|
id?: string | null;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
16
|
+
* Delivery profile name.
|
|
18
17
|
* @minLength 1
|
|
19
18
|
* @maxLength 256
|
|
20
19
|
*/
|
|
21
20
|
name?: string | null;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* Whether this is the default delivery profile.
|
|
23
|
+
*
|
|
24
|
+
* > **Notes:**
|
|
25
|
+
* >
|
|
26
|
+
* > - 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.
|
|
27
|
+
* > - Default status can't be changed or transferred to another profile.
|
|
28
|
+
* > - The default profile can't be deleted because every site requires one for core delivery functionality.
|
|
27
29
|
* @readonly
|
|
28
30
|
*/
|
|
29
31
|
default?: boolean | null;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Delivery regions in this profile.
|
|
32
34
|
* @maxSize 100
|
|
33
35
|
*/
|
|
34
36
|
deliveryRegions?: DeliveryRegion[];
|
|
35
37
|
/**
|
|
36
38
|
* Information about who created the delivery profile.
|
|
37
|
-
*
|
|
39
|
+
*
|
|
40
|
+
* Currently only for use with Wix Restaurants.
|
|
38
41
|
*/
|
|
39
42
|
createdBy?: CreatedBy;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
44
|
+
* 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.
|
|
42
45
|
* @readonly
|
|
43
46
|
*/
|
|
44
47
|
revision?: string | null;
|
|
45
48
|
/**
|
|
46
|
-
* Date and time the
|
|
49
|
+
* Date and time the delivery profile was created.
|
|
47
50
|
* @readonly
|
|
48
51
|
*/
|
|
49
52
|
createdDate?: Date | null;
|
|
50
53
|
/**
|
|
51
|
-
* Date and time the
|
|
54
|
+
* Date and time the delivery profile was last updated.
|
|
52
55
|
* @readonly
|
|
53
56
|
*/
|
|
54
57
|
updatedDate?: Date | null;
|
|
55
|
-
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields
|
|
58
|
+
/** 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. */
|
|
56
59
|
extendedFields?: ExtendedFields;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
|
-
* A
|
|
60
|
-
* Each region specifies destinations (countries and subdivisions) where products
|
|
61
|
-
*
|
|
62
|
+
* A delivery region defines a geographic area and its associated delivery carriers.
|
|
63
|
+
* Each region specifies destinations (countries and subdivisions) where products can be shipped and the carriers available for those deliveries.
|
|
64
|
+
*
|
|
65
|
+
* 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.
|
|
62
66
|
*/
|
|
63
67
|
interface DeliveryRegion {
|
|
64
68
|
/**
|
|
65
|
-
*
|
|
69
|
+
* Delivery region ID.
|
|
66
70
|
* @format GUID
|
|
67
71
|
* @readonly
|
|
68
72
|
*/
|
|
69
73
|
id?: string | null;
|
|
70
74
|
/**
|
|
71
|
-
*
|
|
75
|
+
* Delivery region name. For example, `"Domestic"` or `"International"`.
|
|
72
76
|
* @minLength 1
|
|
73
77
|
* @maxLength 256
|
|
74
78
|
*/
|
|
75
79
|
name?: string | null;
|
|
76
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Whether this delivery region is active and available during checkout.
|
|
82
|
+
*
|
|
83
|
+
* Default: `true`
|
|
84
|
+
*/
|
|
77
85
|
active?: boolean | null;
|
|
78
86
|
/**
|
|
79
|
-
*
|
|
87
|
+
* Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
|
|
80
88
|
* @maxSize 25
|
|
81
89
|
* @readonly
|
|
82
90
|
*/
|
|
83
91
|
deliveryCarriers?: DeliveryCarrier[];
|
|
84
92
|
/**
|
|
85
|
-
*
|
|
93
|
+
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
86
94
|
* @maxSize 250
|
|
87
95
|
*/
|
|
88
96
|
destinations?: Destination[];
|
|
89
97
|
/**
|
|
90
|
-
*
|
|
98
|
+
* Date and time the delivery region was created.
|
|
91
99
|
* @readonly
|
|
92
100
|
*/
|
|
93
101
|
createdDate?: Date | null;
|
|
94
102
|
}
|
|
95
103
|
interface DeliveryCarrier {
|
|
96
104
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
105
|
+
* Carrier app ID.
|
|
100
106
|
*
|
|
101
|
-
*
|
|
107
|
+
* 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).
|
|
102
108
|
* @format GUID
|
|
103
109
|
*/
|
|
104
110
|
appId?: string;
|
|
105
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Backup rate to use when the carrier doesn't return a rate for a specific shipping option.
|
|
113
|
+
*
|
|
114
|
+
* When `active` is `false` and the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.
|
|
115
|
+
*/
|
|
106
116
|
backupRate?: BackupRate;
|
|
107
117
|
/**
|
|
108
|
-
* Additional charges to add to the delivery rate
|
|
118
|
+
* 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.
|
|
109
119
|
* @maxSize 10
|
|
110
120
|
*/
|
|
111
121
|
additionalCharges?: AdditionalCharge[];
|
|
112
122
|
}
|
|
113
123
|
interface BackupRate {
|
|
114
124
|
/**
|
|
115
|
-
*
|
|
125
|
+
* Title displayed for the backup rate. For example, `"Standard Shipping"`.
|
|
116
126
|
* @minLength 1
|
|
117
127
|
* @maxLength 32
|
|
118
128
|
*/
|
|
119
129
|
title?: string | null;
|
|
120
130
|
/**
|
|
121
|
-
*
|
|
131
|
+
* Backup rate amount.
|
|
122
132
|
* @decimalValue options { gte:0, maxScale:6 }
|
|
123
133
|
*/
|
|
124
134
|
amount?: string | null;
|
|
125
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Whether the backup rate is active.
|
|
137
|
+
*
|
|
138
|
+
* When `false`, if the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.
|
|
139
|
+
*
|
|
140
|
+
* Default: `false`
|
|
141
|
+
*/
|
|
126
142
|
active?: boolean;
|
|
127
143
|
}
|
|
128
144
|
interface AdditionalCharge {
|
|
@@ -132,21 +148,20 @@ interface AdditionalCharge {
|
|
|
132
148
|
*/
|
|
133
149
|
description?: string | null;
|
|
134
150
|
/**
|
|
135
|
-
*
|
|
151
|
+
* Charge amount. For example, `"12.5"`.
|
|
136
152
|
* @maxLength 16
|
|
137
153
|
*/
|
|
138
154
|
amount?: string;
|
|
139
155
|
}
|
|
140
|
-
/**
|
|
156
|
+
/** Geographic destination for a delivery region. */
|
|
141
157
|
interface Destination {
|
|
142
158
|
/**
|
|
143
|
-
* 2-
|
|
159
|
+
* 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
144
160
|
* @format COUNTRY
|
|
145
161
|
*/
|
|
146
162
|
countryCode?: string;
|
|
147
163
|
/**
|
|
148
|
-
*
|
|
149
|
-
* If empty, the delivery region applies to the entire country.
|
|
164
|
+
* 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.
|
|
150
165
|
* @maxSize 100
|
|
151
166
|
* @minLength 1
|
|
152
167
|
* @maxLength 256
|
|
@@ -155,12 +170,12 @@ interface Destination {
|
|
|
155
170
|
}
|
|
156
171
|
interface CreatedBy extends CreatedByIdOneOf {
|
|
157
172
|
/**
|
|
158
|
-
* App ID
|
|
173
|
+
* App ID, when the delivery profile was created by an external application or Wix service.
|
|
159
174
|
* @format GUID
|
|
160
175
|
*/
|
|
161
176
|
appId?: string | null;
|
|
162
177
|
/**
|
|
163
|
-
*
|
|
178
|
+
* Wix user ID, when the delivery profile was created by a Wix user.
|
|
164
179
|
* @format GUID
|
|
165
180
|
*/
|
|
166
181
|
userId?: string | null;
|
|
@@ -168,12 +183,12 @@ interface CreatedBy extends CreatedByIdOneOf {
|
|
|
168
183
|
/** @oneof */
|
|
169
184
|
interface CreatedByIdOneOf {
|
|
170
185
|
/**
|
|
171
|
-
* App ID
|
|
186
|
+
* App ID, when the delivery profile was created by an external application or Wix service.
|
|
172
187
|
* @format GUID
|
|
173
188
|
*/
|
|
174
189
|
appId?: string | null;
|
|
175
190
|
/**
|
|
176
|
-
*
|
|
191
|
+
* Wix user ID, when the delivery profile was created by a Wix user.
|
|
177
192
|
* @format GUID
|
|
178
193
|
*/
|
|
179
194
|
userId?: string | null;
|
|
@@ -189,122 +204,125 @@ interface ExtendedFields {
|
|
|
189
204
|
*/
|
|
190
205
|
namespaces?: Record<string, Record<string, any>>;
|
|
191
206
|
}
|
|
207
|
+
/** Event payload for when a delivery region is added to a delivery profile. */
|
|
192
208
|
interface DeliveryRegionAdded {
|
|
193
209
|
/**
|
|
194
|
-
*
|
|
210
|
+
* ID of the delivery profile containing the region.
|
|
195
211
|
* @format GUID
|
|
196
212
|
*/
|
|
197
213
|
deliveryProfileId?: string;
|
|
198
214
|
/**
|
|
199
|
-
*
|
|
215
|
+
* ID of the added delivery region.
|
|
200
216
|
* @format GUID
|
|
201
217
|
* @readonly
|
|
202
218
|
*/
|
|
203
219
|
deliveryRegionId?: string | null;
|
|
204
220
|
/**
|
|
205
|
-
*
|
|
221
|
+
* Delivery region name. For example, `"Domestic"`.
|
|
206
222
|
* @minLength 1
|
|
207
223
|
* @maxLength 256
|
|
208
224
|
*/
|
|
209
225
|
name?: string | null;
|
|
210
|
-
/**
|
|
226
|
+
/** Whether the delivery region is active. */
|
|
211
227
|
active?: boolean | null;
|
|
212
228
|
/**
|
|
213
|
-
*
|
|
229
|
+
* Delivery carriers assigned to this region.
|
|
214
230
|
* @maxSize 25
|
|
215
231
|
* @readonly
|
|
216
232
|
*/
|
|
217
233
|
deliveryCarriers?: DeliveryCarrier[];
|
|
218
234
|
/**
|
|
219
|
-
*
|
|
235
|
+
* Geographic destinations covered by this region.
|
|
220
236
|
* @maxSize 200
|
|
221
237
|
*/
|
|
222
238
|
destinations?: Destination[];
|
|
223
239
|
/**
|
|
224
|
-
*
|
|
240
|
+
* Date and time the delivery region was created.
|
|
225
241
|
* @readonly
|
|
226
242
|
*/
|
|
227
243
|
createdDate?: Date | null;
|
|
228
244
|
}
|
|
245
|
+
/** Event payload for when a delivery region is removed from a delivery profile. */
|
|
229
246
|
interface DeliveryRegionRemoved {
|
|
230
247
|
/**
|
|
231
|
-
*
|
|
248
|
+
* ID of the delivery profile that contained the region.
|
|
232
249
|
* @format GUID
|
|
233
250
|
*/
|
|
234
251
|
deliveryProfileId?: string;
|
|
235
252
|
/**
|
|
236
|
-
*
|
|
253
|
+
* ID of the removed delivery region.
|
|
237
254
|
* @format GUID
|
|
238
255
|
*/
|
|
239
256
|
deliveryRegionId?: string;
|
|
240
257
|
}
|
|
258
|
+
/** Event payload for when a delivery region is updated. */
|
|
241
259
|
interface DeliveryRegionUpdated {
|
|
242
260
|
/**
|
|
243
|
-
*
|
|
261
|
+
* ID of the delivery profile containing the region.
|
|
244
262
|
* @format GUID
|
|
245
263
|
*/
|
|
246
264
|
deliveryProfileId?: string;
|
|
247
265
|
/**
|
|
248
|
-
*
|
|
266
|
+
* ID of the updated delivery region.
|
|
249
267
|
* @format GUID
|
|
250
268
|
* @readonly
|
|
251
269
|
*/
|
|
252
270
|
deliveryRegionId?: string | null;
|
|
253
271
|
/**
|
|
254
|
-
*
|
|
272
|
+
* Delivery region name. For example, `"Domestic"`.
|
|
255
273
|
* @minLength 1
|
|
256
274
|
* @maxLength 256
|
|
257
275
|
*/
|
|
258
276
|
name?: string | null;
|
|
259
|
-
/**
|
|
277
|
+
/** Whether the delivery region is active. */
|
|
260
278
|
active?: boolean | null;
|
|
261
279
|
/**
|
|
262
|
-
*
|
|
280
|
+
* Delivery carriers assigned to this region.
|
|
263
281
|
* @maxSize 25
|
|
264
282
|
* @readonly
|
|
265
283
|
*/
|
|
266
284
|
deliveryCarriers?: DeliveryCarrier[];
|
|
267
285
|
/**
|
|
268
|
-
*
|
|
286
|
+
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
269
287
|
* @maxSize 200
|
|
270
288
|
*/
|
|
271
289
|
destinations?: Destination[];
|
|
272
290
|
/**
|
|
273
|
-
*
|
|
291
|
+
* Date and time the delivery region was created.
|
|
274
292
|
* @readonly
|
|
275
293
|
*/
|
|
276
294
|
createdDate?: Date | null;
|
|
277
295
|
}
|
|
278
296
|
interface CreateDeliveryProfileRequest {
|
|
279
|
-
/**
|
|
297
|
+
/** Delivery profile to create. */
|
|
280
298
|
deliveryProfile: DeliveryProfile;
|
|
281
299
|
}
|
|
282
300
|
interface CreateDeliveryProfileResponse {
|
|
283
|
-
/**
|
|
301
|
+
/** Created delivery profile. */
|
|
284
302
|
deliveryProfile?: DeliveryProfile;
|
|
285
303
|
}
|
|
286
304
|
interface GetDeliveryProfileRequest {
|
|
287
305
|
/**
|
|
288
|
-
*
|
|
306
|
+
* Delivery profile ID.
|
|
289
307
|
* @format GUID
|
|
290
308
|
*/
|
|
291
309
|
deliveryProfileId: string;
|
|
292
310
|
}
|
|
293
311
|
interface GetDeliveryProfileResponse {
|
|
294
|
-
/**
|
|
312
|
+
/** Retrieved delivery profile. */
|
|
295
313
|
deliveryProfile?: DeliveryProfile;
|
|
296
314
|
}
|
|
297
315
|
interface UpdateDeliveryProfileRequest {
|
|
298
|
-
/**
|
|
316
|
+
/** Delivery profile to update. */
|
|
299
317
|
deliveryProfile: DeliveryProfile;
|
|
300
318
|
}
|
|
301
319
|
interface UpdateDeliveryProfileResponse {
|
|
302
|
-
/** Updated
|
|
320
|
+
/** Updated delivery profile. */
|
|
303
321
|
deliveryProfile?: DeliveryProfile;
|
|
304
322
|
}
|
|
305
323
|
interface DeleteDeliveryProfileRequest {
|
|
306
324
|
/**
|
|
307
|
-
*
|
|
325
|
+
* Delivery profile ID.
|
|
308
326
|
* @format GUID
|
|
309
327
|
*/
|
|
310
328
|
deliveryProfileId: string;
|
|
@@ -313,7 +331,7 @@ interface DeleteDeliveryProfileResponse {
|
|
|
313
331
|
}
|
|
314
332
|
interface DeleteDefaultDeliveryProfileRequest {
|
|
315
333
|
/**
|
|
316
|
-
*
|
|
334
|
+
* Delivery profile ID.
|
|
317
335
|
* @format GUID
|
|
318
336
|
*/
|
|
319
337
|
deliveryProfileId?: string;
|
|
@@ -321,7 +339,7 @@ interface DeleteDefaultDeliveryProfileRequest {
|
|
|
321
339
|
interface DeleteDefaultDeliveryProfileResponse {
|
|
322
340
|
}
|
|
323
341
|
interface QueryDeliveryProfilesRequest {
|
|
324
|
-
/**
|
|
342
|
+
/** Query options. */
|
|
325
343
|
query?: CursorQuery;
|
|
326
344
|
}
|
|
327
345
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -380,11 +398,11 @@ interface CursorPaging {
|
|
|
380
398
|
}
|
|
381
399
|
interface QueryDeliveryProfilesResponse {
|
|
382
400
|
/**
|
|
383
|
-
* List of
|
|
401
|
+
* List of delivery profiles.
|
|
384
402
|
* @maxSize 100
|
|
385
403
|
*/
|
|
386
404
|
deliveryProfiles?: DeliveryProfile[];
|
|
387
|
-
/** Paging metadata */
|
|
405
|
+
/** Paging metadata. */
|
|
388
406
|
pagingMetadata?: CursorPagingMetadata;
|
|
389
407
|
}
|
|
390
408
|
interface CursorPagingMetadata {
|
|
@@ -414,176 +432,176 @@ interface Cursors {
|
|
|
414
432
|
}
|
|
415
433
|
interface AddDeliveryRegionRequest {
|
|
416
434
|
/**
|
|
417
|
-
*
|
|
435
|
+
* Delivery profile ID.
|
|
418
436
|
* @format GUID
|
|
419
437
|
*/
|
|
420
438
|
deliveryProfileId: string;
|
|
421
|
-
/**
|
|
439
|
+
/** Delivery region to add. */
|
|
422
440
|
deliveryRegion: DeliveryRegion;
|
|
423
441
|
/**
|
|
424
|
-
*
|
|
442
|
+
* Delivery profile revision.
|
|
425
443
|
* @readonly
|
|
426
444
|
*/
|
|
427
445
|
revision?: string | null;
|
|
428
446
|
}
|
|
429
447
|
interface AddDeliveryRegionResponse {
|
|
430
|
-
/**
|
|
448
|
+
/** Updated delivery profile with the new delivery region. */
|
|
431
449
|
deliveryProfile?: DeliveryProfile;
|
|
432
450
|
}
|
|
433
451
|
interface UpdateDeliveryRegionRequest {
|
|
434
452
|
/**
|
|
435
|
-
*
|
|
453
|
+
* Delivery profile ID.
|
|
436
454
|
* @format GUID
|
|
437
455
|
*/
|
|
438
456
|
deliveryProfileId: string;
|
|
439
|
-
/**
|
|
457
|
+
/** Delivery region to update. */
|
|
440
458
|
deliveryRegion: DeliveryRegion;
|
|
441
459
|
/**
|
|
442
|
-
*
|
|
460
|
+
* Delivery profile revision.
|
|
443
461
|
* @readonly
|
|
444
462
|
*/
|
|
445
463
|
revision?: string | null;
|
|
446
464
|
}
|
|
447
465
|
interface UpdateDeliveryRegionResponse {
|
|
448
|
-
/**
|
|
466
|
+
/** Updated delivery profile with the updated delivery region. */
|
|
449
467
|
deliveryProfile?: DeliveryProfile;
|
|
450
468
|
}
|
|
451
469
|
interface GetDeliveryProfileByDeliveryRegionIdRequest {
|
|
452
470
|
/**
|
|
453
|
-
*
|
|
471
|
+
* Delivery region ID.
|
|
454
472
|
* @format GUID
|
|
455
473
|
*/
|
|
456
474
|
deliveryRegionId: string;
|
|
457
475
|
}
|
|
458
476
|
interface GetDeliveryProfileByDeliveryRegionIdResponse {
|
|
459
|
-
/**
|
|
477
|
+
/** Delivery profile containing the requested region. */
|
|
460
478
|
deliveryProfile?: DeliveryProfile;
|
|
461
479
|
}
|
|
462
480
|
interface RemoveDeliveryRegionRequest {
|
|
463
481
|
/**
|
|
464
|
-
*
|
|
482
|
+
* Delivery profile ID.
|
|
465
483
|
* @format GUID
|
|
466
484
|
*/
|
|
467
485
|
deliveryProfileId: string;
|
|
468
486
|
/**
|
|
469
|
-
*
|
|
487
|
+
* Delivery region ID.
|
|
470
488
|
* @format GUID
|
|
471
489
|
*/
|
|
472
490
|
deliveryRegionId: string;
|
|
473
491
|
/**
|
|
474
|
-
*
|
|
492
|
+
* Delivery profile revision.
|
|
475
493
|
* @readonly
|
|
476
494
|
*/
|
|
477
495
|
revision?: string | null;
|
|
478
496
|
}
|
|
479
497
|
interface RemoveDeliveryRegionResponse {
|
|
480
|
-
/**
|
|
498
|
+
/** Updated delivery profile with the delivery region removed. */
|
|
481
499
|
deliveryProfile?: DeliveryProfile;
|
|
482
500
|
}
|
|
483
501
|
interface AddDeliveryCarrierRequest {
|
|
484
502
|
/**
|
|
485
|
-
*
|
|
503
|
+
* Delivery region ID.
|
|
486
504
|
* @format GUID
|
|
487
505
|
*/
|
|
488
506
|
deliveryRegionId: string;
|
|
489
|
-
/**
|
|
507
|
+
/** Delivery carrier to add. */
|
|
490
508
|
deliveryCarrier: DeliveryCarrier;
|
|
491
509
|
}
|
|
492
510
|
interface AddDeliveryCarrierResponse {
|
|
493
|
-
/**
|
|
511
|
+
/** Updated delivery profile. */
|
|
494
512
|
deliveryProfile?: DeliveryProfile;
|
|
495
513
|
}
|
|
496
514
|
interface RemoveDeliveryCarrierRequest {
|
|
497
515
|
/**
|
|
498
|
-
*
|
|
516
|
+
* Delivery region ID.
|
|
499
517
|
* @format GUID
|
|
500
518
|
*/
|
|
501
519
|
deliveryRegionId: string;
|
|
502
520
|
/**
|
|
503
|
-
*
|
|
521
|
+
* App ID of the delivery carrier to remove.
|
|
504
522
|
* @format GUID
|
|
505
523
|
*/
|
|
506
524
|
appId: string;
|
|
507
525
|
}
|
|
508
526
|
interface RemoveDeliveryCarrierResponse {
|
|
509
|
-
/**
|
|
527
|
+
/** Updated delivery profile. */
|
|
510
528
|
deliveryProfile?: DeliveryProfile;
|
|
511
529
|
}
|
|
512
530
|
interface UpdateDeliveryCarrierRequest {
|
|
513
531
|
/**
|
|
514
|
-
*
|
|
532
|
+
* Delivery region ID.
|
|
515
533
|
* @format GUID
|
|
516
534
|
*/
|
|
517
535
|
deliveryRegionId: string;
|
|
518
|
-
/**
|
|
536
|
+
/** Delivery carrier to update. */
|
|
519
537
|
deliveryCarrier?: DeliveryCarrier;
|
|
520
538
|
}
|
|
521
539
|
interface UpdateDeliveryCarrierResponse {
|
|
522
|
-
/**
|
|
540
|
+
/** Updated delivery profile with the updated delivery carrier. */
|
|
523
541
|
deliveryProfile?: DeliveryProfile;
|
|
524
542
|
}
|
|
525
543
|
interface ListInstalledDeliveryCarriersRequest {
|
|
526
544
|
}
|
|
527
545
|
interface ListInstalledDeliveryCarriersResponse {
|
|
528
546
|
/**
|
|
529
|
-
*
|
|
547
|
+
* List of installed delivery carriers on the site.
|
|
530
548
|
* @maxSize 100
|
|
531
549
|
*/
|
|
532
550
|
installedDeliveryCarriers?: InstalledDeliveryCarrier[];
|
|
533
551
|
}
|
|
534
552
|
interface InstalledDeliveryCarrier {
|
|
535
553
|
/**
|
|
536
|
-
*
|
|
554
|
+
* Carrier app ID.
|
|
537
555
|
* @format GUID
|
|
538
556
|
*/
|
|
539
557
|
id?: string;
|
|
540
558
|
/**
|
|
541
|
-
*
|
|
559
|
+
* Carrier display name.
|
|
542
560
|
* @maxLength 256
|
|
543
561
|
*/
|
|
544
562
|
displayName?: string;
|
|
545
563
|
/**
|
|
546
|
-
*
|
|
564
|
+
* Carrier description.
|
|
547
565
|
* @maxLength 200
|
|
548
566
|
*/
|
|
549
567
|
description?: string | null;
|
|
550
568
|
/**
|
|
551
|
-
*
|
|
569
|
+
* URL to learn more about the carrier.
|
|
552
570
|
* @maxLength 200
|
|
553
571
|
*/
|
|
554
572
|
learnMoreUrl?: string | null;
|
|
555
573
|
/**
|
|
556
|
-
*
|
|
574
|
+
* URL to the carrier's dashboard.
|
|
557
575
|
* @minLength 1
|
|
558
576
|
* @maxLength 2048
|
|
559
577
|
* @format WEB_URL
|
|
560
578
|
*/
|
|
561
579
|
dashboardUrl?: string | null;
|
|
562
|
-
/**
|
|
580
|
+
/** Whether a backup rate is required for this carrier. */
|
|
563
581
|
fallbackDefinitionMandatory?: boolean | null;
|
|
564
582
|
/**
|
|
565
|
-
*
|
|
583
|
+
* URL for the carrier's thumbnail image.
|
|
566
584
|
* @format WEB_URL
|
|
567
585
|
*/
|
|
568
586
|
thumbnailUrl?: string | null;
|
|
569
|
-
/**
|
|
587
|
+
/** Whether the carrier supports retrieving carrier settings. */
|
|
570
588
|
toggleGetCarrierSettingsEnabled?: boolean;
|
|
571
589
|
}
|
|
572
590
|
interface ListDeliveryDestinationsRequest {
|
|
573
591
|
}
|
|
574
592
|
interface ListDeliveryDestinationsResponse {
|
|
575
|
-
/** Scope of destinations
|
|
593
|
+
/** Scope of destinations. When `WORLDWIDE` is selected, the `destinations` list is empty. */
|
|
576
594
|
destinationScope?: DestinationScopeWithLiterals;
|
|
577
595
|
/**
|
|
578
|
-
*
|
|
596
|
+
* List of configured destinations.
|
|
579
597
|
* @maxSize 200
|
|
580
598
|
*/
|
|
581
599
|
destinations?: Destination[];
|
|
582
600
|
}
|
|
583
601
|
declare enum DestinationScope {
|
|
584
|
-
/**
|
|
602
|
+
/** Specific destinations are configured. */
|
|
585
603
|
SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
|
|
586
|
-
/** All
|
|
604
|
+
/** All destinations worldwide. */
|
|
587
605
|
WORLDWIDE = "WORLDWIDE"
|
|
588
606
|
}
|
|
589
607
|
/** @enumType */
|
|
@@ -591,36 +609,36 @@ type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' |
|
|
|
591
609
|
interface RequiredZipcodeRequest {
|
|
592
610
|
}
|
|
593
611
|
interface RequiredZipcodeResponse {
|
|
594
|
-
/**
|
|
612
|
+
/** Whether the site requires a postal code for delivery. */
|
|
595
613
|
requiredZipcode?: boolean;
|
|
596
614
|
}
|
|
597
615
|
interface GetDeliveryDestinationPropertiesRequest {
|
|
598
616
|
}
|
|
599
617
|
interface GetDeliveryDestinationPropertiesResponse {
|
|
600
|
-
/** Delivery destination properties for Rest
|
|
618
|
+
/** Delivery destination properties for Rest of World. */
|
|
601
619
|
restOfWorld?: DeliveryDestinationProperties;
|
|
602
620
|
/**
|
|
603
|
-
* List of countries and
|
|
621
|
+
* List of countries and their delivery destination properties.
|
|
604
622
|
* @maxSize 195
|
|
605
623
|
*/
|
|
606
624
|
countries?: CountryDeliveryProperties[];
|
|
607
625
|
}
|
|
608
626
|
interface DeliveryDestinationProperties {
|
|
609
|
-
/**
|
|
627
|
+
/** Whether a postal code is required for delivery to this destination. */
|
|
610
628
|
postalCodeRequired?: boolean;
|
|
611
|
-
/**
|
|
629
|
+
/** Whether only pickup is available at this destination. */
|
|
612
630
|
pickupOnly?: boolean;
|
|
613
631
|
}
|
|
614
632
|
interface CountryDeliveryProperties {
|
|
615
633
|
/**
|
|
616
|
-
*
|
|
634
|
+
* 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
617
635
|
* @format COUNTRY
|
|
618
636
|
*/
|
|
619
637
|
country?: string;
|
|
620
|
-
/** Delivery destination properties for country */
|
|
638
|
+
/** Delivery destination properties for the country. */
|
|
621
639
|
deliveryDestinationProperties?: DeliveryDestinationProperties;
|
|
622
640
|
/**
|
|
623
|
-
* List of subdivisions and their delivery destination properties
|
|
641
|
+
* List of subdivisions and their delivery destination properties.
|
|
624
642
|
* @maxSize 100
|
|
625
643
|
*/
|
|
626
644
|
subdivisions?: SubdivisionDeliveryProperties[];
|
|
@@ -632,17 +650,17 @@ interface SubdivisionDeliveryProperties {
|
|
|
632
650
|
* @maxLength 5
|
|
633
651
|
*/
|
|
634
652
|
subdivision?: string;
|
|
635
|
-
/** Delivery destination properties for subdivision */
|
|
653
|
+
/** Delivery destination properties for the subdivision. */
|
|
636
654
|
deliveryDestinationProperties?: DeliveryDestinationProperties;
|
|
637
655
|
}
|
|
638
656
|
interface ListDeliveryCarriersRequest {
|
|
639
657
|
/**
|
|
640
|
-
* Delivery profile
|
|
658
|
+
* Delivery profile ID.
|
|
641
659
|
* @format GUID
|
|
642
660
|
*/
|
|
643
661
|
deliveryProfileId: string;
|
|
644
662
|
/**
|
|
645
|
-
*
|
|
663
|
+
* App IDs of the delivery carriers to retrieve settings for.
|
|
646
664
|
* @format GUID
|
|
647
665
|
* @minSize 1
|
|
648
666
|
* @maxSize 25
|
|
@@ -651,7 +669,7 @@ interface ListDeliveryCarriersRequest {
|
|
|
651
669
|
}
|
|
652
670
|
interface ListDeliveryCarriersResponse {
|
|
653
671
|
/**
|
|
654
|
-
*
|
|
672
|
+
* List of delivery carrier results.
|
|
655
673
|
* @maxSize 100
|
|
656
674
|
*/
|
|
657
675
|
results?: ListDeliveryCarriersResult[];
|
|
@@ -659,12 +677,12 @@ interface ListDeliveryCarriersResponse {
|
|
|
659
677
|
bulkActionMetadata?: BulkActionMetadata;
|
|
660
678
|
}
|
|
661
679
|
interface ListDeliveryCarriersResult {
|
|
662
|
-
/**
|
|
680
|
+
/** Metadata for the result, including success or error information. */
|
|
663
681
|
deliveryCarrierMetadata?: ItemMetadata;
|
|
664
|
-
/**
|
|
682
|
+
/** Delivery carrier details. */
|
|
665
683
|
deliveryCarrierDetails?: DeliveryCarrierDetails;
|
|
666
684
|
/**
|
|
667
|
-
*
|
|
685
|
+
* Regional settings for the delivery carrier.
|
|
668
686
|
* @minSize 1
|
|
669
687
|
* @maxSize 5
|
|
670
688
|
*/
|
|
@@ -691,52 +709,52 @@ interface ApplicationError {
|
|
|
691
709
|
}
|
|
692
710
|
interface DeliveryCarrierDetails {
|
|
693
711
|
/**
|
|
694
|
-
*
|
|
712
|
+
* Carrier app ID.
|
|
695
713
|
* @format GUID
|
|
696
714
|
*/
|
|
697
715
|
id?: string;
|
|
698
716
|
/**
|
|
699
|
-
*
|
|
717
|
+
* Carrier display name.
|
|
700
718
|
* @maxLength 256
|
|
701
719
|
*/
|
|
702
720
|
displayName?: string;
|
|
703
721
|
/**
|
|
704
|
-
*
|
|
722
|
+
* Carrier description.
|
|
705
723
|
* @maxLength 200
|
|
706
724
|
*/
|
|
707
725
|
description?: string | null;
|
|
708
726
|
/**
|
|
709
|
-
*
|
|
727
|
+
* URL to learn more about the carrier.
|
|
710
728
|
* @maxLength 200
|
|
711
729
|
*/
|
|
712
730
|
learnMoreUrl?: string | null;
|
|
713
731
|
/**
|
|
714
|
-
*
|
|
732
|
+
* URL to the carrier's dashboard.
|
|
715
733
|
* @minLength 1
|
|
716
734
|
* @maxLength 2048
|
|
717
735
|
* @format WEB_URL
|
|
718
736
|
*/
|
|
719
737
|
dashboardUrl?: string | null;
|
|
720
|
-
/**
|
|
738
|
+
/** Whether a backup rate is required for this carrier. */
|
|
721
739
|
fallbackDefinitionMandatory?: boolean | null;
|
|
722
740
|
/**
|
|
723
|
-
*
|
|
741
|
+
* URL for the carrier's thumbnail image.
|
|
724
742
|
* @format WEB_URL
|
|
725
743
|
*/
|
|
726
744
|
thumbnailUrl?: string | null;
|
|
727
|
-
/**
|
|
745
|
+
/** Whether the carrier supports retrieving carrier settings. */
|
|
728
746
|
toggleGetCarrierSettingsEnabled?: boolean;
|
|
729
|
-
/**
|
|
747
|
+
/** Whether the carrier supports updating carrier active status. */
|
|
730
748
|
toggleUpdateCarrierActiveStatusEnabled?: boolean;
|
|
731
749
|
}
|
|
732
750
|
interface DeliveryCarrierRegionalSettings {
|
|
733
751
|
/**
|
|
734
|
-
*
|
|
752
|
+
* Delivery region ID.
|
|
735
753
|
* @format GUID
|
|
736
754
|
*/
|
|
737
755
|
deliveryRegionId?: string;
|
|
738
756
|
/**
|
|
739
|
-
*
|
|
757
|
+
* Dashboard tables with shipping configuration for this region. Multiple tables can exist if the carrier is an aggregator of multiple services.
|
|
740
758
|
* @minSize 1
|
|
741
759
|
* @maxSize 5
|
|
742
760
|
*/
|
|
@@ -744,45 +762,42 @@ interface DeliveryCarrierRegionalSettings {
|
|
|
744
762
|
}
|
|
745
763
|
interface DashboardTable {
|
|
746
764
|
/**
|
|
747
|
-
*
|
|
765
|
+
* Table title.
|
|
748
766
|
* @maxLength 256
|
|
749
767
|
*/
|
|
750
768
|
title?: string;
|
|
751
769
|
/**
|
|
752
|
-
*
|
|
770
|
+
* Table columns.
|
|
753
771
|
* @maxSize 200
|
|
754
772
|
*/
|
|
755
773
|
columns?: Column[];
|
|
756
774
|
/**
|
|
757
|
-
*
|
|
775
|
+
* Table rows containing the configuration data.
|
|
758
776
|
* @maxSize 25
|
|
759
777
|
*/
|
|
760
778
|
rows?: Row[];
|
|
761
779
|
}
|
|
762
780
|
interface Column {
|
|
763
781
|
/**
|
|
764
|
-
*
|
|
782
|
+
* Column key, used to retrieve data from rows.
|
|
765
783
|
* @maxLength 256
|
|
766
784
|
*/
|
|
767
785
|
key?: string;
|
|
768
786
|
/**
|
|
769
|
-
*
|
|
787
|
+
* Column display name.
|
|
770
788
|
* @maxLength 256
|
|
771
789
|
*/
|
|
772
790
|
name?: string;
|
|
773
791
|
}
|
|
774
792
|
interface Row {
|
|
775
793
|
/**
|
|
776
|
-
*
|
|
794
|
+
* Unique row identifier, used to identify the row for editing.
|
|
777
795
|
* @maxLength 256
|
|
778
796
|
*/
|
|
779
797
|
key?: string;
|
|
780
|
-
/**
|
|
781
|
-
* The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
|
|
782
|
-
* Data will be in JSON format.
|
|
783
|
-
*/
|
|
798
|
+
/** Row data as a JSON object. Each key corresponds to a column key. */
|
|
784
799
|
data?: Record<string, any> | null;
|
|
785
|
-
/**
|
|
800
|
+
/** Whether this row's configuration is active. */
|
|
786
801
|
active?: boolean;
|
|
787
802
|
}
|
|
788
803
|
interface BulkActionMetadata {
|
|
@@ -795,16 +810,16 @@ interface BulkActionMetadata {
|
|
|
795
810
|
}
|
|
796
811
|
interface UpdateCarrierSettingsRequest {
|
|
797
812
|
/**
|
|
798
|
-
* Carrier
|
|
813
|
+
* Carrier app ID.
|
|
799
814
|
* @format GUID
|
|
800
815
|
*/
|
|
801
816
|
carrierId: string;
|
|
802
817
|
/**
|
|
803
|
-
*
|
|
818
|
+
* ID of the dashboard table row that triggered the change.
|
|
804
819
|
* @format GUID
|
|
805
820
|
*/
|
|
806
821
|
rowId: string;
|
|
807
|
-
/** New status */
|
|
822
|
+
/** New active status. */
|
|
808
823
|
active: boolean | null;
|
|
809
824
|
}
|
|
810
825
|
interface UpdateCarrierSettingsResponse {
|
|
@@ -834,7 +849,7 @@ interface UpdateExtendedFieldsRequest {
|
|
|
834
849
|
namespaceData: Record<string, any> | null;
|
|
835
850
|
}
|
|
836
851
|
interface UpdateExtendedFieldsResponse {
|
|
837
|
-
/** Updated
|
|
852
|
+
/** Updated delivery profile. */
|
|
838
853
|
deliveryProfile?: DeliveryProfile;
|
|
839
854
|
}
|
|
840
855
|
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|