@wix/auto_sdk_pricing-plans_plans 1.0.59 → 1.0.60
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/package.json +0 -3
- 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
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import { s as ListPublicPlansRequest$1, a as ListPublicPlansResponse$1, Q as QueryPublicPlansRequest$1, y as QueryPublicPlansResponse$1, z as GetPlanRequest$1, B as GetPlanResponse$1, E as ListPlansRequest$1, d as ListPlansResponse$1, H as GetPlanStatsRequest$1, G as GetPlanStatsResponse$1, I as CreatePlanRequest$1, J as CreatePlanResponse$1, K as UpdatePlanRequest$1, N as UpdatePlanResponse$1, T as SetPlanVisibilityRequest$1, S as SetPlanVisibilityResponse$1, V as MakePlanPrimaryRequest$1, M as MakePlanPrimaryResponse$1, X as ClearPrimaryRequest$1, Y as ClearPrimaryResponse$1, Z as ArchivePlanRequest$1, A as ArchivePlanResponse$1 } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.js';
|
|
2
|
+
|
|
3
|
+
/** Information about the pricing plan. */
|
|
4
|
+
interface Plan {
|
|
5
|
+
/**
|
|
6
|
+
* Plan ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Plan name.
|
|
13
|
+
* @minLength 1
|
|
14
|
+
* @maxLength 50
|
|
15
|
+
*/
|
|
16
|
+
name?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Plan description.
|
|
19
|
+
* @maxLength 450
|
|
20
|
+
*/
|
|
21
|
+
description?: string | null;
|
|
22
|
+
/** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
|
|
23
|
+
perks?: StringList;
|
|
24
|
+
/** Plan price, payment schedule, and expiration. */
|
|
25
|
+
pricing?: Pricing;
|
|
26
|
+
/** Whether the plan is public (visible to site visitors and members). */
|
|
27
|
+
public?: boolean | null;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
archived?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the plan is marked as primary.
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
primary?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the plan has any orders (including pending and unpaid orders).
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
hasOrders?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Date plan was created.
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
createdDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Date plan was last updated.
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
updatedDate?: Date | null;
|
|
53
|
+
/**
|
|
54
|
+
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
55
|
+
* @minLength 1
|
|
56
|
+
* @readonly
|
|
57
|
+
* @format URL_SLUG
|
|
58
|
+
*/
|
|
59
|
+
slug?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Number of times the same buyer can purchase the plan. Currently limited to support:
|
|
62
|
+
* - Empty value or a value of `0`, meaning no limitation.
|
|
63
|
+
* - Value of `1`, meaning limited to 1 purchase per buyer.
|
|
64
|
+
* @max 1
|
|
65
|
+
*/
|
|
66
|
+
maxPurchasesPerBuyer?: number | null;
|
|
67
|
+
/** Whether the buyer can start the plan at a later date. Defaults to false. */
|
|
68
|
+
allowFutureStartDate?: boolean | null;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the buyer is allowed to cancel their plan. Defaults to false.
|
|
71
|
+
* If false, calling Request Cancellation returns an error.
|
|
72
|
+
*/
|
|
73
|
+
buyerCanCancel?: boolean | null;
|
|
74
|
+
/**
|
|
75
|
+
* Any terms and conditions that apply to the plan. This information is displayed during checkout.
|
|
76
|
+
* @maxLength 3000
|
|
77
|
+
*/
|
|
78
|
+
termsAndConditions?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* ID of the form associated with the plan at checkout.
|
|
81
|
+
*
|
|
82
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
83
|
+
* @format GUID
|
|
84
|
+
*/
|
|
85
|
+
formId?: string | null;
|
|
86
|
+
}
|
|
87
|
+
/** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
|
|
88
|
+
interface StringList {
|
|
89
|
+
/**
|
|
90
|
+
* @minLength 1
|
|
91
|
+
* @maxLength 1400
|
|
92
|
+
* @maxSize 500
|
|
93
|
+
*/
|
|
94
|
+
values?: string[];
|
|
95
|
+
}
|
|
96
|
+
/** Plan pricing information. Includes the price of the plan and payment details. */
|
|
97
|
+
interface Pricing extends PricingPricingModelOneOf {
|
|
98
|
+
/** 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. */
|
|
99
|
+
subscription?: Recurrence;
|
|
100
|
+
/** 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. */
|
|
101
|
+
singlePaymentForDuration?: Duration;
|
|
102
|
+
/** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
|
|
103
|
+
singlePaymentUnlimited?: boolean | null;
|
|
104
|
+
/** 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. */
|
|
105
|
+
price?: Money;
|
|
106
|
+
/**
|
|
107
|
+
* 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.
|
|
108
|
+
* @max 999
|
|
109
|
+
*/
|
|
110
|
+
freeTrialDays?: number | null;
|
|
111
|
+
}
|
|
112
|
+
/** @oneof */
|
|
113
|
+
interface PricingPricingModelOneOf {
|
|
114
|
+
/** 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. */
|
|
115
|
+
subscription?: Recurrence;
|
|
116
|
+
/** 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
|
+
singlePaymentForDuration?: Duration;
|
|
118
|
+
/** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
|
|
119
|
+
singlePaymentUnlimited?: boolean | null;
|
|
120
|
+
}
|
|
121
|
+
/** An object specifying how often and for how long payments recur (may be forever). */
|
|
122
|
+
interface Recurrence {
|
|
123
|
+
/**
|
|
124
|
+
* Number of payment cycles the subscription is valid for.
|
|
125
|
+
* `0` for unlimited plans or for plans that are valid until canceled.
|
|
126
|
+
*/
|
|
127
|
+
cycleDuration?: Duration;
|
|
128
|
+
/**
|
|
129
|
+
* Length of a payment cycle. For example, 1 month to have monthly payments.
|
|
130
|
+
* Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.
|
|
131
|
+
* Currently, only a value of `1` is supported.
|
|
132
|
+
* @max 2000
|
|
133
|
+
*/
|
|
134
|
+
cycleCount?: number | null;
|
|
135
|
+
}
|
|
136
|
+
/** A duration expressed in number of time units. */
|
|
137
|
+
interface Duration {
|
|
138
|
+
/**
|
|
139
|
+
* Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.
|
|
140
|
+
* @min 1
|
|
141
|
+
*/
|
|
142
|
+
count?: number | null;
|
|
143
|
+
/** Unit of time for the cycle duration. */
|
|
144
|
+
unit?: PeriodUnitWithLiterals;
|
|
145
|
+
}
|
|
146
|
+
declare enum PeriodUnit {
|
|
147
|
+
/** Not defined. */
|
|
148
|
+
UNDEFINED = "UNDEFINED",
|
|
149
|
+
/** Time unit is a day. */
|
|
150
|
+
DAY = "DAY",
|
|
151
|
+
/** Time unit is a week. */
|
|
152
|
+
WEEK = "WEEK",
|
|
153
|
+
/** Time unit is a month. */
|
|
154
|
+
MONTH = "MONTH",
|
|
155
|
+
/** Time unit is a year. */
|
|
156
|
+
YEAR = "YEAR"
|
|
157
|
+
}
|
|
158
|
+
/** @enumType */
|
|
159
|
+
type PeriodUnitWithLiterals = PeriodUnit | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
160
|
+
interface Money {
|
|
161
|
+
/**
|
|
162
|
+
* Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.
|
|
163
|
+
* @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }
|
|
164
|
+
*/
|
|
165
|
+
value?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`.
|
|
168
|
+
* @format CURRENCY
|
|
169
|
+
*/
|
|
170
|
+
currency?: string;
|
|
171
|
+
}
|
|
172
|
+
interface ListPublicPlansRequest {
|
|
173
|
+
/**
|
|
174
|
+
* 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)).
|
|
175
|
+
* @min 1
|
|
176
|
+
* @max 100
|
|
177
|
+
*/
|
|
178
|
+
limit?: number | null;
|
|
179
|
+
/** 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)). */
|
|
180
|
+
offset?: number | null;
|
|
181
|
+
/**
|
|
182
|
+
* IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
|
|
183
|
+
* @format GUID
|
|
184
|
+
* @maxSize 100
|
|
185
|
+
*/
|
|
186
|
+
planIds?: string[];
|
|
187
|
+
}
|
|
188
|
+
interface ListPublicPlansResponse {
|
|
189
|
+
/** List of public pricing plans. */
|
|
190
|
+
plans?: PublicPlan[];
|
|
191
|
+
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
192
|
+
pagingMetadata?: PagingMetadataV2;
|
|
193
|
+
}
|
|
194
|
+
/** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
|
|
195
|
+
interface PublicPlan {
|
|
196
|
+
/**
|
|
197
|
+
* Plan ID.
|
|
198
|
+
* @format GUID
|
|
199
|
+
*/
|
|
200
|
+
id?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Plan name.
|
|
203
|
+
* @minLength 1
|
|
204
|
+
* @maxLength 50
|
|
205
|
+
*/
|
|
206
|
+
name?: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* Plan description.
|
|
209
|
+
* @maxLength 450
|
|
210
|
+
*/
|
|
211
|
+
description?: string | null;
|
|
212
|
+
/** What is included with this plan (for example, 1 weekly entrance to a specific class). */
|
|
213
|
+
perks?: StringList;
|
|
214
|
+
/** Plan price, payment schedule, and expiration. */
|
|
215
|
+
pricing?: Pricing;
|
|
216
|
+
/** Whether the plan is marked as primary. */
|
|
217
|
+
primary?: boolean;
|
|
218
|
+
/** Date plan was created. */
|
|
219
|
+
createdDate?: Date | null;
|
|
220
|
+
/** Date plan was last updated. */
|
|
221
|
+
updatedDate?: Date | null;
|
|
222
|
+
/**
|
|
223
|
+
* URL-friendly version of plan name. Unique across all plans in the same site.
|
|
224
|
+
* @minLength 1
|
|
225
|
+
*/
|
|
226
|
+
slug?: string | null;
|
|
227
|
+
/** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */
|
|
228
|
+
maxPurchasesPerBuyer?: number | null;
|
|
229
|
+
/** Whether the buyer can start the plan at a later date. Defaults to false. */
|
|
230
|
+
allowFutureStartDate?: boolean | null;
|
|
231
|
+
/** Whether the buyer is allowed to cancel their plan. Defaults to false. */
|
|
232
|
+
buyerCanCancel?: boolean | null;
|
|
233
|
+
/** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
|
|
234
|
+
termsAndConditions?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* ID of the form associated with the plan at checkout.
|
|
237
|
+
*
|
|
238
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
241
|
+
formId?: string | null;
|
|
242
|
+
}
|
|
243
|
+
interface PagingMetadataV2 {
|
|
244
|
+
/** Number of items returned in the response. */
|
|
245
|
+
count?: number | null;
|
|
246
|
+
/** Offset that was requested. */
|
|
247
|
+
offset?: number | null;
|
|
248
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
249
|
+
total?: number | null;
|
|
250
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
251
|
+
tooManyToCount?: boolean | null;
|
|
252
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
253
|
+
cursors?: Cursors;
|
|
254
|
+
}
|
|
255
|
+
interface Cursors {
|
|
256
|
+
/**
|
|
257
|
+
* Cursor string pointing to the next page in the list of results.
|
|
258
|
+
* @maxLength 16000
|
|
259
|
+
*/
|
|
260
|
+
next?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* Cursor pointing to the previous page in the list of results.
|
|
263
|
+
* @maxLength 16000
|
|
264
|
+
*/
|
|
265
|
+
prev?: string | null;
|
|
266
|
+
}
|
|
267
|
+
interface QueryPublicPlansRequest {
|
|
268
|
+
/** Query options. */
|
|
269
|
+
query?: QueryV2;
|
|
270
|
+
}
|
|
271
|
+
interface QueryV2 {
|
|
272
|
+
/** 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)). */
|
|
273
|
+
filter?: Record<string, any> | null;
|
|
274
|
+
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]. */
|
|
275
|
+
sort?: Sorting[];
|
|
276
|
+
/** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */
|
|
277
|
+
paging?: Paging;
|
|
278
|
+
}
|
|
279
|
+
interface Sorting {
|
|
280
|
+
/**
|
|
281
|
+
* Name of the field to sort by.
|
|
282
|
+
* @maxLength 512
|
|
283
|
+
*/
|
|
284
|
+
fieldName?: string;
|
|
285
|
+
/** Sort order. */
|
|
286
|
+
order?: SortOrderWithLiterals;
|
|
287
|
+
}
|
|
288
|
+
declare enum SortOrder {
|
|
289
|
+
ASC = "ASC",
|
|
290
|
+
DESC = "DESC"
|
|
291
|
+
}
|
|
292
|
+
/** @enumType */
|
|
293
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
294
|
+
interface Paging {
|
|
295
|
+
/** Number of items to load. */
|
|
296
|
+
limit?: number | null;
|
|
297
|
+
/** Number of items to skip in the current sort order. */
|
|
298
|
+
offset?: number | null;
|
|
299
|
+
}
|
|
300
|
+
interface QueryPublicPlansResponse {
|
|
301
|
+
/** List of public pricing plans that match the specified query. */
|
|
302
|
+
plans?: PublicPlan[];
|
|
303
|
+
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
304
|
+
pagingMetadata?: PagingMetadataV2;
|
|
305
|
+
}
|
|
306
|
+
interface GetPlanRequest {
|
|
307
|
+
/**
|
|
308
|
+
* Plan ID.
|
|
309
|
+
* @format GUID
|
|
310
|
+
*/
|
|
311
|
+
id: string;
|
|
312
|
+
}
|
|
313
|
+
interface GetPlanResponse {
|
|
314
|
+
/** Pricing plan. */
|
|
315
|
+
plan?: Plan;
|
|
316
|
+
}
|
|
317
|
+
interface ListPlansRequest {
|
|
318
|
+
/** Archived filter. Defaults to `ACTIVE` (not archived) only. */
|
|
319
|
+
archived?: ArchivedFilterWithLiterals;
|
|
320
|
+
/** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
|
|
321
|
+
public?: PublicFilterWithLiterals;
|
|
322
|
+
/**
|
|
323
|
+
* Number of pricing plans to list. Defaults to `75`.
|
|
324
|
+
* @min 1
|
|
325
|
+
* @max 100
|
|
326
|
+
*/
|
|
327
|
+
limit?: number | null;
|
|
328
|
+
/** Number of pricing plans to skip. Defaults to `0`. */
|
|
329
|
+
offset?: number | null;
|
|
330
|
+
/**
|
|
331
|
+
* 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.
|
|
332
|
+
* @format GUID
|
|
333
|
+
* @maxSize 100
|
|
334
|
+
*/
|
|
335
|
+
planIds?: string[];
|
|
336
|
+
}
|
|
337
|
+
declare enum ArchivedFilter {
|
|
338
|
+
/** Returns all plans that are active. */
|
|
339
|
+
ACTIVE = "ACTIVE",
|
|
340
|
+
/** Returns all plans that are archived. */
|
|
341
|
+
ARCHIVED = "ARCHIVED",
|
|
342
|
+
/** Returns all plans that are active and archived. */
|
|
343
|
+
ARCHIVED_AND_ACTIVE = "ARCHIVED_AND_ACTIVE"
|
|
344
|
+
}
|
|
345
|
+
/** @enumType */
|
|
346
|
+
type ArchivedFilterWithLiterals = ArchivedFilter | 'ACTIVE' | 'ARCHIVED' | 'ARCHIVED_AND_ACTIVE';
|
|
347
|
+
declare enum PublicFilter {
|
|
348
|
+
/** Returns all public and hidden plans. */
|
|
349
|
+
PUBLIC_AND_HIDDEN = "PUBLIC_AND_HIDDEN",
|
|
350
|
+
/** Returns only public plans. */
|
|
351
|
+
PUBLIC = "PUBLIC",
|
|
352
|
+
/** Returns only hidden plans. */
|
|
353
|
+
HIDDEN = "HIDDEN"
|
|
354
|
+
}
|
|
355
|
+
/** @enumType */
|
|
356
|
+
type PublicFilterWithLiterals = PublicFilter | 'PUBLIC_AND_HIDDEN' | 'PUBLIC' | 'HIDDEN';
|
|
357
|
+
interface ListPlansResponse {
|
|
358
|
+
/** List of all public and hidden pricing plans. */
|
|
359
|
+
plans?: Plan[];
|
|
360
|
+
/** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
|
|
361
|
+
pagingMetadata?: PagingMetadataV2;
|
|
362
|
+
}
|
|
363
|
+
interface GetPlanStatsRequest {
|
|
364
|
+
}
|
|
365
|
+
interface GetPlanStatsResponse {
|
|
366
|
+
/** Total number of plans created, including active plans (both public and hidden) and archived plans. */
|
|
367
|
+
totalPlans?: number;
|
|
368
|
+
}
|
|
369
|
+
interface CreatePlanRequest {
|
|
370
|
+
/** Plan details. */
|
|
371
|
+
plan: Plan;
|
|
372
|
+
}
|
|
373
|
+
interface CreatePlanResponse {
|
|
374
|
+
/** Created plan. */
|
|
375
|
+
plan?: Plan;
|
|
376
|
+
}
|
|
377
|
+
interface UpdatePlanRequest {
|
|
378
|
+
/** ID of the plan to update. */
|
|
379
|
+
plan: Plan;
|
|
380
|
+
}
|
|
381
|
+
interface UpdatePlanResponse {
|
|
382
|
+
/** Updated plan. */
|
|
383
|
+
plan?: Plan;
|
|
384
|
+
}
|
|
385
|
+
interface SetPlanVisibilityRequest {
|
|
386
|
+
/**
|
|
387
|
+
* The ID of the plan to either display or hide on a site page.
|
|
388
|
+
* @format GUID
|
|
389
|
+
*/
|
|
390
|
+
id: string;
|
|
391
|
+
/** Whether a plan is visible to members and site visitors. Updates the `public` field. */
|
|
392
|
+
visible: boolean;
|
|
393
|
+
}
|
|
394
|
+
interface SetPlanVisibilityResponse {
|
|
395
|
+
/** Pricing plan. */
|
|
396
|
+
plan?: Plan;
|
|
397
|
+
}
|
|
398
|
+
interface MakePlanPrimaryRequest {
|
|
399
|
+
/**
|
|
400
|
+
* Pricing plan ID.
|
|
401
|
+
* @format GUID
|
|
402
|
+
*/
|
|
403
|
+
id: string;
|
|
404
|
+
}
|
|
405
|
+
interface MakePlanPrimaryResponse {
|
|
406
|
+
/** Pricing plan. */
|
|
407
|
+
plan?: Plan;
|
|
408
|
+
}
|
|
409
|
+
interface ClearPrimaryRequest {
|
|
410
|
+
}
|
|
411
|
+
interface ClearPrimaryResponse {
|
|
412
|
+
}
|
|
413
|
+
interface ArchivePlanRequest {
|
|
414
|
+
/**
|
|
415
|
+
* ID of the active plan to archive.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
418
|
+
id: string;
|
|
419
|
+
}
|
|
420
|
+
interface ArchivePlanResponse {
|
|
421
|
+
/** Archived plan. */
|
|
422
|
+
plan?: Plan;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
426
|
+
getUrl: (context: any) => string;
|
|
427
|
+
httpMethod: K;
|
|
428
|
+
path: string;
|
|
429
|
+
pathParams: M;
|
|
430
|
+
__requestType: T;
|
|
431
|
+
__originalRequestType: S;
|
|
432
|
+
__responseType: Q;
|
|
433
|
+
__originalResponseType: R;
|
|
434
|
+
};
|
|
435
|
+
declare function listPublicPlans(): __PublicMethodMetaInfo<'GET', {}, ListPublicPlansRequest$1, ListPublicPlansRequest, ListPublicPlansResponse$1, ListPublicPlansResponse>;
|
|
436
|
+
declare function queryPublicPlans(): __PublicMethodMetaInfo<'POST', {}, QueryPublicPlansRequest$1, QueryPublicPlansRequest, QueryPublicPlansResponse$1, QueryPublicPlansResponse>;
|
|
437
|
+
declare function getPlan(): __PublicMethodMetaInfo<'GET', {
|
|
438
|
+
id: string;
|
|
439
|
+
}, GetPlanRequest$1, GetPlanRequest, GetPlanResponse$1, GetPlanResponse>;
|
|
440
|
+
declare function listPlans(): __PublicMethodMetaInfo<'GET', {}, ListPlansRequest$1, ListPlansRequest, ListPlansResponse$1, ListPlansResponse>;
|
|
441
|
+
declare function getPlanStats(): __PublicMethodMetaInfo<'GET', {}, GetPlanStatsRequest$1, GetPlanStatsRequest, GetPlanStatsResponse$1, GetPlanStatsResponse>;
|
|
442
|
+
declare function createPlan(): __PublicMethodMetaInfo<'POST', {}, CreatePlanRequest$1, CreatePlanRequest, CreatePlanResponse$1, CreatePlanResponse>;
|
|
443
|
+
declare function updatePlan(): __PublicMethodMetaInfo<'PATCH', {
|
|
444
|
+
planId: string;
|
|
445
|
+
}, UpdatePlanRequest$1, UpdatePlanRequest, UpdatePlanResponse$1, UpdatePlanResponse>;
|
|
446
|
+
declare function setPlanVisibility(): __PublicMethodMetaInfo<'PUT', {
|
|
447
|
+
id: string;
|
|
448
|
+
}, SetPlanVisibilityRequest$1, SetPlanVisibilityRequest, SetPlanVisibilityResponse$1, SetPlanVisibilityResponse>;
|
|
449
|
+
declare function makePlanPrimary(): __PublicMethodMetaInfo<'POST', {
|
|
450
|
+
id: string;
|
|
451
|
+
}, MakePlanPrimaryRequest$1, MakePlanPrimaryRequest, MakePlanPrimaryResponse$1, MakePlanPrimaryResponse>;
|
|
452
|
+
declare function clearPrimary(): __PublicMethodMetaInfo<'POST', {}, ClearPrimaryRequest$1, ClearPrimaryRequest, ClearPrimaryResponse$1, ClearPrimaryResponse>;
|
|
453
|
+
declare function archivePlan(): __PublicMethodMetaInfo<'POST', {
|
|
454
|
+
id: string;
|
|
455
|
+
}, ArchivePlanRequest$1, ArchivePlanRequest, ArchivePlanResponse$1, ArchivePlanResponse>;
|
|
456
|
+
|
|
457
|
+
export { type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };
|