@wix/auto_sdk_app-management_app-plans 1.0.7 → 1.0.8
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/{index.d.ts → cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts} +7 -9
- 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/{appmarket-v1-app-plans-app-plans.universal-DosQn6bZ.d.mts → cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts} +26 -28
- 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 +377 -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/{internal/index.d.ts → es/src/appmarket-v1-app-plans-app-plans.public.d.ts} +7 -9
- 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/{appmarket-v1-app-plans-app-plans.universal-DosQn6bZ.d.ts → es/src/appmarket-v1-app-plans-app-plans.types.d.ts} +26 -28
- 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 +377 -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/{index.d.mts → cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts} +7 -9
- 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/{appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.mts → cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts} +26 -33
- 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 +382 -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/{index.d.mts → internal/es/src/appmarket-v1-app-plans-app-plans.public.d.ts} +7 -9
- 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/{appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.ts → es/src/appmarket-v1-app-plans-app-plans.types.d.ts} +26 -33
- 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 +382 -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/package.json +11 -12
- package/build/index.js +0 -253
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -222
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -253
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -222
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -289
- package/build/internal/meta.d.ts +0 -289
- package/build/internal/meta.js +0 -173
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -146
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -289
- package/build/meta.d.ts +0 -289
- package/build/meta.js +0 -173
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -146
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxType = exports.BillingSource = exports.CycleType = exports.DurationUnit = exports.SourceType = exports.DiscountType = exports.SaleType = void 0;
|
|
4
|
+
var SaleType;
|
|
5
|
+
(function (SaleType) {
|
|
6
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
7
|
+
SaleType["SALE_TYPE_UNSPECIFIED"] = "SALE_TYPE_UNSPECIFIED";
|
|
8
|
+
SaleType["CYBER_MONDAY"] = "CYBER_MONDAY";
|
|
9
|
+
SaleType["NOVEMBER_SALE"] = "NOVEMBER_SALE";
|
|
10
|
+
SaleType["BLACK_FRIDAY"] = "BLACK_FRIDAY";
|
|
11
|
+
SaleType["DEVELOPER_SALE"] = "DEVELOPER_SALE";
|
|
12
|
+
})(SaleType || (exports.SaleType = SaleType = {}));
|
|
13
|
+
var DiscountType;
|
|
14
|
+
(function (DiscountType) {
|
|
15
|
+
DiscountType["DISCOUNT_TYPE_UNSPECIFIED"] = "DISCOUNT_TYPE_UNSPECIFIED";
|
|
16
|
+
/** Discount is a fixed amount in USD. */
|
|
17
|
+
DiscountType["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
18
|
+
/** Discount is a percentage of the total price. */
|
|
19
|
+
DiscountType["PERCENTAGE"] = "PERCENTAGE";
|
|
20
|
+
})(DiscountType || (exports.DiscountType = DiscountType = {}));
|
|
21
|
+
var SourceType;
|
|
22
|
+
(function (SourceType) {
|
|
23
|
+
/** Default value, can be used when no specific source is associated. */
|
|
24
|
+
SourceType["SOURCE_TYPE_UNSPECIFIED"] = "SOURCE_TYPE_UNSPECIFIED";
|
|
25
|
+
/** Discount is due to Wix/Developer Sale */
|
|
26
|
+
SourceType["SALE"] = "SALE";
|
|
27
|
+
/** Discount is due to App Benefit */
|
|
28
|
+
SourceType["APP_BENEFIT"] = "APP_BENEFIT";
|
|
29
|
+
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
30
|
+
var DurationUnit;
|
|
31
|
+
(function (DurationUnit) {
|
|
32
|
+
/** unknown interval unit */
|
|
33
|
+
DurationUnit["UNKNOWN_UNIT"] = "UNKNOWN_UNIT";
|
|
34
|
+
/** month */
|
|
35
|
+
DurationUnit["MONTH"] = "MONTH";
|
|
36
|
+
/** year */
|
|
37
|
+
DurationUnit["YEAR"] = "YEAR";
|
|
38
|
+
})(DurationUnit || (exports.DurationUnit = DurationUnit = {}));
|
|
39
|
+
var CycleType;
|
|
40
|
+
(function (CycleType) {
|
|
41
|
+
CycleType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
42
|
+
CycleType["ONE_TIME"] = "ONE_TIME";
|
|
43
|
+
CycleType["RECURRING"] = "RECURRING";
|
|
44
|
+
})(CycleType || (exports.CycleType = CycleType = {}));
|
|
45
|
+
var BillingSource;
|
|
46
|
+
(function (BillingSource) {
|
|
47
|
+
BillingSource["UNKNOWN"] = "UNKNOWN";
|
|
48
|
+
/** plan billing and charges is managed by Wix */
|
|
49
|
+
BillingSource["WIX"] = "WIX";
|
|
50
|
+
/** plan billing and charges is managed by the app */
|
|
51
|
+
BillingSource["EXTERNAL"] = "EXTERNAL";
|
|
52
|
+
})(BillingSource || (exports.BillingSource = BillingSource = {}));
|
|
53
|
+
var TaxType;
|
|
54
|
+
(function (TaxType) {
|
|
55
|
+
TaxType["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
56
|
+
TaxType["VAT"] = "VAT";
|
|
57
|
+
TaxType["GST"] = "GST";
|
|
58
|
+
})(TaxType || (exports.TaxType = TaxType = {}));
|
|
59
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.types.js","sourceRoot":"","sources":["../../../src/appmarket-v1-app-plans-app-plans.types.ts"],"names":[],"mappings":";;;AAaA,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,sEAAsE;IACtE,2DAA+C,CAAA;IAC/C,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,yCAA6B,CAAA;IAC7B,6CAAiC,CAAA;AACnC,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,yCAAyC;IACzC,6CAA6B,CAAA;IAC7B,mDAAmD;IACnD,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,wEAAwE;IACxE,iEAAmD,CAAA;IACnD,4CAA4C;IAC5C,2BAAa,CAAA;IACb,qCAAqC;IACrC,yCAA2B,CAAA;AAC7B,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAuBD,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,4BAA4B;IAC5B,6CAA6B,CAAA;IAC7B,YAAY;IACZ,+BAAe,CAAA;IACf,WAAW;IACX,6BAAa,CAAA;AACf,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AACzB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AA4ED,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,iDAAiD;IACjD,4BAAW,CAAA;IACX,qDAAqD;IACrD,sCAAqB,CAAA;AACvB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAuJD,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,4CAAiC,CAAA;IACjC,sBAAW,CAAA;IACX,sBAAW,CAAA;AACb,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB"}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
export interface AppPlans {
|
|
3
|
+
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
4
|
+
_id?: string;
|
|
5
|
+
/**
|
|
6
|
+
* List of the app's pricing plans.
|
|
7
|
+
*
|
|
8
|
+
* Min: `0` plans
|
|
9
|
+
* Max: `50` plans
|
|
10
|
+
* @maxSize 50
|
|
11
|
+
*/
|
|
12
|
+
plans?: Plan[];
|
|
13
|
+
}
|
|
14
|
+
export declare enum SaleType {
|
|
15
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
16
|
+
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
17
|
+
CYBER_MONDAY = "CYBER_MONDAY",
|
|
18
|
+
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
19
|
+
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
20
|
+
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
21
|
+
}
|
|
22
|
+
export declare enum DiscountType {
|
|
23
|
+
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
24
|
+
/** Discount is a fixed amount in USD. */
|
|
25
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
26
|
+
/** Discount is a percentage of the total price. */
|
|
27
|
+
PERCENTAGE = "PERCENTAGE"
|
|
28
|
+
}
|
|
29
|
+
export declare enum SourceType {
|
|
30
|
+
/** Default value, can be used when no specific source is associated. */
|
|
31
|
+
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
32
|
+
/** Discount is due to Wix/Developer Sale */
|
|
33
|
+
SALE = "SALE",
|
|
34
|
+
/** Discount is due to App Benefit */
|
|
35
|
+
APP_BENEFIT = "APP_BENEFIT"
|
|
36
|
+
}
|
|
37
|
+
export interface SaleSource {
|
|
38
|
+
/** @format GUID */
|
|
39
|
+
saleId?: string | null;
|
|
40
|
+
saleType?: SaleType;
|
|
41
|
+
startDate?: Date | null;
|
|
42
|
+
endDate?: Date | null;
|
|
43
|
+
}
|
|
44
|
+
export interface Cycle {
|
|
45
|
+
/**
|
|
46
|
+
* Type of the billing cycle.
|
|
47
|
+
*
|
|
48
|
+
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
49
|
+
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
50
|
+
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
51
|
+
*/
|
|
52
|
+
cycleType?: CycleType;
|
|
53
|
+
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
54
|
+
cycleDuration?: Duration;
|
|
55
|
+
}
|
|
56
|
+
export declare enum DurationUnit {
|
|
57
|
+
/** unknown interval unit */
|
|
58
|
+
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
59
|
+
/** month */
|
|
60
|
+
MONTH = "MONTH",
|
|
61
|
+
/** year */
|
|
62
|
+
YEAR = "YEAR"
|
|
63
|
+
}
|
|
64
|
+
export declare enum CycleType {
|
|
65
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
66
|
+
ONE_TIME = "ONE_TIME",
|
|
67
|
+
RECURRING = "RECURRING"
|
|
68
|
+
}
|
|
69
|
+
export interface Duration {
|
|
70
|
+
/** Unit of the billing cycle. */
|
|
71
|
+
unit?: DurationUnit;
|
|
72
|
+
/** Count of units that make up the billing cycle. */
|
|
73
|
+
count?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface UsageBasedDetails {
|
|
76
|
+
/**
|
|
77
|
+
* Smallest possible amount that your app charges customers in usage-based
|
|
78
|
+
* pricing. For example, the price of a single SMS message if your
|
|
79
|
+
* app charges customers for sending text messages. Always in
|
|
80
|
+
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
81
|
+
*
|
|
82
|
+
* Min: `0.00`
|
|
83
|
+
* Max: 1024 characters
|
|
84
|
+
* @format DECIMAL_VALUE
|
|
85
|
+
* @decimalValue options { gte:0.00 }
|
|
86
|
+
* @maxLength 1024
|
|
87
|
+
*/
|
|
88
|
+
minimumChargeIncrement?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Recurring, monthly base fee in usage-based pricing that your app
|
|
91
|
+
* charges customers regardless of how much they use your app.
|
|
92
|
+
*
|
|
93
|
+
* Min: `0.00`
|
|
94
|
+
* Max: 1024 characters
|
|
95
|
+
* @format DECIMAL_VALUE
|
|
96
|
+
* @decimalValue options { gte:0.00 }
|
|
97
|
+
* @maxLength 1024
|
|
98
|
+
*/
|
|
99
|
+
monthlyBaseFee?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Description of the usage-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
102
|
+
*
|
|
103
|
+
* Max: 1024 characters
|
|
104
|
+
*/
|
|
105
|
+
customChargeDescription?: string | null;
|
|
106
|
+
}
|
|
107
|
+
export interface Discount extends DiscountSourceDataOneOf {
|
|
108
|
+
type?: DiscountType;
|
|
109
|
+
/**
|
|
110
|
+
* Discount amount
|
|
111
|
+
* @format DECIMAL_VALUE
|
|
112
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
113
|
+
* @maxLength 1024
|
|
114
|
+
*/
|
|
115
|
+
amount?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
118
|
+
* average price per month. You can get the full price by multiplying the
|
|
119
|
+
* returned price with 12.
|
|
120
|
+
* Min: `0.00`
|
|
121
|
+
* Max: 1024 characters
|
|
122
|
+
* @format DECIMAL_VALUE
|
|
123
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
124
|
+
* @maxLength 1024
|
|
125
|
+
*/
|
|
126
|
+
priceBeforeTax?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Total price including taxes.
|
|
129
|
+
* Min: `0.00`
|
|
130
|
+
* Max: 1024 characters
|
|
131
|
+
* @format DECIMAL_VALUE
|
|
132
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
133
|
+
* @maxLength 1024
|
|
134
|
+
*/
|
|
135
|
+
totalPrice?: string;
|
|
136
|
+
}
|
|
137
|
+
/** @oneof */
|
|
138
|
+
export interface DiscountSourceDataOneOf {
|
|
139
|
+
}
|
|
140
|
+
export declare enum BillingSource {
|
|
141
|
+
UNKNOWN = "UNKNOWN",
|
|
142
|
+
/** plan billing and charges is managed by Wix */
|
|
143
|
+
WIX = "WIX",
|
|
144
|
+
/** plan billing and charges is managed by the app */
|
|
145
|
+
EXTERNAL = "EXTERNAL"
|
|
146
|
+
}
|
|
147
|
+
export interface Price {
|
|
148
|
+
/**
|
|
149
|
+
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
150
|
+
* average price per month. You can get the full price by multiplying the
|
|
151
|
+
* returned price by 12.
|
|
152
|
+
*
|
|
153
|
+
* Min: `0.00`
|
|
154
|
+
* Max: 1024 characters
|
|
155
|
+
* @format DECIMAL_VALUE
|
|
156
|
+
* @decimalValue options { gte:0.00 }
|
|
157
|
+
* @maxLength 1024
|
|
158
|
+
*/
|
|
159
|
+
priceBeforeTax?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Total price including taxes.
|
|
162
|
+
*
|
|
163
|
+
* Min: `0.00`
|
|
164
|
+
* Max: 1024 characters
|
|
165
|
+
* @format DECIMAL_VALUE
|
|
166
|
+
* @decimalValue options { gte:0.00 }
|
|
167
|
+
* @maxLength 1024
|
|
168
|
+
*/
|
|
169
|
+
totalPrice?: string;
|
|
170
|
+
/** Information about the plan's recurring billing cycle or single payment. */
|
|
171
|
+
billingCycle?: Cycle;
|
|
172
|
+
/**
|
|
173
|
+
* Details about the plan's usage-based pricing.
|
|
174
|
+
* Available only for plans with
|
|
175
|
+
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
176
|
+
*/
|
|
177
|
+
usageBaseOptions?: UsageBasedDetails;
|
|
178
|
+
discount?: Discount;
|
|
179
|
+
billingSource?: BillingSource;
|
|
180
|
+
/**
|
|
181
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
182
|
+
* @maxLength 140
|
|
183
|
+
*/
|
|
184
|
+
customPaymentTitle?: string | null;
|
|
185
|
+
}
|
|
186
|
+
export interface Plan {
|
|
187
|
+
/**
|
|
188
|
+
* ID of the app plan.
|
|
189
|
+
* @format GUID
|
|
190
|
+
* @readonly
|
|
191
|
+
*/
|
|
192
|
+
_id?: string;
|
|
193
|
+
/**
|
|
194
|
+
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
195
|
+
* Identical to `vendorProductId` in the
|
|
196
|
+
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
197
|
+
*/
|
|
198
|
+
vendorId?: string;
|
|
199
|
+
/** 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). */
|
|
200
|
+
name?: string;
|
|
201
|
+
/**
|
|
202
|
+
* 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).
|
|
203
|
+
* Currently, the benefits are available only in English.
|
|
204
|
+
*
|
|
205
|
+
* Min: `0` benefits
|
|
206
|
+
* Max: `4` benefits
|
|
207
|
+
* Max per benefit: 1024 characters
|
|
208
|
+
* @maxSize 4
|
|
209
|
+
* @maxLength 1024
|
|
210
|
+
*/
|
|
211
|
+
benefits?: string[];
|
|
212
|
+
/**
|
|
213
|
+
* List of the plan's prices. Available only when the plan's prices are managed
|
|
214
|
+
* by Wix and not externally.
|
|
215
|
+
*
|
|
216
|
+
* Min: `0` prices
|
|
217
|
+
* Max: `10` prices
|
|
218
|
+
* @maxSize 10
|
|
219
|
+
*/
|
|
220
|
+
prices?: Price[];
|
|
221
|
+
}
|
|
222
|
+
export interface ListAppPlansByAppIdRequest {
|
|
223
|
+
/**
|
|
224
|
+
* List of app IDs to retrieve plans for.
|
|
225
|
+
*
|
|
226
|
+
* Min: 1 app ID
|
|
227
|
+
* Max: 100 app IDs
|
|
228
|
+
* @minSize 1
|
|
229
|
+
* @maxSize 100
|
|
230
|
+
*/
|
|
231
|
+
appIds: string[];
|
|
232
|
+
}
|
|
233
|
+
export interface ListAppPlansByAppIdResponse {
|
|
234
|
+
/**
|
|
235
|
+
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
236
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
237
|
+
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
238
|
+
* tax settings may not resolve properly if you call through a VPN.
|
|
239
|
+
*/
|
|
240
|
+
taxSettings?: TaxSettings;
|
|
241
|
+
/**
|
|
242
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
243
|
+
* format. Wix calculates the currency based on the country code that
|
|
244
|
+
* you pass in the call's header. If you don't pass a country code in the header,
|
|
245
|
+
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
246
|
+
* currency may not resolve properly if you call through a VPN.
|
|
247
|
+
* @format CURRENCY
|
|
248
|
+
*/
|
|
249
|
+
currency?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
252
|
+
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
253
|
+
* country code that you pass in the call's header. If you don't pass a country
|
|
254
|
+
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
255
|
+
* address. Note that the currency symbol may not resolve properly if you call
|
|
256
|
+
* through a VPN.
|
|
257
|
+
*/
|
|
258
|
+
currencySymbol?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Retrieved app plans.
|
|
261
|
+
*
|
|
262
|
+
* Min: 0 plans
|
|
263
|
+
* Max: 50 plans
|
|
264
|
+
*
|
|
265
|
+
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
266
|
+
* @maxSize 50
|
|
267
|
+
*/
|
|
268
|
+
appPlans?: AppPlans[];
|
|
269
|
+
}
|
|
270
|
+
export interface TaxSettings {
|
|
271
|
+
/**
|
|
272
|
+
* Whether you must display the total price including taxes in the given
|
|
273
|
+
* country.
|
|
274
|
+
*/
|
|
275
|
+
showPriceWithTax?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Tax rate for the given country as percentage. Returned as `0` when
|
|
278
|
+
* `{"showPriceWithTax": false}`.
|
|
279
|
+
* @format DECIMAL_VALUE
|
|
280
|
+
*/
|
|
281
|
+
percentage?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
* Type of tax required in the given country.
|
|
284
|
+
*
|
|
285
|
+
* + `"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.
|
|
286
|
+
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
287
|
+
* + `"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).
|
|
288
|
+
*/
|
|
289
|
+
taxType?: TaxType;
|
|
290
|
+
}
|
|
291
|
+
export declare enum TaxType {
|
|
292
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
293
|
+
VAT = "VAT",
|
|
294
|
+
GST = "GST"
|
|
295
|
+
}
|
|
296
|
+
export interface GetAvailableAppPlansRequest {
|
|
297
|
+
/**
|
|
298
|
+
* AppId to get the available app plans for.
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
301
|
+
appId?: string;
|
|
302
|
+
/** The specific app plan info to retrieve the available app plans for. */
|
|
303
|
+
appPlanInfo?: AppPlanInfo;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
307
|
+
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
308
|
+
*/
|
|
309
|
+
export interface AppPlanInfo {
|
|
310
|
+
/**
|
|
311
|
+
* The app plan's vendorId to retrieve the response for.
|
|
312
|
+
*
|
|
313
|
+
* Max: 100 characters
|
|
314
|
+
* @maxLength 100
|
|
315
|
+
*/
|
|
316
|
+
vendorId?: string;
|
|
317
|
+
/** The app plan cycle to retrieve the response for. */
|
|
318
|
+
billingCycle?: Cycle;
|
|
319
|
+
}
|
|
320
|
+
export interface GetAvailableAppPlansResponse {
|
|
321
|
+
/** The available upgrades for the given app plan. */
|
|
322
|
+
availableUpgrades?: AppPlans;
|
|
323
|
+
/** The available downgrades for the given app plan. */
|
|
324
|
+
availableDowngrades?: AppPlans;
|
|
325
|
+
/** The current app plan. */
|
|
326
|
+
currentPlan?: Plan;
|
|
327
|
+
}
|
|
328
|
+
export interface GetPricingPageUrlRequest {
|
|
329
|
+
/**
|
|
330
|
+
* AppId to get the pricing page url for.
|
|
331
|
+
* @format GUID
|
|
332
|
+
*/
|
|
333
|
+
appId?: string;
|
|
334
|
+
/** The specific app plan to retrieve the pricing page url for. */
|
|
335
|
+
appPlanInfo?: AppPlanInfo;
|
|
336
|
+
}
|
|
337
|
+
export interface GetPricingPageUrlResponse {
|
|
338
|
+
/**
|
|
339
|
+
* the pricing page url, if there is a app plan that is upgradable.
|
|
340
|
+
* @format WEB_URL
|
|
341
|
+
*/
|
|
342
|
+
packagePickerUrl?: string | null;
|
|
343
|
+
}
|
|
344
|
+
type AppPlansNonNullablePaths = `_id` | `plans` | `plans.${number}._id` | `plans.${number}.vendorId` | `plans.${number}.name`;
|
|
345
|
+
/**
|
|
346
|
+
* Retrieves plans for the given apps.
|
|
347
|
+
*
|
|
348
|
+
*
|
|
349
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
350
|
+
* 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)
|
|
351
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
352
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
353
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
354
|
+
* properly if you call through a VPN.
|
|
355
|
+
*
|
|
356
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
357
|
+
*
|
|
358
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
359
|
+
* For these plans this method returns the price that the consumer must pay every
|
|
360
|
+
* month and not the total price for the entire year.
|
|
361
|
+
*
|
|
362
|
+
* > **Notes:**
|
|
363
|
+
* > - The App Plans API doesn't follow any tenancy model. You don't need any permissions to call `List App Plans by App ID`.
|
|
364
|
+
* > - This method only returns app plans that have been activated.
|
|
365
|
+
* @param appIds - List of app IDs to retrieve plans for.
|
|
366
|
+
*
|
|
367
|
+
* Min: 1 app ID
|
|
368
|
+
* Max: 100 app IDs
|
|
369
|
+
* @public
|
|
370
|
+
* @documentationMaturity preview
|
|
371
|
+
* @requiredField appIds
|
|
372
|
+
* @fqn wix.appmarket.app_plans.v1.AppsPlans.ListAppPlansByAppId
|
|
373
|
+
*/
|
|
374
|
+
export declare function listAppPlansByAppId(appIds: string[]): Promise<NonNullablePaths<ListAppPlansByAppIdResponse, `taxSettings.showPriceWithTax` | `taxSettings.taxType` | `currency` | `currencySymbol` | {
|
|
375
|
+
[P in AppPlansNonNullablePaths]: `appPlans.${number}.${P}`;
|
|
376
|
+
}[AppPlansNonNullablePaths]>>;
|
|
377
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
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 = exports.TaxType = exports.BillingSource = exports.CycleType = exports.DurationUnit = exports.SourceType = exports.DiscountType = exports.SaleType = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixAppmarketV1AppPlans = __importStar(require("./appmarket-v1-app-plans-app-plans.http.js"));
|
|
30
|
+
var SaleType;
|
|
31
|
+
(function (SaleType) {
|
|
32
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
33
|
+
SaleType["SALE_TYPE_UNSPECIFIED"] = "SALE_TYPE_UNSPECIFIED";
|
|
34
|
+
SaleType["CYBER_MONDAY"] = "CYBER_MONDAY";
|
|
35
|
+
SaleType["NOVEMBER_SALE"] = "NOVEMBER_SALE";
|
|
36
|
+
SaleType["BLACK_FRIDAY"] = "BLACK_FRIDAY";
|
|
37
|
+
SaleType["DEVELOPER_SALE"] = "DEVELOPER_SALE";
|
|
38
|
+
})(SaleType || (exports.SaleType = SaleType = {}));
|
|
39
|
+
var DiscountType;
|
|
40
|
+
(function (DiscountType) {
|
|
41
|
+
DiscountType["DISCOUNT_TYPE_UNSPECIFIED"] = "DISCOUNT_TYPE_UNSPECIFIED";
|
|
42
|
+
/** Discount is a fixed amount in USD. */
|
|
43
|
+
DiscountType["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
44
|
+
/** Discount is a percentage of the total price. */
|
|
45
|
+
DiscountType["PERCENTAGE"] = "PERCENTAGE";
|
|
46
|
+
})(DiscountType || (exports.DiscountType = DiscountType = {}));
|
|
47
|
+
var SourceType;
|
|
48
|
+
(function (SourceType) {
|
|
49
|
+
/** Default value, can be used when no specific source is associated. */
|
|
50
|
+
SourceType["SOURCE_TYPE_UNSPECIFIED"] = "SOURCE_TYPE_UNSPECIFIED";
|
|
51
|
+
/** Discount is due to Wix/Developer Sale */
|
|
52
|
+
SourceType["SALE"] = "SALE";
|
|
53
|
+
/** Discount is due to App Benefit */
|
|
54
|
+
SourceType["APP_BENEFIT"] = "APP_BENEFIT";
|
|
55
|
+
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
56
|
+
var DurationUnit;
|
|
57
|
+
(function (DurationUnit) {
|
|
58
|
+
/** unknown interval unit */
|
|
59
|
+
DurationUnit["UNKNOWN_UNIT"] = "UNKNOWN_UNIT";
|
|
60
|
+
/** month */
|
|
61
|
+
DurationUnit["MONTH"] = "MONTH";
|
|
62
|
+
/** year */
|
|
63
|
+
DurationUnit["YEAR"] = "YEAR";
|
|
64
|
+
})(DurationUnit || (exports.DurationUnit = DurationUnit = {}));
|
|
65
|
+
var CycleType;
|
|
66
|
+
(function (CycleType) {
|
|
67
|
+
CycleType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
68
|
+
CycleType["ONE_TIME"] = "ONE_TIME";
|
|
69
|
+
CycleType["RECURRING"] = "RECURRING";
|
|
70
|
+
})(CycleType || (exports.CycleType = CycleType = {}));
|
|
71
|
+
var BillingSource;
|
|
72
|
+
(function (BillingSource) {
|
|
73
|
+
BillingSource["UNKNOWN"] = "UNKNOWN";
|
|
74
|
+
/** plan billing and charges is managed by Wix */
|
|
75
|
+
BillingSource["WIX"] = "WIX";
|
|
76
|
+
/** plan billing and charges is managed by the app */
|
|
77
|
+
BillingSource["EXTERNAL"] = "EXTERNAL";
|
|
78
|
+
})(BillingSource || (exports.BillingSource = BillingSource = {}));
|
|
79
|
+
var TaxType;
|
|
80
|
+
(function (TaxType) {
|
|
81
|
+
TaxType["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
82
|
+
TaxType["VAT"] = "VAT";
|
|
83
|
+
TaxType["GST"] = "GST";
|
|
84
|
+
})(TaxType || (exports.TaxType = TaxType = {}));
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves plans for the given apps.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
90
|
+
* 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)
|
|
91
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
92
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
93
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
94
|
+
* properly if you call through a VPN.
|
|
95
|
+
*
|
|
96
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
97
|
+
*
|
|
98
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
99
|
+
* For these plans this method returns the price that the consumer must pay every
|
|
100
|
+
* month and not the total price for the entire year.
|
|
101
|
+
*
|
|
102
|
+
* > **Notes:**
|
|
103
|
+
* > - The App Plans API doesn't follow any tenancy model. You don't need any permissions to call `List App Plans by App ID`.
|
|
104
|
+
* > - This method only returns app plans that have been activated.
|
|
105
|
+
* @param appIds - List of app IDs to retrieve plans for.
|
|
106
|
+
*
|
|
107
|
+
* Min: 1 app ID
|
|
108
|
+
* Max: 100 app IDs
|
|
109
|
+
* @public
|
|
110
|
+
* @documentationMaturity preview
|
|
111
|
+
* @requiredField appIds
|
|
112
|
+
* @fqn wix.appmarket.app_plans.v1.AppsPlans.ListAppPlansByAppId
|
|
113
|
+
*/
|
|
114
|
+
async function listAppPlansByAppId(appIds) {
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
117
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ appIds: appIds });
|
|
118
|
+
const reqOpts = ambassadorWixAppmarketV1AppPlans.listAppPlansByAppId(payload);
|
|
119
|
+
sideEffects?.onSiteCall?.();
|
|
120
|
+
try {
|
|
121
|
+
const result = await httpClient.request(reqOpts);
|
|
122
|
+
sideEffects?.onSuccess?.(result);
|
|
123
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
124
|
+
}
|
|
125
|
+
catch (err) {
|
|
126
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
127
|
+
spreadPathsToArguments: {},
|
|
128
|
+
explicitPathsToArguments: { appIds: '$[0]' },
|
|
129
|
+
singleArgumentUnchanged: false,
|
|
130
|
+
}, ['appIds']);
|
|
131
|
+
sideEffects?.onError?.(err);
|
|
132
|
+
throw transformedError;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.listAppPlansByAppId = listAppPlansByAppId;
|
|
136
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.universal.js","sourceRoot":"","sources":["../../../src/appmarket-v1-app-plans-app-plans.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,6GAA+F;AAe/F,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,sEAAsE;IACtE,2DAA+C,CAAA;IAC/C,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,yCAA6B,CAAA;IAC7B,6CAAiC,CAAA;AACnC,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,yCAAyC;IACzC,6CAA6B,CAAA;IAC7B,mDAAmD;IACnD,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,wEAAwE;IACxE,iEAAmD,CAAA;IACnD,4CAA4C;IAC5C,2BAAa,CAAA;IACb,qCAAqC;IACrC,yCAA2B,CAAA;AAC7B,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAuBD,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,4BAA4B;IAC5B,6CAA6B,CAAA;IAC7B,YAAY;IACZ,+BAAe,CAAA;IACf,WAAW;IACX,6BAAa,CAAA;AACf,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AACzB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAiFD,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,iDAAiD;IACjD,4BAAW,CAAA;IACX,qDAAqD;IACrD,sCAAqB,CAAA;AACvB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAuJD,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,4CAAiC,CAAA;IACjC,sBAAW,CAAA;IACX,sBAAW,CAAA;AACb,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAgB;IAahB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1E,MAAM,OAAO,GAAG,gCAAgC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE9E,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC5C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA5CD,kDA4CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/appmarket-v1-app-plans-app-plans.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/appmarket-v1-app-plans-app-plans.universal.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/appmarket-v1-app-plans-app-plans.meta.js';
|
package/build/es/meta.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { listAppPlansByAppId as publicListAppPlansByAppId } from './appmarket-v1-app-plans-app-plans.public.js';
|
|
2
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof publicListAppPlansByAppId> & typeof publicListAppPlansByAppId>;
|
|
4
|
+
export { SaleType, DiscountType, SourceType, DurationUnit, CycleType, BillingSource, TaxType, } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
5
|
+
export { AppPlans, SaleSource, Cycle, Duration, UsageBasedDetails, Discount, DiscountSourceDataOneOf, Price, Plan, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse, TaxSettings, GetAvailableAppPlansRequest, AppPlanInfo, GetAvailableAppPlansResponse, GetPricingPageUrlRequest, GetPricingPageUrlResponse, } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { listAppPlansByAppId as publicListAppPlansByAppId } from './appmarket-v1-app-plans-app-plans.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
export const listAppPlansByAppId = /*#__PURE__*/ createRESTModule(publicListAppPlansByAppId);
|
|
4
|
+
export { SaleType, DiscountType, SourceType, DurationUnit, CycleType, BillingSource, TaxType, } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
5
|
+
//# sourceMappingURL=appmarket-v1-app-plans-app-plans.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appmarket-v1-app-plans-app-plans.context.js","sourceRoot":"","sources":["../../../src/appmarket-v1-app-plans-app-plans.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,mBAAmB,GAG5B,aAAa,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAE9D,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,aAAa,EACb,OAAO,GACR,MAAM,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves plans for the given apps.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
7
|
+
* 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)
|
|
8
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
9
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
10
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
11
|
+
* properly if you call through a VPN.
|
|
12
|
+
*
|
|
13
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
14
|
+
*
|
|
15
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
16
|
+
* For these plans this method returns the price that the consumer must pay every
|
|
17
|
+
* month and not the total price for the entire year.
|
|
18
|
+
*
|
|
19
|
+
* > **Notes:**
|
|
20
|
+
* > - The App Plans API doesn't follow any tenancy model. You don't need any permissions to call `List App Plans by App ID`.
|
|
21
|
+
* > - This method only returns app plans that have been activated.
|
|
22
|
+
*/
|
|
23
|
+
export declare function listAppPlansByAppId(payload: object): RequestOptionsFactory<any>;
|