@wix/auto_sdk_pricing-plans_plans 1.0.2 → 1.0.3
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/pricing-plans-v2-plan-plans.types.d.ts +170 -37
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +238 -46
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +14 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan-plans.types.d.ts +170 -37
- package/build/es/src/pricing-plans-v2-plan-plans.types.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan-plans.universal.d.ts +238 -46
- package/build/es/src/pricing-plans-v2-plan-plans.universal.js +14 -0
- package/build/es/src/pricing-plans-v2-plan-plans.universal.js.map +1 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.d.ts +170 -37
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +1 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +238 -46
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +14 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +1 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.d.ts +170 -37
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +1 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.d.ts +238 -46
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +14 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
export interface Plan {
|
|
3
3
|
/**
|
|
4
4
|
* Plan ID.
|
|
5
|
+
* @format GUID
|
|
5
6
|
* @readonly
|
|
6
7
|
*/
|
|
7
8
|
_id?: string;
|
|
8
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Plan name.
|
|
11
|
+
* @minLength 1
|
|
12
|
+
* @maxLength 50
|
|
13
|
+
*/
|
|
9
14
|
name?: string | null;
|
|
10
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Plan description.
|
|
17
|
+
* @maxLength 450
|
|
18
|
+
*/
|
|
11
19
|
description?: string | null;
|
|
12
20
|
/** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
|
|
13
21
|
perks?: StringList;
|
|
@@ -42,13 +50,16 @@ export interface Plan {
|
|
|
42
50
|
_updatedDate?: Date | null;
|
|
43
51
|
/**
|
|
44
52
|
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
53
|
+
* @minLength 1
|
|
45
54
|
* @readonly
|
|
55
|
+
* @format URL_SLUG
|
|
46
56
|
*/
|
|
47
57
|
slug?: string | null;
|
|
48
58
|
/**
|
|
49
59
|
* Number of times the same buyer can purchase the plan. Currently limited to support:
|
|
50
60
|
* - Empty value or a value of `0`, meaning no limitation.
|
|
51
61
|
* - Value of `1`, meaning limited to 1 purchase per buyer.
|
|
62
|
+
* @max 1
|
|
52
63
|
*/
|
|
53
64
|
maxPurchasesPerBuyer?: number | null;
|
|
54
65
|
/** Whether the buyer can start the plan at a later date. Defaults to false. */
|
|
@@ -58,17 +69,26 @@ export interface Plan {
|
|
|
58
69
|
* If false, calling Request Cancellation returns an error.
|
|
59
70
|
*/
|
|
60
71
|
buyerCanCancel?: boolean | null;
|
|
61
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Any terms and conditions that apply to the plan. This information is displayed during checkout.
|
|
74
|
+
* @maxLength 3000
|
|
75
|
+
*/
|
|
62
76
|
termsAndConditions?: string | null;
|
|
63
77
|
/**
|
|
64
78
|
* ID of the form associated with the plan at checkout.
|
|
65
79
|
*
|
|
66
80
|
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
81
|
+
* @format GUID
|
|
67
82
|
*/
|
|
68
83
|
formId?: string | null;
|
|
69
84
|
}
|
|
70
85
|
/** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
|
|
71
86
|
export interface StringList {
|
|
87
|
+
/**
|
|
88
|
+
* @minLength 1
|
|
89
|
+
* @maxLength 1400
|
|
90
|
+
* @maxSize 500
|
|
91
|
+
*/
|
|
72
92
|
values?: string[];
|
|
73
93
|
}
|
|
74
94
|
/** Plan pricing information. Includes the price of the plan and payment details. */
|
|
@@ -81,7 +101,10 @@ export interface Pricing extends PricingPricingModelOneOf {
|
|
|
81
101
|
singlePaymentUnlimited?: boolean | null;
|
|
82
102
|
/** Amount for a single payment. For subscriptions, this is the amount to pay each payment cycle and it is required. For plans that are not recurring plans, it is the single payment amount for the whole subscription. */
|
|
83
103
|
price?: Money;
|
|
84
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Free trial period for the plan in days. Available only for recurring plans, meaning plans whose pricing model is `subscription`. Set to `0` to remove the free trial.
|
|
106
|
+
* @max 999
|
|
107
|
+
*/
|
|
85
108
|
freeTrialDays?: number | null;
|
|
86
109
|
}
|
|
87
110
|
/** @oneof */
|
|
@@ -104,12 +127,16 @@ export interface Recurrence {
|
|
|
104
127
|
* Length of a payment cycle. For example, 1 month to have monthly payments.
|
|
105
128
|
* Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.
|
|
106
129
|
* Currently, only a value of `1` is supported.
|
|
130
|
+
* @max 2000
|
|
107
131
|
*/
|
|
108
132
|
cycleCount?: number | null;
|
|
109
133
|
}
|
|
110
134
|
/** A duration expressed in number of time units. */
|
|
111
135
|
export interface Duration {
|
|
112
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.
|
|
138
|
+
* @min 1
|
|
139
|
+
*/
|
|
113
140
|
count?: number | null;
|
|
114
141
|
/** Unit of time for the cycle duration. */
|
|
115
142
|
unit?: PeriodUnit;
|
|
@@ -127,9 +154,15 @@ export declare enum PeriodUnit {
|
|
|
127
154
|
YEAR = "YEAR"
|
|
128
155
|
}
|
|
129
156
|
export interface Money {
|
|
130
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.
|
|
159
|
+
* @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }
|
|
160
|
+
*/
|
|
131
161
|
value?: string;
|
|
132
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`.
|
|
164
|
+
* @format CURRENCY
|
|
165
|
+
*/
|
|
133
166
|
currency?: string;
|
|
134
167
|
}
|
|
135
168
|
export interface FeeConfig {
|
|
@@ -139,9 +172,16 @@ export interface FeeConfig {
|
|
|
139
172
|
appliedAt?: AppliedAt;
|
|
140
173
|
}
|
|
141
174
|
export interface Fee {
|
|
142
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Fee name
|
|
177
|
+
* @minLength 1
|
|
178
|
+
* @maxLength 40
|
|
179
|
+
*/
|
|
143
180
|
name?: string;
|
|
144
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Amount of fee to be charged
|
|
183
|
+
* @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
|
|
184
|
+
*/
|
|
145
185
|
amount?: string;
|
|
146
186
|
}
|
|
147
187
|
export declare enum AppliedAt {
|
|
@@ -150,11 +190,19 @@ export declare enum AppliedAt {
|
|
|
150
190
|
FIRST_PAYMENT = "FIRST_PAYMENT"
|
|
151
191
|
}
|
|
152
192
|
export interface ListPublicPlansRequest {
|
|
153
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).
|
|
195
|
+
* @min 1
|
|
196
|
+
* @max 100
|
|
197
|
+
*/
|
|
154
198
|
limit?: number | null;
|
|
155
199
|
/** Number of items to skip. Defaults to `0`. See paging ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) |[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
|
|
156
200
|
offset?: number | null;
|
|
157
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
|
|
203
|
+
* @format GUID
|
|
204
|
+
* @maxSize 100
|
|
205
|
+
*/
|
|
158
206
|
planIds?: string[];
|
|
159
207
|
}
|
|
160
208
|
export interface ListPublicPlansResponse {
|
|
@@ -165,11 +213,21 @@ export interface ListPublicPlansResponse {
|
|
|
165
213
|
}
|
|
166
214
|
/** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
|
|
167
215
|
export interface PublicPlan {
|
|
168
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* Plan ID.
|
|
218
|
+
* @format GUID
|
|
219
|
+
*/
|
|
169
220
|
_id?: string;
|
|
170
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Plan name.
|
|
223
|
+
* @minLength 1
|
|
224
|
+
* @maxLength 50
|
|
225
|
+
*/
|
|
171
226
|
name?: string | null;
|
|
172
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* Plan description.
|
|
229
|
+
* @maxLength 450
|
|
230
|
+
*/
|
|
173
231
|
description?: string | null;
|
|
174
232
|
/** What is included with this plan (for example, 1 weekly entrance to a specific class). */
|
|
175
233
|
perks?: StringList;
|
|
@@ -181,7 +239,10 @@ export interface PublicPlan {
|
|
|
181
239
|
_createdDate?: Date | null;
|
|
182
240
|
/** Date plan was last updated. */
|
|
183
241
|
_updatedDate?: Date | null;
|
|
184
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
244
|
+
* @minLength 1
|
|
245
|
+
*/
|
|
185
246
|
slug?: string | null;
|
|
186
247
|
/** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */
|
|
187
248
|
maxPurchasesPerBuyer?: number | null;
|
|
@@ -195,6 +256,7 @@ export interface PublicPlan {
|
|
|
195
256
|
* ID of the form associated with the plan at checkout.
|
|
196
257
|
*
|
|
197
258
|
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
259
|
+
* @format GUID
|
|
198
260
|
*/
|
|
199
261
|
formId?: string | null;
|
|
200
262
|
}
|
|
@@ -211,9 +273,15 @@ export interface PagingMetadataV2 {
|
|
|
211
273
|
cursors?: Cursors;
|
|
212
274
|
}
|
|
213
275
|
export interface Cursors {
|
|
214
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* Cursor string pointing to the next page in the list of results.
|
|
278
|
+
* @maxLength 16000
|
|
279
|
+
*/
|
|
215
280
|
next?: string | null;
|
|
216
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* Cursor pointing to the previous page in the list of results.
|
|
283
|
+
* @maxLength 16000
|
|
284
|
+
*/
|
|
217
285
|
prev?: string | null;
|
|
218
286
|
}
|
|
219
287
|
export interface QueryPublicPlansRequest {
|
|
@@ -229,7 +297,10 @@ export interface QueryV2 {
|
|
|
229
297
|
paging?: Paging;
|
|
230
298
|
}
|
|
231
299
|
export interface Sorting {
|
|
232
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Name of the field to sort by.
|
|
302
|
+
* @maxLength 512
|
|
303
|
+
*/
|
|
233
304
|
fieldName?: string;
|
|
234
305
|
/** Sort order. */
|
|
235
306
|
order?: SortOrder;
|
|
@@ -251,7 +322,10 @@ export interface QueryPublicPlansResponse {
|
|
|
251
322
|
pagingMetadata?: PagingMetadataV2;
|
|
252
323
|
}
|
|
253
324
|
export interface GetPlanRequest {
|
|
254
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* Plan ID.
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
255
329
|
_id: string;
|
|
256
330
|
}
|
|
257
331
|
export interface GetPlanResponse {
|
|
@@ -263,11 +337,19 @@ export interface ListPlansRequest {
|
|
|
263
337
|
archived?: ArchivedFilter;
|
|
264
338
|
/** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
|
|
265
339
|
public?: PublicFilter;
|
|
266
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* Number of pricing plans to list. Defaults to `75`.
|
|
342
|
+
* @min 1
|
|
343
|
+
* @max 100
|
|
344
|
+
*/
|
|
267
345
|
limit?: number | null;
|
|
268
346
|
/** Number of pricing plans to skip. Defaults to `0`. */
|
|
269
347
|
offset?: number | null;
|
|
270
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.
|
|
350
|
+
* @format GUID
|
|
351
|
+
* @maxSize 100
|
|
352
|
+
*/
|
|
271
353
|
planIds?: string[];
|
|
272
354
|
}
|
|
273
355
|
export declare enum ArchivedFilter {
|
|
@@ -319,7 +401,10 @@ export interface BuyerCanCancelUpdated {
|
|
|
319
401
|
plan?: Plan;
|
|
320
402
|
}
|
|
321
403
|
export interface SetPlanVisibilityRequest {
|
|
322
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* The ID of the plan to either display or hide on a site page.
|
|
406
|
+
* @format GUID
|
|
407
|
+
*/
|
|
323
408
|
_id: string;
|
|
324
409
|
/** Whether a plan is visible to members and site visitors. Updates the `public` field. */
|
|
325
410
|
visible: boolean;
|
|
@@ -329,7 +414,10 @@ export interface SetPlanVisibilityResponse {
|
|
|
329
414
|
plan?: Plan;
|
|
330
415
|
}
|
|
331
416
|
export interface MakePlanPrimaryRequest {
|
|
332
|
-
/**
|
|
417
|
+
/**
|
|
418
|
+
* Pricing plan ID.
|
|
419
|
+
* @format GUID
|
|
420
|
+
*/
|
|
333
421
|
_id: string;
|
|
334
422
|
}
|
|
335
423
|
export interface MakePlanPrimaryResponse {
|
|
@@ -341,7 +429,10 @@ export interface ClearPrimaryRequest {
|
|
|
341
429
|
export interface ClearPrimaryResponse {
|
|
342
430
|
}
|
|
343
431
|
export interface ArchivePlanRequest {
|
|
344
|
-
/**
|
|
432
|
+
/**
|
|
433
|
+
* ID of the active plan to archive.
|
|
434
|
+
* @format GUID
|
|
435
|
+
*/
|
|
345
436
|
_id: string;
|
|
346
437
|
}
|
|
347
438
|
export interface ArchivePlanResponse {
|
|
@@ -353,7 +444,12 @@ export interface PlanArchived {
|
|
|
353
444
|
plan?: Plan;
|
|
354
445
|
}
|
|
355
446
|
export interface BulkArchivePlanRequest {
|
|
356
|
-
/**
|
|
447
|
+
/**
|
|
448
|
+
* List of Plan IDs to archive.
|
|
449
|
+
* @format GUID
|
|
450
|
+
* @minSize 1
|
|
451
|
+
* @maxSize 100
|
|
452
|
+
*/
|
|
357
453
|
ids?: string[];
|
|
358
454
|
/** Set to `true` to return the `Plan` entity in the response. */
|
|
359
455
|
returnFullEntity?: boolean;
|
|
@@ -397,7 +493,11 @@ export interface BulkActionMetadata {
|
|
|
397
493
|
undetailedFailures?: number;
|
|
398
494
|
}
|
|
399
495
|
export interface ArrangePlansRequest {
|
|
400
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* IDs of all non-archived plans in the order you want them arranged.
|
|
498
|
+
* @format GUID
|
|
499
|
+
* @minSize 1
|
|
500
|
+
*/
|
|
401
501
|
ids?: string[];
|
|
402
502
|
}
|
|
403
503
|
export interface ArrangePlansResponse {
|
|
@@ -423,7 +523,10 @@ export interface GetPlansPremiumStatusResponse {
|
|
|
423
523
|
export interface SearchPlansRequest {
|
|
424
524
|
/** Query options. */
|
|
425
525
|
query?: QueryV2;
|
|
426
|
-
/**
|
|
526
|
+
/**
|
|
527
|
+
* Search phrase for the plan name.
|
|
528
|
+
* @maxLength 50
|
|
529
|
+
*/
|
|
427
530
|
searchPhrase?: string | null;
|
|
428
531
|
}
|
|
429
532
|
export interface SearchPlansResponse {
|
|
@@ -503,9 +606,15 @@ export interface ActionEvent {
|
|
|
503
606
|
body?: string;
|
|
504
607
|
}
|
|
505
608
|
export interface MessageEnvelope {
|
|
506
|
-
/**
|
|
609
|
+
/**
|
|
610
|
+
* App instance ID.
|
|
611
|
+
* @format GUID
|
|
612
|
+
*/
|
|
507
613
|
instanceId?: string | null;
|
|
508
|
-
/**
|
|
614
|
+
/**
|
|
615
|
+
* Event type.
|
|
616
|
+
* @maxLength 150
|
|
617
|
+
*/
|
|
509
618
|
eventType?: string;
|
|
510
619
|
/** The identification type and identity data. */
|
|
511
620
|
identity?: IdentificationData;
|
|
@@ -513,26 +622,50 @@ export interface MessageEnvelope {
|
|
|
513
622
|
data?: string;
|
|
514
623
|
}
|
|
515
624
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
516
|
-
/**
|
|
625
|
+
/**
|
|
626
|
+
* ID of a site visitor that has not logged in to the site.
|
|
627
|
+
* @format GUID
|
|
628
|
+
*/
|
|
517
629
|
anonymousVisitorId?: string;
|
|
518
|
-
/**
|
|
630
|
+
/**
|
|
631
|
+
* ID of a site visitor that has logged in to the site.
|
|
632
|
+
* @format GUID
|
|
633
|
+
*/
|
|
519
634
|
memberId?: string;
|
|
520
|
-
/**
|
|
635
|
+
/**
|
|
636
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
637
|
+
* @format GUID
|
|
638
|
+
*/
|
|
521
639
|
wixUserId?: string;
|
|
522
|
-
/**
|
|
640
|
+
/**
|
|
641
|
+
* ID of an app.
|
|
642
|
+
* @format GUID
|
|
643
|
+
*/
|
|
523
644
|
appId?: string;
|
|
524
645
|
/** @readonly */
|
|
525
646
|
identityType?: WebhookIdentityType;
|
|
526
647
|
}
|
|
527
648
|
/** @oneof */
|
|
528
649
|
export interface IdentificationDataIdOneOf {
|
|
529
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* ID of a site visitor that has not logged in to the site.
|
|
652
|
+
* @format GUID
|
|
653
|
+
*/
|
|
530
654
|
anonymousVisitorId?: string;
|
|
531
|
-
/**
|
|
655
|
+
/**
|
|
656
|
+
* ID of a site visitor that has logged in to the site.
|
|
657
|
+
* @format GUID
|
|
658
|
+
*/
|
|
532
659
|
memberId?: string;
|
|
533
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
662
|
+
* @format GUID
|
|
663
|
+
*/
|
|
534
664
|
wixUserId?: string;
|
|
535
|
-
/**
|
|
665
|
+
/**
|
|
666
|
+
* ID of an app.
|
|
667
|
+
* @format GUID
|
|
668
|
+
*/
|
|
536
669
|
appId?: string;
|
|
537
670
|
}
|
|
538
671
|
export declare enum WebhookIdentityType {
|
|
@@ -614,9 +747,15 @@ export interface ArchivePlanResponseNonNullableFields {
|
|
|
614
747
|
plan?: PlanNonNullableFields;
|
|
615
748
|
}
|
|
616
749
|
export interface BaseEventMetadata {
|
|
617
|
-
/**
|
|
750
|
+
/**
|
|
751
|
+
* App instance ID.
|
|
752
|
+
* @format GUID
|
|
753
|
+
*/
|
|
618
754
|
instanceId?: string | null;
|
|
619
|
-
/**
|
|
755
|
+
/**
|
|
756
|
+
* Event type.
|
|
757
|
+
* @maxLength 150
|
|
758
|
+
*/
|
|
620
759
|
eventType?: string;
|
|
621
760
|
/** The identification type and identity data. */
|
|
622
761
|
identity?: IdentificationData;
|
|
@@ -669,6 +808,8 @@ export interface PlanBuyerCanCancelUpdatedEnvelope {
|
|
|
669
808
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
670
809
|
* @permissionScope Manage Events
|
|
671
810
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
811
|
+
* @permissionScope Manage Challenges
|
|
812
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
672
813
|
* @permissionScope Manage Pricing Plans
|
|
673
814
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
674
815
|
* @permissionId PRICING_PLANS.READ_PLANS
|
|
@@ -688,6 +829,8 @@ export interface PlanCreatedEnvelope {
|
|
|
688
829
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
689
830
|
* @permissionScope Manage Events
|
|
690
831
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
832
|
+
* @permissionScope Manage Challenges
|
|
833
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
691
834
|
* @permissionScope Manage Pricing Plans
|
|
692
835
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
693
836
|
* @permissionId PRICING_PLANS.READ_PLANS
|
|
@@ -707,6 +850,8 @@ export interface PlanArchivedEnvelope {
|
|
|
707
850
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
708
851
|
* @permissionScope Manage Events
|
|
709
852
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
853
|
+
* @permissionScope Manage Challenges
|
|
854
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
710
855
|
* @permissionScope Manage Pricing Plans
|
|
711
856
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
712
857
|
* @permissionId PRICING_PLANS.READ_PLANS
|
|
@@ -726,6 +871,8 @@ export interface PlanUpdatedEnvelope {
|
|
|
726
871
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
727
872
|
* @permissionScope Manage Events
|
|
728
873
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
874
|
+
* @permissionScope Manage Challenges
|
|
875
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
729
876
|
* @permissionScope Manage Pricing Plans
|
|
730
877
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
731
878
|
* @permissionId PRICING_PLANS.READ_PLANS
|
|
@@ -750,6 +897,8 @@ export declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => v
|
|
|
750
897
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
751
898
|
* @permissionScope Manage Events
|
|
752
899
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
900
|
+
* @permissionScope Manage Challenges
|
|
901
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
753
902
|
* @permissionScope Manage Portfolio
|
|
754
903
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
755
904
|
* @permissionScope Access Verticals by Automations
|
|
@@ -758,17 +907,27 @@ export declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => v
|
|
|
758
907
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
759
908
|
* @permissionScope Manage Restaurants - all permissions
|
|
760
909
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
910
|
+
* @permissionScope Set Up Automations
|
|
911
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
761
912
|
* @applicableIdentity APP
|
|
762
913
|
* @applicableIdentity VISITOR
|
|
763
914
|
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
|
|
764
915
|
*/
|
|
765
916
|
export declare function listPublicPlans(options?: ListPublicPlansOptions): Promise<ListPublicPlansResponse & ListPublicPlansResponseNonNullableFields>;
|
|
766
917
|
export interface ListPublicPlansOptions {
|
|
767
|
-
/**
|
|
918
|
+
/**
|
|
919
|
+
* Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).
|
|
920
|
+
* @min 1
|
|
921
|
+
* @max 100
|
|
922
|
+
*/
|
|
768
923
|
limit?: number | null;
|
|
769
924
|
/** Number of items to skip. Defaults to `0`. See paging ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) |[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
|
|
770
925
|
offset?: number | null;
|
|
771
|
-
/**
|
|
926
|
+
/**
|
|
927
|
+
* IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
|
|
928
|
+
* @format GUID
|
|
929
|
+
* @maxSize 100
|
|
930
|
+
*/
|
|
772
931
|
planIds?: string[];
|
|
773
932
|
}
|
|
774
933
|
/**
|
|
@@ -799,6 +958,8 @@ export interface ListPublicPlansOptions {
|
|
|
799
958
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
800
959
|
* @permissionScope Manage Events
|
|
801
960
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
961
|
+
* @permissionScope Manage Challenges
|
|
962
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
802
963
|
* @permissionScope Manage Portfolio
|
|
803
964
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
804
965
|
* @permissionScope Access Verticals by Automations
|
|
@@ -807,6 +968,8 @@ export interface ListPublicPlansOptions {
|
|
|
807
968
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
808
969
|
* @permissionScope Manage Restaurants - all permissions
|
|
809
970
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
971
|
+
* @permissionScope Set Up Automations
|
|
972
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
810
973
|
* @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
|
|
811
974
|
* @applicableIdentity APP
|
|
812
975
|
* @applicableIdentity VISITOR
|
|
@@ -883,6 +1046,8 @@ export interface PlansQueryBuilder {
|
|
|
883
1046
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
884
1047
|
* @permissionScope Manage Events
|
|
885
1048
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1049
|
+
* @permissionScope Manage Challenges
|
|
1050
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
886
1051
|
* @permissionScope Manage Pricing Plans
|
|
887
1052
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
888
1053
|
* @applicableIdentity APP
|
|
@@ -899,6 +1064,8 @@ export declare function getPlan(_id: string): Promise<Plan & PlanNonNullableFiel
|
|
|
899
1064
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
900
1065
|
* @permissionScope Manage Events
|
|
901
1066
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1067
|
+
* @permissionScope Manage Challenges
|
|
1068
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
902
1069
|
* @permissionScope Manage Pricing Plans
|
|
903
1070
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
904
1071
|
* @applicableIdentity APP
|
|
@@ -910,11 +1077,19 @@ export interface ListPlansOptions {
|
|
|
910
1077
|
archived?: ArchivedFilter;
|
|
911
1078
|
/** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
|
|
912
1079
|
public?: PublicFilter;
|
|
913
|
-
/**
|
|
1080
|
+
/**
|
|
1081
|
+
* Number of pricing plans to list. Defaults to `75`.
|
|
1082
|
+
* @min 1
|
|
1083
|
+
* @max 100
|
|
1084
|
+
*/
|
|
914
1085
|
limit?: number | null;
|
|
915
1086
|
/** Number of pricing plans to skip. Defaults to `0`. */
|
|
916
1087
|
offset?: number | null;
|
|
917
|
-
/**
|
|
1088
|
+
/**
|
|
1089
|
+
* IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.
|
|
1090
|
+
* @format GUID
|
|
1091
|
+
* @maxSize 100
|
|
1092
|
+
*/
|
|
918
1093
|
planIds?: string[];
|
|
919
1094
|
}
|
|
920
1095
|
/**
|
|
@@ -925,6 +1100,8 @@ export interface ListPlansOptions {
|
|
|
925
1100
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
926
1101
|
* @permissionScope Manage Events
|
|
927
1102
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1103
|
+
* @permissionScope Manage Challenges
|
|
1104
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
928
1105
|
* @permissionScope Manage Pricing Plans
|
|
929
1106
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
930
1107
|
* @applicableIdentity APP
|
|
@@ -974,12 +1151,20 @@ export declare function updatePlan(_id: string, plan: UpdatePlan): Promise<Plan
|
|
|
974
1151
|
export interface UpdatePlan {
|
|
975
1152
|
/**
|
|
976
1153
|
* Plan ID.
|
|
1154
|
+
* @format GUID
|
|
977
1155
|
* @readonly
|
|
978
1156
|
*/
|
|
979
1157
|
_id?: string;
|
|
980
|
-
/**
|
|
1158
|
+
/**
|
|
1159
|
+
* Plan name.
|
|
1160
|
+
* @minLength 1
|
|
1161
|
+
* @maxLength 50
|
|
1162
|
+
*/
|
|
981
1163
|
name?: string | null;
|
|
982
|
-
/**
|
|
1164
|
+
/**
|
|
1165
|
+
* Plan description.
|
|
1166
|
+
* @maxLength 450
|
|
1167
|
+
*/
|
|
983
1168
|
description?: string | null;
|
|
984
1169
|
/** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
|
|
985
1170
|
perks?: StringList;
|
|
@@ -1014,13 +1199,16 @@ export interface UpdatePlan {
|
|
|
1014
1199
|
_updatedDate?: Date | null;
|
|
1015
1200
|
/**
|
|
1016
1201
|
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
1202
|
+
* @minLength 1
|
|
1017
1203
|
* @readonly
|
|
1204
|
+
* @format URL_SLUG
|
|
1018
1205
|
*/
|
|
1019
1206
|
slug?: string | null;
|
|
1020
1207
|
/**
|
|
1021
1208
|
* Number of times the same buyer can purchase the plan. Currently limited to support:
|
|
1022
1209
|
* - Empty value or a value of `0`, meaning no limitation.
|
|
1023
1210
|
* - Value of `1`, meaning limited to 1 purchase per buyer.
|
|
1211
|
+
* @max 1
|
|
1024
1212
|
*/
|
|
1025
1213
|
maxPurchasesPerBuyer?: number | null;
|
|
1026
1214
|
/** Whether the buyer can start the plan at a later date. Defaults to false. */
|
|
@@ -1030,12 +1218,16 @@ export interface UpdatePlan {
|
|
|
1030
1218
|
* If false, calling Request Cancellation returns an error.
|
|
1031
1219
|
*/
|
|
1032
1220
|
buyerCanCancel?: boolean | null;
|
|
1033
|
-
/**
|
|
1221
|
+
/**
|
|
1222
|
+
* Any terms and conditions that apply to the plan. This information is displayed during checkout.
|
|
1223
|
+
* @maxLength 3000
|
|
1224
|
+
*/
|
|
1034
1225
|
termsAndConditions?: string | null;
|
|
1035
1226
|
/**
|
|
1036
1227
|
* ID of the form associated with the plan at checkout.
|
|
1037
1228
|
*
|
|
1038
1229
|
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
1230
|
+
* @format GUID
|
|
1039
1231
|
*/
|
|
1040
1232
|
formId?: string | null;
|
|
1041
1233
|
}
|
|
@@ -93,6 +93,8 @@ var WebhookIdentityType;
|
|
|
93
93
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
94
94
|
* @permissionScope Manage Events
|
|
95
95
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
96
|
+
* @permissionScope Manage Challenges
|
|
97
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
96
98
|
* @permissionScope Manage Portfolio
|
|
97
99
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
98
100
|
* @permissionScope Access Verticals by Automations
|
|
@@ -101,6 +103,8 @@ var WebhookIdentityType;
|
|
|
101
103
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
102
104
|
* @permissionScope Manage Restaurants - all permissions
|
|
103
105
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
106
|
+
* @permissionScope Set Up Automations
|
|
107
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
104
108
|
* @applicableIdentity APP
|
|
105
109
|
* @applicableIdentity VISITOR
|
|
106
110
|
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
|
|
@@ -163,6 +167,8 @@ exports.listPublicPlans = listPublicPlans;
|
|
|
163
167
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
164
168
|
* @permissionScope Manage Events
|
|
165
169
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
170
|
+
* @permissionScope Manage Challenges
|
|
171
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
166
172
|
* @permissionScope Manage Portfolio
|
|
167
173
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
168
174
|
* @permissionScope Access Verticals by Automations
|
|
@@ -171,6 +177,8 @@ exports.listPublicPlans = listPublicPlans;
|
|
|
171
177
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
172
178
|
* @permissionScope Manage Restaurants - all permissions
|
|
173
179
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
180
|
+
* @permissionScope Set Up Automations
|
|
181
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
174
182
|
* @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
|
|
175
183
|
* @applicableIdentity APP
|
|
176
184
|
* @applicableIdentity VISITOR
|
|
@@ -230,6 +238,8 @@ exports.queryPublicPlans = queryPublicPlans;
|
|
|
230
238
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
231
239
|
* @permissionScope Manage Events
|
|
232
240
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
241
|
+
* @permissionScope Manage Challenges
|
|
242
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
233
243
|
* @permissionScope Manage Pricing Plans
|
|
234
244
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
235
245
|
* @applicableIdentity APP
|
|
@@ -267,6 +277,8 @@ exports.getPlan = getPlan;
|
|
|
267
277
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
268
278
|
* @permissionScope Manage Events
|
|
269
279
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
280
|
+
* @permissionScope Manage Challenges
|
|
281
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
270
282
|
* @permissionScope Manage Pricing Plans
|
|
271
283
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
272
284
|
* @applicableIdentity APP
|
|
@@ -314,6 +326,8 @@ exports.listPlans = listPlans;
|
|
|
314
326
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
|
|
315
327
|
* @permissionScope Manage Events
|
|
316
328
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
329
|
+
* @permissionScope Manage Challenges
|
|
330
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
317
331
|
* @permissionScope Manage Pricing Plans
|
|
318
332
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
|
|
319
333
|
* @applicableIdentity APP
|