@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface AppPlans {
|
|
2
2
|
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
-
|
|
3
|
+
_id?: string;
|
|
4
4
|
/**
|
|
5
5
|
* List of the app's pricing plans.
|
|
6
6
|
*
|
|
@@ -10,7 +10,7 @@ export interface AppPlans {
|
|
|
10
10
|
*/
|
|
11
11
|
plans?: Plan[];
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare enum SaleType {
|
|
14
14
|
/** Default value, can be used when no specific sale is associated. */
|
|
15
15
|
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
16
16
|
CYBER_MONDAY = "CYBER_MONDAY",
|
|
@@ -19,8 +19,8 @@ export declare enum SaleType {
|
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
21
|
/** @enumType */
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
|
|
23
|
+
declare enum DiscountType {
|
|
24
24
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
25
25
|
/** Discount is a fixed amount in USD. */
|
|
26
26
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
@@ -28,8 +28,8 @@ export declare enum DiscountType {
|
|
|
28
28
|
PERCENTAGE = "PERCENTAGE"
|
|
29
29
|
}
|
|
30
30
|
/** @enumType */
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
32
|
+
declare enum SourceType {
|
|
33
33
|
/** Default value, can be used when no specific source is associated. */
|
|
34
34
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
35
35
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -38,15 +38,15 @@ export declare enum SourceType {
|
|
|
38
38
|
APP_BENEFIT = "APP_BENEFIT"
|
|
39
39
|
}
|
|
40
40
|
/** @enumType */
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
|
|
42
|
+
interface SaleSource {
|
|
43
43
|
/** @format GUID */
|
|
44
44
|
saleId?: string | null;
|
|
45
45
|
saleType?: SaleTypeWithLiterals;
|
|
46
46
|
startDate?: Date | null;
|
|
47
47
|
endDate?: Date | null;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
interface Cycle {
|
|
50
50
|
/**
|
|
51
51
|
* Type of the billing cycle.
|
|
52
52
|
*
|
|
@@ -58,7 +58,7 @@ export interface Cycle {
|
|
|
58
58
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
59
59
|
cycleDuration?: Duration;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
declare enum DurationUnit {
|
|
62
62
|
/** unknown interval unit */
|
|
63
63
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
64
64
|
/** month */
|
|
@@ -67,21 +67,21 @@ export declare enum DurationUnit {
|
|
|
67
67
|
YEAR = "YEAR"
|
|
68
68
|
}
|
|
69
69
|
/** @enumType */
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
71
|
+
declare enum CycleType {
|
|
72
72
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
73
73
|
ONE_TIME = "ONE_TIME",
|
|
74
74
|
RECURRING = "RECURRING"
|
|
75
75
|
}
|
|
76
76
|
/** @enumType */
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
78
|
+
interface Duration {
|
|
79
79
|
/** Unit of the billing cycle. */
|
|
80
80
|
unit?: DurationUnitWithLiterals;
|
|
81
81
|
/** Count of units that make up the billing cycle. */
|
|
82
82
|
count?: number;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
interface UsageBasedDetails {
|
|
85
85
|
/**
|
|
86
86
|
* Smallest possible amount that your app charges customers in usage-based
|
|
87
87
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -113,7 +113,7 @@ export interface UsageBasedDetails {
|
|
|
113
113
|
*/
|
|
114
114
|
customChargeDescription?: string | null;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
117
117
|
type?: DiscountTypeWithLiterals;
|
|
118
118
|
/**
|
|
119
119
|
* Discount amount
|
|
@@ -142,11 +142,16 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
142
142
|
* @maxLength 1024
|
|
143
143
|
*/
|
|
144
144
|
totalPrice?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Source of the discount.
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
sourceType?: SourceTypeWithLiterals;
|
|
145
150
|
}
|
|
146
151
|
/** @oneof */
|
|
147
|
-
|
|
152
|
+
interface DiscountSourceDataOneOf {
|
|
148
153
|
}
|
|
149
|
-
|
|
154
|
+
declare enum BillingSource {
|
|
150
155
|
UNKNOWN = "UNKNOWN",
|
|
151
156
|
/** plan billing and charges is managed by Wix */
|
|
152
157
|
WIX = "WIX",
|
|
@@ -154,8 +159,8 @@ export declare enum BillingSource {
|
|
|
154
159
|
EXTERNAL = "EXTERNAL"
|
|
155
160
|
}
|
|
156
161
|
/** @enumType */
|
|
157
|
-
|
|
158
|
-
|
|
162
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
163
|
+
interface Price {
|
|
159
164
|
/**
|
|
160
165
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
161
166
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -194,13 +199,13 @@ export interface Price {
|
|
|
194
199
|
*/
|
|
195
200
|
customPaymentTitle?: string | null;
|
|
196
201
|
}
|
|
197
|
-
|
|
202
|
+
interface Plan {
|
|
198
203
|
/**
|
|
199
204
|
* ID of the app plan.
|
|
200
205
|
* @format GUID
|
|
201
206
|
* @readonly
|
|
202
207
|
*/
|
|
203
|
-
|
|
208
|
+
_id?: string;
|
|
204
209
|
/**
|
|
205
210
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
206
211
|
* Identical to `vendorProductId` in the
|
|
@@ -230,7 +235,7 @@ export interface Plan {
|
|
|
230
235
|
*/
|
|
231
236
|
prices?: Price[];
|
|
232
237
|
}
|
|
233
|
-
|
|
238
|
+
interface ListAppPlansByAppIdRequest {
|
|
234
239
|
/**
|
|
235
240
|
* List of app IDs to retrieve plans for.
|
|
236
241
|
*
|
|
@@ -241,7 +246,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
241
246
|
*/
|
|
242
247
|
appIds: string[];
|
|
243
248
|
}
|
|
244
|
-
|
|
249
|
+
interface ListAppPlansByAppIdResponse {
|
|
245
250
|
/**
|
|
246
251
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
247
252
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -278,7 +283,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
278
283
|
*/
|
|
279
284
|
appPlans?: AppPlans[];
|
|
280
285
|
}
|
|
281
|
-
|
|
286
|
+
interface TaxSettings {
|
|
282
287
|
/**
|
|
283
288
|
* Whether you must display the total price including taxes in the given
|
|
284
289
|
* country.
|
|
@@ -299,14 +304,14 @@ export interface TaxSettings {
|
|
|
299
304
|
*/
|
|
300
305
|
taxType?: TaxTypeWithLiterals;
|
|
301
306
|
}
|
|
302
|
-
|
|
307
|
+
declare enum TaxType {
|
|
303
308
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
304
309
|
VAT = "VAT",
|
|
305
310
|
GST = "GST"
|
|
306
311
|
}
|
|
307
312
|
/** @enumType */
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
314
|
+
interface GetAvailableAppPlansRequest {
|
|
310
315
|
/**
|
|
311
316
|
* AppId to get the available app plans for.
|
|
312
317
|
* @format GUID
|
|
@@ -319,7 +324,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
319
324
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
320
325
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
321
326
|
*/
|
|
322
|
-
|
|
327
|
+
interface AppPlanInfo {
|
|
323
328
|
/**
|
|
324
329
|
* The app plan's vendorId to retrieve the response for.
|
|
325
330
|
*
|
|
@@ -330,7 +335,7 @@ export interface AppPlanInfo {
|
|
|
330
335
|
/** The app plan cycle to retrieve the response for. */
|
|
331
336
|
billingCycle?: Cycle;
|
|
332
337
|
}
|
|
333
|
-
|
|
338
|
+
interface GetAvailableAppPlansResponse {
|
|
334
339
|
/** The available upgrades for the given app plan. */
|
|
335
340
|
availableUpgrades?: AppPlans;
|
|
336
341
|
/** The available downgrades for the given app plan. */
|
|
@@ -338,7 +343,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
338
343
|
/** The current app plan. */
|
|
339
344
|
currentPlan?: Plan;
|
|
340
345
|
}
|
|
341
|
-
|
|
346
|
+
interface GetPricingPageUrlRequest {
|
|
342
347
|
/**
|
|
343
348
|
* AppId to get the pricing page url for.
|
|
344
349
|
* @format GUID
|
|
@@ -347,10 +352,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
347
352
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
348
353
|
appPlanInfo?: AppPlanInfo;
|
|
349
354
|
}
|
|
350
|
-
|
|
355
|
+
interface GetPricingPageUrlResponse {
|
|
351
356
|
/**
|
|
352
357
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
353
358
|
* @format WEB_URL
|
|
354
359
|
*/
|
|
355
360
|
packagePickerUrl?: string | null;
|
|
356
361
|
}
|
|
362
|
+
|
|
363
|
+
export { type AppPlans as A, BillingSource as B, CycleType as C, DiscountType as D, type GetAvailableAppPlansRequest as G, type ListAppPlansByAppIdResponse as L, type Price as P, SaleType as S, TaxType as T, type UsageBasedDetails as U, SourceType as a, DurationUnit as b, type SaleSource as c, type Cycle as d, type Duration as e, type Discount as f, type DiscountSourceDataOneOf as g, type Plan as h, type ListAppPlansByAppIdRequest as i, type TaxSettings as j, type AppPlanInfo as k, type GetAvailableAppPlansResponse as l, type GetPricingPageUrlRequest as m, type GetPricingPageUrlResponse as n };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface AppPlans {
|
|
2
2
|
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
-
|
|
3
|
+
_id?: string;
|
|
4
4
|
/**
|
|
5
5
|
* List of the app's pricing plans.
|
|
6
6
|
*
|
|
@@ -10,7 +10,7 @@ export interface AppPlans {
|
|
|
10
10
|
*/
|
|
11
11
|
plans?: Plan[];
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare enum SaleType {
|
|
14
14
|
/** Default value, can be used when no specific sale is associated. */
|
|
15
15
|
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
16
16
|
CYBER_MONDAY = "CYBER_MONDAY",
|
|
@@ -19,8 +19,8 @@ export declare enum SaleType {
|
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
21
|
/** @enumType */
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
|
|
23
|
+
declare enum DiscountType {
|
|
24
24
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
25
25
|
/** Discount is a fixed amount in USD. */
|
|
26
26
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
@@ -28,8 +28,8 @@ export declare enum DiscountType {
|
|
|
28
28
|
PERCENTAGE = "PERCENTAGE"
|
|
29
29
|
}
|
|
30
30
|
/** @enumType */
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
32
|
+
declare enum SourceType {
|
|
33
33
|
/** Default value, can be used when no specific source is associated. */
|
|
34
34
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
35
35
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -38,15 +38,15 @@ export declare enum SourceType {
|
|
|
38
38
|
APP_BENEFIT = "APP_BENEFIT"
|
|
39
39
|
}
|
|
40
40
|
/** @enumType */
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
|
|
42
|
+
interface SaleSource {
|
|
43
43
|
/** @format GUID */
|
|
44
44
|
saleId?: string | null;
|
|
45
45
|
saleType?: SaleTypeWithLiterals;
|
|
46
46
|
startDate?: Date | null;
|
|
47
47
|
endDate?: Date | null;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
interface Cycle {
|
|
50
50
|
/**
|
|
51
51
|
* Type of the billing cycle.
|
|
52
52
|
*
|
|
@@ -58,7 +58,7 @@ export interface Cycle {
|
|
|
58
58
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
59
59
|
cycleDuration?: Duration;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
declare enum DurationUnit {
|
|
62
62
|
/** unknown interval unit */
|
|
63
63
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
64
64
|
/** month */
|
|
@@ -67,21 +67,21 @@ export declare enum DurationUnit {
|
|
|
67
67
|
YEAR = "YEAR"
|
|
68
68
|
}
|
|
69
69
|
/** @enumType */
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
71
|
+
declare enum CycleType {
|
|
72
72
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
73
73
|
ONE_TIME = "ONE_TIME",
|
|
74
74
|
RECURRING = "RECURRING"
|
|
75
75
|
}
|
|
76
76
|
/** @enumType */
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
78
|
+
interface Duration {
|
|
79
79
|
/** Unit of the billing cycle. */
|
|
80
80
|
unit?: DurationUnitWithLiterals;
|
|
81
81
|
/** Count of units that make up the billing cycle. */
|
|
82
82
|
count?: number;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
interface UsageBasedDetails {
|
|
85
85
|
/**
|
|
86
86
|
* Smallest possible amount that your app charges customers in usage-based
|
|
87
87
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -113,7 +113,7 @@ export interface UsageBasedDetails {
|
|
|
113
113
|
*/
|
|
114
114
|
customChargeDescription?: string | null;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
117
117
|
type?: DiscountTypeWithLiterals;
|
|
118
118
|
/**
|
|
119
119
|
* Discount amount
|
|
@@ -142,11 +142,16 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
142
142
|
* @maxLength 1024
|
|
143
143
|
*/
|
|
144
144
|
totalPrice?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Source of the discount.
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
sourceType?: SourceTypeWithLiterals;
|
|
145
150
|
}
|
|
146
151
|
/** @oneof */
|
|
147
|
-
|
|
152
|
+
interface DiscountSourceDataOneOf {
|
|
148
153
|
}
|
|
149
|
-
|
|
154
|
+
declare enum BillingSource {
|
|
150
155
|
UNKNOWN = "UNKNOWN",
|
|
151
156
|
/** plan billing and charges is managed by Wix */
|
|
152
157
|
WIX = "WIX",
|
|
@@ -154,8 +159,8 @@ export declare enum BillingSource {
|
|
|
154
159
|
EXTERNAL = "EXTERNAL"
|
|
155
160
|
}
|
|
156
161
|
/** @enumType */
|
|
157
|
-
|
|
158
|
-
|
|
162
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
163
|
+
interface Price {
|
|
159
164
|
/**
|
|
160
165
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
161
166
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -194,13 +199,13 @@ export interface Price {
|
|
|
194
199
|
*/
|
|
195
200
|
customPaymentTitle?: string | null;
|
|
196
201
|
}
|
|
197
|
-
|
|
202
|
+
interface Plan {
|
|
198
203
|
/**
|
|
199
204
|
* ID of the app plan.
|
|
200
205
|
* @format GUID
|
|
201
206
|
* @readonly
|
|
202
207
|
*/
|
|
203
|
-
|
|
208
|
+
_id?: string;
|
|
204
209
|
/**
|
|
205
210
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
206
211
|
* Identical to `vendorProductId` in the
|
|
@@ -230,7 +235,7 @@ export interface Plan {
|
|
|
230
235
|
*/
|
|
231
236
|
prices?: Price[];
|
|
232
237
|
}
|
|
233
|
-
|
|
238
|
+
interface ListAppPlansByAppIdRequest {
|
|
234
239
|
/**
|
|
235
240
|
* List of app IDs to retrieve plans for.
|
|
236
241
|
*
|
|
@@ -241,7 +246,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
241
246
|
*/
|
|
242
247
|
appIds: string[];
|
|
243
248
|
}
|
|
244
|
-
|
|
249
|
+
interface ListAppPlansByAppIdResponse {
|
|
245
250
|
/**
|
|
246
251
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
247
252
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -278,7 +283,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
278
283
|
*/
|
|
279
284
|
appPlans?: AppPlans[];
|
|
280
285
|
}
|
|
281
|
-
|
|
286
|
+
interface TaxSettings {
|
|
282
287
|
/**
|
|
283
288
|
* Whether you must display the total price including taxes in the given
|
|
284
289
|
* country.
|
|
@@ -299,14 +304,14 @@ export interface TaxSettings {
|
|
|
299
304
|
*/
|
|
300
305
|
taxType?: TaxTypeWithLiterals;
|
|
301
306
|
}
|
|
302
|
-
|
|
307
|
+
declare enum TaxType {
|
|
303
308
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
304
309
|
VAT = "VAT",
|
|
305
310
|
GST = "GST"
|
|
306
311
|
}
|
|
307
312
|
/** @enumType */
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
314
|
+
interface GetAvailableAppPlansRequest {
|
|
310
315
|
/**
|
|
311
316
|
* AppId to get the available app plans for.
|
|
312
317
|
* @format GUID
|
|
@@ -319,7 +324,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
319
324
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
320
325
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
321
326
|
*/
|
|
322
|
-
|
|
327
|
+
interface AppPlanInfo {
|
|
323
328
|
/**
|
|
324
329
|
* The app plan's vendorId to retrieve the response for.
|
|
325
330
|
*
|
|
@@ -330,7 +335,7 @@ export interface AppPlanInfo {
|
|
|
330
335
|
/** The app plan cycle to retrieve the response for. */
|
|
331
336
|
billingCycle?: Cycle;
|
|
332
337
|
}
|
|
333
|
-
|
|
338
|
+
interface GetAvailableAppPlansResponse {
|
|
334
339
|
/** The available upgrades for the given app plan. */
|
|
335
340
|
availableUpgrades?: AppPlans;
|
|
336
341
|
/** The available downgrades for the given app plan. */
|
|
@@ -338,7 +343,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
338
343
|
/** The current app plan. */
|
|
339
344
|
currentPlan?: Plan;
|
|
340
345
|
}
|
|
341
|
-
|
|
346
|
+
interface GetPricingPageUrlRequest {
|
|
342
347
|
/**
|
|
343
348
|
* AppId to get the pricing page url for.
|
|
344
349
|
* @format GUID
|
|
@@ -347,10 +352,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
347
352
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
348
353
|
appPlanInfo?: AppPlanInfo;
|
|
349
354
|
}
|
|
350
|
-
|
|
355
|
+
interface GetPricingPageUrlResponse {
|
|
351
356
|
/**
|
|
352
357
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
353
358
|
* @format WEB_URL
|
|
354
359
|
*/
|
|
355
360
|
packagePickerUrl?: string | null;
|
|
356
361
|
}
|
|
362
|
+
|
|
363
|
+
export { type AppPlans as A, BillingSource as B, CycleType as C, DiscountType as D, type GetAvailableAppPlansRequest as G, type ListAppPlansByAppIdResponse as L, type Price as P, SaleType as S, TaxType as T, type UsageBasedDetails as U, SourceType as a, DurationUnit as b, type SaleSource as c, type Cycle as d, type Duration as e, type Discount as f, type DiscountSourceDataOneOf as g, type Plan as h, type ListAppPlansByAppIdRequest as i, type TaxSettings as j, type AppPlanInfo as k, type GetAvailableAppPlansResponse as l, type GetPricingPageUrlRequest as m, type GetPricingPageUrlResponse as n };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal.
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function listAppPlansByAppId(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.mjs';
|
|
3
|
+
export { k as AppPlanInfo, A as AppPlans, B as BillingSource, d as Cycle, C as CycleType, f as Discount, g as DiscountSourceDataOneOf, D as DiscountType, e as Duration, b as DurationUnit, G as GetAvailableAppPlansRequest, l as GetAvailableAppPlansResponse, m as GetPricingPageUrlRequest, n as GetPricingPageUrlResponse, i as ListAppPlansByAppIdRequest, h as Plan, P as Price, c as SaleSource, S as SaleType, a as SourceType, j as TaxSettings, T as TaxType, U as UsageBasedDetails } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.mjs';
|
|
4
|
+
|
|
5
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
7
6
|
interface ListAppPlansByAppIdSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves plans for the given apps.
|
|
@@ -32,4 +31,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
32
31
|
*/
|
|
33
32
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse>;
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1>;
|
|
36
|
+
|
|
37
|
+
export { ListAppPlansByAppIdResponse, listAppPlansByAppId };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function listAppPlansByAppId(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.js';
|
|
3
|
+
export { k as AppPlanInfo, A as AppPlans, B as BillingSource, d as Cycle, C as CycleType, f as Discount, g as DiscountSourceDataOneOf, D as DiscountType, e as Duration, b as DurationUnit, G as GetAvailableAppPlansRequest, l as GetAvailableAppPlansResponse, m as GetPricingPageUrlRequest, n as GetPricingPageUrlResponse, i as ListAppPlansByAppIdRequest, h as Plan, P as Price, c as SaleSource, S as SaleType, a as SourceType, j as TaxSettings, T as TaxType, U as UsageBasedDetails } from './appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.js';
|
|
4
|
+
|
|
5
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
7
6
|
interface ListAppPlansByAppIdSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves plans for the given apps.
|
|
@@ -32,4 +31,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
32
31
|
*/
|
|
33
32
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse>;
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1>;
|
|
36
|
+
|
|
37
|
+
export { ListAppPlansByAppIdResponse, listAppPlansByAppId };
|