@wix/auto_sdk_app-management_app-plans 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +5 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js +15 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +23 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js +147 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +15 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +47 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts +35 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js +20 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts +342 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js +59 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +372 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +136 -0
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +5 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js +5 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js.map +1 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +23 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js +143 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js.map +1 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +15 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js +20 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +1 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.d.ts +35 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js +9 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js.map +1 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.d.ts +342 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js +56 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +372 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js +109 -0
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +5 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js +15 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +23 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js +147 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +15 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +47 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts +35 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js +20 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts +344 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js +59 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +379 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +136 -0
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +5 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js +5 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +23 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js +143 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +15 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js +20 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.d.ts +35 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js +9 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.d.ts +344 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js +56 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +379 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js +109 -0
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listAppPlansByAppId = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
8
|
+
function resolveWixAppmarketAppPlansV1AppsPlansUrl(opts) {
|
|
9
|
+
const domainToMappings = {
|
|
10
|
+
'api._api_base_domain_': [
|
|
11
|
+
{
|
|
12
|
+
srcPath: '/apps-plans',
|
|
13
|
+
destPath: '',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
'manage._base_domain_': [
|
|
17
|
+
{
|
|
18
|
+
srcPath: '/_api/app-market/apps-plans',
|
|
19
|
+
destPath: '/api',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
srcPath: '/api/apps-plans',
|
|
23
|
+
destPath: '',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
srcPath: '/apps-plans',
|
|
27
|
+
destPath: '',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
'bo._base_domain_': [
|
|
31
|
+
{
|
|
32
|
+
srcPath: '/_api/apps-plans',
|
|
33
|
+
destPath: '',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: '/apps-plans',
|
|
37
|
+
destPath: '',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
'wixbo.ai': [
|
|
41
|
+
{
|
|
42
|
+
srcPath: '/_api/apps-plans',
|
|
43
|
+
destPath: '',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
srcPath: '/apps-plans',
|
|
47
|
+
destPath: '',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
'wix-bo.com': [
|
|
51
|
+
{
|
|
52
|
+
srcPath: '/_api/apps-plans',
|
|
53
|
+
destPath: '',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
srcPath: '/apps-plans',
|
|
57
|
+
destPath: '',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
'editor._base_domain_': [
|
|
61
|
+
{
|
|
62
|
+
srcPath: '/_api/apps-plans',
|
|
63
|
+
destPath: '',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
'blocks._base_domain_': [
|
|
67
|
+
{
|
|
68
|
+
srcPath: '/_api/apps-plans',
|
|
69
|
+
destPath: '',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
'create.editorx': [
|
|
73
|
+
{
|
|
74
|
+
srcPath: '/_api/apps-plans',
|
|
75
|
+
destPath: '',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
'www._base_domain_': [
|
|
79
|
+
{
|
|
80
|
+
srcPath: '/apps-plans',
|
|
81
|
+
destPath: '',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
srcPath: '/_api/apps-plans',
|
|
85
|
+
destPath: '',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
'www.wixapis.com': [
|
|
89
|
+
{
|
|
90
|
+
srcPath: '/apps-plans',
|
|
91
|
+
destPath: '',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
96
|
+
}
|
|
97
|
+
const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-plans';
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves plans for the given apps.
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
103
|
+
* based on the 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
104
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
105
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
106
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
107
|
+
* properly if you call through a VPN.
|
|
108
|
+
*
|
|
109
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
110
|
+
*
|
|
111
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
112
|
+
* For these plans this endpoint returns the price that the consumer must pay every
|
|
113
|
+
* month and not the total price for the entire year.
|
|
114
|
+
*
|
|
115
|
+
* > **Notes:**
|
|
116
|
+
* > - The App Plans API doesn't follow any tenancy model. You don't need any permissions to call `List App Plans by App ID`.
|
|
117
|
+
* > - This endpoint only returns app plans that have been activated. ([REST](https://dev.wix.com/docs/rest/app-management/app-billing/app-plans/introduction#before-you-begin)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/app-management/app-plans/introduction)).
|
|
118
|
+
*/
|
|
119
|
+
function listAppPlansByAppId(payload) {
|
|
120
|
+
function __listAppPlansByAppId({ host }) {
|
|
121
|
+
const metadata = {
|
|
122
|
+
entityFqdn: 'wix.appmarket.v1.app_plans',
|
|
123
|
+
method: 'GET',
|
|
124
|
+
methodFqn: 'wix.appmarket.app_plans.v1.AppsPlans.ListAppPlansByAppId',
|
|
125
|
+
packageName: PACKAGE_NAME,
|
|
126
|
+
url: resolveWixAppmarketAppPlansV1AppsPlansUrl({
|
|
127
|
+
protoPath: '/v1/apps-plans/{appIds}',
|
|
128
|
+
data: payload,
|
|
129
|
+
host,
|
|
130
|
+
}),
|
|
131
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
132
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
133
|
+
{
|
|
134
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
135
|
+
paths: [
|
|
136
|
+
{ path: 'appPlans.plans.prices.discount.saleOptions.startDate' },
|
|
137
|
+
{ path: 'appPlans.plans.prices.discount.saleOptions.endDate' },
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
]),
|
|
141
|
+
};
|
|
142
|
+
return metadata;
|
|
143
|
+
}
|
|
144
|
+
return __listAppPlansByAppId;
|
|
145
|
+
}
|
|
146
|
+
exports.listAppPlansByAppId = listAppPlansByAppId;
|
|
147
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.http.js","sourceRoot":"","sources":["../../../../src/appmarket-v1-app-plans-app-plans.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,yCAAyC,CAChD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,UAAU,EAAE;YACV;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,YAAY,EAAE;YACZ;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,wCAAwC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,mBAAmB,CACjC,OAAe;IAEf,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,0DAA0D;YACrE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,yCAAyC,CAAC;gBAC7C,SAAS,EAAE,yBAAyB;gBACpC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,sDAAsD,EAAE;wBAChE,EAAE,IAAI,EAAE,oDAAoD,EAAE;qBAC/D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AA/BD,kDA+BC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as ambassadorWixAppmarketV1AppPlansTypes from './appmarket-v1-app-plans-app-plans.types.js';
|
|
2
|
+
import * as ambassadorWixAppmarketV1AppPlansUniversalTypes from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function listAppPlansByAppId(): __PublicMethodMetaInfo<'GET', {
|
|
14
|
+
appIds: string;
|
|
15
|
+
}, ambassadorWixAppmarketV1AppPlansUniversalTypes.ListAppPlansByAppIdRequest, ambassadorWixAppmarketV1AppPlansTypes.ListAppPlansByAppIdRequest, ambassadorWixAppmarketV1AppPlansUniversalTypes.ListAppPlansByAppIdResponse & ambassadorWixAppmarketV1AppPlansUniversalTypes.ListAppPlansByAppIdResponseNonNullableFields, ambassadorWixAppmarketV1AppPlansTypes.ListAppPlansByAppIdResponse & ambassadorWixAppmarketV1AppPlansTypes.ListAppPlansByAppIdResponseNonNullableFields>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.listAppPlansByAppId = void 0;
|
|
27
|
+
const ambassadorWixAppmarketV1AppPlans = __importStar(require("./appmarket-v1-app-plans-app-plans.http.js"));
|
|
28
|
+
function listAppPlansByAppId() {
|
|
29
|
+
const payload = { appIds: ':appIds' };
|
|
30
|
+
const getRequestOptions = ambassadorWixAppmarketV1AppPlans.listAppPlansByAppId(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v1/apps-plans/{appIds}',
|
|
39
|
+
pathParams: { appIds: 'appIds' },
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.listAppPlansByAppId = listAppPlansByAppId;
|
|
47
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.meta.js","sourceRoot":"","sources":["../../../../src/appmarket-v1-app-plans-app-plans.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6GAA+F;AAsB/F,SAAgB,mBAAmB;IAUjC,MAAM,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,EAAS,CAAC;IAE7C,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAChC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,kDA8BC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { ListAppPlansByAppIdResponse, ListAppPlansByAppIdResponseNonNullableFields } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function listAppPlansByAppId(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
7
|
+
interface ListAppPlansByAppIdSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves plans for the given apps.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
13
|
+
* based on the 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
14
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
15
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
16
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
17
|
+
* properly if you call through a VPN.
|
|
18
|
+
*
|
|
19
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
20
|
+
*
|
|
21
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
22
|
+
* For these plans this endpoint returns the price that the consumer must pay every
|
|
23
|
+
* month and not the total price for the entire year.
|
|
24
|
+
*
|
|
25
|
+
* > **Notes:**
|
|
26
|
+
* > - The App Plans API doesn't follow any tenancy model. You don't need any permissions to call `List App Plans by App ID`.
|
|
27
|
+
* > - This endpoint only returns app plans that have been activated. ([REST](https://dev.wix.com/docs/rest/app-management/app-billing/app-plans/introduction#before-you-begin)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/app-management/app-plans/introduction)).
|
|
28
|
+
* @param - List of app IDs to retrieve plans for.
|
|
29
|
+
*
|
|
30
|
+
* Min: 1 app ID
|
|
31
|
+
* Max: 100 app IDs
|
|
32
|
+
*/
|
|
33
|
+
(appIds: string[]): Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
34
|
+
}
|
|
35
|
+
export { AppPlanInfo, AppPlans, BillingSource, Cycle, CycleType, Discount, DiscountSourceDataOneOf, DiscountType, Duration, DurationUnit, GetAvailableAppPlansRequest, GetAvailableAppPlansResponse, GetPricingPageUrlRequest, GetPricingPageUrlResponse, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse, ListAppPlansByAppIdResponseNonNullableFields, Plan, Price, SaleSource, SaleType, SourceType, TaxSettings, TaxType, UsageBasedDetails, } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxType = exports.SourceType = exports.SaleType = exports.DurationUnit = exports.DiscountType = exports.CycleType = exports.BillingSource = exports.listAppPlansByAppId = exports.__metadata = void 0;
|
|
4
|
+
const appmarket_v1_app_plans_app_plans_universal_js_1 = require("./appmarket-v1-app-plans-app-plans.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/app-management' };
|
|
6
|
+
function listAppPlansByAppId(httpClient) {
|
|
7
|
+
return (appIds) => (0, appmarket_v1_app_plans_app_plans_universal_js_1.listAppPlansByAppId)(appIds,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.listAppPlansByAppId = listAppPlansByAppId;
|
|
12
|
+
var appmarket_v1_app_plans_app_plans_universal_js_2 = require("./appmarket-v1-app-plans-app-plans.universal.js");
|
|
13
|
+
Object.defineProperty(exports, "BillingSource", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.BillingSource; } });
|
|
14
|
+
Object.defineProperty(exports, "CycleType", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.CycleType; } });
|
|
15
|
+
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.DiscountType; } });
|
|
16
|
+
Object.defineProperty(exports, "DurationUnit", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.DurationUnit; } });
|
|
17
|
+
Object.defineProperty(exports, "SaleType", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.SaleType; } });
|
|
18
|
+
Object.defineProperty(exports, "SourceType", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.SourceType; } });
|
|
19
|
+
Object.defineProperty(exports, "TaxType", { enumerable: true, get: function () { return appmarket_v1_app_plans_app_plans_universal_js_2.TaxType; } });
|
|
20
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.public.js","sourceRoot":"","sources":["../../../../src/appmarket-v1-app-plans-app-plans.public.ts"],"names":[],"mappings":";;;AACA,mHAIyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,MAAgB,EAAE,EAAE,CAC1B,IAAA,mEAA4B,EAC1B,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,kDASC;AAiCD,iHA0ByD;AAvBvD,8IAAA,aAAa,OAAA;AAEb,0IAAA,SAAS,OAAA;AAGT,6IAAA,YAAY,OAAA;AAEZ,6IAAA,YAAY,OAAA;AAWZ,yIAAA,QAAQ,OAAA;AACR,2IAAA,UAAU,OAAA;AAEV,wIAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
export interface AppPlans {
|
|
2
|
+
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
+
id?: string;
|
|
4
|
+
/**
|
|
5
|
+
* List of the app's pricing plans.
|
|
6
|
+
*
|
|
7
|
+
* Min: `0` plans
|
|
8
|
+
* Max: `50` plans
|
|
9
|
+
*/
|
|
10
|
+
plans?: Plan[];
|
|
11
|
+
}
|
|
12
|
+
export declare enum SaleType {
|
|
13
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
14
|
+
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
15
|
+
CYBER_MONDAY = "CYBER_MONDAY",
|
|
16
|
+
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
17
|
+
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
18
|
+
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
19
|
+
}
|
|
20
|
+
export declare enum DiscountType {
|
|
21
|
+
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
22
|
+
/** Discount is a fixed amount in USD. */
|
|
23
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
24
|
+
/** Discount is a percentage of the total price. */
|
|
25
|
+
PERCENTAGE = "PERCENTAGE"
|
|
26
|
+
}
|
|
27
|
+
export declare enum SourceType {
|
|
28
|
+
/** Default value, can be used when no specific source is associated. */
|
|
29
|
+
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
30
|
+
/** Discount is due to Wix/Developer Sale */
|
|
31
|
+
SALE = "SALE",
|
|
32
|
+
/** Discount is due to App Benefit */
|
|
33
|
+
APP_BENEFIT = "APP_BENEFIT"
|
|
34
|
+
}
|
|
35
|
+
export interface SaleSource {
|
|
36
|
+
saleId?: string | null;
|
|
37
|
+
saleType?: SaleType;
|
|
38
|
+
startDate?: Date | null;
|
|
39
|
+
endDate?: Date | null;
|
|
40
|
+
}
|
|
41
|
+
export interface Cycle {
|
|
42
|
+
/**
|
|
43
|
+
* Type of the billing cycle.
|
|
44
|
+
*
|
|
45
|
+
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
46
|
+
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
47
|
+
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
48
|
+
*/
|
|
49
|
+
cycleType?: CycleType;
|
|
50
|
+
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
51
|
+
cycleDuration?: Duration;
|
|
52
|
+
}
|
|
53
|
+
export declare enum DurationUnit {
|
|
54
|
+
/** unknown interval unit */
|
|
55
|
+
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
56
|
+
/** month */
|
|
57
|
+
MONTH = "MONTH",
|
|
58
|
+
/** year */
|
|
59
|
+
YEAR = "YEAR"
|
|
60
|
+
}
|
|
61
|
+
export declare enum CycleType {
|
|
62
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
63
|
+
ONE_TIME = "ONE_TIME",
|
|
64
|
+
RECURRING = "RECURRING"
|
|
65
|
+
}
|
|
66
|
+
export interface Duration {
|
|
67
|
+
/** Unit of the billing cycle. */
|
|
68
|
+
unit?: DurationUnit;
|
|
69
|
+
/** Count of units that make up the billing cycle. */
|
|
70
|
+
count?: number;
|
|
71
|
+
}
|
|
72
|
+
export interface UsageBasedDetails {
|
|
73
|
+
/**
|
|
74
|
+
* Smallest possible amount that your app charges customers in usage-based
|
|
75
|
+
* pricing. For example, the price of a single SMS message if your
|
|
76
|
+
* app charges customers for sending text messages. Always in
|
|
77
|
+
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
78
|
+
*
|
|
79
|
+
* Min: `0.00`
|
|
80
|
+
* Max: 1024 characters
|
|
81
|
+
*/
|
|
82
|
+
minimumChargeIncrement?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Recurring, monthly base fee in usage-based pricing that your app
|
|
85
|
+
* charges customers regardless of how much they use your app.
|
|
86
|
+
*
|
|
87
|
+
* Min: `0.00`
|
|
88
|
+
* Max: 1024 characters
|
|
89
|
+
*/
|
|
90
|
+
monthlyBaseFee?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Description of the usage-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
93
|
+
*
|
|
94
|
+
* Max: 1024 characters
|
|
95
|
+
*/
|
|
96
|
+
customChargeDescription?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export interface Discount extends DiscountSourceDataOneOf {
|
|
99
|
+
type?: DiscountType;
|
|
100
|
+
/** Discount amount */
|
|
101
|
+
amount?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
104
|
+
* average price per month. You can get the full price by multiplying the
|
|
105
|
+
* returned price with 12.
|
|
106
|
+
* Min: `0.00`
|
|
107
|
+
* Max: 1024 characters
|
|
108
|
+
*/
|
|
109
|
+
priceBeforeTax?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Total price including taxes.
|
|
112
|
+
* Min: `0.00`
|
|
113
|
+
* Max: 1024 characters
|
|
114
|
+
*/
|
|
115
|
+
totalPrice?: string;
|
|
116
|
+
}
|
|
117
|
+
/** @oneof */
|
|
118
|
+
export interface DiscountSourceDataOneOf {
|
|
119
|
+
}
|
|
120
|
+
export declare enum BillingSource {
|
|
121
|
+
UNKNOWN = "UNKNOWN",
|
|
122
|
+
/** plan billing and charges is managed by Wix */
|
|
123
|
+
WIX = "WIX",
|
|
124
|
+
/** plan billing and charges is managed by the app */
|
|
125
|
+
EXTERNAL = "EXTERNAL"
|
|
126
|
+
}
|
|
127
|
+
export interface Price {
|
|
128
|
+
/**
|
|
129
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
130
|
+
* average price per month. You can get the full price by multiplying the
|
|
131
|
+
* returned price by 12.
|
|
132
|
+
*
|
|
133
|
+
* Min: `0.00`
|
|
134
|
+
* Max: 1024 characters
|
|
135
|
+
*/
|
|
136
|
+
priceBeforeTax?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Total price including taxes.
|
|
139
|
+
*
|
|
140
|
+
* Min: `0.00`
|
|
141
|
+
* Max: 1024 characters
|
|
142
|
+
*/
|
|
143
|
+
totalPrice?: string;
|
|
144
|
+
/** Information about the plan's recurring billing cycle or single payment. */
|
|
145
|
+
billingCycle?: Cycle;
|
|
146
|
+
/**
|
|
147
|
+
* Details about the plan's usage-based pricing.
|
|
148
|
+
* Available only for plans with
|
|
149
|
+
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
150
|
+
*/
|
|
151
|
+
usageBaseOptions?: UsageBasedDetails;
|
|
152
|
+
discount?: Discount;
|
|
153
|
+
billingSource?: BillingSource;
|
|
154
|
+
/** Can be shown instead of plan price - used for dynamic plans */
|
|
155
|
+
customPaymentTitle?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export interface Plan {
|
|
158
|
+
/**
|
|
159
|
+
* ID of the app plan.
|
|
160
|
+
* @readonly
|
|
161
|
+
*/
|
|
162
|
+
id?: string;
|
|
163
|
+
/**
|
|
164
|
+
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
165
|
+
* Identical to `vendorProductId` in the
|
|
166
|
+
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
167
|
+
*/
|
|
168
|
+
vendorId?: string;
|
|
169
|
+
/** 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). */
|
|
170
|
+
name?: string;
|
|
171
|
+
/**
|
|
172
|
+
* 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).
|
|
173
|
+
* Currently, the benefits are available only in English.
|
|
174
|
+
*
|
|
175
|
+
* Min: `0` benefits
|
|
176
|
+
* Max: `4` benefits
|
|
177
|
+
* Max per benefit: 1024 characters
|
|
178
|
+
*/
|
|
179
|
+
benefits?: string[];
|
|
180
|
+
/**
|
|
181
|
+
* List of the plan's prices. Available only when the plan's prices are managed
|
|
182
|
+
* by Wix and not externally.
|
|
183
|
+
*
|
|
184
|
+
* Min: `0` prices
|
|
185
|
+
* Max: `10` prices
|
|
186
|
+
*/
|
|
187
|
+
prices?: Price[];
|
|
188
|
+
}
|
|
189
|
+
export interface ListAppPlansByAppIdRequest {
|
|
190
|
+
/**
|
|
191
|
+
* List of app IDs to retrieve plans for.
|
|
192
|
+
*
|
|
193
|
+
* Min: 1 app ID
|
|
194
|
+
* Max: 100 app IDs
|
|
195
|
+
*/
|
|
196
|
+
appIds: string[];
|
|
197
|
+
}
|
|
198
|
+
export interface ListAppPlansByAppIdResponse {
|
|
199
|
+
/**
|
|
200
|
+
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
201
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
202
|
+
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
203
|
+
* tax settings may not resolve properly if you call through a VPN.
|
|
204
|
+
*/
|
|
205
|
+
taxSettings?: TaxSettings;
|
|
206
|
+
/**
|
|
207
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
208
|
+
* format. Wix calculates the currency based on the country code that
|
|
209
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
210
|
+
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
211
|
+
* currency may not resolve properly if you call through a VPN.
|
|
212
|
+
*/
|
|
213
|
+
currency?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
216
|
+
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
217
|
+
* country code that you pass in the call's header. If you don't pass a country
|
|
218
|
+
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
219
|
+
* address. Note that the currency symbol may not resolve properly if you call
|
|
220
|
+
* through a VPN.
|
|
221
|
+
*/
|
|
222
|
+
currencySymbol?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Retrieved app plans.
|
|
225
|
+
*
|
|
226
|
+
* Min: 0 plans
|
|
227
|
+
* Max: 50 plans
|
|
228
|
+
*
|
|
229
|
+
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
230
|
+
*/
|
|
231
|
+
appPlans?: AppPlans[];
|
|
232
|
+
}
|
|
233
|
+
export interface TaxSettings {
|
|
234
|
+
/**
|
|
235
|
+
* Whether you must display the total price including taxes in the given
|
|
236
|
+
* country.
|
|
237
|
+
*/
|
|
238
|
+
showPriceWithTax?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Tax rate for the given country as percentage. Returned as `0` when
|
|
241
|
+
* `{"showPriceWithTax": false}`.
|
|
242
|
+
*/
|
|
243
|
+
percentage?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Type of tax required in the given country.
|
|
246
|
+
*
|
|
247
|
+
* + `"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.
|
|
248
|
+
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
249
|
+
* + `"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).
|
|
250
|
+
*/
|
|
251
|
+
taxType?: TaxType;
|
|
252
|
+
}
|
|
253
|
+
export declare enum TaxType {
|
|
254
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
255
|
+
VAT = "VAT",
|
|
256
|
+
GST = "GST"
|
|
257
|
+
}
|
|
258
|
+
export interface GetAvailableAppPlansRequest {
|
|
259
|
+
/** AppId to get the available app plans for. */
|
|
260
|
+
appId?: string;
|
|
261
|
+
/** The specific app plan info to retrieve the available app plans for. */
|
|
262
|
+
appPlanInfo?: AppPlanInfo;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
266
|
+
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
267
|
+
*/
|
|
268
|
+
export interface AppPlanInfo {
|
|
269
|
+
/**
|
|
270
|
+
* The app plan's vendorId to retrieve the response for.
|
|
271
|
+
*
|
|
272
|
+
* Max: 100 characters
|
|
273
|
+
*/
|
|
274
|
+
vendorId?: string;
|
|
275
|
+
/** The app plan cycle to retrieve the response for. */
|
|
276
|
+
billingCycle?: Cycle;
|
|
277
|
+
}
|
|
278
|
+
export interface GetAvailableAppPlansResponse {
|
|
279
|
+
/** The available upgrades for the given app plan. */
|
|
280
|
+
availableUpgrades?: AppPlans;
|
|
281
|
+
/** The available downgrades for the given app plan. */
|
|
282
|
+
availableDowngrades?: AppPlans;
|
|
283
|
+
/** The current app plan. */
|
|
284
|
+
currentPlan?: Plan;
|
|
285
|
+
}
|
|
286
|
+
export interface GetPricingPageUrlRequest {
|
|
287
|
+
/** AppId to get the pricing page url for. */
|
|
288
|
+
appId?: string;
|
|
289
|
+
/** The specific app plan to retrieve the pricing page url for. */
|
|
290
|
+
appPlanInfo?: AppPlanInfo;
|
|
291
|
+
}
|
|
292
|
+
export interface GetPricingPageUrlResponse {
|
|
293
|
+
/** the pricing page url, if there is a app plan that is upgradable. */
|
|
294
|
+
packagePickerUrl?: string | null;
|
|
295
|
+
}
|
|
296
|
+
interface TaxSettingsNonNullableFields {
|
|
297
|
+
showPriceWithTax: boolean;
|
|
298
|
+
taxType: TaxType;
|
|
299
|
+
}
|
|
300
|
+
interface DurationNonNullableFields {
|
|
301
|
+
unit: DurationUnit;
|
|
302
|
+
count: number;
|
|
303
|
+
}
|
|
304
|
+
interface CycleNonNullableFields {
|
|
305
|
+
cycleType: CycleType;
|
|
306
|
+
cycleDuration?: DurationNonNullableFields;
|
|
307
|
+
}
|
|
308
|
+
interface SaleSourceNonNullableFields {
|
|
309
|
+
saleType: SaleType;
|
|
310
|
+
}
|
|
311
|
+
interface DiscountNonNullableFields {
|
|
312
|
+
saleOptions?: SaleSourceNonNullableFields;
|
|
313
|
+
type: DiscountType;
|
|
314
|
+
amount: string;
|
|
315
|
+
priceBeforeTax: string;
|
|
316
|
+
totalPrice: string;
|
|
317
|
+
/** @internal */
|
|
318
|
+
sourceType: SourceType;
|
|
319
|
+
}
|
|
320
|
+
interface PriceNonNullableFields {
|
|
321
|
+
priceBeforeTax: string;
|
|
322
|
+
totalPrice: string;
|
|
323
|
+
billingCycle?: CycleNonNullableFields;
|
|
324
|
+
discount?: DiscountNonNullableFields;
|
|
325
|
+
billingSource: BillingSource;
|
|
326
|
+
}
|
|
327
|
+
interface PlanNonNullableFields {
|
|
328
|
+
id: string;
|
|
329
|
+
vendorId: string;
|
|
330
|
+
name: string;
|
|
331
|
+
benefits: string[];
|
|
332
|
+
prices: PriceNonNullableFields[];
|
|
333
|
+
}
|
|
334
|
+
interface AppPlansNonNullableFields {
|
|
335
|
+
id: string;
|
|
336
|
+
plans: PlanNonNullableFields[];
|
|
337
|
+
}
|
|
338
|
+
export interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
339
|
+
taxSettings?: TaxSettingsNonNullableFields;
|
|
340
|
+
currency: string;
|
|
341
|
+
currencySymbol: string;
|
|
342
|
+
appPlans: AppPlansNonNullableFields[];
|
|
343
|
+
}
|
|
344
|
+
export {};
|