@wix/auto_sdk_pricing-plans_plans 1.0.59 → 1.0.61
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.public.d.ts → index.d.mts} +49 -21
- package/build/{internal/cjs/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.ts} +49 -21
- package/build/index.js +965 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +921 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.mts} +49 -21
- package/build/{es/src/pricing-plans-v2-plan-plans.public.d.ts → internal/index.d.ts} +49 -21
- package/build/internal/index.js +965 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +921 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +457 -0
- package/build/internal/meta.d.ts +457 -0
- package/build/internal/meta.js +635 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +598 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
- package/build/{cjs/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
- package/build/meta.d.mts +457 -0
- package/build/meta.d.ts +457 -0
- package/build/meta.js +635 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +598 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
- package/build/{internal/es/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
- package/build/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
- package/build/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
- package/build/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
- package/build/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
- package/build/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
- package/build/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
- package/build/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
- package/build/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
- package/build/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
- package/build/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
- package/build/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
- package/build/es/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
- package/build/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
- package/build/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
- package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
- package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
- package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** Information about the pricing plan. */
|
|
2
|
-
|
|
2
|
+
interface Plan {
|
|
3
3
|
/**
|
|
4
4
|
* Plan ID.
|
|
5
5
|
* @format GUID
|
|
6
6
|
* @readonly
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
_id?: string;
|
|
9
9
|
/**
|
|
10
10
|
* Plan name.
|
|
11
11
|
* @minLength 1
|
|
@@ -42,12 +42,12 @@ export interface Plan {
|
|
|
42
42
|
* Date plan was created.
|
|
43
43
|
* @readonly
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
_createdDate?: Date | null;
|
|
46
46
|
/**
|
|
47
47
|
* Date plan was last updated.
|
|
48
48
|
* @readonly
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
_updatedDate?: Date | null;
|
|
51
51
|
/**
|
|
52
52
|
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
53
53
|
* @minLength 1
|
|
@@ -83,7 +83,7 @@ export interface Plan {
|
|
|
83
83
|
formId?: string | null;
|
|
84
84
|
}
|
|
85
85
|
/** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
|
|
86
|
-
|
|
86
|
+
interface StringList {
|
|
87
87
|
/**
|
|
88
88
|
* @minLength 1
|
|
89
89
|
* @maxLength 1400
|
|
@@ -92,7 +92,7 @@ export interface StringList {
|
|
|
92
92
|
values?: string[];
|
|
93
93
|
}
|
|
94
94
|
/** Plan pricing information. Includes the price of the plan and payment details. */
|
|
95
|
-
|
|
95
|
+
interface Pricing extends PricingPricingModelOneOf {
|
|
96
96
|
/** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
|
|
97
97
|
subscription?: Recurrence;
|
|
98
98
|
/** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
|
|
@@ -108,7 +108,7 @@ export interface Pricing extends PricingPricingModelOneOf {
|
|
|
108
108
|
freeTrialDays?: number | null;
|
|
109
109
|
}
|
|
110
110
|
/** @oneof */
|
|
111
|
-
|
|
111
|
+
interface PricingPricingModelOneOf {
|
|
112
112
|
/** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
|
|
113
113
|
subscription?: Recurrence;
|
|
114
114
|
/** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
|
|
@@ -117,7 +117,7 @@ export interface PricingPricingModelOneOf {
|
|
|
117
117
|
singlePaymentUnlimited?: boolean | null;
|
|
118
118
|
}
|
|
119
119
|
/** An object specifying how often and for how long payments recur (may be forever). */
|
|
120
|
-
|
|
120
|
+
interface Recurrence {
|
|
121
121
|
/**
|
|
122
122
|
* Number of payment cycles the subscription is valid for.
|
|
123
123
|
* `0` for unlimited plans or for plans that are valid until canceled.
|
|
@@ -132,7 +132,7 @@ export interface Recurrence {
|
|
|
132
132
|
cycleCount?: number | null;
|
|
133
133
|
}
|
|
134
134
|
/** A duration expressed in number of time units. */
|
|
135
|
-
|
|
135
|
+
interface Duration {
|
|
136
136
|
/**
|
|
137
137
|
* Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.
|
|
138
138
|
* @min 1
|
|
@@ -141,7 +141,7 @@ export interface Duration {
|
|
|
141
141
|
/** Unit of time for the cycle duration. */
|
|
142
142
|
unit?: PeriodUnitWithLiterals;
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
declare enum PeriodUnit {
|
|
145
145
|
/** Not defined. */
|
|
146
146
|
UNDEFINED = "UNDEFINED",
|
|
147
147
|
/** Time unit is a day. */
|
|
@@ -154,8 +154,8 @@ export declare enum PeriodUnit {
|
|
|
154
154
|
YEAR = "YEAR"
|
|
155
155
|
}
|
|
156
156
|
/** @enumType */
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
type PeriodUnitWithLiterals = PeriodUnit | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
158
|
+
interface Money {
|
|
159
159
|
/**
|
|
160
160
|
* Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.
|
|
161
161
|
* @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }
|
|
@@ -167,13 +167,13 @@ export interface Money {
|
|
|
167
167
|
*/
|
|
168
168
|
currency?: string;
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
interface FeeConfig {
|
|
171
171
|
/** Fee configuration. */
|
|
172
172
|
fee?: Fee;
|
|
173
173
|
/** The time this fee will be charged. */
|
|
174
174
|
appliedAt?: AppliedAtWithLiterals;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
interface Fee {
|
|
177
177
|
/**
|
|
178
178
|
* Fee name
|
|
179
179
|
* @minLength 1
|
|
@@ -186,14 +186,14 @@ export interface Fee {
|
|
|
186
186
|
*/
|
|
187
187
|
amount?: string;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
declare enum AppliedAt {
|
|
190
190
|
UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
|
|
191
191
|
/** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
|
|
192
192
|
FIRST_PAYMENT = "FIRST_PAYMENT"
|
|
193
193
|
}
|
|
194
194
|
/** @enumType */
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_CHARGE_EVENT' | 'FIRST_PAYMENT';
|
|
196
|
+
interface ListPublicPlansRequest {
|
|
197
197
|
/**
|
|
198
198
|
* 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)).
|
|
199
199
|
* @min 1
|
|
@@ -209,19 +209,19 @@ export interface ListPublicPlansRequest {
|
|
|
209
209
|
*/
|
|
210
210
|
planIds?: string[];
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
interface ListPublicPlansResponse {
|
|
213
213
|
/** List of public pricing plans. */
|
|
214
214
|
plans?: PublicPlan[];
|
|
215
215
|
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
216
216
|
pagingMetadata?: PagingMetadataV2;
|
|
217
217
|
}
|
|
218
218
|
/** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
|
|
219
|
-
|
|
219
|
+
interface PublicPlan {
|
|
220
220
|
/**
|
|
221
221
|
* Plan ID.
|
|
222
222
|
* @format GUID
|
|
223
223
|
*/
|
|
224
|
-
|
|
224
|
+
_id?: string;
|
|
225
225
|
/**
|
|
226
226
|
* Plan name.
|
|
227
227
|
* @minLength 1
|
|
@@ -240,9 +240,9 @@ export interface PublicPlan {
|
|
|
240
240
|
/** Whether the plan is marked as primary. */
|
|
241
241
|
primary?: boolean;
|
|
242
242
|
/** Date plan was created. */
|
|
243
|
-
|
|
243
|
+
_createdDate?: Date | null;
|
|
244
244
|
/** Date plan was last updated. */
|
|
245
|
-
|
|
245
|
+
_updatedDate?: Date | null;
|
|
246
246
|
/**
|
|
247
247
|
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
248
248
|
* @minLength 1
|
|
@@ -264,7 +264,7 @@ export interface PublicPlan {
|
|
|
264
264
|
*/
|
|
265
265
|
formId?: string | null;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
interface PagingMetadataV2 {
|
|
268
268
|
/** Number of items returned in the response. */
|
|
269
269
|
count?: number | null;
|
|
270
270
|
/** Offset that was requested. */
|
|
@@ -276,7 +276,7 @@ export interface PagingMetadataV2 {
|
|
|
276
276
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
277
277
|
cursors?: Cursors;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
interface Cursors {
|
|
280
280
|
/**
|
|
281
281
|
* Cursor string pointing to the next page in the list of results.
|
|
282
282
|
* @maxLength 16000
|
|
@@ -288,11 +288,11 @@ export interface Cursors {
|
|
|
288
288
|
*/
|
|
289
289
|
prev?: string | null;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
interface QueryPublicPlansRequest {
|
|
292
292
|
/** Query options. */
|
|
293
293
|
query?: QueryV2;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
interface QueryV2 {
|
|
296
296
|
/** A filter object. See supported fields and operators ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/query-public-plans) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans)). */
|
|
297
297
|
filter?: Record<string, any> | null;
|
|
298
298
|
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]. */
|
|
@@ -300,7 +300,7 @@ export interface QueryV2 {
|
|
|
300
300
|
/** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */
|
|
301
301
|
paging?: Paging;
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
interface Sorting {
|
|
304
304
|
/**
|
|
305
305
|
* Name of the field to sort by.
|
|
306
306
|
* @maxLength 512
|
|
@@ -309,36 +309,36 @@ export interface Sorting {
|
|
|
309
309
|
/** Sort order. */
|
|
310
310
|
order?: SortOrderWithLiterals;
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
declare enum SortOrder {
|
|
313
313
|
ASC = "ASC",
|
|
314
314
|
DESC = "DESC"
|
|
315
315
|
}
|
|
316
316
|
/** @enumType */
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
318
|
+
interface Paging {
|
|
319
319
|
/** Number of items to load. */
|
|
320
320
|
limit?: number | null;
|
|
321
321
|
/** Number of items to skip in the current sort order. */
|
|
322
322
|
offset?: number | null;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
interface QueryPublicPlansResponse {
|
|
325
325
|
/** List of public pricing plans that match the specified query. */
|
|
326
326
|
plans?: PublicPlan[];
|
|
327
327
|
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
328
328
|
pagingMetadata?: PagingMetadataV2;
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
interface GetPlanRequest {
|
|
331
331
|
/**
|
|
332
332
|
* Plan ID.
|
|
333
333
|
* @format GUID
|
|
334
334
|
*/
|
|
335
|
-
|
|
335
|
+
_id: string;
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
interface GetPlanResponse {
|
|
338
338
|
/** Pricing plan. */
|
|
339
339
|
plan?: Plan;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
interface ListPlansRequest {
|
|
342
342
|
/** Archived filter. Defaults to `ACTIVE` (not archived) only. */
|
|
343
343
|
archived?: ArchivedFilterWithLiterals;
|
|
344
344
|
/** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
|
|
@@ -358,7 +358,7 @@ export interface ListPlansRequest {
|
|
|
358
358
|
*/
|
|
359
359
|
planIds?: string[];
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
declare enum ArchivedFilter {
|
|
362
362
|
/** Returns all plans that are active. */
|
|
363
363
|
ACTIVE = "ACTIVE",
|
|
364
364
|
/** Returns all plans that are archived. */
|
|
@@ -367,8 +367,8 @@ export declare enum ArchivedFilter {
|
|
|
367
367
|
ARCHIVED_AND_ACTIVE = "ARCHIVED_AND_ACTIVE"
|
|
368
368
|
}
|
|
369
369
|
/** @enumType */
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
type ArchivedFilterWithLiterals = ArchivedFilter | 'ACTIVE' | 'ARCHIVED' | 'ARCHIVED_AND_ACTIVE';
|
|
371
|
+
declare enum PublicFilter {
|
|
372
372
|
/** Returns all public and hidden plans. */
|
|
373
373
|
PUBLIC_AND_HIDDEN = "PUBLIC_AND_HIDDEN",
|
|
374
374
|
/** Returns only public plans. */
|
|
@@ -377,83 +377,83 @@ export declare enum PublicFilter {
|
|
|
377
377
|
HIDDEN = "HIDDEN"
|
|
378
378
|
}
|
|
379
379
|
/** @enumType */
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
type PublicFilterWithLiterals = PublicFilter | 'PUBLIC_AND_HIDDEN' | 'PUBLIC' | 'HIDDEN';
|
|
381
|
+
interface ListPlansResponse {
|
|
382
382
|
/** List of all public and hidden pricing plans. */
|
|
383
383
|
plans?: Plan[];
|
|
384
384
|
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
385
385
|
pagingMetadata?: PagingMetadataV2;
|
|
386
386
|
}
|
|
387
|
-
|
|
387
|
+
interface GetPlanStatsRequest {
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
interface GetPlanStatsResponse {
|
|
390
390
|
/** Total number of plans created, including active plans (both public and hidden) and archived plans. */
|
|
391
391
|
totalPlans?: number;
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
interface CreatePlanRequest {
|
|
394
394
|
/** Plan details. */
|
|
395
395
|
plan: Plan;
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
interface CreatePlanResponse {
|
|
398
398
|
/** Created plan. */
|
|
399
399
|
plan?: Plan;
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
interface UpdatePlanRequest {
|
|
402
402
|
/** ID of the plan to update. */
|
|
403
403
|
plan: Plan;
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
interface UpdatePlanResponse {
|
|
406
406
|
/** Updated plan. */
|
|
407
407
|
plan?: Plan;
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
interface BuyerCanCancelUpdated {
|
|
410
410
|
/** Pricing plan. */
|
|
411
411
|
plan?: Plan;
|
|
412
412
|
}
|
|
413
|
-
|
|
413
|
+
interface SetPlanVisibilityRequest {
|
|
414
414
|
/**
|
|
415
415
|
* The ID of the plan to either display or hide on a site page.
|
|
416
416
|
* @format GUID
|
|
417
417
|
*/
|
|
418
|
-
|
|
418
|
+
_id: string;
|
|
419
419
|
/** Whether a plan is visible to members and site visitors. Updates the `public` field. */
|
|
420
420
|
visible: boolean;
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
interface SetPlanVisibilityResponse {
|
|
423
423
|
/** Pricing plan. */
|
|
424
424
|
plan?: Plan;
|
|
425
425
|
}
|
|
426
|
-
|
|
426
|
+
interface MakePlanPrimaryRequest {
|
|
427
427
|
/**
|
|
428
428
|
* Pricing plan ID.
|
|
429
429
|
* @format GUID
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
_id: string;
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
interface MakePlanPrimaryResponse {
|
|
434
434
|
/** Pricing plan. */
|
|
435
435
|
plan?: Plan;
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
interface ClearPrimaryRequest {
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
interface ClearPrimaryResponse {
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
interface ArchivePlanRequest {
|
|
442
442
|
/**
|
|
443
443
|
* ID of the active plan to archive.
|
|
444
444
|
* @format GUID
|
|
445
445
|
*/
|
|
446
|
-
|
|
446
|
+
_id: string;
|
|
447
447
|
}
|
|
448
|
-
|
|
448
|
+
interface ArchivePlanResponse {
|
|
449
449
|
/** Archived plan. */
|
|
450
450
|
plan?: Plan;
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
interface PlanArchived {
|
|
453
453
|
/** Pricing plan. */
|
|
454
454
|
plan?: Plan;
|
|
455
455
|
}
|
|
456
|
-
|
|
456
|
+
interface BulkArchivePlanRequest {
|
|
457
457
|
/**
|
|
458
458
|
* List of Plan IDs to archive.
|
|
459
459
|
* @format GUID
|
|
@@ -464,21 +464,21 @@ export interface BulkArchivePlanRequest {
|
|
|
464
464
|
/** Set to `true` to return the `Plan` entity in the response. */
|
|
465
465
|
returnFullEntity?: boolean;
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
interface BulkArchivePlanResponse {
|
|
468
468
|
/** Plans to be archived. */
|
|
469
469
|
results?: BulkPlanResult[];
|
|
470
470
|
/** Bulk action metadata. */
|
|
471
471
|
bulkActionMetadata?: BulkActionMetadata;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
interface BulkPlanResult {
|
|
474
474
|
/** Item metadata. */
|
|
475
475
|
itemMetadata?: ItemMetadata;
|
|
476
476
|
/** Pricing plan. */
|
|
477
477
|
plan?: Plan;
|
|
478
478
|
}
|
|
479
|
-
|
|
479
|
+
interface ItemMetadata {
|
|
480
480
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
481
|
-
|
|
481
|
+
_id?: string | null;
|
|
482
482
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
483
483
|
originalIndex?: number;
|
|
484
484
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -486,7 +486,7 @@ export interface ItemMetadata {
|
|
|
486
486
|
/** Details about the error in case of failure. */
|
|
487
487
|
error?: ApplicationError;
|
|
488
488
|
}
|
|
489
|
-
|
|
489
|
+
interface ApplicationError {
|
|
490
490
|
/** Error code. */
|
|
491
491
|
code?: string;
|
|
492
492
|
/** Description of the error. */
|
|
@@ -494,7 +494,7 @@ export interface ApplicationError {
|
|
|
494
494
|
/** Data related to the error. */
|
|
495
495
|
data?: Record<string, any> | null;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
interface BulkActionMetadata {
|
|
498
498
|
/** Number of items that were successfully processed. */
|
|
499
499
|
totalSuccesses?: number;
|
|
500
500
|
/** Number of items that couldn't be processed. */
|
|
@@ -502,7 +502,7 @@ export interface BulkActionMetadata {
|
|
|
502
502
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
503
503
|
undetailedFailures?: number;
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
interface ArrangePlansRequest {
|
|
506
506
|
/**
|
|
507
507
|
* IDs of all non-archived plans in the order you want them arranged.
|
|
508
508
|
* @format GUID
|
|
@@ -510,27 +510,27 @@ export interface ArrangePlansRequest {
|
|
|
510
510
|
*/
|
|
511
511
|
ids?: string[];
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
interface ArrangePlansResponse {
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
interface CountPlansRequest {
|
|
516
516
|
/** The filter. */
|
|
517
517
|
filter?: Record<string, any> | null;
|
|
518
518
|
/** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
|
|
519
519
|
visibility?: boolean | null;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
interface CountPlansResponse {
|
|
522
522
|
/** Number of plans in the response. */
|
|
523
523
|
count?: number;
|
|
524
524
|
}
|
|
525
|
-
|
|
525
|
+
interface GetPlansPremiumStatusRequest {
|
|
526
526
|
}
|
|
527
|
-
|
|
527
|
+
interface GetPlansPremiumStatusResponse {
|
|
528
528
|
/** True if a site has non-free, non-template plans. */
|
|
529
529
|
hasPaidPlans?: boolean;
|
|
530
530
|
/** True if a site has plans that were created before Pricing Plans became a premium app. */
|
|
531
531
|
hasOldPlans?: boolean;
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
interface SearchPlansRequest {
|
|
534
534
|
/** Query options. */
|
|
535
535
|
query?: QueryV2;
|
|
536
536
|
/**
|
|
@@ -539,19 +539,19 @@ export interface SearchPlansRequest {
|
|
|
539
539
|
*/
|
|
540
540
|
searchPhrase?: string | null;
|
|
541
541
|
}
|
|
542
|
-
|
|
542
|
+
interface SearchPlansResponse {
|
|
543
543
|
/** List of pricing plans that match the specified filter and search phrase. */
|
|
544
544
|
plans?: Plan[];
|
|
545
545
|
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
546
546
|
pagingMetadata?: PagingMetadataV2;
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
549
549
|
createdEvent?: EntityCreatedEvent;
|
|
550
550
|
updatedEvent?: EntityUpdatedEvent;
|
|
551
551
|
deletedEvent?: EntityDeletedEvent;
|
|
552
552
|
actionEvent?: ActionEvent;
|
|
553
553
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
554
|
-
|
|
554
|
+
_id?: string;
|
|
555
555
|
/**
|
|
556
556
|
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
557
557
|
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
@@ -580,36 +580,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
580
580
|
entityEventSequence?: string | null;
|
|
581
581
|
}
|
|
582
582
|
/** @oneof */
|
|
583
|
-
|
|
583
|
+
interface DomainEventBodyOneOf {
|
|
584
584
|
createdEvent?: EntityCreatedEvent;
|
|
585
585
|
updatedEvent?: EntityUpdatedEvent;
|
|
586
586
|
deletedEvent?: EntityDeletedEvent;
|
|
587
587
|
actionEvent?: ActionEvent;
|
|
588
588
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
592
|
-
restoreInfo?: RestoreInfo;
|
|
589
|
+
interface EntityCreatedEvent {
|
|
590
|
+
entity?: string;
|
|
593
591
|
}
|
|
594
|
-
|
|
592
|
+
interface RestoreInfo {
|
|
595
593
|
deletedDate?: Date | null;
|
|
596
594
|
}
|
|
597
|
-
|
|
595
|
+
interface EntityUpdatedEvent {
|
|
598
596
|
/**
|
|
599
597
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
600
598
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
601
599
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
602
600
|
*/
|
|
603
|
-
|
|
601
|
+
currentEntity?: string;
|
|
604
602
|
}
|
|
605
|
-
|
|
603
|
+
interface EntityDeletedEvent {
|
|
606
604
|
/** Entity that was deleted. */
|
|
607
|
-
|
|
605
|
+
deletedEntity?: string | null;
|
|
608
606
|
}
|
|
609
|
-
|
|
610
|
-
|
|
607
|
+
interface ActionEvent {
|
|
608
|
+
body?: string;
|
|
611
609
|
}
|
|
612
|
-
|
|
610
|
+
interface MessageEnvelope {
|
|
613
611
|
/**
|
|
614
612
|
* App instance ID.
|
|
615
613
|
* @format GUID
|
|
@@ -625,7 +623,7 @@ export interface MessageEnvelope {
|
|
|
625
623
|
/** Stringify payload. */
|
|
626
624
|
data?: string;
|
|
627
625
|
}
|
|
628
|
-
|
|
626
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
629
627
|
/**
|
|
630
628
|
* ID of a site visitor that has not logged in to the site.
|
|
631
629
|
* @format GUID
|
|
@@ -650,7 +648,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
650
648
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
651
649
|
}
|
|
652
650
|
/** @oneof */
|
|
653
|
-
|
|
651
|
+
interface IdentificationDataIdOneOf {
|
|
654
652
|
/**
|
|
655
653
|
* ID of a site visitor that has not logged in to the site.
|
|
656
654
|
* @format GUID
|
|
@@ -672,7 +670,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
672
670
|
*/
|
|
673
671
|
appId?: string;
|
|
674
672
|
}
|
|
675
|
-
|
|
673
|
+
declare enum WebhookIdentityType {
|
|
676
674
|
UNKNOWN = "UNKNOWN",
|
|
677
675
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
678
676
|
MEMBER = "MEMBER",
|
|
@@ -680,4 +678,245 @@ export declare enum WebhookIdentityType {
|
|
|
680
678
|
APP = "APP"
|
|
681
679
|
}
|
|
682
680
|
/** @enumType */
|
|
683
|
-
|
|
681
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
682
|
+
interface BaseEventMetadata {
|
|
683
|
+
/**
|
|
684
|
+
* App instance ID.
|
|
685
|
+
* @format GUID
|
|
686
|
+
*/
|
|
687
|
+
instanceId?: string | null;
|
|
688
|
+
/**
|
|
689
|
+
* Event type.
|
|
690
|
+
* @maxLength 150
|
|
691
|
+
*/
|
|
692
|
+
eventType?: string;
|
|
693
|
+
/** The identification type and identity data. */
|
|
694
|
+
identity?: IdentificationData;
|
|
695
|
+
}
|
|
696
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
697
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
698
|
+
_id?: string;
|
|
699
|
+
/**
|
|
700
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
701
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
702
|
+
*/
|
|
703
|
+
entityFqdn?: string;
|
|
704
|
+
/**
|
|
705
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
706
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
707
|
+
*/
|
|
708
|
+
slug?: string;
|
|
709
|
+
/** ID of the entity associated with the event. */
|
|
710
|
+
entityId?: string;
|
|
711
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
712
|
+
eventTime?: Date | null;
|
|
713
|
+
/**
|
|
714
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
715
|
+
* (for example, GDPR).
|
|
716
|
+
*/
|
|
717
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
718
|
+
/** If present, indicates the action that triggered the event. */
|
|
719
|
+
originatedFrom?: string | null;
|
|
720
|
+
/**
|
|
721
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
722
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
723
|
+
*/
|
|
724
|
+
entityEventSequence?: string | null;
|
|
725
|
+
}
|
|
726
|
+
interface PlanBuyerCanCancelUpdatedEnvelope {
|
|
727
|
+
data: BuyerCanCancelUpdated;
|
|
728
|
+
metadata: EventMetadata;
|
|
729
|
+
}
|
|
730
|
+
interface PlanCreatedEnvelope {
|
|
731
|
+
entity: Plan;
|
|
732
|
+
metadata: EventMetadata;
|
|
733
|
+
}
|
|
734
|
+
interface PlanArchivedEnvelope {
|
|
735
|
+
data: PlanArchived;
|
|
736
|
+
metadata: EventMetadata;
|
|
737
|
+
}
|
|
738
|
+
interface PlanUpdatedEnvelope {
|
|
739
|
+
entity: Plan;
|
|
740
|
+
metadata: EventMetadata;
|
|
741
|
+
}
|
|
742
|
+
interface ListPublicPlansOptions {
|
|
743
|
+
/**
|
|
744
|
+
* 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)).
|
|
745
|
+
* @min 1
|
|
746
|
+
* @max 100
|
|
747
|
+
*/
|
|
748
|
+
limit?: number | null;
|
|
749
|
+
/** 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)). */
|
|
750
|
+
offset?: number | null;
|
|
751
|
+
/**
|
|
752
|
+
* IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
|
|
753
|
+
* @format GUID
|
|
754
|
+
* @maxSize 100
|
|
755
|
+
*/
|
|
756
|
+
planIds?: string[];
|
|
757
|
+
}
|
|
758
|
+
interface QueryOffsetResult {
|
|
759
|
+
currentPage: number | undefined;
|
|
760
|
+
totalPages: number | undefined;
|
|
761
|
+
totalCount: number | undefined;
|
|
762
|
+
hasNext: () => boolean;
|
|
763
|
+
hasPrev: () => boolean;
|
|
764
|
+
length: number;
|
|
765
|
+
pageSize: number;
|
|
766
|
+
}
|
|
767
|
+
interface PlansQueryResult extends QueryOffsetResult {
|
|
768
|
+
items: PublicPlan[];
|
|
769
|
+
query: PlansQueryBuilder;
|
|
770
|
+
next: () => Promise<PlansQueryResult>;
|
|
771
|
+
prev: () => Promise<PlansQueryResult>;
|
|
772
|
+
}
|
|
773
|
+
interface PlansQueryBuilder {
|
|
774
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
775
|
+
* @param value - Value to compare against.
|
|
776
|
+
*/
|
|
777
|
+
eq: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
778
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
779
|
+
* @param value - Value to compare against.
|
|
780
|
+
*/
|
|
781
|
+
ne: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
782
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
783
|
+
* @param value - Value to compare against.
|
|
784
|
+
*/
|
|
785
|
+
ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
786
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
787
|
+
* @param value - Value to compare against.
|
|
788
|
+
*/
|
|
789
|
+
gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
790
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
791
|
+
* @param value - Value to compare against.
|
|
792
|
+
*/
|
|
793
|
+
le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
794
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
795
|
+
* @param value - Value to compare against.
|
|
796
|
+
*/
|
|
797
|
+
lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
798
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
799
|
+
* @param string - String to compare against. Case-insensitive.
|
|
800
|
+
*/
|
|
801
|
+
startsWith: (propertyName: '_id' | 'slug', value: string) => PlansQueryBuilder;
|
|
802
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
803
|
+
* @param values - List of values to compare against.
|
|
804
|
+
*/
|
|
805
|
+
hasSome: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any[]) => PlansQueryBuilder;
|
|
806
|
+
in: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
807
|
+
exists: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: boolean) => PlansQueryBuilder;
|
|
808
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
809
|
+
ascending: (...propertyNames: Array<'_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug'>) => PlansQueryBuilder;
|
|
810
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
811
|
+
descending: (...propertyNames: Array<'_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug'>) => PlansQueryBuilder;
|
|
812
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
813
|
+
limit: (limit: number) => PlansQueryBuilder;
|
|
814
|
+
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
815
|
+
skip: (skip: number) => PlansQueryBuilder;
|
|
816
|
+
find: () => Promise<PlansQueryResult>;
|
|
817
|
+
}
|
|
818
|
+
interface ListPlansOptions {
|
|
819
|
+
/** Archived filter. Defaults to `ACTIVE` (not archived) only. */
|
|
820
|
+
archived?: ArchivedFilterWithLiterals;
|
|
821
|
+
/** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
|
|
822
|
+
public?: PublicFilterWithLiterals;
|
|
823
|
+
/**
|
|
824
|
+
* Number of pricing plans to list. Defaults to `75`.
|
|
825
|
+
* @min 1
|
|
826
|
+
* @max 100
|
|
827
|
+
*/
|
|
828
|
+
limit?: number | null;
|
|
829
|
+
/** Number of pricing plans to skip. Defaults to `0`. */
|
|
830
|
+
offset?: number | null;
|
|
831
|
+
/**
|
|
832
|
+
* 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.
|
|
833
|
+
* @format GUID
|
|
834
|
+
* @maxSize 100
|
|
835
|
+
*/
|
|
836
|
+
planIds?: string[];
|
|
837
|
+
}
|
|
838
|
+
interface UpdatePlan {
|
|
839
|
+
/**
|
|
840
|
+
* Plan ID.
|
|
841
|
+
* @format GUID
|
|
842
|
+
* @readonly
|
|
843
|
+
*/
|
|
844
|
+
_id?: string;
|
|
845
|
+
/**
|
|
846
|
+
* Plan name.
|
|
847
|
+
* @minLength 1
|
|
848
|
+
* @maxLength 50
|
|
849
|
+
*/
|
|
850
|
+
name?: string | null;
|
|
851
|
+
/**
|
|
852
|
+
* Plan description.
|
|
853
|
+
* @maxLength 450
|
|
854
|
+
*/
|
|
855
|
+
description?: string | null;
|
|
856
|
+
/** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
|
|
857
|
+
perks?: StringList;
|
|
858
|
+
/** Plan price, payment schedule, and expiration. */
|
|
859
|
+
pricing?: Pricing;
|
|
860
|
+
/** Whether the plan is public (visible to site visitors and members). */
|
|
861
|
+
public?: boolean | null;
|
|
862
|
+
/**
|
|
863
|
+
* Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.
|
|
864
|
+
* @readonly
|
|
865
|
+
*/
|
|
866
|
+
archived?: boolean;
|
|
867
|
+
/**
|
|
868
|
+
* Whether the plan is marked as primary.
|
|
869
|
+
* @readonly
|
|
870
|
+
*/
|
|
871
|
+
primary?: boolean;
|
|
872
|
+
/**
|
|
873
|
+
* Whether the plan has any orders (including pending and unpaid orders).
|
|
874
|
+
* @readonly
|
|
875
|
+
*/
|
|
876
|
+
hasOrders?: boolean;
|
|
877
|
+
/**
|
|
878
|
+
* Date plan was created.
|
|
879
|
+
* @readonly
|
|
880
|
+
*/
|
|
881
|
+
_createdDate?: Date | null;
|
|
882
|
+
/**
|
|
883
|
+
* Date plan was last updated.
|
|
884
|
+
* @readonly
|
|
885
|
+
*/
|
|
886
|
+
_updatedDate?: Date | null;
|
|
887
|
+
/**
|
|
888
|
+
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
889
|
+
* @minLength 1
|
|
890
|
+
* @readonly
|
|
891
|
+
* @format URL_SLUG
|
|
892
|
+
*/
|
|
893
|
+
slug?: string | null;
|
|
894
|
+
/**
|
|
895
|
+
* Number of times the same buyer can purchase the plan. Currently limited to support:
|
|
896
|
+
* - Empty value or a value of `0`, meaning no limitation.
|
|
897
|
+
* - Value of `1`, meaning limited to 1 purchase per buyer.
|
|
898
|
+
* @max 1
|
|
899
|
+
*/
|
|
900
|
+
maxPurchasesPerBuyer?: number | null;
|
|
901
|
+
/** Whether the buyer can start the plan at a later date. Defaults to false. */
|
|
902
|
+
allowFutureStartDate?: boolean | null;
|
|
903
|
+
/**
|
|
904
|
+
* Whether the buyer is allowed to cancel their plan. Defaults to false.
|
|
905
|
+
* If false, calling Request Cancellation returns an error.
|
|
906
|
+
*/
|
|
907
|
+
buyerCanCancel?: boolean | null;
|
|
908
|
+
/**
|
|
909
|
+
* Any terms and conditions that apply to the plan. This information is displayed during checkout.
|
|
910
|
+
* @maxLength 3000
|
|
911
|
+
*/
|
|
912
|
+
termsAndConditions?: string | null;
|
|
913
|
+
/**
|
|
914
|
+
* ID of the form associated with the plan at checkout.
|
|
915
|
+
*
|
|
916
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
917
|
+
* @format GUID
|
|
918
|
+
*/
|
|
919
|
+
formId?: string | null;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export { type BulkArchivePlanRequest as $, type ArchivePlanResponse as A, type GetPlanResponse as B, type Cursors as C, type Duration as D, type ListPlansRequest as E, type FeeConfig as F, type GetPlanStatsResponse as G, type GetPlanStatsRequest as H, type CreatePlanRequest as I, type CreatePlanResponse as J, type UpdatePlanRequest as K, type ListPublicPlansOptions as L, type MakePlanPrimaryResponse as M, type UpdatePlanResponse as N, type BuyerCanCancelUpdated as O, type PlansQueryBuilder as P, type QueryPublicPlansRequest as Q, type Recurrence as R, type SetPlanVisibilityResponse as S, type SetPlanVisibilityRequest as T, type UpdatePlan as U, type MakePlanPrimaryRequest as V, WebhookIdentityType as W, type ClearPrimaryRequest as X, type ClearPrimaryResponse as Y, type ArchivePlanRequest as Z, type PlanArchived as _, type ListPublicPlansResponse as a, type BulkArchivePlanResponse as a0, type BulkPlanResult as a1, type ItemMetadata as a2, type ApplicationError as a3, type BulkActionMetadata as a4, type ArrangePlansRequest as a5, type ArrangePlansResponse as a6, type CountPlansRequest as a7, type CountPlansResponse as a8, type GetPlansPremiumStatusRequest as a9, type GetPlansPremiumStatusResponse as aa, type SearchPlansRequest as ab, type SearchPlansResponse as ac, type DomainEvent as ad, type DomainEventBodyOneOf as ae, type EntityCreatedEvent as af, type RestoreInfo as ag, type EntityUpdatedEvent as ah, type EntityDeletedEvent as ai, type ActionEvent as aj, type MessageEnvelope as ak, type IdentificationData as al, type IdentificationDataIdOneOf as am, type BaseEventMetadata as an, type EventMetadata as ao, type PlansQueryResult as ap, type Plan as b, type ListPlansOptions as c, type ListPlansResponse as d, type PlanBuyerCanCancelUpdatedEnvelope as e, type PlanCreatedEnvelope as f, type PlanArchivedEnvelope as g, type PlanUpdatedEnvelope as h, PeriodUnit as i, AppliedAt as j, SortOrder as k, ArchivedFilter as l, PublicFilter as m, type StringList as n, type Pricing as o, type PricingPricingModelOneOf as p, type Money as q, type Fee as r, type ListPublicPlansRequest as s, type PublicPlan as t, type PagingMetadataV2 as u, type QueryV2 as v, type Sorting as w, type Paging as x, type QueryPublicPlansResponse as y, type GetPlanRequest as z };
|