@wix/auto_sdk_app-management_billing 1.0.14 → 1.0.16
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/{es/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts → devcenter-checkout-v1-purchased-item-billing.universal-BOJl75V0.d.mts} +27 -87
- package/build/{cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts → devcenter-checkout-v1-purchased-item-billing.universal-BOJl75V0.d.ts} +27 -87
- package/build/index.d.mts +47 -0
- package/build/index.d.ts +47 -0
- package/build/index.js +359 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +329 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts → internal/devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.d.mts} +93 -22
- package/build/{es/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts → internal/devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.d.ts} +93 -22
- package/build/internal/index.d.mts +64 -0
- package/build/internal/index.d.ts +64 -0
- package/build/internal/index.js +359 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +329 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +141 -0
- package/build/internal/meta.d.ts +141 -0
- package/build/internal/meta.js +240 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +211 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +141 -0
- package/build/meta.d.ts +141 -0
- package/build/meta.js +240 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +211 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -14
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -22
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -184
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -85
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -38
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -32
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -32
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -207
- package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -14
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -16
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -178
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -56
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -38
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -23
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -29
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -178
- package/build/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -16
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -22
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -184
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -85
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -53
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -32
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts +0 -256
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -32
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts +0 -407
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -207
- package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -16
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -16
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -178
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -56
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -53
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -23
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts +0 -256
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -29
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts +0 -407
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -178
- package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface PurchasedItem {
|
|
2
2
|
/** ID of your app's paid plan. */
|
|
3
3
|
productId?: string;
|
|
4
4
|
/** Price of your app's paid plan. For example, `9.95`. */
|
|
@@ -16,7 +16,7 @@ export interface PurchasedItem {
|
|
|
16
16
|
*/
|
|
17
17
|
dateCreated?: Date | null;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
declare enum PaymentCycle {
|
|
20
20
|
NO_CYCLE = "NO_CYCLE",
|
|
21
21
|
MONTHLY = "MONTHLY",
|
|
22
22
|
YEARLY = "YEARLY",
|
|
@@ -27,8 +27,8 @@ export declare enum PaymentCycle {
|
|
|
27
27
|
FIVE_YEARS = "FIVE_YEARS"
|
|
28
28
|
}
|
|
29
29
|
/** @enumType */
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
31
|
+
interface InvoiceStatusUpdated {
|
|
32
32
|
/** Invoice payment status. */
|
|
33
33
|
status?: InvoiceStatusWithLiterals;
|
|
34
34
|
/**
|
|
@@ -44,7 +44,7 @@ export interface InvoiceStatusUpdated {
|
|
|
44
44
|
/** Whether the invoice is for a single payment or for multiple, recurring payments. */
|
|
45
45
|
recurring?: boolean;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
declare enum InvoiceStatus {
|
|
48
48
|
UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
|
|
49
49
|
PAYMENT_FAILED = "PAYMENT_FAILED",
|
|
50
50
|
PAID = "PAID",
|
|
@@ -53,8 +53,8 @@ export declare enum InvoiceStatus {
|
|
|
53
53
|
CHARGEDBACK = "CHARGEDBACK"
|
|
54
54
|
}
|
|
55
55
|
/** @enumType */
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
type InvoiceStatusWithLiterals = InvoiceStatus | 'UNKNOWN_INVOICE_STATUS' | 'PAYMENT_FAILED' | 'PAID' | 'REFUNDED' | 'VOIDED' | 'CHARGEDBACK';
|
|
57
|
+
interface GetUrlRequest {
|
|
58
58
|
/**
|
|
59
59
|
* ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
60
60
|
* for a list of your app's supported product IDs.
|
|
@@ -92,7 +92,7 @@ export interface GetUrlRequest {
|
|
|
92
92
|
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
93
93
|
couponCode?: string | null;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface ChargeOverride {
|
|
96
96
|
/**
|
|
97
97
|
* Override price. In case you omit the override price, Wix charges site
|
|
98
98
|
* owners the app's default price that's configured in the Pricing page of your app's dashboard.
|
|
@@ -104,7 +104,7 @@ export interface ChargeOverride {
|
|
|
104
104
|
*/
|
|
105
105
|
currency?: string;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
interface GetUrlResponse {
|
|
108
108
|
/**
|
|
109
109
|
* URL for the Wix checkout page.
|
|
110
110
|
* @format WEB_URL
|
|
@@ -117,15 +117,15 @@ export interface GetUrlResponse {
|
|
|
117
117
|
*/
|
|
118
118
|
token?: string | null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface GetPurchaseHistoryRequest {
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
interface GetPurchaseHistoryResponse {
|
|
123
123
|
/** Retrieved purchases the site owners have completed for you app. */
|
|
124
124
|
purchases?: PurchasedItem[];
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
interface GetSitePaymentMethodsStatusRequest {
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
interface GetSitePaymentMethodsStatusResponse {
|
|
129
129
|
/**
|
|
130
130
|
* Whether the site owners have enabled at least a single online payment method.
|
|
131
131
|
* Online payment methods include Wix Payments, Stripe, PayPal, and credit
|
|
@@ -146,7 +146,7 @@ export interface GetSitePaymentMethodsStatusResponse {
|
|
|
146
146
|
*/
|
|
147
147
|
thirdPartyPosProviderEnabled?: boolean;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
interface GetMeteredBillingChargesRequest {
|
|
150
150
|
/**
|
|
151
151
|
* 3-letter currency code in
|
|
152
152
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
@@ -164,13 +164,13 @@ export interface GetMeteredBillingChargesRequest {
|
|
|
164
164
|
*/
|
|
165
165
|
endDate?: Date | null;
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
interface GetMeteredBillingChargesResponse {
|
|
168
168
|
/** List of retrieved custom charges. */
|
|
169
169
|
charges?: Charge[];
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
interface Charge {
|
|
172
172
|
/** ID of the custom charge. The ID consists of 64 characters. */
|
|
173
|
-
|
|
173
|
+
_id?: string | null;
|
|
174
174
|
/** Description of the custom charge. */
|
|
175
175
|
description?: string;
|
|
176
176
|
/**
|
|
@@ -182,7 +182,7 @@ export interface Charge {
|
|
|
182
182
|
*/
|
|
183
183
|
amount?: string;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface MessageEnvelope {
|
|
186
186
|
/**
|
|
187
187
|
* App instance ID.
|
|
188
188
|
* @format GUID
|
|
@@ -198,7 +198,7 @@ export interface MessageEnvelope {
|
|
|
198
198
|
/** Stringify payload. */
|
|
199
199
|
data?: string;
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
202
202
|
/**
|
|
203
203
|
* ID of a site visitor that has not logged in to the site.
|
|
204
204
|
* @format GUID
|
|
@@ -223,7 +223,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
223
223
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
224
224
|
}
|
|
225
225
|
/** @oneof */
|
|
226
|
-
|
|
226
|
+
interface IdentificationDataIdOneOf {
|
|
227
227
|
/**
|
|
228
228
|
* ID of a site visitor that has not logged in to the site.
|
|
229
229
|
* @format GUID
|
|
@@ -245,7 +245,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
245
245
|
*/
|
|
246
246
|
appId?: string;
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
declare enum WebhookIdentityType {
|
|
249
249
|
UNKNOWN = "UNKNOWN",
|
|
250
250
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
251
251
|
MEMBER = "MEMBER",
|
|
@@ -253,4 +253,75 @@ export declare enum WebhookIdentityType {
|
|
|
253
253
|
APP = "APP"
|
|
254
254
|
}
|
|
255
255
|
/** @enumType */
|
|
256
|
-
|
|
256
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
257
|
+
interface BaseEventMetadata {
|
|
258
|
+
/**
|
|
259
|
+
* App instance ID.
|
|
260
|
+
* @format GUID
|
|
261
|
+
*/
|
|
262
|
+
instanceId?: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* Event type.
|
|
265
|
+
* @maxLength 150
|
|
266
|
+
*/
|
|
267
|
+
eventType?: string;
|
|
268
|
+
/** The identification type and identity data. */
|
|
269
|
+
identity?: IdentificationData;
|
|
270
|
+
}
|
|
271
|
+
interface PurchasedItemInvoiceStatusUpdatedEnvelope {
|
|
272
|
+
data: InvoiceStatusUpdated;
|
|
273
|
+
metadata: BaseEventMetadata;
|
|
274
|
+
}
|
|
275
|
+
interface GetUrlOptions {
|
|
276
|
+
/**
|
|
277
|
+
* URL for the Wix checkout page. Redirect site owners to this URL after
|
|
278
|
+
* they've successfully purchased a paid plan for your app.
|
|
279
|
+
* @format WEB_URL
|
|
280
|
+
*/
|
|
281
|
+
successUrl?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
* Whether the checkout is for testing purposes only. Testing is mainly
|
|
284
|
+
* relevant for in-app purchase flows. When `true`, Wix charges the site
|
|
285
|
+
* owners an amount of `0.00`.
|
|
286
|
+
*/
|
|
287
|
+
testCheckout?: boolean;
|
|
288
|
+
/** Information about the paid plan's billing cycle. */
|
|
289
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
290
|
+
/**
|
|
291
|
+
* 2-letter country code in
|
|
292
|
+
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
293
|
+
* format.
|
|
294
|
+
*
|
|
295
|
+
* Default: `"US"`
|
|
296
|
+
*/
|
|
297
|
+
countryCode?: string | null;
|
|
298
|
+
/**
|
|
299
|
+
* 2-letter language code in
|
|
300
|
+
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
301
|
+
*
|
|
302
|
+
* Default: `"EN"`
|
|
303
|
+
*/
|
|
304
|
+
languageCode?: string | null;
|
|
305
|
+
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
306
|
+
couponCode?: string | null;
|
|
307
|
+
}
|
|
308
|
+
interface GetMeteredBillingChargesOptions {
|
|
309
|
+
/**
|
|
310
|
+
* 3-letter currency code in
|
|
311
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
312
|
+
* @format CURRENCY
|
|
313
|
+
*/
|
|
314
|
+
currency?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* Start of the period you want to retrieve the custom charges for in
|
|
317
|
+
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
318
|
+
*/
|
|
319
|
+
startDate?: Date | null;
|
|
320
|
+
/**
|
|
321
|
+
* End of the period you want to retrieve the custom charges for in
|
|
322
|
+
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
323
|
+
*/
|
|
324
|
+
endDate?: Date | null;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export { type BaseEventMetadata as B, type ChargeOverride as C, type GetUrlOptions as G, InvoiceStatus as I, type MessageEnvelope as M, type PurchasedItemInvoiceStatusUpdatedEnvelope as P, WebhookIdentityType as W, type GetUrlResponse as a, type GetPurchaseHistoryResponse as b, type GetMeteredBillingChargesOptions as c, type GetMeteredBillingChargesResponse as d, PaymentCycle as e, type PurchasedItem as f, type InvoiceStatusUpdated as g, type GetUrlRequest as h, type GetPurchaseHistoryRequest as i, type GetSitePaymentMethodsStatusRequest as j, type GetSitePaymentMethodsStatusResponse as k, type GetMeteredBillingChargesRequest as l, type Charge as m, type IdentificationData as n, type IdentificationDataIdOneOf as o };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetUrlOptions, a as GetUrlResponse, b as GetPurchaseHistoryResponse, c as GetMeteredBillingChargesOptions, d as GetMeteredBillingChargesResponse, P as PurchasedItemInvoiceStatusUpdatedEnvelope } from './devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.mjs';
|
|
3
|
+
export { B as BaseEventMetadata, m as Charge, C as ChargeOverride, l as GetMeteredBillingChargesRequest, i as GetPurchaseHistoryRequest, j as GetSitePaymentMethodsStatusRequest, k as GetSitePaymentMethodsStatusResponse, h as GetUrlRequest, n as IdentificationData, o as IdentificationDataIdOneOf, I as InvoiceStatus, g as InvoiceStatusUpdated, M as MessageEnvelope, e as PaymentCycle, f as PurchasedItem, W as WebhookIdentityType } from './devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
6
|
+
interface GetUrlSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* This call succeeds only in case you have previously
|
|
12
|
+
* [set up an external pricing page in your app's dashboard](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-an-external-pricing-page).
|
|
13
|
+
*
|
|
14
|
+
* The returned checkout URL is valid for 48 hours.
|
|
15
|
+
*
|
|
16
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
17
|
+
* still using the standard Wix checkout flow.
|
|
18
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
19
|
+
* for a list of your app's supported product IDs.
|
|
20
|
+
*/
|
|
21
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse>;
|
|
22
|
+
}
|
|
23
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
24
|
+
interface GetPurchaseHistorySignature {
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
30
|
+
* the request, since this information is taken automatically from the context.
|
|
31
|
+
*
|
|
32
|
+
* The response doesn't include any details about cancellations.
|
|
33
|
+
*/
|
|
34
|
+
(): Promise<GetPurchaseHistoryResponse>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
declare function getMeteredBillingCharges$1(httpClient: HttpClient): GetMeteredBillingChargesSignature;
|
|
38
|
+
interface GetMeteredBillingChargesSignature {
|
|
39
|
+
/**
|
|
40
|
+
* Triggers Wix to call the
|
|
41
|
+
* [List Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/custom-charges-provider-v1/list-charges).
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* Wix doesn't use the response from _List Charges_ SPI to actually create an
|
|
45
|
+
* invoice that's sent to the customer. Instead, calling _Get Metered Billing Charges_
|
|
46
|
+
* allows you confirm that your integration with the Custom Charges SPI is
|
|
47
|
+
* working as intended.
|
|
48
|
+
*/
|
|
49
|
+
(options?: GetMeteredBillingChargesOptions | undefined): Promise<GetMeteredBillingChargesResponse>;
|
|
50
|
+
}
|
|
51
|
+
declare const onPurchasedItemInvoiceStatusUpdated$1: EventDefinition<PurchasedItemInvoiceStatusUpdatedEnvelope, "InvoiceStatusUpdated">;
|
|
52
|
+
|
|
53
|
+
declare const getUrl: MaybeContext<BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1>;
|
|
54
|
+
declare const getPurchaseHistory: MaybeContext<BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
declare const getMeteredBillingCharges: MaybeContext<BuildRESTFunction<typeof getMeteredBillingCharges$1> & typeof getMeteredBillingCharges$1>;
|
|
57
|
+
/**
|
|
58
|
+
* Triggered when there is an update to the payment status of an invoice.
|
|
59
|
+
* Charges made using the [Custom Charges SPI](https://dev.wix.com/docs/rest/app-management/app-billing/custom-charges-service-plugin/introduction) may be based on usage.
|
|
60
|
+
* Learn more about [usage-based charges](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/set-up-a-usage-based-business-model).
|
|
61
|
+
*/
|
|
62
|
+
declare const onPurchasedItemInvoiceStatusUpdated: BuildEventDefinition<typeof onPurchasedItemInvoiceStatusUpdated$1>;
|
|
63
|
+
|
|
64
|
+
export { GetMeteredBillingChargesOptions, GetMeteredBillingChargesResponse, GetPurchaseHistoryResponse, GetUrlOptions, GetUrlResponse, PurchasedItemInvoiceStatusUpdatedEnvelope, getMeteredBillingCharges, getPurchaseHistory, getUrl, onPurchasedItemInvoiceStatusUpdated };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetUrlOptions, a as GetUrlResponse, b as GetPurchaseHistoryResponse, c as GetMeteredBillingChargesOptions, d as GetMeteredBillingChargesResponse, P as PurchasedItemInvoiceStatusUpdatedEnvelope } from './devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.js';
|
|
3
|
+
export { B as BaseEventMetadata, m as Charge, C as ChargeOverride, l as GetMeteredBillingChargesRequest, i as GetPurchaseHistoryRequest, j as GetSitePaymentMethodsStatusRequest, k as GetSitePaymentMethodsStatusResponse, h as GetUrlRequest, n as IdentificationData, o as IdentificationDataIdOneOf, I as InvoiceStatus, g as InvoiceStatusUpdated, M as MessageEnvelope, e as PaymentCycle, f as PurchasedItem, W as WebhookIdentityType } from './devcenter-checkout-v1-purchased-item-billing.universal-0VctJpJS.js';
|
|
4
|
+
|
|
5
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
6
|
+
interface GetUrlSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* This call succeeds only in case you have previously
|
|
12
|
+
* [set up an external pricing page in your app's dashboard](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-an-external-pricing-page).
|
|
13
|
+
*
|
|
14
|
+
* The returned checkout URL is valid for 48 hours.
|
|
15
|
+
*
|
|
16
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
17
|
+
* still using the standard Wix checkout flow.
|
|
18
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
19
|
+
* for a list of your app's supported product IDs.
|
|
20
|
+
*/
|
|
21
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse>;
|
|
22
|
+
}
|
|
23
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
24
|
+
interface GetPurchaseHistorySignature {
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
30
|
+
* the request, since this information is taken automatically from the context.
|
|
31
|
+
*
|
|
32
|
+
* The response doesn't include any details about cancellations.
|
|
33
|
+
*/
|
|
34
|
+
(): Promise<GetPurchaseHistoryResponse>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
declare function getMeteredBillingCharges$1(httpClient: HttpClient): GetMeteredBillingChargesSignature;
|
|
38
|
+
interface GetMeteredBillingChargesSignature {
|
|
39
|
+
/**
|
|
40
|
+
* Triggers Wix to call the
|
|
41
|
+
* [List Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/custom-charges-provider-v1/list-charges).
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* Wix doesn't use the response from _List Charges_ SPI to actually create an
|
|
45
|
+
* invoice that's sent to the customer. Instead, calling _Get Metered Billing Charges_
|
|
46
|
+
* allows you confirm that your integration with the Custom Charges SPI is
|
|
47
|
+
* working as intended.
|
|
48
|
+
*/
|
|
49
|
+
(options?: GetMeteredBillingChargesOptions | undefined): Promise<GetMeteredBillingChargesResponse>;
|
|
50
|
+
}
|
|
51
|
+
declare const onPurchasedItemInvoiceStatusUpdated$1: EventDefinition<PurchasedItemInvoiceStatusUpdatedEnvelope, "InvoiceStatusUpdated">;
|
|
52
|
+
|
|
53
|
+
declare const getUrl: MaybeContext<BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1>;
|
|
54
|
+
declare const getPurchaseHistory: MaybeContext<BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
declare const getMeteredBillingCharges: MaybeContext<BuildRESTFunction<typeof getMeteredBillingCharges$1> & typeof getMeteredBillingCharges$1>;
|
|
57
|
+
/**
|
|
58
|
+
* Triggered when there is an update to the payment status of an invoice.
|
|
59
|
+
* Charges made using the [Custom Charges SPI](https://dev.wix.com/docs/rest/app-management/app-billing/custom-charges-service-plugin/introduction) may be based on usage.
|
|
60
|
+
* Learn more about [usage-based charges](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/set-up-a-usage-based-business-model).
|
|
61
|
+
*/
|
|
62
|
+
declare const onPurchasedItemInvoiceStatusUpdated: BuildEventDefinition<typeof onPurchasedItemInvoiceStatusUpdated$1>;
|
|
63
|
+
|
|
64
|
+
export { GetMeteredBillingChargesOptions, GetMeteredBillingChargesResponse, GetPurchaseHistoryResponse, GetUrlOptions, GetUrlResponse, PurchasedItemInvoiceStatusUpdatedEnvelope, getMeteredBillingCharges, getPurchaseHistory, getUrl, onPurchasedItemInvoiceStatusUpdated };
|