@wix/auto_sdk_app-management_app-plans 1.0.1 → 1.0.3
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 +52 -5
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +52 -5
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.d.ts +52 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +52 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts +52 -5
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +52 -5
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.d.ts +52 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js.map +1 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +52 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -6,6 +6,7 @@ export interface AppPlans {
|
|
|
6
6
|
*
|
|
7
7
|
* Min: `0` plans
|
|
8
8
|
* Max: `50` plans
|
|
9
|
+
* @maxSize 50
|
|
9
10
|
*/
|
|
10
11
|
plans?: Plan[];
|
|
11
12
|
}
|
|
@@ -33,6 +34,7 @@ export declare enum SourceType {
|
|
|
33
34
|
APP_BENEFIT = "APP_BENEFIT"
|
|
34
35
|
}
|
|
35
36
|
export interface SaleSource {
|
|
37
|
+
/** @format GUID */
|
|
36
38
|
saleId?: string | null;
|
|
37
39
|
saleType?: SaleType;
|
|
38
40
|
startDate?: Date | null;
|
|
@@ -78,6 +80,9 @@ export interface UsageBasedDetails {
|
|
|
78
80
|
*
|
|
79
81
|
* Min: `0.00`
|
|
80
82
|
* Max: 1024 characters
|
|
83
|
+
* @format DECIMAL_VALUE
|
|
84
|
+
* @decimalValue options { gte:0.00 }
|
|
85
|
+
* @maxLength 1024
|
|
81
86
|
*/
|
|
82
87
|
minimumChargeIncrement?: string | null;
|
|
83
88
|
/**
|
|
@@ -86,6 +91,9 @@ export interface UsageBasedDetails {
|
|
|
86
91
|
*
|
|
87
92
|
* Min: `0.00`
|
|
88
93
|
* Max: 1024 characters
|
|
94
|
+
* @format DECIMAL_VALUE
|
|
95
|
+
* @decimalValue options { gte:0.00 }
|
|
96
|
+
* @maxLength 1024
|
|
89
97
|
*/
|
|
90
98
|
monthlyBaseFee?: string | null;
|
|
91
99
|
/**
|
|
@@ -97,7 +105,12 @@ export interface UsageBasedDetails {
|
|
|
97
105
|
}
|
|
98
106
|
export interface Discount extends DiscountSourceDataOneOf {
|
|
99
107
|
type?: DiscountType;
|
|
100
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Discount amount
|
|
110
|
+
* @format DECIMAL_VALUE
|
|
111
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
112
|
+
* @maxLength 1024
|
|
113
|
+
*/
|
|
101
114
|
amount?: string;
|
|
102
115
|
/**
|
|
103
116
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -105,12 +118,18 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
105
118
|
* returned price with 12.
|
|
106
119
|
* Min: `0.00`
|
|
107
120
|
* Max: 1024 characters
|
|
121
|
+
* @format DECIMAL_VALUE
|
|
122
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
123
|
+
* @maxLength 1024
|
|
108
124
|
*/
|
|
109
125
|
priceBeforeTax?: string;
|
|
110
126
|
/**
|
|
111
127
|
* Total price including taxes.
|
|
112
128
|
* Min: `0.00`
|
|
113
129
|
* Max: 1024 characters
|
|
130
|
+
* @format DECIMAL_VALUE
|
|
131
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
132
|
+
* @maxLength 1024
|
|
114
133
|
*/
|
|
115
134
|
totalPrice?: string;
|
|
116
135
|
}
|
|
@@ -132,6 +151,9 @@ export interface Price {
|
|
|
132
151
|
*
|
|
133
152
|
* Min: `0.00`
|
|
134
153
|
* Max: 1024 characters
|
|
154
|
+
* @format DECIMAL_VALUE
|
|
155
|
+
* @decimalValue options { gte:0.00 }
|
|
156
|
+
* @maxLength 1024
|
|
135
157
|
*/
|
|
136
158
|
priceBeforeTax?: string;
|
|
137
159
|
/**
|
|
@@ -139,6 +161,9 @@ export interface Price {
|
|
|
139
161
|
*
|
|
140
162
|
* Min: `0.00`
|
|
141
163
|
* Max: 1024 characters
|
|
164
|
+
* @format DECIMAL_VALUE
|
|
165
|
+
* @decimalValue options { gte:0.00 }
|
|
166
|
+
* @maxLength 1024
|
|
142
167
|
*/
|
|
143
168
|
totalPrice?: string;
|
|
144
169
|
/** Information about the plan's recurring billing cycle or single payment. */
|
|
@@ -151,12 +176,16 @@ export interface Price {
|
|
|
151
176
|
usageBaseOptions?: UsageBasedDetails;
|
|
152
177
|
discount?: Discount;
|
|
153
178
|
billingSource?: BillingSource;
|
|
154
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
181
|
+
* @maxLength 140
|
|
182
|
+
*/
|
|
155
183
|
customPaymentTitle?: string | null;
|
|
156
184
|
}
|
|
157
185
|
export interface Plan {
|
|
158
186
|
/**
|
|
159
187
|
* ID of the app plan.
|
|
188
|
+
* @format GUID
|
|
160
189
|
* @readonly
|
|
161
190
|
*/
|
|
162
191
|
id?: string;
|
|
@@ -175,6 +204,8 @@ export interface Plan {
|
|
|
175
204
|
* Min: `0` benefits
|
|
176
205
|
* Max: `4` benefits
|
|
177
206
|
* Max per benefit: 1024 characters
|
|
207
|
+
* @maxSize 4
|
|
208
|
+
* @maxLength 1024
|
|
178
209
|
*/
|
|
179
210
|
benefits?: string[];
|
|
180
211
|
/**
|
|
@@ -183,6 +214,7 @@ export interface Plan {
|
|
|
183
214
|
*
|
|
184
215
|
* Min: `0` prices
|
|
185
216
|
* Max: `10` prices
|
|
217
|
+
* @maxSize 10
|
|
186
218
|
*/
|
|
187
219
|
prices?: Price[];
|
|
188
220
|
}
|
|
@@ -192,6 +224,8 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
192
224
|
*
|
|
193
225
|
* Min: 1 app ID
|
|
194
226
|
* Max: 100 app IDs
|
|
227
|
+
* @minSize 1
|
|
228
|
+
* @maxSize 100
|
|
195
229
|
*/
|
|
196
230
|
appIds: string[];
|
|
197
231
|
}
|
|
@@ -209,6 +243,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
209
243
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
210
244
|
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
211
245
|
* currency may not resolve properly if you call through a VPN.
|
|
246
|
+
* @format CURRENCY
|
|
212
247
|
*/
|
|
213
248
|
currency?: string;
|
|
214
249
|
/**
|
|
@@ -227,6 +262,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
227
262
|
* Max: 50 plans
|
|
228
263
|
*
|
|
229
264
|
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
265
|
+
* @maxSize 50
|
|
230
266
|
*/
|
|
231
267
|
appPlans?: AppPlans[];
|
|
232
268
|
}
|
|
@@ -239,6 +275,7 @@ export interface TaxSettings {
|
|
|
239
275
|
/**
|
|
240
276
|
* Tax rate for the given country as percentage. Returned as `0` when
|
|
241
277
|
* `{"showPriceWithTax": false}`.
|
|
278
|
+
* @format DECIMAL_VALUE
|
|
242
279
|
*/
|
|
243
280
|
percentage?: string | null;
|
|
244
281
|
/**
|
|
@@ -256,7 +293,10 @@ export declare enum TaxType {
|
|
|
256
293
|
GST = "GST"
|
|
257
294
|
}
|
|
258
295
|
export interface GetAvailableAppPlansRequest {
|
|
259
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* AppId to get the available app plans for.
|
|
298
|
+
* @format GUID
|
|
299
|
+
*/
|
|
260
300
|
appId?: string;
|
|
261
301
|
/** The specific app plan info to retrieve the available app plans for. */
|
|
262
302
|
appPlanInfo?: AppPlanInfo;
|
|
@@ -270,6 +310,7 @@ export interface AppPlanInfo {
|
|
|
270
310
|
* The app plan's vendorId to retrieve the response for.
|
|
271
311
|
*
|
|
272
312
|
* Max: 100 characters
|
|
313
|
+
* @maxLength 100
|
|
273
314
|
*/
|
|
274
315
|
vendorId?: string;
|
|
275
316
|
/** The app plan cycle to retrieve the response for. */
|
|
@@ -284,13 +325,19 @@ export interface GetAvailableAppPlansResponse {
|
|
|
284
325
|
currentPlan?: Plan;
|
|
285
326
|
}
|
|
286
327
|
export interface GetPricingPageUrlRequest {
|
|
287
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* AppId to get the pricing page url for.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
288
332
|
appId?: string;
|
|
289
333
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
290
334
|
appPlanInfo?: AppPlanInfo;
|
|
291
335
|
}
|
|
292
336
|
export interface GetPricingPageUrlResponse {
|
|
293
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* the pricing page url, if there is a app plan that is upgradable.
|
|
339
|
+
* @format WEB_URL
|
|
340
|
+
*/
|
|
294
341
|
packagePickerUrl?: string | null;
|
|
295
342
|
}
|
|
296
343
|
interface TaxSettingsNonNullableFields {
|
|
@@ -1 +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":";;;
|
|
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"}
|
|
@@ -6,6 +6,7 @@ export interface AppPlans {
|
|
|
6
6
|
*
|
|
7
7
|
* Min: `0` plans
|
|
8
8
|
* Max: `50` plans
|
|
9
|
+
* @maxSize 50
|
|
9
10
|
*/
|
|
10
11
|
plans?: Plan[];
|
|
11
12
|
}
|
|
@@ -33,6 +34,7 @@ export declare enum SourceType {
|
|
|
33
34
|
APP_BENEFIT = "APP_BENEFIT"
|
|
34
35
|
}
|
|
35
36
|
export interface SaleSource {
|
|
37
|
+
/** @format GUID */
|
|
36
38
|
saleId?: string | null;
|
|
37
39
|
saleType?: SaleType;
|
|
38
40
|
startDate?: Date | null;
|
|
@@ -78,6 +80,9 @@ export interface UsageBasedDetails {
|
|
|
78
80
|
*
|
|
79
81
|
* Min: `0.00`
|
|
80
82
|
* Max: 1024 characters
|
|
83
|
+
* @format DECIMAL_VALUE
|
|
84
|
+
* @decimalValue options { gte:0.00 }
|
|
85
|
+
* @maxLength 1024
|
|
81
86
|
*/
|
|
82
87
|
minimumChargeIncrement?: string | null;
|
|
83
88
|
/**
|
|
@@ -86,6 +91,9 @@ export interface UsageBasedDetails {
|
|
|
86
91
|
*
|
|
87
92
|
* Min: `0.00`
|
|
88
93
|
* Max: 1024 characters
|
|
94
|
+
* @format DECIMAL_VALUE
|
|
95
|
+
* @decimalValue options { gte:0.00 }
|
|
96
|
+
* @maxLength 1024
|
|
89
97
|
*/
|
|
90
98
|
monthlyBaseFee?: string | null;
|
|
91
99
|
/**
|
|
@@ -97,7 +105,12 @@ export interface UsageBasedDetails {
|
|
|
97
105
|
}
|
|
98
106
|
export interface Discount extends DiscountSourceDataOneOf {
|
|
99
107
|
type?: DiscountType;
|
|
100
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Discount amount
|
|
110
|
+
* @format DECIMAL_VALUE
|
|
111
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
112
|
+
* @maxLength 1024
|
|
113
|
+
*/
|
|
101
114
|
amount?: string;
|
|
102
115
|
/**
|
|
103
116
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -105,12 +118,18 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
105
118
|
* returned price with 12.
|
|
106
119
|
* Min: `0.00`
|
|
107
120
|
* Max: 1024 characters
|
|
121
|
+
* @format DECIMAL_VALUE
|
|
122
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
123
|
+
* @maxLength 1024
|
|
108
124
|
*/
|
|
109
125
|
priceBeforeTax?: string;
|
|
110
126
|
/**
|
|
111
127
|
* Total price including taxes.
|
|
112
128
|
* Min: `0.00`
|
|
113
129
|
* Max: 1024 characters
|
|
130
|
+
* @format DECIMAL_VALUE
|
|
131
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
132
|
+
* @maxLength 1024
|
|
114
133
|
*/
|
|
115
134
|
totalPrice?: string;
|
|
116
135
|
}
|
|
@@ -132,6 +151,9 @@ export interface Price {
|
|
|
132
151
|
*
|
|
133
152
|
* Min: `0.00`
|
|
134
153
|
* Max: 1024 characters
|
|
154
|
+
* @format DECIMAL_VALUE
|
|
155
|
+
* @decimalValue options { gte:0.00 }
|
|
156
|
+
* @maxLength 1024
|
|
135
157
|
*/
|
|
136
158
|
priceBeforeTax?: string;
|
|
137
159
|
/**
|
|
@@ -139,6 +161,9 @@ export interface Price {
|
|
|
139
161
|
*
|
|
140
162
|
* Min: `0.00`
|
|
141
163
|
* Max: 1024 characters
|
|
164
|
+
* @format DECIMAL_VALUE
|
|
165
|
+
* @decimalValue options { gte:0.00 }
|
|
166
|
+
* @maxLength 1024
|
|
142
167
|
*/
|
|
143
168
|
totalPrice?: string;
|
|
144
169
|
/** Information about the plan's recurring billing cycle or single payment. */
|
|
@@ -151,12 +176,16 @@ export interface Price {
|
|
|
151
176
|
usageBaseOptions?: UsageBasedDetails;
|
|
152
177
|
discount?: Discount;
|
|
153
178
|
billingSource?: BillingSource;
|
|
154
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
181
|
+
* @maxLength 140
|
|
182
|
+
*/
|
|
155
183
|
customPaymentTitle?: string | null;
|
|
156
184
|
}
|
|
157
185
|
export interface Plan {
|
|
158
186
|
/**
|
|
159
187
|
* ID of the app plan.
|
|
188
|
+
* @format GUID
|
|
160
189
|
* @readonly
|
|
161
190
|
*/
|
|
162
191
|
_id?: string;
|
|
@@ -175,6 +204,8 @@ export interface Plan {
|
|
|
175
204
|
* Min: `0` benefits
|
|
176
205
|
* Max: `4` benefits
|
|
177
206
|
* Max per benefit: 1024 characters
|
|
207
|
+
* @maxSize 4
|
|
208
|
+
* @maxLength 1024
|
|
178
209
|
*/
|
|
179
210
|
benefits?: string[];
|
|
180
211
|
/**
|
|
@@ -183,6 +214,7 @@ export interface Plan {
|
|
|
183
214
|
*
|
|
184
215
|
* Min: `0` prices
|
|
185
216
|
* Max: `10` prices
|
|
217
|
+
* @maxSize 10
|
|
186
218
|
*/
|
|
187
219
|
prices?: Price[];
|
|
188
220
|
}
|
|
@@ -192,6 +224,8 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
192
224
|
*
|
|
193
225
|
* Min: 1 app ID
|
|
194
226
|
* Max: 100 app IDs
|
|
227
|
+
* @minSize 1
|
|
228
|
+
* @maxSize 100
|
|
195
229
|
*/
|
|
196
230
|
appIds: string[];
|
|
197
231
|
}
|
|
@@ -209,6 +243,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
209
243
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
210
244
|
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
211
245
|
* currency may not resolve properly if you call through a VPN.
|
|
246
|
+
* @format CURRENCY
|
|
212
247
|
*/
|
|
213
248
|
currency?: string;
|
|
214
249
|
/**
|
|
@@ -227,6 +262,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
227
262
|
* Max: 50 plans
|
|
228
263
|
*
|
|
229
264
|
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
265
|
+
* @maxSize 50
|
|
230
266
|
*/
|
|
231
267
|
appPlans?: AppPlans[];
|
|
232
268
|
}
|
|
@@ -239,6 +275,7 @@ export interface TaxSettings {
|
|
|
239
275
|
/**
|
|
240
276
|
* Tax rate for the given country as percentage. Returned as `0` when
|
|
241
277
|
* `{"showPriceWithTax": false}`.
|
|
278
|
+
* @format DECIMAL_VALUE
|
|
242
279
|
*/
|
|
243
280
|
percentage?: string | null;
|
|
244
281
|
/**
|
|
@@ -256,7 +293,10 @@ export declare enum TaxType {
|
|
|
256
293
|
GST = "GST"
|
|
257
294
|
}
|
|
258
295
|
export interface GetAvailableAppPlansRequest {
|
|
259
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* AppId to get the available app plans for.
|
|
298
|
+
* @format GUID
|
|
299
|
+
*/
|
|
260
300
|
appId?: string;
|
|
261
301
|
/** The specific app plan info to retrieve the available app plans for. */
|
|
262
302
|
appPlanInfo?: AppPlanInfo;
|
|
@@ -270,6 +310,7 @@ export interface AppPlanInfo {
|
|
|
270
310
|
* The app plan's vendorId to retrieve the response for.
|
|
271
311
|
*
|
|
272
312
|
* Max: 100 characters
|
|
313
|
+
* @maxLength 100
|
|
273
314
|
*/
|
|
274
315
|
vendorId?: string;
|
|
275
316
|
/** The app plan cycle to retrieve the response for. */
|
|
@@ -284,13 +325,19 @@ export interface GetAvailableAppPlansResponse {
|
|
|
284
325
|
currentPlan?: Plan;
|
|
285
326
|
}
|
|
286
327
|
export interface GetPricingPageUrlRequest {
|
|
287
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* AppId to get the pricing page url for.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
288
332
|
appId?: string;
|
|
289
333
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
290
334
|
appPlanInfo?: AppPlanInfo;
|
|
291
335
|
}
|
|
292
336
|
export interface GetPricingPageUrlResponse {
|
|
293
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* the pricing page url, if there is a app plan that is upgradable.
|
|
339
|
+
* @format WEB_URL
|
|
340
|
+
*/
|
|
294
341
|
packagePickerUrl?: string | null;
|
|
295
342
|
}
|
|
296
343
|
interface TaxSettingsNonNullableFields {
|
|
@@ -1 +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;
|
|
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;AAgHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAgB;IAIhB,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;AAnCD,kDAmCC"}
|
|
@@ -6,6 +6,7 @@ export interface AppPlans {
|
|
|
6
6
|
*
|
|
7
7
|
* Min: `0` plans
|
|
8
8
|
* Max: `50` plans
|
|
9
|
+
* @maxSize 50
|
|
9
10
|
*/
|
|
10
11
|
plans?: Plan[];
|
|
11
12
|
}
|
|
@@ -33,6 +34,7 @@ export declare enum SourceType {
|
|
|
33
34
|
APP_BENEFIT = "APP_BENEFIT"
|
|
34
35
|
}
|
|
35
36
|
export interface SaleSource {
|
|
37
|
+
/** @format GUID */
|
|
36
38
|
saleId?: string | null;
|
|
37
39
|
saleType?: SaleType;
|
|
38
40
|
startDate?: Date | null;
|
|
@@ -78,6 +80,9 @@ export interface UsageBasedDetails {
|
|
|
78
80
|
*
|
|
79
81
|
* Min: `0.00`
|
|
80
82
|
* Max: 1024 characters
|
|
83
|
+
* @format DECIMAL_VALUE
|
|
84
|
+
* @decimalValue options { gte:0.00 }
|
|
85
|
+
* @maxLength 1024
|
|
81
86
|
*/
|
|
82
87
|
minimumChargeIncrement?: string | null;
|
|
83
88
|
/**
|
|
@@ -86,6 +91,9 @@ export interface UsageBasedDetails {
|
|
|
86
91
|
*
|
|
87
92
|
* Min: `0.00`
|
|
88
93
|
* Max: 1024 characters
|
|
94
|
+
* @format DECIMAL_VALUE
|
|
95
|
+
* @decimalValue options { gte:0.00 }
|
|
96
|
+
* @maxLength 1024
|
|
89
97
|
*/
|
|
90
98
|
monthlyBaseFee?: string | null;
|
|
91
99
|
/**
|
|
@@ -97,7 +105,12 @@ export interface UsageBasedDetails {
|
|
|
97
105
|
}
|
|
98
106
|
export interface Discount extends DiscountSourceDataOneOf {
|
|
99
107
|
type?: DiscountType;
|
|
100
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Discount amount
|
|
110
|
+
* @format DECIMAL_VALUE
|
|
111
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
112
|
+
* @maxLength 1024
|
|
113
|
+
*/
|
|
101
114
|
amount?: string;
|
|
102
115
|
/**
|
|
103
116
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -105,12 +118,18 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
105
118
|
* returned price with 12.
|
|
106
119
|
* Min: `0.00`
|
|
107
120
|
* Max: 1024 characters
|
|
121
|
+
* @format DECIMAL_VALUE
|
|
122
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
123
|
+
* @maxLength 1024
|
|
108
124
|
*/
|
|
109
125
|
priceBeforeTax?: string;
|
|
110
126
|
/**
|
|
111
127
|
* Total price including taxes.
|
|
112
128
|
* Min: `0.00`
|
|
113
129
|
* Max: 1024 characters
|
|
130
|
+
* @format DECIMAL_VALUE
|
|
131
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
132
|
+
* @maxLength 1024
|
|
114
133
|
*/
|
|
115
134
|
totalPrice?: string;
|
|
116
135
|
}
|
|
@@ -132,6 +151,9 @@ export interface Price {
|
|
|
132
151
|
*
|
|
133
152
|
* Min: `0.00`
|
|
134
153
|
* Max: 1024 characters
|
|
154
|
+
* @format DECIMAL_VALUE
|
|
155
|
+
* @decimalValue options { gte:0.00 }
|
|
156
|
+
* @maxLength 1024
|
|
135
157
|
*/
|
|
136
158
|
priceBeforeTax?: string;
|
|
137
159
|
/**
|
|
@@ -139,6 +161,9 @@ export interface Price {
|
|
|
139
161
|
*
|
|
140
162
|
* Min: `0.00`
|
|
141
163
|
* Max: 1024 characters
|
|
164
|
+
* @format DECIMAL_VALUE
|
|
165
|
+
* @decimalValue options { gte:0.00 }
|
|
166
|
+
* @maxLength 1024
|
|
142
167
|
*/
|
|
143
168
|
totalPrice?: string;
|
|
144
169
|
/** Information about the plan's recurring billing cycle or single payment. */
|
|
@@ -151,12 +176,16 @@ export interface Price {
|
|
|
151
176
|
usageBaseOptions?: UsageBasedDetails;
|
|
152
177
|
discount?: Discount;
|
|
153
178
|
billingSource?: BillingSource;
|
|
154
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Can be shown instead of plan price - used for dynamic plans
|
|
181
|
+
* @maxLength 140
|
|
182
|
+
*/
|
|
155
183
|
customPaymentTitle?: string | null;
|
|
156
184
|
}
|
|
157
185
|
export interface Plan {
|
|
158
186
|
/**
|
|
159
187
|
* ID of the app plan.
|
|
188
|
+
* @format GUID
|
|
160
189
|
* @readonly
|
|
161
190
|
*/
|
|
162
191
|
id?: string;
|
|
@@ -175,6 +204,8 @@ export interface Plan {
|
|
|
175
204
|
* Min: `0` benefits
|
|
176
205
|
* Max: `4` benefits
|
|
177
206
|
* Max per benefit: 1024 characters
|
|
207
|
+
* @maxSize 4
|
|
208
|
+
* @maxLength 1024
|
|
178
209
|
*/
|
|
179
210
|
benefits?: string[];
|
|
180
211
|
/**
|
|
@@ -183,6 +214,7 @@ export interface Plan {
|
|
|
183
214
|
*
|
|
184
215
|
* Min: `0` prices
|
|
185
216
|
* Max: `10` prices
|
|
217
|
+
* @maxSize 10
|
|
186
218
|
*/
|
|
187
219
|
prices?: Price[];
|
|
188
220
|
}
|
|
@@ -192,6 +224,8 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
192
224
|
*
|
|
193
225
|
* Min: 1 app ID
|
|
194
226
|
* Max: 100 app IDs
|
|
227
|
+
* @minSize 1
|
|
228
|
+
* @maxSize 100
|
|
195
229
|
*/
|
|
196
230
|
appIds: string[];
|
|
197
231
|
}
|
|
@@ -209,6 +243,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
209
243
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
210
244
|
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
211
245
|
* currency may not resolve properly if you call through a VPN.
|
|
246
|
+
* @format CURRENCY
|
|
212
247
|
*/
|
|
213
248
|
currency?: string;
|
|
214
249
|
/**
|
|
@@ -227,6 +262,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
227
262
|
* Max: 50 plans
|
|
228
263
|
*
|
|
229
264
|
* If any plans aren't returned, it's likely because they haven't been activated yet.
|
|
265
|
+
* @maxSize 50
|
|
230
266
|
*/
|
|
231
267
|
appPlans?: AppPlans[];
|
|
232
268
|
}
|
|
@@ -239,6 +275,7 @@ export interface TaxSettings {
|
|
|
239
275
|
/**
|
|
240
276
|
* Tax rate for the given country as percentage. Returned as `0` when
|
|
241
277
|
* `{"showPriceWithTax": false}`.
|
|
278
|
+
* @format DECIMAL_VALUE
|
|
242
279
|
*/
|
|
243
280
|
percentage?: string | null;
|
|
244
281
|
/**
|
|
@@ -256,7 +293,10 @@ export declare enum TaxType {
|
|
|
256
293
|
GST = "GST"
|
|
257
294
|
}
|
|
258
295
|
export interface GetAvailableAppPlansRequest {
|
|
259
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* AppId to get the available app plans for.
|
|
298
|
+
* @format GUID
|
|
299
|
+
*/
|
|
260
300
|
appId?: string;
|
|
261
301
|
/** The specific app plan info to retrieve the available app plans for. */
|
|
262
302
|
appPlanInfo?: AppPlanInfo;
|
|
@@ -270,6 +310,7 @@ export interface AppPlanInfo {
|
|
|
270
310
|
* The app plan's vendorId to retrieve the response for.
|
|
271
311
|
*
|
|
272
312
|
* Max: 100 characters
|
|
313
|
+
* @maxLength 100
|
|
273
314
|
*/
|
|
274
315
|
vendorId?: string;
|
|
275
316
|
/** The app plan cycle to retrieve the response for. */
|
|
@@ -284,13 +325,19 @@ export interface GetAvailableAppPlansResponse {
|
|
|
284
325
|
currentPlan?: Plan;
|
|
285
326
|
}
|
|
286
327
|
export interface GetPricingPageUrlRequest {
|
|
287
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* AppId to get the pricing page url for.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
288
332
|
appId?: string;
|
|
289
333
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
290
334
|
appPlanInfo?: AppPlanInfo;
|
|
291
335
|
}
|
|
292
336
|
export interface GetPricingPageUrlResponse {
|
|
293
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* the pricing page url, if there is a app plan that is upgradable.
|
|
339
|
+
* @format WEB_URL
|
|
340
|
+
*/
|
|
294
341
|
packagePickerUrl?: string | null;
|
|
295
342
|
}
|
|
296
343
|
interface TaxSettingsNonNullableFields {
|
|
@@ -1 +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":"
|
|
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,MAAM,CAAN,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,KAAR,QAAQ,QAOnB;AAED,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,yCAAyC;IACzC,6CAA6B,CAAA;IAC7B,mDAAmD;IACnD,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,wEAAwE;IACxE,iEAAmD,CAAA;IACnD,4CAA4C;IAC5C,2BAAa,CAAA;IACb,qCAAqC;IACrC,yCAA2B,CAAA;AAC7B,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAuBD,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,4BAA4B;IAC5B,6CAA6B,CAAA;IAC7B,YAAY;IACZ,+BAAe,CAAA;IACf,WAAW;IACX,6BAAa,CAAA;AACf,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AACzB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AA4ED,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,iDAAiD;IACjD,4BAAW,CAAA;IACX,qDAAqD;IACrD,sCAAqB,CAAA;AACvB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAuJD,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,4CAAiC,CAAA;IACjC,sBAAW,CAAA;IACX,sBAAW,CAAA;AACb,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB"}
|