@wix/auto_sdk_ecom_discount-rules 1.0.0 → 1.0.2
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/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +257 -58
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +277 -61
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +257 -58
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +277 -61
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +257 -58
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +277 -61
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +257 -58
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +277 -61
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface DiscountRule {
|
|
2
2
|
/**
|
|
3
3
|
* Discount rule ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
id?: string | null;
|
|
@@ -26,7 +27,11 @@ export interface DiscountRule {
|
|
|
26
27
|
* Default: `true`
|
|
27
28
|
*/
|
|
28
29
|
active?: boolean | null;
|
|
29
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Discount rule name.
|
|
32
|
+
* @minLength 1
|
|
33
|
+
* @maxLength 50
|
|
34
|
+
*/
|
|
30
35
|
name?: string | null;
|
|
31
36
|
/**
|
|
32
37
|
* Discount rule trigger.
|
|
@@ -97,7 +102,11 @@ export interface Scope extends ScopeScopeItemsOneOf {
|
|
|
97
102
|
catalogItemFilter?: CatalogItemFilter;
|
|
98
103
|
/** Custom filter. Must be passed with `type."CATALOG_ITEM"`. */
|
|
99
104
|
customFilter?: CustomFilter;
|
|
100
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Scope ID.
|
|
107
|
+
* @minLength 1
|
|
108
|
+
* @maxLength 100
|
|
109
|
+
*/
|
|
101
110
|
id?: string;
|
|
102
111
|
/** Scope type. */
|
|
103
112
|
type?: ScopeType;
|
|
@@ -117,13 +126,24 @@ export declare enum ScopeType {
|
|
|
117
126
|
CUSTOM_FILTER = "CUSTOM_FILTER"
|
|
118
127
|
}
|
|
119
128
|
export interface CatalogItemFilter {
|
|
120
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Catalog App ID. For example, the Wix Stores, Wix Bookings, or 3rd-party `appId`.
|
|
131
|
+
* @format GUID
|
|
132
|
+
*/
|
|
121
133
|
catalogAppId?: string;
|
|
122
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* ID of the item within its Wix or 3rd-party catalog. For example, `productId` for Wix Stores.
|
|
136
|
+
* @minLength 1
|
|
137
|
+
* @maxLength 36
|
|
138
|
+
* @maxSize 50
|
|
139
|
+
*/
|
|
123
140
|
catalogItemIds?: string[];
|
|
124
141
|
}
|
|
125
142
|
export interface CustomFilter {
|
|
126
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* Custom filter app ID, when relevant.
|
|
145
|
+
* @format GUID
|
|
146
|
+
*/
|
|
127
147
|
appId?: string;
|
|
128
148
|
/**
|
|
129
149
|
* Custom filter in `{ "key": "value" }` form.
|
|
@@ -133,33 +153,66 @@ export interface CustomFilter {
|
|
|
133
153
|
params?: Record<string, any> | null;
|
|
134
154
|
}
|
|
135
155
|
export interface And {
|
|
136
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* List of triggers to have an "AND" operator between their results.
|
|
158
|
+
* @minSize 2
|
|
159
|
+
* @maxSize 5
|
|
160
|
+
*/
|
|
137
161
|
triggers?: DiscountTrigger[];
|
|
138
162
|
}
|
|
139
163
|
export interface Or {
|
|
140
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* List of triggers to have an "OR" operator between their results.
|
|
166
|
+
* @minSize 2
|
|
167
|
+
* @maxSize 5
|
|
168
|
+
*/
|
|
141
169
|
triggers?: DiscountTrigger[];
|
|
142
170
|
}
|
|
143
171
|
export interface Custom {
|
|
144
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Trigger ID.
|
|
174
|
+
* @minLength 1
|
|
175
|
+
* @maxLength 100
|
|
176
|
+
*/
|
|
145
177
|
id?: string;
|
|
146
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* ID of the app that created the trigger.
|
|
180
|
+
* @format GUID
|
|
181
|
+
*/
|
|
147
182
|
appId?: string;
|
|
148
183
|
}
|
|
149
184
|
export interface SubtotalRange {
|
|
150
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* Relevant scopes for `SPECIFIC_ITEMS` target type.
|
|
187
|
+
* @maxSize 50
|
|
188
|
+
*/
|
|
151
189
|
scopes?: Scope[];
|
|
152
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* Minimum subtotal price (inclusive).
|
|
192
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
193
|
+
*/
|
|
153
194
|
from?: string | null;
|
|
154
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* Maximum subtotal price (inclusive).
|
|
197
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
198
|
+
*/
|
|
155
199
|
to?: string | null;
|
|
156
200
|
}
|
|
157
201
|
export interface ItemQuantityRange {
|
|
158
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* Relevant scopes for `SPECIFIC_ITEMS` target type.
|
|
204
|
+
* @maxSize 50
|
|
205
|
+
*/
|
|
159
206
|
scopes?: Scope[];
|
|
160
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Minimum item quantity (inclusive).
|
|
209
|
+
* @min 1
|
|
210
|
+
*/
|
|
161
211
|
from?: number | null;
|
|
162
|
-
/**
|
|
212
|
+
/**
|
|
213
|
+
* Maximum item quantity (inclusive).
|
|
214
|
+
* @min 1
|
|
215
|
+
*/
|
|
163
216
|
to?: number | null;
|
|
164
217
|
}
|
|
165
218
|
export declare enum TriggerType {
|
|
@@ -182,15 +235,29 @@ export interface ActiveTimeInfo {
|
|
|
182
235
|
end?: Date | null;
|
|
183
236
|
}
|
|
184
237
|
export interface Discounts {
|
|
185
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* Discounts.
|
|
240
|
+
* @minSize 1
|
|
241
|
+
* @maxSize 1
|
|
242
|
+
*/
|
|
186
243
|
values?: Discount[];
|
|
187
244
|
}
|
|
188
245
|
export interface Discount extends DiscountDiscountOneOf {
|
|
189
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* Percentage to discount from original price.
|
|
248
|
+
* @min 0.1
|
|
249
|
+
* @max 100
|
|
250
|
+
*/
|
|
190
251
|
percentage?: number;
|
|
191
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Amount to discount from original price.
|
|
254
|
+
* @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
|
|
255
|
+
*/
|
|
192
256
|
fixedAmount?: string;
|
|
193
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* Fixed price. Line item will be fixed to this price.
|
|
259
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
260
|
+
*/
|
|
194
261
|
fixedPrice?: string;
|
|
195
262
|
/**
|
|
196
263
|
* Discount target.
|
|
@@ -205,11 +272,21 @@ export interface Discount extends DiscountDiscountOneOf {
|
|
|
205
272
|
}
|
|
206
273
|
/** @oneof */
|
|
207
274
|
export interface DiscountDiscountOneOf {
|
|
208
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* Percentage to discount from original price.
|
|
277
|
+
* @min 0.1
|
|
278
|
+
* @max 100
|
|
279
|
+
*/
|
|
209
280
|
percentage?: number;
|
|
210
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* Amount to discount from original price.
|
|
283
|
+
* @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
|
|
284
|
+
*/
|
|
211
285
|
fixedAmount?: string;
|
|
212
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Fixed price. Line item will be fixed to this price.
|
|
288
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
289
|
+
*/
|
|
213
290
|
fixedPrice?: string;
|
|
214
291
|
}
|
|
215
292
|
export declare enum Type {
|
|
@@ -219,7 +296,11 @@ export declare enum Type {
|
|
|
219
296
|
SPECIFIC_ITEMS = "SPECIFIC_ITEMS"
|
|
220
297
|
}
|
|
221
298
|
export interface SpecificItemsInfo {
|
|
222
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* All associated scopes for `SPECIFIC_ITEMS` target type.
|
|
301
|
+
* @minSize 1
|
|
302
|
+
* @maxSize 50
|
|
303
|
+
*/
|
|
223
304
|
scopes?: Scope[];
|
|
224
305
|
}
|
|
225
306
|
export declare enum DiscountType {
|
|
@@ -241,31 +322,53 @@ export interface BuyXGetYInfo {
|
|
|
241
322
|
* For example, when the value of `limit` is `2`, with a "2+1" sale on all items, the following logic applies:
|
|
242
323
|
* + Buy 2 get 1, buy 3 get 1.
|
|
243
324
|
* + Buy 4 get 2, buy 6 get 2, buy 9 get 2, and so on.
|
|
325
|
+
* @min 1
|
|
244
326
|
*/
|
|
245
327
|
limit?: number | null;
|
|
246
328
|
}
|
|
247
329
|
export interface CustomerBuy extends CustomerBuyConditionOneOf {
|
|
248
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Minimum number of items the customer must add to the cart to be eligible for a discount.
|
|
332
|
+
* @min 1
|
|
333
|
+
*/
|
|
249
334
|
minimumQuantity?: number;
|
|
250
|
-
/**
|
|
335
|
+
/**
|
|
336
|
+
* Minimum price the customer must add to the cart to be eligible for a discount.
|
|
337
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
338
|
+
*/
|
|
251
339
|
minimumSpend?: string | null;
|
|
252
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* Scopes of the items that must be added to the cart to enable the discount.
|
|
342
|
+
* @minSize 1
|
|
343
|
+
* @maxSize 50
|
|
344
|
+
*/
|
|
253
345
|
scopes?: Scope[];
|
|
254
346
|
}
|
|
255
347
|
/** @oneof */
|
|
256
348
|
export interface CustomerBuyConditionOneOf {
|
|
257
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* Minimum number of items the customer must add to the cart to be eligible for a discount.
|
|
351
|
+
* @min 1
|
|
352
|
+
*/
|
|
258
353
|
minimumQuantity?: number;
|
|
259
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* Minimum price the customer must add to the cart to be eligible for a discount.
|
|
356
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
357
|
+
*/
|
|
260
358
|
minimumSpend?: string | null;
|
|
261
359
|
}
|
|
262
360
|
export interface CustomerGet {
|
|
263
361
|
/**
|
|
264
362
|
* Exact number of items in the cart that will be discounted.
|
|
265
363
|
* If the cart contains fewer items than the value of quantity, the discount will not apply.
|
|
364
|
+
* @min 1
|
|
266
365
|
*/
|
|
267
366
|
quantity?: number;
|
|
268
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Scopes of the items that will be discounted.
|
|
369
|
+
* @minSize 1
|
|
370
|
+
* @maxSize 50
|
|
371
|
+
*/
|
|
269
372
|
scopes?: Scope[];
|
|
270
373
|
}
|
|
271
374
|
export declare enum Status {
|
|
@@ -288,11 +391,17 @@ export interface DiscountSettings {
|
|
|
288
391
|
* Default: `false`
|
|
289
392
|
*/
|
|
290
393
|
includeSubscription?: boolean | null;
|
|
291
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* Maximum total number of uses allowed for the discount rule.
|
|
396
|
+
* @min 1
|
|
397
|
+
* @max 2147483646
|
|
398
|
+
*/
|
|
292
399
|
usageLimit?: number | null;
|
|
293
400
|
/**
|
|
294
401
|
* The usage limit per user per discount.
|
|
295
402
|
* When not provided, this setting will not apply.
|
|
403
|
+
* @min 1
|
|
404
|
+
* @max 2147483646
|
|
296
405
|
*/
|
|
297
406
|
usageLimitPerUser?: number | null;
|
|
298
407
|
}
|
|
@@ -324,7 +433,10 @@ export interface CreateDiscountRuleResponse {
|
|
|
324
433
|
discountRule?: DiscountRule;
|
|
325
434
|
}
|
|
326
435
|
export interface GetDiscountRuleRequest {
|
|
327
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* ID of the discount rule to retrieve.
|
|
438
|
+
* @format GUID
|
|
439
|
+
*/
|
|
328
440
|
discountRuleId: string;
|
|
329
441
|
}
|
|
330
442
|
export interface GetDiscountRuleResponse {
|
|
@@ -340,7 +452,10 @@ export interface UpdateDiscountRuleResponse {
|
|
|
340
452
|
discountRule?: DiscountRule;
|
|
341
453
|
}
|
|
342
454
|
export interface DeleteDiscountRuleRequest {
|
|
343
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* ID of the discount rule to delete.
|
|
457
|
+
* @format GUID
|
|
458
|
+
*/
|
|
344
459
|
discountRuleId: string;
|
|
345
460
|
}
|
|
346
461
|
export interface DeleteDiscountRuleResponse {
|
|
@@ -367,7 +482,10 @@ export interface PlatformQueryPagingMethodOneOf {
|
|
|
367
482
|
cursorPaging?: CursorPaging;
|
|
368
483
|
}
|
|
369
484
|
export interface Sorting {
|
|
370
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* Name of the field to sort by.
|
|
487
|
+
* @maxLength 512
|
|
488
|
+
*/
|
|
371
489
|
fieldName?: string;
|
|
372
490
|
/** Sort order. */
|
|
373
491
|
order?: SortOrder;
|
|
@@ -377,19 +495,26 @@ export declare enum SortOrder {
|
|
|
377
495
|
DESC = "DESC"
|
|
378
496
|
}
|
|
379
497
|
export interface PlatformPaging {
|
|
380
|
-
/**
|
|
498
|
+
/**
|
|
499
|
+
* Number of items to load.
|
|
500
|
+
* @max 100
|
|
501
|
+
*/
|
|
381
502
|
limit?: number | null;
|
|
382
503
|
/** Number of items to skip in the current sort order. */
|
|
383
504
|
offset?: number | null;
|
|
384
505
|
}
|
|
385
506
|
export interface CursorPaging {
|
|
386
|
-
/**
|
|
507
|
+
/**
|
|
508
|
+
* Maximum number of items to return in the results.
|
|
509
|
+
* @max 100
|
|
510
|
+
*/
|
|
387
511
|
limit?: number | null;
|
|
388
512
|
/**
|
|
389
513
|
* Pointer to the next or previous page in the list of results.
|
|
390
514
|
*
|
|
391
515
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
392
516
|
* Not relevant for the first request.
|
|
517
|
+
* @maxLength 16000
|
|
393
518
|
*/
|
|
394
519
|
cursor?: string | null;
|
|
395
520
|
}
|
|
@@ -410,30 +535,56 @@ export interface PlatformPagingMetadata {
|
|
|
410
535
|
cursors?: Cursors;
|
|
411
536
|
}
|
|
412
537
|
export interface Cursors {
|
|
413
|
-
/**
|
|
538
|
+
/**
|
|
539
|
+
* Cursor string pointing to the next page in the list of results.
|
|
540
|
+
* @maxLength 16000
|
|
541
|
+
*/
|
|
414
542
|
next?: string | null;
|
|
415
|
-
/**
|
|
543
|
+
/**
|
|
544
|
+
* Cursor pointing to the previous page in the list of results.
|
|
545
|
+
* @maxLength 16000
|
|
546
|
+
*/
|
|
416
547
|
prev?: string | null;
|
|
417
548
|
}
|
|
418
549
|
export interface GetAppliedDiscountsRequest {
|
|
419
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* Line items for which to check for discount rules.
|
|
552
|
+
* @maxSize 1000
|
|
553
|
+
*/
|
|
420
554
|
lineItems?: LineItem[];
|
|
421
|
-
/**
|
|
555
|
+
/**
|
|
556
|
+
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
557
|
+
* @format GUID
|
|
558
|
+
*/
|
|
422
559
|
purchaseFlowId?: string | null;
|
|
423
560
|
}
|
|
424
561
|
export interface LineItem {
|
|
425
|
-
/**
|
|
562
|
+
/**
|
|
563
|
+
* Line item ID.
|
|
564
|
+
* @minLength 1
|
|
565
|
+
* @maxLength 100
|
|
566
|
+
*/
|
|
426
567
|
id?: string;
|
|
427
|
-
/**
|
|
568
|
+
/**
|
|
569
|
+
* Line item quantity.
|
|
570
|
+
* @max 100000
|
|
571
|
+
*/
|
|
428
572
|
quantity?: number | null;
|
|
429
573
|
/** Catalog and item reference info. Learn more about [integrating Wix Stores products with Wix eCommerce](https://dev.wix.com/api/rest/wix-stores/catalog/ecommerce-integration). */
|
|
430
574
|
catalogReference?: CatalogReference;
|
|
431
|
-
/**
|
|
575
|
+
/**
|
|
576
|
+
* Line item price.
|
|
577
|
+
* @decimalValue options { gte:0 }
|
|
578
|
+
*/
|
|
432
579
|
price?: string;
|
|
433
580
|
}
|
|
434
581
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
435
582
|
export interface CatalogReference {
|
|
436
|
-
/**
|
|
583
|
+
/**
|
|
584
|
+
* ID of the item within the catalog it belongs to.
|
|
585
|
+
* @minLength 1
|
|
586
|
+
* @maxLength 36
|
|
587
|
+
*/
|
|
437
588
|
catalogItemId?: string;
|
|
438
589
|
/**
|
|
439
590
|
* ID of the app providing the catalog.
|
|
@@ -444,12 +595,13 @@ export interface CatalogReference {
|
|
|
444
595
|
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
445
596
|
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
446
597
|
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
598
|
+
* @minLength 1
|
|
447
599
|
*/
|
|
448
600
|
appId?: string;
|
|
449
601
|
/**
|
|
450
602
|
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
451
603
|
*
|
|
452
|
-
* For products and variants from a Wix Stores catalog, learn more about
|
|
604
|
+
* For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
|
|
453
605
|
*/
|
|
454
606
|
options?: Record<string, any> | null;
|
|
455
607
|
}
|
|
@@ -460,13 +612,20 @@ export interface GetAppliedDiscountsResponse {
|
|
|
460
612
|
export interface AppliedDiscount {
|
|
461
613
|
/** Discount type. */
|
|
462
614
|
discountType?: Type;
|
|
463
|
-
/**
|
|
615
|
+
/**
|
|
616
|
+
* IDs of line items the discount applies to, in GUID format.
|
|
617
|
+
* @format GUID
|
|
618
|
+
* @maxSize 1000
|
|
619
|
+
*/
|
|
464
620
|
lineItemIds?: string[];
|
|
465
621
|
/** Applied discount rule. */
|
|
466
622
|
appliedDiscountRule?: AppliedDiscountRule;
|
|
467
623
|
}
|
|
468
624
|
export interface AppliedDiscountRule {
|
|
469
|
-
/**
|
|
625
|
+
/**
|
|
626
|
+
* Applied discount rule ID.
|
|
627
|
+
* @format GUID
|
|
628
|
+
*/
|
|
470
629
|
id?: string;
|
|
471
630
|
/** Discount rule name. */
|
|
472
631
|
name?: DiscountRuleName;
|
|
@@ -476,21 +635,31 @@ export interface AppliedDiscountRule {
|
|
|
476
635
|
discountRuleType?: DiscountType;
|
|
477
636
|
}
|
|
478
637
|
export interface DiscountRuleName {
|
|
479
|
-
/**
|
|
638
|
+
/**
|
|
639
|
+
* Original discount rule name (in site's default language).
|
|
640
|
+
* @minLength 1
|
|
641
|
+
* @maxLength 256
|
|
642
|
+
*/
|
|
480
643
|
original?: string;
|
|
481
644
|
/**
|
|
482
645
|
* Translated discount rule name according to buyer language.
|
|
483
646
|
*
|
|
484
647
|
* Default: `original`
|
|
648
|
+
* @minLength 1
|
|
649
|
+
* @maxLength 500
|
|
485
650
|
*/
|
|
486
651
|
translated?: string | null;
|
|
487
652
|
}
|
|
488
653
|
export interface MultiCurrencyPrice {
|
|
489
|
-
/**
|
|
654
|
+
/**
|
|
655
|
+
* Amount.
|
|
656
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
657
|
+
*/
|
|
490
658
|
amount?: string;
|
|
491
659
|
/**
|
|
492
660
|
* Converted amount.
|
|
493
661
|
* @readonly
|
|
662
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
494
663
|
*/
|
|
495
664
|
convertedAmount?: string;
|
|
496
665
|
/**
|
|
@@ -583,9 +752,15 @@ export interface DiscountRuleUsageLimitReached {
|
|
|
583
752
|
rule?: DiscountRule;
|
|
584
753
|
}
|
|
585
754
|
export interface MessageEnvelope {
|
|
586
|
-
/**
|
|
755
|
+
/**
|
|
756
|
+
* App instance ID.
|
|
757
|
+
* @format GUID
|
|
758
|
+
*/
|
|
587
759
|
instanceId?: string | null;
|
|
588
|
-
/**
|
|
760
|
+
/**
|
|
761
|
+
* Event type.
|
|
762
|
+
* @maxLength 150
|
|
763
|
+
*/
|
|
589
764
|
eventType?: string;
|
|
590
765
|
/** The identification type and identity data. */
|
|
591
766
|
identity?: IdentificationData;
|
|
@@ -593,26 +768,50 @@ export interface MessageEnvelope {
|
|
|
593
768
|
data?: string;
|
|
594
769
|
}
|
|
595
770
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
596
|
-
/**
|
|
771
|
+
/**
|
|
772
|
+
* ID of a site visitor that has not logged in to the site.
|
|
773
|
+
* @format GUID
|
|
774
|
+
*/
|
|
597
775
|
anonymousVisitorId?: string;
|
|
598
|
-
/**
|
|
776
|
+
/**
|
|
777
|
+
* ID of a site visitor that has logged in to the site.
|
|
778
|
+
* @format GUID
|
|
779
|
+
*/
|
|
599
780
|
memberId?: string;
|
|
600
|
-
/**
|
|
781
|
+
/**
|
|
782
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
783
|
+
* @format GUID
|
|
784
|
+
*/
|
|
601
785
|
wixUserId?: string;
|
|
602
|
-
/**
|
|
786
|
+
/**
|
|
787
|
+
* ID of an app.
|
|
788
|
+
* @format GUID
|
|
789
|
+
*/
|
|
603
790
|
appId?: string;
|
|
604
791
|
/** @readonly */
|
|
605
792
|
identityType?: WebhookIdentityType;
|
|
606
793
|
}
|
|
607
794
|
/** @oneof */
|
|
608
795
|
export interface IdentificationDataIdOneOf {
|
|
609
|
-
/**
|
|
796
|
+
/**
|
|
797
|
+
* ID of a site visitor that has not logged in to the site.
|
|
798
|
+
* @format GUID
|
|
799
|
+
*/
|
|
610
800
|
anonymousVisitorId?: string;
|
|
611
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* ID of a site visitor that has logged in to the site.
|
|
803
|
+
* @format GUID
|
|
804
|
+
*/
|
|
612
805
|
memberId?: string;
|
|
613
|
-
/**
|
|
806
|
+
/**
|
|
807
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
808
|
+
* @format GUID
|
|
809
|
+
*/
|
|
614
810
|
wixUserId?: string;
|
|
615
|
-
/**
|
|
811
|
+
/**
|
|
812
|
+
* ID of an app.
|
|
813
|
+
* @format GUID
|
|
814
|
+
*/
|
|
616
815
|
appId?: string;
|
|
617
816
|
}
|
|
618
817
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmGD,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB;AAmED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AAWD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAiED,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AA2FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA0VD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|