@wix/referral 1.0.15 → 1.0.17
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/package.json +7 -7
- package/type-bundles/context.bundle.d.ts +206 -197
- package/type-bundles/index.bundle.d.ts +206 -197
- package/type-bundles/meta.bundle.d.ts +248 -146
|
@@ -39,7 +39,7 @@ interface ReferralProgram$1 {
|
|
|
39
39
|
*/
|
|
40
40
|
referringCustomerReward?: Reward$3;
|
|
41
41
|
/**
|
|
42
|
-
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an
|
|
42
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
43
43
|
*
|
|
44
44
|
* Possible values:
|
|
45
45
|
*
|
|
@@ -84,7 +84,7 @@ declare enum ProgramStatus$1 {
|
|
|
84
84
|
interface Reward$3 extends RewardOptionsOneOf$1 {
|
|
85
85
|
/** Options for coupon reward type. */
|
|
86
86
|
couponOptions?: Coupon$5;
|
|
87
|
-
/** Options for Loyalty points reward type. */
|
|
87
|
+
/** Options for the Loyalty points reward type. */
|
|
88
88
|
loyaltyPointsOptions?: LoyaltyPoints$3;
|
|
89
89
|
/** Type of the reward. */
|
|
90
90
|
type?: Type$1;
|
|
@@ -93,7 +93,7 @@ interface Reward$3 extends RewardOptionsOneOf$1 {
|
|
|
93
93
|
interface RewardOptionsOneOf$1 {
|
|
94
94
|
/** Options for coupon reward type. */
|
|
95
95
|
couponOptions?: Coupon$5;
|
|
96
|
-
/** Options for Loyalty points reward type. */
|
|
96
|
+
/** Options for the Loyalty points reward type. */
|
|
97
97
|
loyaltyPointsOptions?: LoyaltyPoints$3;
|
|
98
98
|
}
|
|
99
99
|
declare enum Type$1 {
|
|
@@ -109,7 +109,7 @@ declare enum Type$1 {
|
|
|
109
109
|
interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSubtotalOneOf$5 {
|
|
110
110
|
/** Options for fixed amount discount. */
|
|
111
111
|
fixedAmountOptions?: FixedAmountDiscount$5;
|
|
112
|
-
/** Options for percentage
|
|
112
|
+
/** Options for percentage discounts. */
|
|
113
113
|
percentageOptions?: PercentageDiscount$5;
|
|
114
114
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
115
115
|
minimumSubtotal?: number;
|
|
@@ -149,7 +149,7 @@ interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSub
|
|
|
149
149
|
interface CouponDiscountTypeOptionsOneOf$5 {
|
|
150
150
|
/** Options for fixed amount discount. */
|
|
151
151
|
fixedAmountOptions?: FixedAmountDiscount$5;
|
|
152
|
-
/** Options for percentage
|
|
152
|
+
/** Options for percentage discounts. */
|
|
153
153
|
percentageOptions?: PercentageDiscount$5;
|
|
154
154
|
}
|
|
155
155
|
/** @oneof */
|
|
@@ -170,7 +170,7 @@ declare enum DiscountType$5 {
|
|
|
170
170
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
171
171
|
}
|
|
172
172
|
interface FixedAmountDiscount$5 {
|
|
173
|
-
/** Amount of discount as a fixed value. */
|
|
173
|
+
/** Amount of the discount as a fixed value. */
|
|
174
174
|
amount?: number;
|
|
175
175
|
}
|
|
176
176
|
interface PercentageDiscount$5 {
|
|
@@ -180,7 +180,7 @@ interface PercentageDiscount$5 {
|
|
|
180
180
|
interface CouponScope$5 {
|
|
181
181
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
182
182
|
namespace?: string;
|
|
183
|
-
/** Coupon scope's applied group, for example
|
|
183
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
184
184
|
group?: Group$5;
|
|
185
185
|
}
|
|
186
186
|
interface Group$5 {
|
|
@@ -221,7 +221,10 @@ interface Emails$1 {
|
|
|
221
221
|
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
222
222
|
*/
|
|
223
223
|
encourageToReferFriends?: App$1[];
|
|
224
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
226
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
227
|
+
*/
|
|
225
228
|
notifyCustomersAboutReward?: boolean;
|
|
226
229
|
}
|
|
227
230
|
declare enum App$1 {
|
|
@@ -240,7 +243,7 @@ declare enum App$1 {
|
|
|
240
243
|
}
|
|
241
244
|
interface PremiumFeatures$1 {
|
|
242
245
|
/**
|
|
243
|
-
* Whether the
|
|
246
|
+
* Whether the site owner has access to the referral program feature.
|
|
244
247
|
* @readonly
|
|
245
248
|
*/
|
|
246
249
|
referralProgram?: boolean;
|
|
@@ -351,7 +354,7 @@ interface PauseReferralProgramResponse$1 {
|
|
|
351
354
|
referralProgram?: ReferralProgram$1;
|
|
352
355
|
}
|
|
353
356
|
interface GetAISocialMediaPostsSuggestionsRequest$1 {
|
|
354
|
-
/** Topic to generate social media post suggestions for. */
|
|
357
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
355
358
|
topic?: string;
|
|
356
359
|
}
|
|
357
360
|
interface GetAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -367,7 +370,7 @@ interface AISocialMediaPostSuggestion$1 {
|
|
|
367
370
|
hashtags?: string[];
|
|
368
371
|
}
|
|
369
372
|
interface GenerateAISocialMediaPostsSuggestionsRequest$1 {
|
|
370
|
-
/** Topic to generate social media post suggestions for. */
|
|
373
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
371
374
|
topic?: string;
|
|
372
375
|
}
|
|
373
376
|
interface GenerateAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -500,7 +503,7 @@ interface ReferralProgram {
|
|
|
500
503
|
*/
|
|
501
504
|
referringCustomerReward?: Reward$2;
|
|
502
505
|
/**
|
|
503
|
-
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an
|
|
506
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
504
507
|
*
|
|
505
508
|
* Possible values:
|
|
506
509
|
*
|
|
@@ -545,7 +548,7 @@ declare enum ProgramStatus {
|
|
|
545
548
|
interface Reward$2 extends RewardOptionsOneOf {
|
|
546
549
|
/** Options for coupon reward type. */
|
|
547
550
|
couponOptions?: Coupon$4;
|
|
548
|
-
/** Options for Loyalty points reward type. */
|
|
551
|
+
/** Options for the Loyalty points reward type. */
|
|
549
552
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
550
553
|
/** Type of the reward. */
|
|
551
554
|
type?: Type;
|
|
@@ -554,7 +557,7 @@ interface Reward$2 extends RewardOptionsOneOf {
|
|
|
554
557
|
interface RewardOptionsOneOf {
|
|
555
558
|
/** Options for coupon reward type. */
|
|
556
559
|
couponOptions?: Coupon$4;
|
|
557
|
-
/** Options for Loyalty points reward type. */
|
|
560
|
+
/** Options for the Loyalty points reward type. */
|
|
558
561
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
559
562
|
}
|
|
560
563
|
declare enum Type {
|
|
@@ -570,7 +573,7 @@ declare enum Type {
|
|
|
570
573
|
interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSubtotalOneOf$4 {
|
|
571
574
|
/** Options for fixed amount discount. */
|
|
572
575
|
fixedAmountOptions?: FixedAmountDiscount$4;
|
|
573
|
-
/** Options for percentage
|
|
576
|
+
/** Options for percentage discounts. */
|
|
574
577
|
percentageOptions?: PercentageDiscount$4;
|
|
575
578
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
576
579
|
minimumSubtotal?: number;
|
|
@@ -610,7 +613,7 @@ interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSub
|
|
|
610
613
|
interface CouponDiscountTypeOptionsOneOf$4 {
|
|
611
614
|
/** Options for fixed amount discount. */
|
|
612
615
|
fixedAmountOptions?: FixedAmountDiscount$4;
|
|
613
|
-
/** Options for percentage
|
|
616
|
+
/** Options for percentage discounts. */
|
|
614
617
|
percentageOptions?: PercentageDiscount$4;
|
|
615
618
|
}
|
|
616
619
|
/** @oneof */
|
|
@@ -631,7 +634,7 @@ declare enum DiscountType$4 {
|
|
|
631
634
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
632
635
|
}
|
|
633
636
|
interface FixedAmountDiscount$4 {
|
|
634
|
-
/** Amount of discount as a fixed value. */
|
|
637
|
+
/** Amount of the discount as a fixed value. */
|
|
635
638
|
amount?: number;
|
|
636
639
|
}
|
|
637
640
|
interface PercentageDiscount$4 {
|
|
@@ -641,7 +644,7 @@ interface PercentageDiscount$4 {
|
|
|
641
644
|
interface CouponScope$4 {
|
|
642
645
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
643
646
|
namespace?: string;
|
|
644
|
-
/** Coupon scope's applied group, for example
|
|
647
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
645
648
|
group?: Group$4;
|
|
646
649
|
}
|
|
647
650
|
interface Group$4 {
|
|
@@ -682,7 +685,10 @@ interface Emails {
|
|
|
682
685
|
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
683
686
|
*/
|
|
684
687
|
encourageToReferFriends?: App[];
|
|
685
|
-
/**
|
|
688
|
+
/**
|
|
689
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
690
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
691
|
+
*/
|
|
686
692
|
notifyCustomersAboutReward?: boolean;
|
|
687
693
|
}
|
|
688
694
|
declare enum App {
|
|
@@ -701,7 +707,7 @@ declare enum App {
|
|
|
701
707
|
}
|
|
702
708
|
interface PremiumFeatures {
|
|
703
709
|
/**
|
|
704
|
-
* Whether the
|
|
710
|
+
* Whether the site owner has access to the referral program feature.
|
|
705
711
|
* @readonly
|
|
706
712
|
*/
|
|
707
713
|
referralProgram?: boolean;
|
|
@@ -812,7 +818,7 @@ interface PauseReferralProgramResponse {
|
|
|
812
818
|
referralProgram?: ReferralProgram;
|
|
813
819
|
}
|
|
814
820
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
815
|
-
/** Topic to generate social media post suggestions for. */
|
|
821
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
816
822
|
topic?: string;
|
|
817
823
|
}
|
|
818
824
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
@@ -828,7 +834,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
828
834
|
hashtags?: string[];
|
|
829
835
|
}
|
|
830
836
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
831
|
-
/** Topic to generate social media post suggestions for. */
|
|
837
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
832
838
|
topic?: string;
|
|
833
839
|
}
|
|
834
840
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -1307,7 +1313,7 @@ declare enum Status$5 {
|
|
|
1307
1313
|
interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
|
|
1308
1314
|
/** Options for fixed amount discount. */
|
|
1309
1315
|
fixedAmountOptions?: FixedAmountDiscount$3;
|
|
1310
|
-
/** Options for percentage
|
|
1316
|
+
/** Options for percentage discounts. */
|
|
1311
1317
|
percentageOptions?: PercentageDiscount$3;
|
|
1312
1318
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1313
1319
|
minimumSubtotal?: number;
|
|
@@ -1347,7 +1353,7 @@ interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSub
|
|
|
1347
1353
|
interface CouponDiscountTypeOptionsOneOf$3 {
|
|
1348
1354
|
/** Options for fixed amount discount. */
|
|
1349
1355
|
fixedAmountOptions?: FixedAmountDiscount$3;
|
|
1350
|
-
/** Options for percentage
|
|
1356
|
+
/** Options for percentage discounts. */
|
|
1351
1357
|
percentageOptions?: PercentageDiscount$3;
|
|
1352
1358
|
}
|
|
1353
1359
|
/** @oneof */
|
|
@@ -1368,7 +1374,7 @@ declare enum DiscountType$3 {
|
|
|
1368
1374
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
1369
1375
|
}
|
|
1370
1376
|
interface FixedAmountDiscount$3 {
|
|
1371
|
-
/** Amount of discount as a fixed value. */
|
|
1377
|
+
/** Amount of the discount as a fixed value. */
|
|
1372
1378
|
amount?: number;
|
|
1373
1379
|
}
|
|
1374
1380
|
interface PercentageDiscount$3 {
|
|
@@ -1378,7 +1384,7 @@ interface PercentageDiscount$3 {
|
|
|
1378
1384
|
interface CouponScope$3 {
|
|
1379
1385
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
1380
1386
|
namespace?: string;
|
|
1381
|
-
/** Coupon scope's applied group, for example
|
|
1387
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
1382
1388
|
group?: Group$3;
|
|
1383
1389
|
}
|
|
1384
1390
|
interface Group$3 {
|
|
@@ -1849,7 +1855,7 @@ declare enum Status$4 {
|
|
|
1849
1855
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
1850
1856
|
/** Options for fixed amount discount. */
|
|
1851
1857
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
1852
|
-
/** Options for percentage
|
|
1858
|
+
/** Options for percentage discounts. */
|
|
1853
1859
|
percentageOptions?: PercentageDiscount$2;
|
|
1854
1860
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1855
1861
|
minimumSubtotal?: number;
|
|
@@ -1889,7 +1895,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
|
|
|
1889
1895
|
interface CouponDiscountTypeOptionsOneOf$2 {
|
|
1890
1896
|
/** Options for fixed amount discount. */
|
|
1891
1897
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
1892
|
-
/** Options for percentage
|
|
1898
|
+
/** Options for percentage discounts. */
|
|
1893
1899
|
percentageOptions?: PercentageDiscount$2;
|
|
1894
1900
|
}
|
|
1895
1901
|
/** @oneof */
|
|
@@ -1910,7 +1916,7 @@ declare enum DiscountType$2 {
|
|
|
1910
1916
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
1911
1917
|
}
|
|
1912
1918
|
interface FixedAmountDiscount$2 {
|
|
1913
|
-
/** Amount of discount as a fixed value. */
|
|
1919
|
+
/** Amount of the discount as a fixed value. */
|
|
1914
1920
|
amount?: number;
|
|
1915
1921
|
}
|
|
1916
1922
|
interface PercentageDiscount$2 {
|
|
@@ -1920,7 +1926,7 @@ interface PercentageDiscount$2 {
|
|
|
1920
1926
|
interface CouponScope$2 {
|
|
1921
1927
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
1922
1928
|
namespace?: string;
|
|
1923
|
-
/** Coupon scope's applied group, for example
|
|
1929
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
1924
1930
|
group?: Group$2;
|
|
1925
1931
|
}
|
|
1926
1932
|
interface Group$2 {
|
|
@@ -2062,160 +2068,202 @@ declare namespace meta$3 {
|
|
|
2062
2068
|
export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_getReferralEvent as getReferralEvent, meta$3_getReferralStatistics as getReferralStatistics, meta$3_queryReferralEvent as queryReferralEvent, meta$3_queryReferredFriendActions as queryReferredFriendActions, meta$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
|
|
2063
2069
|
}
|
|
2064
2070
|
|
|
2065
|
-
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
2066
2071
|
interface ReferralReward$1 extends ReferralRewardReceiverOneOf$1, ReferralRewardRewardTypeOptionsOneOf$1 {
|
|
2067
2072
|
/**
|
|
2068
|
-
*
|
|
2073
|
+
* ID of the referring customer who received the reward.
|
|
2069
2074
|
* @readonly
|
|
2070
2075
|
*/
|
|
2071
2076
|
rewardedReferringCustomerId?: string;
|
|
2072
2077
|
/**
|
|
2073
|
-
*
|
|
2078
|
+
* ID of the referred friend who received the reward.
|
|
2074
2079
|
* @readonly
|
|
2075
2080
|
*/
|
|
2076
2081
|
rewardedReferredFriendId?: string;
|
|
2077
|
-
/**
|
|
2082
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2078
2083
|
coupon?: V1Coupon$1;
|
|
2079
|
-
/**
|
|
2084
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2080
2085
|
loyaltyPoints?: V1LoyaltyPoints$1;
|
|
2081
2086
|
/**
|
|
2082
|
-
*
|
|
2087
|
+
* Referral reward ID.
|
|
2083
2088
|
* @readonly
|
|
2084
2089
|
*/
|
|
2085
2090
|
id?: string | null;
|
|
2086
|
-
/**
|
|
2091
|
+
/**
|
|
2092
|
+
* Revision number, which increments by 1 each time the referral reward is updated.
|
|
2093
|
+
* To prevent conflicting changes, the current revision must be passed when updating the referral reward.
|
|
2094
|
+
*/
|
|
2087
2095
|
revision?: string | null;
|
|
2088
2096
|
/**
|
|
2089
|
-
*
|
|
2097
|
+
* Date and time the referral reward was created.
|
|
2090
2098
|
* @readonly
|
|
2091
2099
|
*/
|
|
2092
2100
|
createdDate?: Date;
|
|
2093
2101
|
/**
|
|
2094
|
-
*
|
|
2102
|
+
* Date and time the referral reward was last updated.
|
|
2095
2103
|
* @readonly
|
|
2096
2104
|
*/
|
|
2097
2105
|
updatedDate?: Date;
|
|
2098
|
-
/**
|
|
2106
|
+
/**
|
|
2107
|
+
* Type of reward given.
|
|
2108
|
+
*
|
|
2109
|
+
* Possible values:
|
|
2110
|
+
* - `UNKNOWN`: Unknown reward.
|
|
2111
|
+
* - `COUPON`: A loyalty coupon is given.
|
|
2112
|
+
* - `LOYALTY_POINTS`: Loyalty points are awarded.
|
|
2113
|
+
* - `NOTHING`: No reward is given.
|
|
2114
|
+
*/
|
|
2099
2115
|
rewardType?: RewardTypeType$1;
|
|
2100
2116
|
}
|
|
2101
2117
|
/** @oneof */
|
|
2102
2118
|
interface ReferralRewardReceiverOneOf$1 {
|
|
2103
2119
|
/**
|
|
2104
|
-
*
|
|
2120
|
+
* ID of the referring customer who received the reward.
|
|
2105
2121
|
* @readonly
|
|
2106
2122
|
*/
|
|
2107
2123
|
rewardedReferringCustomerId?: string;
|
|
2108
2124
|
/**
|
|
2109
|
-
*
|
|
2125
|
+
* ID of the referred friend who received the reward.
|
|
2110
2126
|
* @readonly
|
|
2111
2127
|
*/
|
|
2112
2128
|
rewardedReferredFriendId?: string;
|
|
2113
2129
|
}
|
|
2114
2130
|
/** @oneof */
|
|
2115
2131
|
interface ReferralRewardRewardTypeOptionsOneOf$1 {
|
|
2116
|
-
/**
|
|
2132
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2117
2133
|
coupon?: V1Coupon$1;
|
|
2118
|
-
/**
|
|
2134
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2119
2135
|
loyaltyPoints?: V1LoyaltyPoints$1;
|
|
2120
2136
|
}
|
|
2121
2137
|
declare enum RewardTypeType$1 {
|
|
2122
|
-
/** Unknown reward
|
|
2138
|
+
/** Unknown reward. */
|
|
2123
2139
|
UNKNOWN = "UNKNOWN",
|
|
2124
|
-
/**
|
|
2140
|
+
/** A loyalty coupon is given. */
|
|
2125
2141
|
COUPON = "COUPON",
|
|
2126
|
-
/** Loyalty points
|
|
2142
|
+
/** Loyalty points are awarded. */
|
|
2127
2143
|
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
2128
|
-
/** No reward. */
|
|
2144
|
+
/** No reward is given. */
|
|
2129
2145
|
NOTHING = "NOTHING"
|
|
2130
2146
|
}
|
|
2131
2147
|
interface V1Coupon$1 {
|
|
2132
2148
|
/**
|
|
2133
|
-
* Coupon ID.
|
|
2149
|
+
* Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
|
|
2134
2150
|
* @readonly
|
|
2135
2151
|
*/
|
|
2136
2152
|
id?: string;
|
|
2137
2153
|
/**
|
|
2138
|
-
*
|
|
2154
|
+
* The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
|
|
2139
2155
|
* @readonly
|
|
2140
2156
|
*/
|
|
2141
2157
|
code?: string;
|
|
2142
2158
|
/**
|
|
2143
|
-
*
|
|
2159
|
+
* Current status of the coupon.
|
|
2160
|
+
*
|
|
2161
|
+
* Possible values:
|
|
2162
|
+
*
|
|
2163
|
+
* - `UNKNOWN`: Unknown coupon status.
|
|
2164
|
+
* - `ACTIVE`: Coupon is active and can be applied.
|
|
2165
|
+
* - `APPLIED`: Coupon was already applied and can't be used anymore.
|
|
2166
|
+
* - `DELETED`: Coupon was deleted.
|
|
2144
2167
|
* @readonly
|
|
2145
2168
|
*/
|
|
2146
2169
|
status?: Status$3;
|
|
2147
2170
|
/**
|
|
2148
|
-
*
|
|
2171
|
+
* Detailed specifications of the coupon.
|
|
2149
2172
|
* @readonly
|
|
2150
2173
|
*/
|
|
2151
2174
|
couponSpecification?: Coupon$1;
|
|
2152
2175
|
}
|
|
2153
2176
|
declare enum Status$3 {
|
|
2154
|
-
/**
|
|
2177
|
+
/** The coupon status is unknown or not specified. */
|
|
2155
2178
|
UNKNOWN = "UNKNOWN",
|
|
2156
|
-
/**
|
|
2179
|
+
/** The coupon is active and can be applied to purchases. */
|
|
2157
2180
|
ACTIVE = "ACTIVE",
|
|
2158
|
-
/**
|
|
2181
|
+
/** The coupon has been applied and can't be used again. */
|
|
2159
2182
|
APPLIED = "APPLIED",
|
|
2160
|
-
/**
|
|
2183
|
+
/** The coupon has been deleted and is no longer valid. */
|
|
2161
2184
|
DELETED = "DELETED"
|
|
2162
2185
|
}
|
|
2163
2186
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
2164
|
-
/** Options for fixed amount discount
|
|
2187
|
+
/** Options for fixed amount discount. */
|
|
2165
2188
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2166
|
-
/** Options for percentage discount
|
|
2189
|
+
/** Options for percentage discount. */
|
|
2167
2190
|
percentageOptions?: PercentageDiscount$1;
|
|
2168
2191
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2169
2192
|
minimumSubtotal?: number;
|
|
2170
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2193
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2171
2194
|
scope?: CouponScope$1;
|
|
2172
|
-
/** Coupon name */
|
|
2195
|
+
/** Coupon name. */
|
|
2173
2196
|
name?: string;
|
|
2174
|
-
/**
|
|
2197
|
+
/**
|
|
2198
|
+
* Coupon discount type.
|
|
2199
|
+
*
|
|
2200
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
2201
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
2202
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
2203
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
2204
|
+
*/
|
|
2175
2205
|
discountType?: DiscountType$1;
|
|
2176
|
-
/**
|
|
2206
|
+
/**
|
|
2207
|
+
* Whether the coupon is limited to one item.
|
|
2208
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
2209
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
2210
|
+
*/
|
|
2177
2211
|
limitedToOneItem?: boolean | null;
|
|
2178
|
-
/**
|
|
2212
|
+
/** Whether the coupon applies to subscription products. */
|
|
2179
2213
|
appliesToSubscriptions?: boolean | null;
|
|
2180
|
-
/**
|
|
2214
|
+
/**
|
|
2215
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
2216
|
+
*
|
|
2217
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
2218
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
2219
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
2220
|
+
*
|
|
2221
|
+
* Max: `999`
|
|
2222
|
+
*/
|
|
2181
2223
|
discountedCycleCount?: number | null;
|
|
2182
2224
|
}
|
|
2183
2225
|
/** @oneof */
|
|
2184
2226
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
2185
|
-
/** Options for fixed amount discount
|
|
2227
|
+
/** Options for fixed amount discount. */
|
|
2186
2228
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2187
|
-
/** Options for percentage discount
|
|
2229
|
+
/** Options for percentage discount. */
|
|
2188
2230
|
percentageOptions?: PercentageDiscount$1;
|
|
2189
2231
|
}
|
|
2190
2232
|
/** @oneof */
|
|
2191
2233
|
interface CouponScopeOrMinSubtotalOneOf$1 {
|
|
2192
2234
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2193
2235
|
minimumSubtotal?: number;
|
|
2194
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2236
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2195
2237
|
scope?: CouponScope$1;
|
|
2196
2238
|
}
|
|
2197
2239
|
declare enum DiscountType$1 {
|
|
2240
|
+
/** Unknown discount type. */
|
|
2198
2241
|
UNKNOWN = "UNKNOWN",
|
|
2199
|
-
/** Discount as a fixed amount */
|
|
2242
|
+
/** Discount as a fixed amount. */
|
|
2200
2243
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
2201
|
-
/** Discount as a percentage */
|
|
2244
|
+
/** Discount as a percentage. */
|
|
2202
2245
|
PERCENTAGE = "PERCENTAGE",
|
|
2203
|
-
/** Free shipping */
|
|
2246
|
+
/** Free shipping. */
|
|
2204
2247
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2205
2248
|
}
|
|
2206
2249
|
interface FixedAmountDiscount$1 {
|
|
2207
|
-
/**
|
|
2250
|
+
/** Amount of discount as a fixed value. */
|
|
2208
2251
|
amount?: number;
|
|
2209
2252
|
}
|
|
2210
2253
|
interface PercentageDiscount$1 {
|
|
2254
|
+
/** Percentage of discount. */
|
|
2211
2255
|
percentage?: number;
|
|
2212
2256
|
}
|
|
2213
2257
|
interface CouponScope$1 {
|
|
2258
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2214
2259
|
namespace?: string;
|
|
2260
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
2215
2261
|
group?: Group$1;
|
|
2216
2262
|
}
|
|
2217
2263
|
interface Group$1 {
|
|
2264
|
+
/** Name of the group. */
|
|
2218
2265
|
name?: string;
|
|
2266
|
+
/** Entity ID of the group. */
|
|
2219
2267
|
entityId?: string | null;
|
|
2220
2268
|
}
|
|
2221
2269
|
interface V1LoyaltyPoints$1 {
|
|
@@ -2225,46 +2273,52 @@ interface V1LoyaltyPoints$1 {
|
|
|
2225
2273
|
*/
|
|
2226
2274
|
transactionId?: string;
|
|
2227
2275
|
/**
|
|
2228
|
-
*
|
|
2276
|
+
* The number of loyalty points awarded.
|
|
2229
2277
|
* @readonly
|
|
2230
2278
|
*/
|
|
2231
2279
|
amount?: number;
|
|
2232
2280
|
}
|
|
2233
2281
|
interface GetReferralRewardRequest$1 {
|
|
2234
|
-
/**
|
|
2282
|
+
/** Referral reward ID. */
|
|
2235
2283
|
id: string;
|
|
2236
2284
|
}
|
|
2237
2285
|
interface GetReferralRewardResponse$1 {
|
|
2238
|
-
/**
|
|
2286
|
+
/** Retrieved referral reward. */
|
|
2239
2287
|
referralReward?: ReferralReward$1;
|
|
2240
2288
|
}
|
|
2241
2289
|
interface QueryReferralRewardsRequest$1 {
|
|
2242
|
-
/** Query to filter
|
|
2290
|
+
/** Query to filter referral rewards. */
|
|
2243
2291
|
query: CursorQuery$5;
|
|
2244
|
-
/**
|
|
2292
|
+
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
2245
2293
|
contactId?: string | null;
|
|
2246
2294
|
}
|
|
2247
2295
|
interface CursorQuery$5 extends CursorQueryPagingMethodOneOf$5 {
|
|
2248
|
-
/**
|
|
2296
|
+
/**
|
|
2297
|
+
* Cursor paging options.
|
|
2298
|
+
*
|
|
2299
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2300
|
+
*/
|
|
2249
2301
|
cursorPaging?: CursorPaging$5;
|
|
2250
2302
|
/**
|
|
2251
|
-
* Filter object
|
|
2252
|
-
*
|
|
2253
|
-
*
|
|
2254
|
-
* "fieldName2":{"$operator":"value2"}
|
|
2255
|
-
* }`
|
|
2256
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
2303
|
+
* Filter object.
|
|
2304
|
+
*
|
|
2305
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2257
2306
|
*/
|
|
2258
2307
|
filter?: Record<string, any> | null;
|
|
2259
2308
|
/**
|
|
2260
|
-
* Sort object
|
|
2261
|
-
*
|
|
2309
|
+
* Sort object.
|
|
2310
|
+
*
|
|
2311
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2262
2312
|
*/
|
|
2263
2313
|
sort?: Sorting$5[];
|
|
2264
2314
|
}
|
|
2265
2315
|
/** @oneof */
|
|
2266
2316
|
interface CursorQueryPagingMethodOneOf$5 {
|
|
2267
|
-
/**
|
|
2317
|
+
/**
|
|
2318
|
+
* Cursor paging options.
|
|
2319
|
+
*
|
|
2320
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2321
|
+
*/
|
|
2268
2322
|
cursorPaging?: CursorPaging$5;
|
|
2269
2323
|
}
|
|
2270
2324
|
interface Sorting$5 {
|
|
@@ -2289,13 +2343,13 @@ interface CursorPaging$5 {
|
|
|
2289
2343
|
cursor?: string | null;
|
|
2290
2344
|
}
|
|
2291
2345
|
interface QueryReferralRewardsResponse$1 {
|
|
2292
|
-
/**
|
|
2346
|
+
/** Retrieved referral rewards. */
|
|
2293
2347
|
referralRewards?: ReferralReward$1[];
|
|
2294
2348
|
/** Metadata for paging. */
|
|
2295
2349
|
metadata?: CursorPagingMetadata$5;
|
|
2296
2350
|
}
|
|
2297
2351
|
interface CursorPagingMetadata$5 {
|
|
2298
|
-
/** Number of items returned in
|
|
2352
|
+
/** Number of items returned in current page. */
|
|
2299
2353
|
count?: number | null;
|
|
2300
2354
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
2301
2355
|
cursors?: Cursors$5;
|
|
@@ -2358,160 +2412,202 @@ interface QueryReferralRewardsResponseNonNullableFields$1 {
|
|
|
2358
2412
|
referralRewards: ReferralRewardNonNullableFields$1[];
|
|
2359
2413
|
}
|
|
2360
2414
|
|
|
2361
|
-
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
2362
2415
|
interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewardTypeOptionsOneOf {
|
|
2363
2416
|
/**
|
|
2364
|
-
*
|
|
2417
|
+
* ID of the referring customer who received the reward.
|
|
2365
2418
|
* @readonly
|
|
2366
2419
|
*/
|
|
2367
2420
|
rewardedReferringCustomerId?: string;
|
|
2368
2421
|
/**
|
|
2369
|
-
*
|
|
2422
|
+
* ID of the referred friend who received the reward.
|
|
2370
2423
|
* @readonly
|
|
2371
2424
|
*/
|
|
2372
2425
|
rewardedReferredFriendId?: string;
|
|
2373
|
-
/**
|
|
2426
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2374
2427
|
coupon?: V1Coupon;
|
|
2375
|
-
/**
|
|
2428
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2376
2429
|
loyaltyPoints?: V1LoyaltyPoints;
|
|
2377
2430
|
/**
|
|
2378
|
-
*
|
|
2431
|
+
* Referral reward ID.
|
|
2379
2432
|
* @readonly
|
|
2380
2433
|
*/
|
|
2381
2434
|
_id?: string | null;
|
|
2382
|
-
/**
|
|
2435
|
+
/**
|
|
2436
|
+
* Revision number, which increments by 1 each time the referral reward is updated.
|
|
2437
|
+
* To prevent conflicting changes, the current revision must be passed when updating the referral reward.
|
|
2438
|
+
*/
|
|
2383
2439
|
revision?: string | null;
|
|
2384
2440
|
/**
|
|
2385
|
-
*
|
|
2441
|
+
* Date and time the referral reward was created.
|
|
2386
2442
|
* @readonly
|
|
2387
2443
|
*/
|
|
2388
2444
|
_createdDate?: Date;
|
|
2389
2445
|
/**
|
|
2390
|
-
*
|
|
2446
|
+
* Date and time the referral reward was last updated.
|
|
2391
2447
|
* @readonly
|
|
2392
2448
|
*/
|
|
2393
2449
|
_updatedDate?: Date;
|
|
2394
|
-
/**
|
|
2450
|
+
/**
|
|
2451
|
+
* Type of reward given.
|
|
2452
|
+
*
|
|
2453
|
+
* Possible values:
|
|
2454
|
+
* - `UNKNOWN`: Unknown reward.
|
|
2455
|
+
* - `COUPON`: A loyalty coupon is given.
|
|
2456
|
+
* - `LOYALTY_POINTS`: Loyalty points are awarded.
|
|
2457
|
+
* - `NOTHING`: No reward is given.
|
|
2458
|
+
*/
|
|
2395
2459
|
rewardType?: RewardTypeType;
|
|
2396
2460
|
}
|
|
2397
2461
|
/** @oneof */
|
|
2398
2462
|
interface ReferralRewardReceiverOneOf {
|
|
2399
2463
|
/**
|
|
2400
|
-
*
|
|
2464
|
+
* ID of the referring customer who received the reward.
|
|
2401
2465
|
* @readonly
|
|
2402
2466
|
*/
|
|
2403
2467
|
rewardedReferringCustomerId?: string;
|
|
2404
2468
|
/**
|
|
2405
|
-
*
|
|
2469
|
+
* ID of the referred friend who received the reward.
|
|
2406
2470
|
* @readonly
|
|
2407
2471
|
*/
|
|
2408
2472
|
rewardedReferredFriendId?: string;
|
|
2409
2473
|
}
|
|
2410
2474
|
/** @oneof */
|
|
2411
2475
|
interface ReferralRewardRewardTypeOptionsOneOf {
|
|
2412
|
-
/**
|
|
2476
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2413
2477
|
coupon?: V1Coupon;
|
|
2414
|
-
/**
|
|
2478
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2415
2479
|
loyaltyPoints?: V1LoyaltyPoints;
|
|
2416
2480
|
}
|
|
2417
2481
|
declare enum RewardTypeType {
|
|
2418
|
-
/** Unknown reward
|
|
2482
|
+
/** Unknown reward. */
|
|
2419
2483
|
UNKNOWN = "UNKNOWN",
|
|
2420
|
-
/**
|
|
2484
|
+
/** A loyalty coupon is given. */
|
|
2421
2485
|
COUPON = "COUPON",
|
|
2422
|
-
/** Loyalty points
|
|
2486
|
+
/** Loyalty points are awarded. */
|
|
2423
2487
|
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
2424
|
-
/** No reward. */
|
|
2488
|
+
/** No reward is given. */
|
|
2425
2489
|
NOTHING = "NOTHING"
|
|
2426
2490
|
}
|
|
2427
2491
|
interface V1Coupon {
|
|
2428
2492
|
/**
|
|
2429
|
-
* Coupon ID.
|
|
2493
|
+
* Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
|
|
2430
2494
|
* @readonly
|
|
2431
2495
|
*/
|
|
2432
2496
|
_id?: string;
|
|
2433
2497
|
/**
|
|
2434
|
-
*
|
|
2498
|
+
* The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
|
|
2435
2499
|
* @readonly
|
|
2436
2500
|
*/
|
|
2437
2501
|
code?: string;
|
|
2438
2502
|
/**
|
|
2439
|
-
*
|
|
2503
|
+
* Current status of the coupon.
|
|
2504
|
+
*
|
|
2505
|
+
* Possible values:
|
|
2506
|
+
*
|
|
2507
|
+
* - `UNKNOWN`: Unknown coupon status.
|
|
2508
|
+
* - `ACTIVE`: Coupon is active and can be applied.
|
|
2509
|
+
* - `APPLIED`: Coupon was already applied and can't be used anymore.
|
|
2510
|
+
* - `DELETED`: Coupon was deleted.
|
|
2440
2511
|
* @readonly
|
|
2441
2512
|
*/
|
|
2442
2513
|
status?: Status$2;
|
|
2443
2514
|
/**
|
|
2444
|
-
*
|
|
2515
|
+
* Detailed specifications of the coupon.
|
|
2445
2516
|
* @readonly
|
|
2446
2517
|
*/
|
|
2447
2518
|
couponSpecification?: Coupon;
|
|
2448
2519
|
}
|
|
2449
2520
|
declare enum Status$2 {
|
|
2450
|
-
/**
|
|
2521
|
+
/** The coupon status is unknown or not specified. */
|
|
2451
2522
|
UNKNOWN = "UNKNOWN",
|
|
2452
|
-
/**
|
|
2523
|
+
/** The coupon is active and can be applied to purchases. */
|
|
2453
2524
|
ACTIVE = "ACTIVE",
|
|
2454
|
-
/**
|
|
2525
|
+
/** The coupon has been applied and can't be used again. */
|
|
2455
2526
|
APPLIED = "APPLIED",
|
|
2456
|
-
/**
|
|
2527
|
+
/** The coupon has been deleted and is no longer valid. */
|
|
2457
2528
|
DELETED = "DELETED"
|
|
2458
2529
|
}
|
|
2459
2530
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2460
|
-
/** Options for fixed amount discount
|
|
2531
|
+
/** Options for fixed amount discount. */
|
|
2461
2532
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2462
|
-
/** Options for percentage discount
|
|
2533
|
+
/** Options for percentage discount. */
|
|
2463
2534
|
percentageOptions?: PercentageDiscount;
|
|
2464
2535
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2465
2536
|
minimumSubtotal?: number;
|
|
2466
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2537
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2467
2538
|
scope?: CouponScope;
|
|
2468
|
-
/** Coupon name */
|
|
2539
|
+
/** Coupon name. */
|
|
2469
2540
|
name?: string;
|
|
2470
|
-
/**
|
|
2541
|
+
/**
|
|
2542
|
+
* Coupon discount type.
|
|
2543
|
+
*
|
|
2544
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
2545
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
2546
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
2547
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
2548
|
+
*/
|
|
2471
2549
|
discountType?: DiscountType;
|
|
2472
|
-
/**
|
|
2550
|
+
/**
|
|
2551
|
+
* Whether the coupon is limited to one item.
|
|
2552
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
2553
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
2554
|
+
*/
|
|
2473
2555
|
limitedToOneItem?: boolean | null;
|
|
2474
|
-
/**
|
|
2556
|
+
/** Whether the coupon applies to subscription products. */
|
|
2475
2557
|
appliesToSubscriptions?: boolean | null;
|
|
2476
|
-
/**
|
|
2558
|
+
/**
|
|
2559
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
2560
|
+
*
|
|
2561
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
2562
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
2563
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
2564
|
+
*
|
|
2565
|
+
* Max: `999`
|
|
2566
|
+
*/
|
|
2477
2567
|
discountedCycleCount?: number | null;
|
|
2478
2568
|
}
|
|
2479
2569
|
/** @oneof */
|
|
2480
2570
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2481
|
-
/** Options for fixed amount discount
|
|
2571
|
+
/** Options for fixed amount discount. */
|
|
2482
2572
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2483
|
-
/** Options for percentage discount
|
|
2573
|
+
/** Options for percentage discount. */
|
|
2484
2574
|
percentageOptions?: PercentageDiscount;
|
|
2485
2575
|
}
|
|
2486
2576
|
/** @oneof */
|
|
2487
2577
|
interface CouponScopeOrMinSubtotalOneOf {
|
|
2488
2578
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2489
2579
|
minimumSubtotal?: number;
|
|
2490
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2580
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2491
2581
|
scope?: CouponScope;
|
|
2492
2582
|
}
|
|
2493
2583
|
declare enum DiscountType {
|
|
2584
|
+
/** Unknown discount type. */
|
|
2494
2585
|
UNKNOWN = "UNKNOWN",
|
|
2495
|
-
/** Discount as a fixed amount */
|
|
2586
|
+
/** Discount as a fixed amount. */
|
|
2496
2587
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
2497
|
-
/** Discount as a percentage */
|
|
2588
|
+
/** Discount as a percentage. */
|
|
2498
2589
|
PERCENTAGE = "PERCENTAGE",
|
|
2499
|
-
/** Free shipping */
|
|
2590
|
+
/** Free shipping. */
|
|
2500
2591
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2501
2592
|
}
|
|
2502
2593
|
interface FixedAmountDiscount {
|
|
2503
|
-
/**
|
|
2594
|
+
/** Amount of discount as a fixed value. */
|
|
2504
2595
|
amount?: number;
|
|
2505
2596
|
}
|
|
2506
2597
|
interface PercentageDiscount {
|
|
2598
|
+
/** Percentage of discount. */
|
|
2507
2599
|
percentage?: number;
|
|
2508
2600
|
}
|
|
2509
2601
|
interface CouponScope {
|
|
2602
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2510
2603
|
namespace?: string;
|
|
2604
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
2511
2605
|
group?: Group;
|
|
2512
2606
|
}
|
|
2513
2607
|
interface Group {
|
|
2608
|
+
/** Name of the group. */
|
|
2514
2609
|
name?: string;
|
|
2610
|
+
/** Entity ID of the group. */
|
|
2515
2611
|
entityId?: string | null;
|
|
2516
2612
|
}
|
|
2517
2613
|
interface V1LoyaltyPoints {
|
|
@@ -2521,46 +2617,52 @@ interface V1LoyaltyPoints {
|
|
|
2521
2617
|
*/
|
|
2522
2618
|
transactionId?: string;
|
|
2523
2619
|
/**
|
|
2524
|
-
*
|
|
2620
|
+
* The number of loyalty points awarded.
|
|
2525
2621
|
* @readonly
|
|
2526
2622
|
*/
|
|
2527
2623
|
amount?: number;
|
|
2528
2624
|
}
|
|
2529
2625
|
interface GetReferralRewardRequest {
|
|
2530
|
-
/**
|
|
2626
|
+
/** Referral reward ID. */
|
|
2531
2627
|
_id: string;
|
|
2532
2628
|
}
|
|
2533
2629
|
interface GetReferralRewardResponse {
|
|
2534
|
-
/**
|
|
2630
|
+
/** Retrieved referral reward. */
|
|
2535
2631
|
referralReward?: ReferralReward;
|
|
2536
2632
|
}
|
|
2537
2633
|
interface QueryReferralRewardsRequest {
|
|
2538
|
-
/** Query to filter
|
|
2634
|
+
/** Query to filter referral rewards. */
|
|
2539
2635
|
query: CursorQuery$4;
|
|
2540
|
-
/**
|
|
2636
|
+
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
2541
2637
|
contactId?: string | null;
|
|
2542
2638
|
}
|
|
2543
2639
|
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
2544
|
-
/**
|
|
2640
|
+
/**
|
|
2641
|
+
* Cursor paging options.
|
|
2642
|
+
*
|
|
2643
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2644
|
+
*/
|
|
2545
2645
|
cursorPaging?: CursorPaging$4;
|
|
2546
2646
|
/**
|
|
2547
|
-
* Filter object
|
|
2548
|
-
*
|
|
2549
|
-
*
|
|
2550
|
-
* "fieldName2":{"$operator":"value2"}
|
|
2551
|
-
* }`
|
|
2552
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
2647
|
+
* Filter object.
|
|
2648
|
+
*
|
|
2649
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2553
2650
|
*/
|
|
2554
2651
|
filter?: Record<string, any> | null;
|
|
2555
2652
|
/**
|
|
2556
|
-
* Sort object
|
|
2557
|
-
*
|
|
2653
|
+
* Sort object.
|
|
2654
|
+
*
|
|
2655
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2558
2656
|
*/
|
|
2559
2657
|
sort?: Sorting$4[];
|
|
2560
2658
|
}
|
|
2561
2659
|
/** @oneof */
|
|
2562
2660
|
interface CursorQueryPagingMethodOneOf$4 {
|
|
2563
|
-
/**
|
|
2661
|
+
/**
|
|
2662
|
+
* Cursor paging options.
|
|
2663
|
+
*
|
|
2664
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2665
|
+
*/
|
|
2564
2666
|
cursorPaging?: CursorPaging$4;
|
|
2565
2667
|
}
|
|
2566
2668
|
interface Sorting$4 {
|
|
@@ -2585,13 +2687,13 @@ interface CursorPaging$4 {
|
|
|
2585
2687
|
cursor?: string | null;
|
|
2586
2688
|
}
|
|
2587
2689
|
interface QueryReferralRewardsResponse {
|
|
2588
|
-
/**
|
|
2690
|
+
/** Retrieved referral rewards. */
|
|
2589
2691
|
referralRewards?: ReferralReward[];
|
|
2590
2692
|
/** Metadata for paging. */
|
|
2591
2693
|
metadata?: CursorPagingMetadata$4;
|
|
2592
2694
|
}
|
|
2593
2695
|
interface CursorPagingMetadata$4 {
|
|
2594
|
-
/** Number of items returned in
|
|
2696
|
+
/** Number of items returned in current page. */
|
|
2595
2697
|
count?: number | null;
|
|
2596
2698
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
2597
2699
|
cursors?: Cursors$4;
|