@wix/auto_sdk_app-management_app-plans 1.0.13 → 1.0.15
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/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.d.mts} +34 -34
- package/build/{internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.d.ts} +34 -34
- package/build/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
- package/build/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
- package/build/index.js +253 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +222 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → internal/appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.d.mts} +40 -33
- package/build/internal/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.d.ts} +40 -33
- package/build/internal/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
- package/build/internal/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
- package/build/internal/index.js +253 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +222 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +299 -0
- package/build/internal/meta.d.ts +299 -0
- package/build/internal/meta.js +173 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +146 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +299 -0
- package/build/meta.d.ts +299 -0
- package/build/meta.js +173 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +146 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- 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/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
- package/build/cjs/src/appmarket-v1-app-plans-app-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/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
- package/build/es/src/appmarket-v1-app-plans-app-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/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-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/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { i as ListAppPlansByAppIdRequest$1, L as ListAppPlansByAppIdResponse$1 } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.mjs';
|
|
2
|
+
|
|
3
|
+
interface AppPlans {
|
|
4
|
+
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* List of the app's pricing plans.
|
|
8
|
+
*
|
|
9
|
+
* Min: `0` plans
|
|
10
|
+
* Max: `50` plans
|
|
11
|
+
* @maxSize 50
|
|
12
|
+
*/
|
|
13
|
+
plans?: Plan[];
|
|
14
|
+
}
|
|
15
|
+
declare enum DiscountType {
|
|
16
|
+
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
17
|
+
/** Discount is a fixed amount in USD. */
|
|
18
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
19
|
+
/** Discount is a percentage of the total price. */
|
|
20
|
+
PERCENTAGE = "PERCENTAGE"
|
|
21
|
+
}
|
|
22
|
+
/** @enumType */
|
|
23
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
24
|
+
interface Cycle {
|
|
25
|
+
/**
|
|
26
|
+
* Type of the billing cycle.
|
|
27
|
+
*
|
|
28
|
+
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
29
|
+
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
30
|
+
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
31
|
+
*/
|
|
32
|
+
cycleType?: CycleTypeWithLiterals;
|
|
33
|
+
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
34
|
+
cycleDuration?: Duration;
|
|
35
|
+
}
|
|
36
|
+
declare enum DurationUnit {
|
|
37
|
+
/** unknown interval unit */
|
|
38
|
+
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
39
|
+
/** month */
|
|
40
|
+
MONTH = "MONTH",
|
|
41
|
+
/** year */
|
|
42
|
+
YEAR = "YEAR"
|
|
43
|
+
}
|
|
44
|
+
/** @enumType */
|
|
45
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
46
|
+
declare enum CycleType {
|
|
47
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
48
|
+
ONE_TIME = "ONE_TIME",
|
|
49
|
+
RECURRING = "RECURRING"
|
|
50
|
+
}
|
|
51
|
+
/** @enumType */
|
|
52
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
53
|
+
interface Duration {
|
|
54
|
+
/** Unit of the billing cycle. */
|
|
55
|
+
unit?: DurationUnitWithLiterals;
|
|
56
|
+
/** Count of units that make up the billing cycle. */
|
|
57
|
+
count?: number;
|
|
58
|
+
}
|
|
59
|
+
interface UsageBasedDetails {
|
|
60
|
+
/**
|
|
61
|
+
* Smallest possible amount that your app charges customers in usage-based
|
|
62
|
+
* pricing. For example, the price of a single SMS message if your
|
|
63
|
+
* app charges customers for sending text messages. Always in
|
|
64
|
+
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
65
|
+
*
|
|
66
|
+
* Min: `0.00`
|
|
67
|
+
* Max: 1024 characters
|
|
68
|
+
* @format DECIMAL_VALUE
|
|
69
|
+
* @decimalValue options { gte:0.00 }
|
|
70
|
+
* @maxLength 1024
|
|
71
|
+
*/
|
|
72
|
+
minimumChargeIncrement?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Recurring, monthly base fee in usage-based pricing that your app
|
|
75
|
+
* charges customers regardless of how much they use your app.
|
|
76
|
+
*
|
|
77
|
+
* Min: `0.00`
|
|
78
|
+
* Max: 1024 characters
|
|
79
|
+
* @format DECIMAL_VALUE
|
|
80
|
+
* @decimalValue options { gte:0.00 }
|
|
81
|
+
* @maxLength 1024
|
|
82
|
+
*/
|
|
83
|
+
monthlyBaseFee?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Description of the usage-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
86
|
+
*
|
|
87
|
+
* Max: 1024 characters
|
|
88
|
+
*/
|
|
89
|
+
customChargeDescription?: string | null;
|
|
90
|
+
}
|
|
91
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
92
|
+
type?: DiscountTypeWithLiterals;
|
|
93
|
+
/**
|
|
94
|
+
* Discount amount
|
|
95
|
+
* @format DECIMAL_VALUE
|
|
96
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
97
|
+
* @maxLength 1024
|
|
98
|
+
*/
|
|
99
|
+
amount?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
102
|
+
* average price per month. You can get the full price by multiplying the
|
|
103
|
+
* returned price with 12.
|
|
104
|
+
* Min: `0.00`
|
|
105
|
+
* Max: 1024 characters
|
|
106
|
+
* @format DECIMAL_VALUE
|
|
107
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
108
|
+
* @maxLength 1024
|
|
109
|
+
*/
|
|
110
|
+
priceBeforeTax?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Total price including taxes.
|
|
113
|
+
* Min: `0.00`
|
|
114
|
+
* Max: 1024 characters
|
|
115
|
+
* @format DECIMAL_VALUE
|
|
116
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
117
|
+
* @maxLength 1024
|
|
118
|
+
*/
|
|
119
|
+
totalPrice?: string;
|
|
120
|
+
}
|
|
121
|
+
/** @oneof */
|
|
122
|
+
interface DiscountSourceDataOneOf {
|
|
123
|
+
}
|
|
124
|
+
declare enum BillingSource {
|
|
125
|
+
UNKNOWN = "UNKNOWN",
|
|
126
|
+
/** plan billing and charges is managed by Wix */
|
|
127
|
+
WIX = "WIX",
|
|
128
|
+
/** plan billing and charges is managed by the app */
|
|
129
|
+
EXTERNAL = "EXTERNAL"
|
|
130
|
+
}
|
|
131
|
+
/** @enumType */
|
|
132
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
133
|
+
interface Price {
|
|
134
|
+
/**
|
|
135
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
136
|
+
* average price per month. You can get the full price by multiplying the
|
|
137
|
+
* returned price by 12.
|
|
138
|
+
*
|
|
139
|
+
* Min: `0.00`
|
|
140
|
+
* Max: 1024 characters
|
|
141
|
+
* @format DECIMAL_VALUE
|
|
142
|
+
* @decimalValue options { gte:0.00 }
|
|
143
|
+
* @maxLength 1024
|
|
144
|
+
*/
|
|
145
|
+
priceBeforeTax?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Total price including taxes.
|
|
148
|
+
*
|
|
149
|
+
* Min: `0.00`
|
|
150
|
+
* Max: 1024 characters
|
|
151
|
+
* @format DECIMAL_VALUE
|
|
152
|
+
* @decimalValue options { gte:0.00 }
|
|
153
|
+
* @maxLength 1024
|
|
154
|
+
*/
|
|
155
|
+
totalPrice?: string;
|
|
156
|
+
/** Information about the plan's recurring billing cycle or single payment. */
|
|
157
|
+
billingCycle?: Cycle;
|
|
158
|
+
/**
|
|
159
|
+
* Details about the plan's usage-based pricing.
|
|
160
|
+
* Available only for plans with
|
|
161
|
+
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
162
|
+
*/
|
|
163
|
+
usageBaseOptions?: UsageBasedDetails;
|
|
164
|
+
discount?: Discount;
|
|
165
|
+
billingSource?: BillingSourceWithLiterals;
|
|
166
|
+
/**
|
|
167
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
168
|
+
* @maxLength 140
|
|
169
|
+
*/
|
|
170
|
+
customPaymentTitle?: string | null;
|
|
171
|
+
}
|
|
172
|
+
interface Plan {
|
|
173
|
+
/**
|
|
174
|
+
* ID of the app plan.
|
|
175
|
+
* @format GUID
|
|
176
|
+
* @readonly
|
|
177
|
+
*/
|
|
178
|
+
id?: string;
|
|
179
|
+
/**
|
|
180
|
+
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
181
|
+
* Identical to `vendorProductId` in the
|
|
182
|
+
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
183
|
+
*/
|
|
184
|
+
vendorId?: string;
|
|
185
|
+
/** Name of your app's pricing plan, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
186
|
+
name?: string;
|
|
187
|
+
/**
|
|
188
|
+
* List of your plan's benefits, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
189
|
+
* Currently, the benefits are available only in English.
|
|
190
|
+
*
|
|
191
|
+
* Min: `0` benefits
|
|
192
|
+
* Max: `4` benefits
|
|
193
|
+
* Max per benefit: 1024 characters
|
|
194
|
+
* @maxSize 4
|
|
195
|
+
* @maxLength 1024
|
|
196
|
+
*/
|
|
197
|
+
benefits?: string[];
|
|
198
|
+
/**
|
|
199
|
+
* List of the plan's prices. Available only when the plan's prices are managed
|
|
200
|
+
* by Wix and not externally.
|
|
201
|
+
*
|
|
202
|
+
* Min: `0` prices
|
|
203
|
+
* Max: `10` prices
|
|
204
|
+
* @maxSize 10
|
|
205
|
+
*/
|
|
206
|
+
prices?: Price[];
|
|
207
|
+
}
|
|
208
|
+
interface ListAppPlansByAppIdRequest {
|
|
209
|
+
/**
|
|
210
|
+
* List of app IDs to retrieve plans for.
|
|
211
|
+
*
|
|
212
|
+
* Min: 1 app ID
|
|
213
|
+
* Max: 100 app IDs
|
|
214
|
+
* @minSize 1
|
|
215
|
+
* @maxSize 100
|
|
216
|
+
*/
|
|
217
|
+
appIds: string[];
|
|
218
|
+
}
|
|
219
|
+
interface ListAppPlansByAppIdResponse {
|
|
220
|
+
/**
|
|
221
|
+
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
222
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
223
|
+
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
224
|
+
* tax settings may not resolve properly if you call through a VPN.
|
|
225
|
+
*/
|
|
226
|
+
taxSettings?: TaxSettings;
|
|
227
|
+
/**
|
|
228
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
229
|
+
* format. Wix calculates the currency based on the country code that
|
|
230
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
231
|
+
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
232
|
+
* currency may not resolve properly if you call through a VPN.
|
|
233
|
+
* @format CURRENCY
|
|
234
|
+
*/
|
|
235
|
+
currency?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
238
|
+
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
239
|
+
* country code that you pass in the call's header. If you don't pass a country
|
|
240
|
+
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
241
|
+
* address. Note that the currency symbol may not resolve properly if you call
|
|
242
|
+
* through a VPN.
|
|
243
|
+
*/
|
|
244
|
+
currencySymbol?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Retrieved app plans.
|
|
247
|
+
*
|
|
248
|
+
* Min: 0 plans
|
|
249
|
+
* Max: 50 plans
|
|
250
|
+
*
|
|
251
|
+
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
252
|
+
* @maxSize 50
|
|
253
|
+
*/
|
|
254
|
+
appPlans?: AppPlans[];
|
|
255
|
+
}
|
|
256
|
+
interface TaxSettings {
|
|
257
|
+
/**
|
|
258
|
+
* Whether you must display the total price including taxes in the given
|
|
259
|
+
* country.
|
|
260
|
+
*/
|
|
261
|
+
showPriceWithTax?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Tax rate for the given country as percentage. Returned as `0` when
|
|
264
|
+
* `{"showPriceWithTax": false}`.
|
|
265
|
+
* @format DECIMAL_VALUE
|
|
266
|
+
*/
|
|
267
|
+
percentage?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Type of tax required in the given country.
|
|
270
|
+
*
|
|
271
|
+
* + `"NOT_APPLICABLE"`: The country doesn't require that you display the total price including taxes, or Wix failed to calculate the country based on the call's IP address.
|
|
272
|
+
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
273
|
+
* + `"GST"`: The given country requires that you display the total price including [generation-skipping transfer tax (GST)](https://en.wikipedia.org/wiki/Generation-skipping_transfer_tax).
|
|
274
|
+
*/
|
|
275
|
+
taxType?: TaxTypeWithLiterals;
|
|
276
|
+
}
|
|
277
|
+
declare enum TaxType {
|
|
278
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
279
|
+
VAT = "VAT",
|
|
280
|
+
GST = "GST"
|
|
281
|
+
}
|
|
282
|
+
/** @enumType */
|
|
283
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
284
|
+
|
|
285
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
286
|
+
getUrl: (context: any) => string;
|
|
287
|
+
httpMethod: K;
|
|
288
|
+
path: string;
|
|
289
|
+
pathParams: M;
|
|
290
|
+
__requestType: T;
|
|
291
|
+
__originalRequestType: S;
|
|
292
|
+
__responseType: Q;
|
|
293
|
+
__originalResponseType: R;
|
|
294
|
+
};
|
|
295
|
+
declare function listAppPlansByAppId(): __PublicMethodMetaInfo<'GET', {
|
|
296
|
+
appIds: string;
|
|
297
|
+
}, ListAppPlansByAppIdRequest$1, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse$1, ListAppPlansByAppIdResponse>;
|
|
298
|
+
|
|
299
|
+
export { type __PublicMethodMetaInfo, listAppPlansByAppId };
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { i as ListAppPlansByAppIdRequest$1, L as ListAppPlansByAppIdResponse$1 } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.js';
|
|
2
|
+
|
|
3
|
+
interface AppPlans {
|
|
4
|
+
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* List of the app's pricing plans.
|
|
8
|
+
*
|
|
9
|
+
* Min: `0` plans
|
|
10
|
+
* Max: `50` plans
|
|
11
|
+
* @maxSize 50
|
|
12
|
+
*/
|
|
13
|
+
plans?: Plan[];
|
|
14
|
+
}
|
|
15
|
+
declare enum DiscountType {
|
|
16
|
+
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
17
|
+
/** Discount is a fixed amount in USD. */
|
|
18
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
19
|
+
/** Discount is a percentage of the total price. */
|
|
20
|
+
PERCENTAGE = "PERCENTAGE"
|
|
21
|
+
}
|
|
22
|
+
/** @enumType */
|
|
23
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
24
|
+
interface Cycle {
|
|
25
|
+
/**
|
|
26
|
+
* Type of the billing cycle.
|
|
27
|
+
*
|
|
28
|
+
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
29
|
+
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
30
|
+
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
31
|
+
*/
|
|
32
|
+
cycleType?: CycleTypeWithLiterals;
|
|
33
|
+
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
34
|
+
cycleDuration?: Duration;
|
|
35
|
+
}
|
|
36
|
+
declare enum DurationUnit {
|
|
37
|
+
/** unknown interval unit */
|
|
38
|
+
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
39
|
+
/** month */
|
|
40
|
+
MONTH = "MONTH",
|
|
41
|
+
/** year */
|
|
42
|
+
YEAR = "YEAR"
|
|
43
|
+
}
|
|
44
|
+
/** @enumType */
|
|
45
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
46
|
+
declare enum CycleType {
|
|
47
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
48
|
+
ONE_TIME = "ONE_TIME",
|
|
49
|
+
RECURRING = "RECURRING"
|
|
50
|
+
}
|
|
51
|
+
/** @enumType */
|
|
52
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
53
|
+
interface Duration {
|
|
54
|
+
/** Unit of the billing cycle. */
|
|
55
|
+
unit?: DurationUnitWithLiterals;
|
|
56
|
+
/** Count of units that make up the billing cycle. */
|
|
57
|
+
count?: number;
|
|
58
|
+
}
|
|
59
|
+
interface UsageBasedDetails {
|
|
60
|
+
/**
|
|
61
|
+
* Smallest possible amount that your app charges customers in usage-based
|
|
62
|
+
* pricing. For example, the price of a single SMS message if your
|
|
63
|
+
* app charges customers for sending text messages. Always in
|
|
64
|
+
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
65
|
+
*
|
|
66
|
+
* Min: `0.00`
|
|
67
|
+
* Max: 1024 characters
|
|
68
|
+
* @format DECIMAL_VALUE
|
|
69
|
+
* @decimalValue options { gte:0.00 }
|
|
70
|
+
* @maxLength 1024
|
|
71
|
+
*/
|
|
72
|
+
minimumChargeIncrement?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Recurring, monthly base fee in usage-based pricing that your app
|
|
75
|
+
* charges customers regardless of how much they use your app.
|
|
76
|
+
*
|
|
77
|
+
* Min: `0.00`
|
|
78
|
+
* Max: 1024 characters
|
|
79
|
+
* @format DECIMAL_VALUE
|
|
80
|
+
* @decimalValue options { gte:0.00 }
|
|
81
|
+
* @maxLength 1024
|
|
82
|
+
*/
|
|
83
|
+
monthlyBaseFee?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Description of the usage-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
86
|
+
*
|
|
87
|
+
* Max: 1024 characters
|
|
88
|
+
*/
|
|
89
|
+
customChargeDescription?: string | null;
|
|
90
|
+
}
|
|
91
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
92
|
+
type?: DiscountTypeWithLiterals;
|
|
93
|
+
/**
|
|
94
|
+
* Discount amount
|
|
95
|
+
* @format DECIMAL_VALUE
|
|
96
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
97
|
+
* @maxLength 1024
|
|
98
|
+
*/
|
|
99
|
+
amount?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
102
|
+
* average price per month. You can get the full price by multiplying the
|
|
103
|
+
* returned price with 12.
|
|
104
|
+
* Min: `0.00`
|
|
105
|
+
* Max: 1024 characters
|
|
106
|
+
* @format DECIMAL_VALUE
|
|
107
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
108
|
+
* @maxLength 1024
|
|
109
|
+
*/
|
|
110
|
+
priceBeforeTax?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Total price including taxes.
|
|
113
|
+
* Min: `0.00`
|
|
114
|
+
* Max: 1024 characters
|
|
115
|
+
* @format DECIMAL_VALUE
|
|
116
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
117
|
+
* @maxLength 1024
|
|
118
|
+
*/
|
|
119
|
+
totalPrice?: string;
|
|
120
|
+
}
|
|
121
|
+
/** @oneof */
|
|
122
|
+
interface DiscountSourceDataOneOf {
|
|
123
|
+
}
|
|
124
|
+
declare enum BillingSource {
|
|
125
|
+
UNKNOWN = "UNKNOWN",
|
|
126
|
+
/** plan billing and charges is managed by Wix */
|
|
127
|
+
WIX = "WIX",
|
|
128
|
+
/** plan billing and charges is managed by the app */
|
|
129
|
+
EXTERNAL = "EXTERNAL"
|
|
130
|
+
}
|
|
131
|
+
/** @enumType */
|
|
132
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
133
|
+
interface Price {
|
|
134
|
+
/**
|
|
135
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
136
|
+
* average price per month. You can get the full price by multiplying the
|
|
137
|
+
* returned price by 12.
|
|
138
|
+
*
|
|
139
|
+
* Min: `0.00`
|
|
140
|
+
* Max: 1024 characters
|
|
141
|
+
* @format DECIMAL_VALUE
|
|
142
|
+
* @decimalValue options { gte:0.00 }
|
|
143
|
+
* @maxLength 1024
|
|
144
|
+
*/
|
|
145
|
+
priceBeforeTax?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Total price including taxes.
|
|
148
|
+
*
|
|
149
|
+
* Min: `0.00`
|
|
150
|
+
* Max: 1024 characters
|
|
151
|
+
* @format DECIMAL_VALUE
|
|
152
|
+
* @decimalValue options { gte:0.00 }
|
|
153
|
+
* @maxLength 1024
|
|
154
|
+
*/
|
|
155
|
+
totalPrice?: string;
|
|
156
|
+
/** Information about the plan's recurring billing cycle or single payment. */
|
|
157
|
+
billingCycle?: Cycle;
|
|
158
|
+
/**
|
|
159
|
+
* Details about the plan's usage-based pricing.
|
|
160
|
+
* Available only for plans with
|
|
161
|
+
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
162
|
+
*/
|
|
163
|
+
usageBaseOptions?: UsageBasedDetails;
|
|
164
|
+
discount?: Discount;
|
|
165
|
+
billingSource?: BillingSourceWithLiterals;
|
|
166
|
+
/**
|
|
167
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
168
|
+
* @maxLength 140
|
|
169
|
+
*/
|
|
170
|
+
customPaymentTitle?: string | null;
|
|
171
|
+
}
|
|
172
|
+
interface Plan {
|
|
173
|
+
/**
|
|
174
|
+
* ID of the app plan.
|
|
175
|
+
* @format GUID
|
|
176
|
+
* @readonly
|
|
177
|
+
*/
|
|
178
|
+
id?: string;
|
|
179
|
+
/**
|
|
180
|
+
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
181
|
+
* Identical to `vendorProductId` in the
|
|
182
|
+
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
183
|
+
*/
|
|
184
|
+
vendorId?: string;
|
|
185
|
+
/** Name of your app's pricing plan, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
186
|
+
name?: string;
|
|
187
|
+
/**
|
|
188
|
+
* List of your plan's benefits, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
189
|
+
* Currently, the benefits are available only in English.
|
|
190
|
+
*
|
|
191
|
+
* Min: `0` benefits
|
|
192
|
+
* Max: `4` benefits
|
|
193
|
+
* Max per benefit: 1024 characters
|
|
194
|
+
* @maxSize 4
|
|
195
|
+
* @maxLength 1024
|
|
196
|
+
*/
|
|
197
|
+
benefits?: string[];
|
|
198
|
+
/**
|
|
199
|
+
* List of the plan's prices. Available only when the plan's prices are managed
|
|
200
|
+
* by Wix and not externally.
|
|
201
|
+
*
|
|
202
|
+
* Min: `0` prices
|
|
203
|
+
* Max: `10` prices
|
|
204
|
+
* @maxSize 10
|
|
205
|
+
*/
|
|
206
|
+
prices?: Price[];
|
|
207
|
+
}
|
|
208
|
+
interface ListAppPlansByAppIdRequest {
|
|
209
|
+
/**
|
|
210
|
+
* List of app IDs to retrieve plans for.
|
|
211
|
+
*
|
|
212
|
+
* Min: 1 app ID
|
|
213
|
+
* Max: 100 app IDs
|
|
214
|
+
* @minSize 1
|
|
215
|
+
* @maxSize 100
|
|
216
|
+
*/
|
|
217
|
+
appIds: string[];
|
|
218
|
+
}
|
|
219
|
+
interface ListAppPlansByAppIdResponse {
|
|
220
|
+
/**
|
|
221
|
+
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
222
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
223
|
+
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
224
|
+
* tax settings may not resolve properly if you call through a VPN.
|
|
225
|
+
*/
|
|
226
|
+
taxSettings?: TaxSettings;
|
|
227
|
+
/**
|
|
228
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
229
|
+
* format. Wix calculates the currency based on the country code that
|
|
230
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
231
|
+
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
232
|
+
* currency may not resolve properly if you call through a VPN.
|
|
233
|
+
* @format CURRENCY
|
|
234
|
+
*/
|
|
235
|
+
currency?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
238
|
+
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
239
|
+
* country code that you pass in the call's header. If you don't pass a country
|
|
240
|
+
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
241
|
+
* address. Note that the currency symbol may not resolve properly if you call
|
|
242
|
+
* through a VPN.
|
|
243
|
+
*/
|
|
244
|
+
currencySymbol?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Retrieved app plans.
|
|
247
|
+
*
|
|
248
|
+
* Min: 0 plans
|
|
249
|
+
* Max: 50 plans
|
|
250
|
+
*
|
|
251
|
+
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
252
|
+
* @maxSize 50
|
|
253
|
+
*/
|
|
254
|
+
appPlans?: AppPlans[];
|
|
255
|
+
}
|
|
256
|
+
interface TaxSettings {
|
|
257
|
+
/**
|
|
258
|
+
* Whether you must display the total price including taxes in the given
|
|
259
|
+
* country.
|
|
260
|
+
*/
|
|
261
|
+
showPriceWithTax?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Tax rate for the given country as percentage. Returned as `0` when
|
|
264
|
+
* `{"showPriceWithTax": false}`.
|
|
265
|
+
* @format DECIMAL_VALUE
|
|
266
|
+
*/
|
|
267
|
+
percentage?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Type of tax required in the given country.
|
|
270
|
+
*
|
|
271
|
+
* + `"NOT_APPLICABLE"`: The country doesn't require that you display the total price including taxes, or Wix failed to calculate the country based on the call's IP address.
|
|
272
|
+
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
273
|
+
* + `"GST"`: The given country requires that you display the total price including [generation-skipping transfer tax (GST)](https://en.wikipedia.org/wiki/Generation-skipping_transfer_tax).
|
|
274
|
+
*/
|
|
275
|
+
taxType?: TaxTypeWithLiterals;
|
|
276
|
+
}
|
|
277
|
+
declare enum TaxType {
|
|
278
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
279
|
+
VAT = "VAT",
|
|
280
|
+
GST = "GST"
|
|
281
|
+
}
|
|
282
|
+
/** @enumType */
|
|
283
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
284
|
+
|
|
285
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
286
|
+
getUrl: (context: any) => string;
|
|
287
|
+
httpMethod: K;
|
|
288
|
+
path: string;
|
|
289
|
+
pathParams: M;
|
|
290
|
+
__requestType: T;
|
|
291
|
+
__originalRequestType: S;
|
|
292
|
+
__responseType: Q;
|
|
293
|
+
__originalResponseType: R;
|
|
294
|
+
};
|
|
295
|
+
declare function listAppPlansByAppId(): __PublicMethodMetaInfo<'GET', {
|
|
296
|
+
appIds: string;
|
|
297
|
+
}, ListAppPlansByAppIdRequest$1, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse$1, ListAppPlansByAppIdResponse>;
|
|
298
|
+
|
|
299
|
+
export { type __PublicMethodMetaInfo, listAppPlansByAppId };
|