@wix/auto_sdk_ecom_catalog 1.0.0 → 1.0.1
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/src/service-plugins-types.d.ts +206 -47
- package/build/cjs/src/service-plugins-types.js.map +1 -1
- package/build/es/src/service-plugins-types.d.ts +206 -47
- package/build/es/src/service-plugins-types.js.map +1 -1
- package/build/internal/cjs/src/service-plugins-types.d.ts +206 -47
- package/build/internal/cjs/src/service-plugins-types.js.map +1 -1
- package/build/internal/es/src/service-plugins-types.d.ts +206 -47
- package/build/internal/es/src/service-plugins-types.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface GetCatalogItemsRequest {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Catalog reference details for the items to retrieve, including quantity of each item.
|
|
4
|
+
* @minSize 1
|
|
5
|
+
* @maxSize 300
|
|
6
|
+
*/
|
|
3
7
|
catalogReferences?: CatalogReferenceAndQuantity[];
|
|
4
8
|
/**
|
|
5
9
|
* Weight measurement unit.
|
|
@@ -11,6 +15,7 @@ export interface GetCatalogItemsRequest {
|
|
|
11
15
|
* Currency to return item prices in, in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. For example, `USD` or `EUR`.
|
|
12
16
|
*
|
|
13
17
|
* By default, Wix sends the currency specified in the site's settings.
|
|
18
|
+
* @format CURRENCY
|
|
14
19
|
*/
|
|
15
20
|
currency?: string;
|
|
16
21
|
}
|
|
@@ -22,7 +27,11 @@ export interface CatalogReferenceAndQuantity {
|
|
|
22
27
|
}
|
|
23
28
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
24
29
|
export interface CatalogReference {
|
|
25
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* ID of the item within the catalog it belongs to.
|
|
32
|
+
* @minLength 1
|
|
33
|
+
* @maxLength 36
|
|
34
|
+
*/
|
|
26
35
|
catalogItemId?: string;
|
|
27
36
|
/**
|
|
28
37
|
* ID of the app providing the catalog.
|
|
@@ -33,6 +42,7 @@ export interface CatalogReference {
|
|
|
33
42
|
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
34
43
|
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
35
44
|
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
45
|
+
* @minLength 1
|
|
36
46
|
*/
|
|
37
47
|
appId?: string;
|
|
38
48
|
/**
|
|
@@ -54,38 +64,50 @@ export declare enum WeightUnit {
|
|
|
54
64
|
export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
55
65
|
/**
|
|
56
66
|
* Visitor ID - if the buyer is **not** a site member.
|
|
67
|
+
* @format GUID
|
|
57
68
|
* @readonly
|
|
58
69
|
*/
|
|
59
70
|
visitorId?: string;
|
|
60
71
|
/**
|
|
61
72
|
* Member ID - if the buyer is a site member.
|
|
73
|
+
* @format GUID
|
|
62
74
|
* @readonly
|
|
63
75
|
*/
|
|
64
76
|
memberId?: string;
|
|
65
77
|
/**
|
|
66
78
|
* User ID - if the buyer (or cart owner) is a Wix user.
|
|
79
|
+
* @format GUID
|
|
67
80
|
* @readonly
|
|
68
81
|
*/
|
|
69
82
|
userId?: string;
|
|
70
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Contact ID. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).
|
|
85
|
+
* @format GUID
|
|
86
|
+
*/
|
|
71
87
|
contactId?: string | null;
|
|
72
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Buyer email address.
|
|
90
|
+
* @format EMAIL
|
|
91
|
+
*/
|
|
73
92
|
email?: string | null;
|
|
74
93
|
}
|
|
75
94
|
/** @oneof */
|
|
76
95
|
export interface BuyerInfoIdOneOf {
|
|
77
96
|
/**
|
|
78
97
|
* Visitor ID - if the buyer is **not** a site member.
|
|
98
|
+
* @format GUID
|
|
79
99
|
* @readonly
|
|
80
100
|
*/
|
|
81
101
|
visitorId?: string;
|
|
82
102
|
/**
|
|
83
103
|
* Member ID - if the buyer is a site member.
|
|
104
|
+
* @format GUID
|
|
84
105
|
* @readonly
|
|
85
106
|
*/
|
|
86
107
|
memberId?: string;
|
|
87
108
|
/**
|
|
88
109
|
* User ID - if the buyer (or cart owner) is a Wix user.
|
|
110
|
+
* @format GUID
|
|
89
111
|
* @readonly
|
|
90
112
|
*/
|
|
91
113
|
userId?: string;
|
|
@@ -114,20 +136,28 @@ export interface ItemData {
|
|
|
114
136
|
url?: string;
|
|
115
137
|
/** __Required.__ Item type. Either one of the preset types or a custom type. */
|
|
116
138
|
itemType?: ItemType;
|
|
117
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* __Required.__ Item price with discounts applied. If a catalog-defined discount applies, the discount is reflected in this price.
|
|
141
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
142
|
+
*/
|
|
118
143
|
price?: string;
|
|
119
144
|
/**
|
|
120
145
|
* Item price **before** applying any catalog-defined discount.
|
|
121
146
|
*
|
|
122
147
|
* Default: Value of `price` field, if no catalog-defined discount applies.
|
|
148
|
+
* @format DECIMAL_VALUE
|
|
123
149
|
*/
|
|
124
150
|
fullPrice?: string | null;
|
|
125
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* The tax group ID associated with this item. Learn more about the [Tax Groups Service Plugin](https://dev.wix.com/docs/rest/business-management/payments/tax/tax-groups-integration-service-plugin/introduction).
|
|
153
|
+
* @format GUID
|
|
154
|
+
*/
|
|
126
155
|
taxGroupId?: string | null;
|
|
127
156
|
/**
|
|
128
157
|
* Line item description lines. Used for displaying the item in a cart, checkout or order. For example, if you want `Size: Large` to appear under the item name, create a description line with `"name": {"original": "Size"}` and `"plainText": {"original": "Large"}`.
|
|
129
158
|
*
|
|
130
159
|
* Default: No description line.
|
|
160
|
+
* @maxSize 20
|
|
131
161
|
*/
|
|
132
162
|
descriptionLines?: DescriptionLine[];
|
|
133
163
|
/**
|
|
@@ -140,6 +170,7 @@ export interface ItemData {
|
|
|
140
170
|
/**
|
|
141
171
|
* Quantity of the item available for purchase. Only return if the catalog manages inventory.
|
|
142
172
|
* If not returned, a buyer can increase the quantity of this item to add to the cart or checkout without limit.
|
|
173
|
+
* @max 100000000
|
|
143
174
|
*/
|
|
144
175
|
quantityAvailable?: number | null;
|
|
145
176
|
/** Physical properties of the item. Only return for physical items. When applicable, contains information such as SKU and item weight. */
|
|
@@ -147,15 +178,9 @@ export interface ItemData {
|
|
|
147
178
|
/** Subscription option info. */
|
|
148
179
|
subscriptionOptionInfo?: SubscriptionOptionInfo;
|
|
149
180
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
|
|
153
|
-
* + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
|
|
154
|
-
* + `MEMBERSHIP`: Payment for this item is done by charging a membership. When selected, `price` is `0`.
|
|
155
|
-
* + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`.
|
|
156
|
-
* + `MEMBERSHIP_OFFLINE`: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
|
|
181
|
+
* Type of selected payment option for current item.
|
|
157
182
|
*
|
|
158
|
-
* Default: `FULL_PAYMENT_ONLINE
|
|
183
|
+
* Default: `FULL_PAYMENT_ONLINE`
|
|
159
184
|
*/
|
|
160
185
|
paymentOption?: PaymentOptionType;
|
|
161
186
|
/** Service properties. When applicable, this contains information such as time and number of participants. */
|
|
@@ -166,6 +191,8 @@ export interface ItemData {
|
|
|
166
191
|
* Can be used for membership validation.
|
|
167
192
|
*
|
|
168
193
|
* Default: Same as `catalogReference.catalogItemId`.
|
|
194
|
+
* @minLength 1
|
|
195
|
+
* @maxLength 36
|
|
169
196
|
*/
|
|
170
197
|
rootCatalogItemId?: string | null;
|
|
171
198
|
/**
|
|
@@ -178,9 +205,14 @@ export interface ItemData {
|
|
|
178
205
|
* Partial payment to be paid upfront during the checkout. Return when `paymentOption` is `DEPOSIT_ONLINE`.
|
|
179
206
|
*
|
|
180
207
|
* Default: If `paymentOption` is `DEPOSIT_ONLINE` but `depositAmount` is not provided, the item is treated as if `paymentOption` is `FULL_PAYMENT_ONLINE`.
|
|
208
|
+
* @format DECIMAL_VALUE
|
|
181
209
|
*/
|
|
182
210
|
depositAmount?: string | null;
|
|
183
|
-
/**
|
|
211
|
+
/**
|
|
212
|
+
* Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
|
|
213
|
+
* @minLength 1
|
|
214
|
+
* @maxLength 2500
|
|
215
|
+
*/
|
|
184
216
|
consentRequiredPaymentPolicy?: string | null;
|
|
185
217
|
/**
|
|
186
218
|
* Whether to save the payment method on the order.
|
|
@@ -195,6 +227,8 @@ export interface ProductName {
|
|
|
195
227
|
*
|
|
196
228
|
* Min: 1 character.
|
|
197
229
|
* Max: 200 characters.
|
|
230
|
+
* @minLength 1
|
|
231
|
+
* @maxLength 200
|
|
198
232
|
*/
|
|
199
233
|
original?: string;
|
|
200
234
|
/**
|
|
@@ -203,6 +237,8 @@ export interface ProductName {
|
|
|
203
237
|
* Min: 1 character.
|
|
204
238
|
* Max: 400 characters.
|
|
205
239
|
* Default: Same as `original`.
|
|
240
|
+
* @minLength 1
|
|
241
|
+
* @maxLength 400
|
|
206
242
|
*/
|
|
207
243
|
translated?: string | null;
|
|
208
244
|
}
|
|
@@ -245,32 +281,44 @@ export interface DescriptionLineValueOneOf {
|
|
|
245
281
|
export interface DescriptionLineDescriptionLineValueOneOf {
|
|
246
282
|
}
|
|
247
283
|
export interface DescriptionLineName {
|
|
248
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
286
|
+
* @maxLength 100
|
|
287
|
+
*/
|
|
249
288
|
original?: string;
|
|
250
289
|
/**
|
|
251
290
|
* Description line name translated into the buyer's language.
|
|
252
291
|
*
|
|
253
292
|
* Default: Same as `original`.
|
|
293
|
+
* @maxLength 200
|
|
254
294
|
*/
|
|
255
295
|
translated?: string | null;
|
|
256
296
|
}
|
|
257
297
|
export interface PlainTextValue {
|
|
258
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
300
|
+
* @maxLength 600
|
|
301
|
+
*/
|
|
259
302
|
original?: string;
|
|
260
303
|
/**
|
|
261
304
|
* Description line plain text value translated into the buyer's language.
|
|
262
305
|
*
|
|
263
306
|
* Default: Same as `original`.
|
|
307
|
+
* @maxLength 600
|
|
264
308
|
*/
|
|
265
309
|
translated?: string | null;
|
|
266
310
|
}
|
|
267
311
|
export interface Color {
|
|
268
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
314
|
+
* @maxLength 500
|
|
315
|
+
*/
|
|
269
316
|
original?: string;
|
|
270
317
|
/**
|
|
271
318
|
* Description line color name translated into the buyer's language.
|
|
272
319
|
*
|
|
273
320
|
* Default: Same as `original`.
|
|
321
|
+
* @maxLength 500
|
|
274
322
|
*/
|
|
275
323
|
translated?: string | null;
|
|
276
324
|
/** HEX or RGB color code for display. */
|
|
@@ -287,7 +335,10 @@ export declare enum DescriptionLineType {
|
|
|
287
335
|
export interface PhysicalProperties {
|
|
288
336
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
289
337
|
weight?: number | null;
|
|
290
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
340
|
+
* @maxLength 40
|
|
341
|
+
*/
|
|
291
342
|
sku?: string | null;
|
|
292
343
|
/** Whether this line item is shippable. */
|
|
293
344
|
shippable?: boolean;
|
|
@@ -320,11 +371,16 @@ export interface SubscriptionSettings {
|
|
|
320
371
|
*
|
|
321
372
|
* Default: `1`.
|
|
322
373
|
* If SubscriptionFrequency is Day the minimum interval is 7
|
|
374
|
+
* @min 1
|
|
375
|
+
* @max 50
|
|
323
376
|
*/
|
|
324
377
|
interval?: number | null;
|
|
325
378
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
326
379
|
autoRenewal?: boolean;
|
|
327
|
-
/**
|
|
380
|
+
/**
|
|
381
|
+
* Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
|
|
382
|
+
* @min 1
|
|
383
|
+
*/
|
|
328
384
|
billingCycles?: number | null;
|
|
329
385
|
}
|
|
330
386
|
/** Frequency unit of recurring payment */
|
|
@@ -338,29 +394,53 @@ export declare enum SubscriptionFrequency {
|
|
|
338
394
|
export interface FreeTrialPeriod {
|
|
339
395
|
/** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
|
|
340
396
|
frequency?: SubscriptionFrequency;
|
|
341
|
-
/**
|
|
397
|
+
/**
|
|
398
|
+
* interval of period
|
|
399
|
+
* @min 1
|
|
400
|
+
* @max 50
|
|
401
|
+
*/
|
|
342
402
|
interval?: number;
|
|
343
403
|
}
|
|
344
404
|
export interface Title {
|
|
345
|
-
/**
|
|
405
|
+
/**
|
|
406
|
+
* Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
407
|
+
* @minLength 1
|
|
408
|
+
* @maxLength 150
|
|
409
|
+
*/
|
|
346
410
|
original?: string;
|
|
347
411
|
/**
|
|
348
412
|
* Subscription option name translated into the buyer's language.
|
|
349
413
|
*
|
|
350
414
|
* Default: Same as `original`.
|
|
415
|
+
* @minLength 1
|
|
416
|
+
* @maxLength 150
|
|
351
417
|
*/
|
|
352
418
|
translated?: string | null;
|
|
353
419
|
}
|
|
354
420
|
export interface Description {
|
|
355
|
-
/**
|
|
421
|
+
/**
|
|
422
|
+
* Subscription option description.
|
|
423
|
+
* @maxLength 500
|
|
424
|
+
*/
|
|
356
425
|
original?: string;
|
|
357
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Translated subscription option description.
|
|
428
|
+
* @maxLength 500
|
|
429
|
+
*/
|
|
358
430
|
translated?: string | null;
|
|
359
431
|
}
|
|
360
432
|
export interface SecuredMedia {
|
|
361
|
-
/**
|
|
433
|
+
/**
|
|
434
|
+
* Media ID in Wix Media Manager.
|
|
435
|
+
* @minLength 1
|
|
436
|
+
* @maxLength 100
|
|
437
|
+
*/
|
|
362
438
|
_id?: string;
|
|
363
|
-
/**
|
|
439
|
+
/**
|
|
440
|
+
* Original filename.
|
|
441
|
+
* @minLength 1
|
|
442
|
+
* @maxLength 1000
|
|
443
|
+
*/
|
|
364
444
|
fileName?: string;
|
|
365
445
|
/** File type. */
|
|
366
446
|
fileType?: FileType;
|
|
@@ -392,16 +472,26 @@ export interface ServiceProperties {
|
|
|
392
472
|
* For example, the start time of a class.
|
|
393
473
|
*/
|
|
394
474
|
scheduledDate?: Date | null;
|
|
395
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.
|
|
477
|
+
* @min 1
|
|
478
|
+
* @max 10000
|
|
479
|
+
*/
|
|
396
480
|
numberOfParticipants?: number | null;
|
|
397
481
|
}
|
|
398
482
|
export interface PriceDescription {
|
|
399
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
485
|
+
* @minLength 1
|
|
486
|
+
* @maxLength 100
|
|
487
|
+
*/
|
|
400
488
|
original?: string;
|
|
401
489
|
/**
|
|
402
490
|
* Price description translated into the buyer's language.
|
|
403
491
|
*
|
|
404
492
|
* Default: Same as `original`.
|
|
493
|
+
* @minLength 1
|
|
494
|
+
* @maxLength 100
|
|
405
495
|
*/
|
|
406
496
|
translated?: string | null;
|
|
407
497
|
}
|
|
@@ -421,21 +511,38 @@ export declare enum TaxableAddressType {
|
|
|
421
511
|
SHIPPING = "SHIPPING"
|
|
422
512
|
}
|
|
423
513
|
export interface Policy {
|
|
424
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Policy title - should be translated
|
|
516
|
+
* @minLength 1
|
|
517
|
+
* @maxLength 29
|
|
518
|
+
*/
|
|
425
519
|
title?: string | null;
|
|
426
|
-
/**
|
|
520
|
+
/**
|
|
521
|
+
* Policy content - should be translated
|
|
522
|
+
* @minLength 1
|
|
523
|
+
* @maxLength 3000
|
|
524
|
+
*/
|
|
427
525
|
content?: string;
|
|
428
526
|
}
|
|
429
527
|
export interface AdditionalFee {
|
|
430
|
-
/**
|
|
528
|
+
/**
|
|
529
|
+
* Additional fee's unique code or ID.
|
|
530
|
+
* @minLength 1
|
|
531
|
+
* @maxLength 100
|
|
532
|
+
*/
|
|
431
533
|
code?: string | null;
|
|
432
534
|
/**
|
|
433
535
|
* Additional fee's name.
|
|
434
536
|
*
|
|
435
537
|
* Max: 50 characters
|
|
538
|
+
* @minLength 1
|
|
539
|
+
* @maxLength 50
|
|
436
540
|
*/
|
|
437
541
|
name?: string;
|
|
438
|
-
/**
|
|
542
|
+
/**
|
|
543
|
+
* Total additional fees. This `price` does not include any taxes that may apply to these additional fees.
|
|
544
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }
|
|
545
|
+
*/
|
|
439
546
|
price?: string;
|
|
440
547
|
/**
|
|
441
548
|
* Tax details.
|
|
@@ -448,13 +555,25 @@ export interface AdditionalFee {
|
|
|
448
555
|
export interface TaxDetails {
|
|
449
556
|
/** Whether additional fee is taxable. */
|
|
450
557
|
taxable?: boolean;
|
|
451
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Reserved for internal use.
|
|
560
|
+
* @format GUID
|
|
561
|
+
*/
|
|
452
562
|
taxGroupId?: string | null;
|
|
453
563
|
}
|
|
454
564
|
export interface QueryCatalogItemsRequest {
|
|
455
|
-
/**
|
|
565
|
+
/**
|
|
566
|
+
* A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.
|
|
567
|
+
* @minLength 1
|
|
568
|
+
* @maxLength 100
|
|
569
|
+
* @maxSize 100
|
|
570
|
+
*/
|
|
456
571
|
catalogItemIds?: string[] | null;
|
|
457
|
-
/**
|
|
572
|
+
/**
|
|
573
|
+
* An item name to filter by. If exists, the result will only include items with name that starts with this string.
|
|
574
|
+
* @minLength 1
|
|
575
|
+
* @maxLength 100
|
|
576
|
+
*/
|
|
458
577
|
catalogItemName?: string | null;
|
|
459
578
|
/** Paging options to limit and skip a number of items. */
|
|
460
579
|
paging?: Paging;
|
|
@@ -477,7 +596,11 @@ export interface QueryCatalogItemsResponse {
|
|
|
477
596
|
metadata?: PagingMetadata;
|
|
478
597
|
}
|
|
479
598
|
export interface BasicItem {
|
|
480
|
-
/**
|
|
599
|
+
/**
|
|
600
|
+
* The ID of the the item.
|
|
601
|
+
* @minLength 1
|
|
602
|
+
* @maxLength 100
|
|
603
|
+
*/
|
|
481
604
|
_id?: string;
|
|
482
605
|
/** The name of the item. */
|
|
483
606
|
name?: string;
|
|
@@ -528,6 +651,8 @@ export interface AllItemsDiscountConfig {
|
|
|
528
651
|
/**
|
|
529
652
|
* Translatable name for "all items discount" in the catalog.
|
|
530
653
|
* For example, for restaurant menus, this could be "All dishes".
|
|
654
|
+
* @minLength 1
|
|
655
|
+
* @maxLength 100
|
|
531
656
|
*/
|
|
532
657
|
name?: string | null;
|
|
533
658
|
}
|
|
@@ -539,7 +664,11 @@ export interface SpecificItemsDiscountConfig {
|
|
|
539
664
|
* Default: `false`.
|
|
540
665
|
*/
|
|
541
666
|
enabled?: boolean;
|
|
542
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Translatable name for "all items discount" in the catalog.
|
|
669
|
+
* @minLength 1
|
|
670
|
+
* @maxLength 100
|
|
671
|
+
*/
|
|
543
672
|
name?: string | null;
|
|
544
673
|
}
|
|
545
674
|
/**
|
|
@@ -558,13 +687,19 @@ export interface SpecificItemsDiscountConfig {
|
|
|
558
687
|
export interface Context {
|
|
559
688
|
/** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
|
|
560
689
|
requestId?: string | null;
|
|
561
|
-
/**
|
|
690
|
+
/**
|
|
691
|
+
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.
|
|
692
|
+
* @format CURRENCY
|
|
693
|
+
*/
|
|
562
694
|
currency?: string | null;
|
|
563
695
|
/** An object that describes the identity that triggered this request. */
|
|
564
696
|
identity?: IdentificationData;
|
|
565
697
|
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
566
698
|
languages?: string[];
|
|
567
|
-
/**
|
|
699
|
+
/**
|
|
700
|
+
* The service provider app's instance ID.
|
|
701
|
+
* @format GUID
|
|
702
|
+
*/
|
|
568
703
|
instanceId?: string | null;
|
|
569
704
|
}
|
|
570
705
|
export declare enum IdentityType {
|
|
@@ -575,25 +710,49 @@ export declare enum IdentityType {
|
|
|
575
710
|
APP = "APP"
|
|
576
711
|
}
|
|
577
712
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
578
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* ID of a site visitor that has not logged in to the site.
|
|
715
|
+
* @format GUID
|
|
716
|
+
*/
|
|
579
717
|
anonymousVisitorId?: string;
|
|
580
|
-
/**
|
|
718
|
+
/**
|
|
719
|
+
* ID of a site visitor that has logged in to the site.
|
|
720
|
+
* @format GUID
|
|
721
|
+
*/
|
|
581
722
|
memberId?: string;
|
|
582
|
-
/**
|
|
723
|
+
/**
|
|
724
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
725
|
+
* @format GUID
|
|
726
|
+
*/
|
|
583
727
|
wixUserId?: string;
|
|
584
|
-
/**
|
|
728
|
+
/**
|
|
729
|
+
* ID of an app.
|
|
730
|
+
* @format GUID
|
|
731
|
+
*/
|
|
585
732
|
appId?: string;
|
|
586
733
|
/** @readonly */
|
|
587
734
|
identityType?: IdentityType;
|
|
588
735
|
}
|
|
589
736
|
/** @oneof */
|
|
590
737
|
export interface IdentificationDataIdOneOf {
|
|
591
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* ID of a site visitor that has not logged in to the site.
|
|
740
|
+
* @format GUID
|
|
741
|
+
*/
|
|
592
742
|
anonymousVisitorId?: string;
|
|
593
|
-
/**
|
|
743
|
+
/**
|
|
744
|
+
* ID of a site visitor that has logged in to the site.
|
|
745
|
+
* @format GUID
|
|
746
|
+
*/
|
|
594
747
|
memberId?: string;
|
|
595
|
-
/**
|
|
748
|
+
/**
|
|
749
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
750
|
+
* @format GUID
|
|
751
|
+
*/
|
|
596
752
|
wixUserId?: string;
|
|
597
|
-
/**
|
|
753
|
+
/**
|
|
754
|
+
* ID of an app.
|
|
755
|
+
* @format GUID
|
|
756
|
+
*/
|
|
598
757
|
appId?: string;
|
|
599
758
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRo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