@wix/auto_sdk_app-management_app-plans 1.0.4 → 1.0.5
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-DosQn6bZ.d.mts} +28 -26
- package/build/{internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DosQn6bZ.d.ts} +28 -26
- 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/internal/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.mts} +33 -26
- package/build/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → internal/appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.ts} +33 -26
- 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 +289 -0
- package/build/internal/meta.d.ts +289 -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 +289 -0
- package/build/meta.d.ts +289 -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 -377
- 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 -377
- 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 -382
- 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 -382
- 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",
|
|
@@ -18,14 +18,14 @@ export declare enum SaleType {
|
|
|
18
18
|
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
declare enum DiscountType {
|
|
22
22
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
23
23
|
/** Discount is a fixed amount in USD. */
|
|
24
24
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
25
25
|
/** Discount is a percentage of the total price. */
|
|
26
26
|
PERCENTAGE = "PERCENTAGE"
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
declare enum SourceType {
|
|
29
29
|
/** Default value, can be used when no specific source is associated. */
|
|
30
30
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
31
31
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -33,14 +33,14 @@ export declare enum SourceType {
|
|
|
33
33
|
/** Discount is due to App Benefit */
|
|
34
34
|
APP_BENEFIT = "APP_BENEFIT"
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
interface SaleSource {
|
|
37
37
|
/** @format GUID */
|
|
38
38
|
saleId?: string | null;
|
|
39
39
|
saleType?: SaleType;
|
|
40
40
|
startDate?: Date | null;
|
|
41
41
|
endDate?: Date | null;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface Cycle {
|
|
44
44
|
/**
|
|
45
45
|
* Type of the billing cycle.
|
|
46
46
|
*
|
|
@@ -52,7 +52,7 @@ export interface Cycle {
|
|
|
52
52
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
53
53
|
cycleDuration?: Duration;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
declare enum DurationUnit {
|
|
56
56
|
/** unknown interval unit */
|
|
57
57
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
58
58
|
/** month */
|
|
@@ -60,18 +60,18 @@ export declare enum DurationUnit {
|
|
|
60
60
|
/** year */
|
|
61
61
|
YEAR = "YEAR"
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
declare enum CycleType {
|
|
64
64
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
65
65
|
ONE_TIME = "ONE_TIME",
|
|
66
66
|
RECURRING = "RECURRING"
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
interface Duration {
|
|
69
69
|
/** Unit of the billing cycle. */
|
|
70
70
|
unit?: DurationUnit;
|
|
71
71
|
/** Count of units that make up the billing cycle. */
|
|
72
72
|
count?: number;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface UsageBasedDetails {
|
|
75
75
|
/**
|
|
76
76
|
* Smallest possible amount that your app charges customers in usage-based
|
|
77
77
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -103,7 +103,7 @@ export interface UsageBasedDetails {
|
|
|
103
103
|
*/
|
|
104
104
|
customChargeDescription?: string | null;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
107
107
|
type?: DiscountType;
|
|
108
108
|
/**
|
|
109
109
|
* Discount amount
|
|
@@ -134,16 +134,16 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
134
134
|
totalPrice?: string;
|
|
135
135
|
}
|
|
136
136
|
/** @oneof */
|
|
137
|
-
|
|
137
|
+
interface DiscountSourceDataOneOf {
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
declare enum BillingSource {
|
|
140
140
|
UNKNOWN = "UNKNOWN",
|
|
141
141
|
/** plan billing and charges is managed by Wix */
|
|
142
142
|
WIX = "WIX",
|
|
143
143
|
/** plan billing and charges is managed by the app */
|
|
144
144
|
EXTERNAL = "EXTERNAL"
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface Price {
|
|
147
147
|
/**
|
|
148
148
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
149
149
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -182,13 +182,13 @@ export interface Price {
|
|
|
182
182
|
*/
|
|
183
183
|
customPaymentTitle?: string | null;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface Plan {
|
|
186
186
|
/**
|
|
187
187
|
* ID of the app plan.
|
|
188
188
|
* @format GUID
|
|
189
189
|
* @readonly
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
_id?: string;
|
|
192
192
|
/**
|
|
193
193
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
194
194
|
* Identical to `vendorProductId` in the
|
|
@@ -218,7 +218,7 @@ export interface Plan {
|
|
|
218
218
|
*/
|
|
219
219
|
prices?: Price[];
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
interface ListAppPlansByAppIdRequest {
|
|
222
222
|
/**
|
|
223
223
|
* List of app IDs to retrieve plans for.
|
|
224
224
|
*
|
|
@@ -229,7 +229,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
229
229
|
*/
|
|
230
230
|
appIds: string[];
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
interface ListAppPlansByAppIdResponse {
|
|
233
233
|
/**
|
|
234
234
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
235
235
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -266,7 +266,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
266
266
|
*/
|
|
267
267
|
appPlans?: AppPlans[];
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
interface TaxSettings {
|
|
270
270
|
/**
|
|
271
271
|
* Whether you must display the total price including taxes in the given
|
|
272
272
|
* country.
|
|
@@ -287,12 +287,12 @@ export interface TaxSettings {
|
|
|
287
287
|
*/
|
|
288
288
|
taxType?: TaxType;
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
declare enum TaxType {
|
|
291
291
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
292
292
|
VAT = "VAT",
|
|
293
293
|
GST = "GST"
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
interface GetAvailableAppPlansRequest {
|
|
296
296
|
/**
|
|
297
297
|
* AppId to get the available app plans for.
|
|
298
298
|
* @format GUID
|
|
@@ -305,7 +305,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
305
305
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
306
306
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
307
307
|
*/
|
|
308
|
-
|
|
308
|
+
interface AppPlanInfo {
|
|
309
309
|
/**
|
|
310
310
|
* The app plan's vendorId to retrieve the response for.
|
|
311
311
|
*
|
|
@@ -316,7 +316,7 @@ export interface AppPlanInfo {
|
|
|
316
316
|
/** The app plan cycle to retrieve the response for. */
|
|
317
317
|
billingCycle?: Cycle;
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
interface GetAvailableAppPlansResponse {
|
|
320
320
|
/** The available upgrades for the given app plan. */
|
|
321
321
|
availableUpgrades?: AppPlans;
|
|
322
322
|
/** The available downgrades for the given app plan. */
|
|
@@ -324,7 +324,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
324
324
|
/** The current app plan. */
|
|
325
325
|
currentPlan?: Plan;
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
interface GetPricingPageUrlRequest {
|
|
328
328
|
/**
|
|
329
329
|
* AppId to get the pricing page url for.
|
|
330
330
|
* @format GUID
|
|
@@ -333,10 +333,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
333
333
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
334
334
|
appPlanInfo?: AppPlanInfo;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
interface GetPricingPageUrlResponse {
|
|
337
337
|
/**
|
|
338
338
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
339
339
|
* @format WEB_URL
|
|
340
340
|
*/
|
|
341
341
|
packagePickerUrl?: string | null;
|
|
342
342
|
}
|
|
343
|
+
|
|
344
|
+
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",
|
|
@@ -18,14 +18,14 @@ export declare enum SaleType {
|
|
|
18
18
|
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
declare enum DiscountType {
|
|
22
22
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
23
23
|
/** Discount is a fixed amount in USD. */
|
|
24
24
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
25
25
|
/** Discount is a percentage of the total price. */
|
|
26
26
|
PERCENTAGE = "PERCENTAGE"
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
declare enum SourceType {
|
|
29
29
|
/** Default value, can be used when no specific source is associated. */
|
|
30
30
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
31
31
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -33,14 +33,14 @@ export declare enum SourceType {
|
|
|
33
33
|
/** Discount is due to App Benefit */
|
|
34
34
|
APP_BENEFIT = "APP_BENEFIT"
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
interface SaleSource {
|
|
37
37
|
/** @format GUID */
|
|
38
38
|
saleId?: string | null;
|
|
39
39
|
saleType?: SaleType;
|
|
40
40
|
startDate?: Date | null;
|
|
41
41
|
endDate?: Date | null;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface Cycle {
|
|
44
44
|
/**
|
|
45
45
|
* Type of the billing cycle.
|
|
46
46
|
*
|
|
@@ -52,7 +52,7 @@ export interface Cycle {
|
|
|
52
52
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
53
53
|
cycleDuration?: Duration;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
declare enum DurationUnit {
|
|
56
56
|
/** unknown interval unit */
|
|
57
57
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
58
58
|
/** month */
|
|
@@ -60,18 +60,18 @@ export declare enum DurationUnit {
|
|
|
60
60
|
/** year */
|
|
61
61
|
YEAR = "YEAR"
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
declare enum CycleType {
|
|
64
64
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
65
65
|
ONE_TIME = "ONE_TIME",
|
|
66
66
|
RECURRING = "RECURRING"
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
interface Duration {
|
|
69
69
|
/** Unit of the billing cycle. */
|
|
70
70
|
unit?: DurationUnit;
|
|
71
71
|
/** Count of units that make up the billing cycle. */
|
|
72
72
|
count?: number;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface UsageBasedDetails {
|
|
75
75
|
/**
|
|
76
76
|
* Smallest possible amount that your app charges customers in usage-based
|
|
77
77
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -103,7 +103,7 @@ export interface UsageBasedDetails {
|
|
|
103
103
|
*/
|
|
104
104
|
customChargeDescription?: string | null;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
107
107
|
type?: DiscountType;
|
|
108
108
|
/**
|
|
109
109
|
* Discount amount
|
|
@@ -134,16 +134,16 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
134
134
|
totalPrice?: string;
|
|
135
135
|
}
|
|
136
136
|
/** @oneof */
|
|
137
|
-
|
|
137
|
+
interface DiscountSourceDataOneOf {
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
declare enum BillingSource {
|
|
140
140
|
UNKNOWN = "UNKNOWN",
|
|
141
141
|
/** plan billing and charges is managed by Wix */
|
|
142
142
|
WIX = "WIX",
|
|
143
143
|
/** plan billing and charges is managed by the app */
|
|
144
144
|
EXTERNAL = "EXTERNAL"
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface Price {
|
|
147
147
|
/**
|
|
148
148
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
149
149
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -182,13 +182,13 @@ export interface Price {
|
|
|
182
182
|
*/
|
|
183
183
|
customPaymentTitle?: string | null;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface Plan {
|
|
186
186
|
/**
|
|
187
187
|
* ID of the app plan.
|
|
188
188
|
* @format GUID
|
|
189
189
|
* @readonly
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
_id?: string;
|
|
192
192
|
/**
|
|
193
193
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
194
194
|
* Identical to `vendorProductId` in the
|
|
@@ -218,7 +218,7 @@ export interface Plan {
|
|
|
218
218
|
*/
|
|
219
219
|
prices?: Price[];
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
interface ListAppPlansByAppIdRequest {
|
|
222
222
|
/**
|
|
223
223
|
* List of app IDs to retrieve plans for.
|
|
224
224
|
*
|
|
@@ -229,7 +229,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
229
229
|
*/
|
|
230
230
|
appIds: string[];
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
interface ListAppPlansByAppIdResponse {
|
|
233
233
|
/**
|
|
234
234
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
235
235
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -266,7 +266,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
266
266
|
*/
|
|
267
267
|
appPlans?: AppPlans[];
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
interface TaxSettings {
|
|
270
270
|
/**
|
|
271
271
|
* Whether you must display the total price including taxes in the given
|
|
272
272
|
* country.
|
|
@@ -287,12 +287,12 @@ export interface TaxSettings {
|
|
|
287
287
|
*/
|
|
288
288
|
taxType?: TaxType;
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
declare enum TaxType {
|
|
291
291
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
292
292
|
VAT = "VAT",
|
|
293
293
|
GST = "GST"
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
interface GetAvailableAppPlansRequest {
|
|
296
296
|
/**
|
|
297
297
|
* AppId to get the available app plans for.
|
|
298
298
|
* @format GUID
|
|
@@ -305,7 +305,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
305
305
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
306
306
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
307
307
|
*/
|
|
308
|
-
|
|
308
|
+
interface AppPlanInfo {
|
|
309
309
|
/**
|
|
310
310
|
* The app plan's vendorId to retrieve the response for.
|
|
311
311
|
*
|
|
@@ -316,7 +316,7 @@ export interface AppPlanInfo {
|
|
|
316
316
|
/** The app plan cycle to retrieve the response for. */
|
|
317
317
|
billingCycle?: Cycle;
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
interface GetAvailableAppPlansResponse {
|
|
320
320
|
/** The available upgrades for the given app plan. */
|
|
321
321
|
availableUpgrades?: AppPlans;
|
|
322
322
|
/** The available downgrades for the given app plan. */
|
|
@@ -324,7 +324,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
324
324
|
/** The current app plan. */
|
|
325
325
|
currentPlan?: Plan;
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
interface GetPricingPageUrlRequest {
|
|
328
328
|
/**
|
|
329
329
|
* AppId to get the pricing page url for.
|
|
330
330
|
* @format GUID
|
|
@@ -333,10 +333,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
333
333
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
334
334
|
appPlanInfo?: AppPlanInfo;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
interface GetPricingPageUrlResponse {
|
|
337
337
|
/**
|
|
338
338
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
339
339
|
* @format WEB_URL
|
|
340
340
|
*/
|
|
341
341
|
packagePickerUrl?: string | null;
|
|
342
342
|
}
|
|
343
|
+
|
|
344
|
+
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-DosQn6bZ.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-DosQn6bZ.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-DosQn6bZ.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-DosQn6bZ.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 };
|