@wix/auto_sdk_app-management_billing 1.0.4 → 1.0.6
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-BvkvBr8A.d.mts} +24 -99
- package/build/{cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts → devcenter-checkout-v1-purchased-item-billing.universal-BvkvBr8A.d.ts} +24 -99
- 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-Bv6aTKH_.d.mts} +86 -35
- package/build/{es/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts → internal/devcenter-checkout-v1-purchased-item-billing.universal-Bv6aTKH_.d.ts} +86 -35
- 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 +139 -0
- package/build/internal/meta.d.ts +139 -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 +139 -0
- package/build/meta.d.ts +139 -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 -270
- 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 -416
- 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 -270
- 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 -416
- 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",
|
|
@@ -26,7 +26,7 @@ export declare enum PaymentCycle {
|
|
|
26
26
|
FOUR_YEARS = "FOUR_YEARS",
|
|
27
27
|
FIVE_YEARS = "FIVE_YEARS"
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
interface InvoiceStatusUpdated {
|
|
30
30
|
/** Invoice payment status. */
|
|
31
31
|
status?: InvoiceStatus;
|
|
32
32
|
/**
|
|
@@ -42,7 +42,7 @@ export interface InvoiceStatusUpdated {
|
|
|
42
42
|
/** Whether the invoice is for a single payment or for multiple, recurring payments. */
|
|
43
43
|
recurring?: boolean;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
declare enum InvoiceStatus {
|
|
46
46
|
UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
|
|
47
47
|
PAYMENT_FAILED = "PAYMENT_FAILED",
|
|
48
48
|
PAID = "PAID",
|
|
@@ -50,7 +50,7 @@ export declare enum InvoiceStatus {
|
|
|
50
50
|
VOIDED = "VOIDED",
|
|
51
51
|
CHARGEDBACK = "CHARGEDBACK"
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
interface GetUrlRequest {
|
|
54
54
|
/**
|
|
55
55
|
* ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
56
56
|
* for a list of your app's supported product IDs.
|
|
@@ -88,7 +88,7 @@ export interface GetUrlRequest {
|
|
|
88
88
|
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
89
89
|
couponCode?: string | null;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
interface ChargeOverride {
|
|
92
92
|
/**
|
|
93
93
|
* Override price. In case you omit the override price, Wix charges site
|
|
94
94
|
* owners the app's default price that's configured in the Pricing page of your app's dashboard.
|
|
@@ -100,7 +100,7 @@ export interface ChargeOverride {
|
|
|
100
100
|
*/
|
|
101
101
|
currency?: string;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
interface GetUrlResponse {
|
|
104
104
|
/**
|
|
105
105
|
* URL for the Wix checkout page.
|
|
106
106
|
* @format WEB_URL
|
|
@@ -113,15 +113,15 @@ export interface GetUrlResponse {
|
|
|
113
113
|
*/
|
|
114
114
|
token?: string | null;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface GetPurchaseHistoryRequest {
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
interface GetPurchaseHistoryResponse {
|
|
119
119
|
/** Retrieved purchases the site owners have completed for you app. */
|
|
120
120
|
purchases?: PurchasedItem[];
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
interface GetSitePaymentMethodsStatusRequest {
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
interface GetSitePaymentMethodsStatusResponse {
|
|
125
125
|
/**
|
|
126
126
|
* Whether the site owners have enabled at least a single online payment method.
|
|
127
127
|
* Online payment methods include Wix Payments, Stripe, PayPal, and credit
|
|
@@ -142,7 +142,7 @@ export interface GetSitePaymentMethodsStatusResponse {
|
|
|
142
142
|
*/
|
|
143
143
|
thirdPartyPosProviderEnabled?: boolean;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
interface GetMeteredBillingChargesRequest {
|
|
146
146
|
/**
|
|
147
147
|
* 3-letter currency code in
|
|
148
148
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
@@ -160,11 +160,11 @@ export interface GetMeteredBillingChargesRequest {
|
|
|
160
160
|
*/
|
|
161
161
|
endDate?: Date | null;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
interface GetMeteredBillingChargesResponse {
|
|
164
164
|
/** List of retrieved custom charges. */
|
|
165
165
|
charges?: Charge[];
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
interface Charge {
|
|
168
168
|
/** ID of the custom charge. The ID consists of 64 characters. */
|
|
169
169
|
_id?: string | null;
|
|
170
170
|
/** Description of the custom charge. */
|
|
@@ -178,7 +178,7 @@ export interface Charge {
|
|
|
178
178
|
*/
|
|
179
179
|
amount?: string;
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
interface MessageEnvelope {
|
|
182
182
|
/**
|
|
183
183
|
* App instance ID.
|
|
184
184
|
* @format GUID
|
|
@@ -194,7 +194,7 @@ export interface MessageEnvelope {
|
|
|
194
194
|
/** Stringify payload. */
|
|
195
195
|
data?: string;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
198
198
|
/**
|
|
199
199
|
* ID of a site visitor that has not logged in to the site.
|
|
200
200
|
* @format GUID
|
|
@@ -219,7 +219,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
219
219
|
identityType?: WebhookIdentityType;
|
|
220
220
|
}
|
|
221
221
|
/** @oneof */
|
|
222
|
-
|
|
222
|
+
interface IdentificationDataIdOneOf {
|
|
223
223
|
/**
|
|
224
224
|
* ID of a site visitor that has not logged in to the site.
|
|
225
225
|
* @format GUID
|
|
@@ -241,33 +241,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
241
241
|
*/
|
|
242
242
|
appId?: string;
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
declare enum WebhookIdentityType {
|
|
245
245
|
UNKNOWN = "UNKNOWN",
|
|
246
246
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
247
247
|
MEMBER = "MEMBER",
|
|
248
248
|
WIX_USER = "WIX_USER",
|
|
249
249
|
APP = "APP"
|
|
250
250
|
}
|
|
251
|
-
|
|
252
|
-
checkoutUrl: string;
|
|
253
|
-
}
|
|
254
|
-
interface PurchasedItemNonNullableFields {
|
|
255
|
-
productId: string;
|
|
256
|
-
price: string;
|
|
257
|
-
currency: string;
|
|
258
|
-
billingCycle: PaymentCycle;
|
|
259
|
-
}
|
|
260
|
-
export interface GetPurchaseHistoryResponseNonNullableFields {
|
|
261
|
-
purchases: PurchasedItemNonNullableFields[];
|
|
262
|
-
}
|
|
263
|
-
interface ChargeNonNullableFields {
|
|
264
|
-
description: string;
|
|
265
|
-
amount: string;
|
|
266
|
-
}
|
|
267
|
-
export interface GetMeteredBillingChargesResponseNonNullableFields {
|
|
268
|
-
charges: ChargeNonNullableFields[];
|
|
269
|
-
}
|
|
270
|
-
export interface BaseEventMetadata {
|
|
251
|
+
interface BaseEventMetadata {
|
|
271
252
|
/**
|
|
272
253
|
* App instance ID.
|
|
273
254
|
* @format GUID
|
|
@@ -281,50 +262,11 @@ export interface BaseEventMetadata {
|
|
|
281
262
|
/** The identification type and identity data. */
|
|
282
263
|
identity?: IdentificationData;
|
|
283
264
|
}
|
|
284
|
-
|
|
265
|
+
interface PurchasedItemInvoiceStatusUpdatedEnvelope {
|
|
285
266
|
data: InvoiceStatusUpdated;
|
|
286
267
|
metadata: BaseEventMetadata;
|
|
287
268
|
}
|
|
288
|
-
|
|
289
|
-
* Triggered when there is an update to the payment status of an invoice.
|
|
290
|
-
* 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.
|
|
291
|
-
* 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).
|
|
292
|
-
* @permissionScope Manage Your App
|
|
293
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
294
|
-
* @permissionScope Read site, business, and email details
|
|
295
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
296
|
-
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
297
|
-
* @webhook
|
|
298
|
-
* @eventType InvoiceStatusUpdated
|
|
299
|
-
* @serviceIdentifier com.wixpress.market.aim.api.Checkout
|
|
300
|
-
* @slug invoice_status_updated
|
|
301
|
-
*/
|
|
302
|
-
export declare function onPurchasedItemInvoiceStatusUpdated(handler: (event: PurchasedItemInvoiceStatusUpdatedEnvelope) => void | Promise<void>): void;
|
|
303
|
-
/**
|
|
304
|
-
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* This call succeeds only in case you have previously
|
|
308
|
-
* [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).
|
|
309
|
-
*
|
|
310
|
-
* The returned checkout URL is valid for 48 hours.
|
|
311
|
-
*
|
|
312
|
-
* This API allows your app to manage your pricing page outside of Wix while
|
|
313
|
-
* still using the standard Wix checkout flow.
|
|
314
|
-
* @param productId - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
315
|
-
* for a list of your app's supported product IDs.
|
|
316
|
-
* @public
|
|
317
|
-
* @requiredField productId
|
|
318
|
-
* @permissionId WIX_DEVELOPERS.CREATE_CHECKOUT
|
|
319
|
-
* @permissionScope Manage Your App
|
|
320
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
321
|
-
* @permissionScope Read site, business, and email details
|
|
322
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
323
|
-
* @applicableIdentity APP
|
|
324
|
-
* @fqn com.wixpress.market.aim.api.Checkout.GetUrl
|
|
325
|
-
*/
|
|
326
|
-
export declare function getUrl(productId: string, options?: GetUrlOptions): Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
327
|
-
export interface GetUrlOptions {
|
|
269
|
+
interface GetUrlOptions {
|
|
328
270
|
/**
|
|
329
271
|
* URL for the Wix checkout page. Redirect site owners to this URL after
|
|
330
272
|
* they've successfully purchased a paid plan for your app.
|
|
@@ -357,25 +299,7 @@ export interface GetUrlOptions {
|
|
|
357
299
|
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
358
300
|
couponCode?: string | null;
|
|
359
301
|
}
|
|
360
|
-
|
|
361
|
-
* Retrieves a list of the site owner's past purchases for your app.
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
365
|
-
* the request, since this information is taken automatically from the context.
|
|
366
|
-
*
|
|
367
|
-
* The response doesn't include any details about cancellations.
|
|
368
|
-
* @public
|
|
369
|
-
* @permissionId WIX_DEVELOPERS.APP_PURCHASE_HISTORY
|
|
370
|
-
* @permissionScope Manage Your App
|
|
371
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
372
|
-
* @permissionScope Read site, business, and email details
|
|
373
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
374
|
-
* @applicableIdentity APP
|
|
375
|
-
* @fqn com.wixpress.market.aim.api.Checkout.GetPurchaseHistory
|
|
376
|
-
*/
|
|
377
|
-
export declare function getPurchaseHistory(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
378
|
-
export interface GetMeteredBillingChargesOptions {
|
|
302
|
+
interface GetMeteredBillingChargesOptions {
|
|
379
303
|
/**
|
|
380
304
|
* 3-letter currency code in
|
|
381
305
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
@@ -393,4 +317,5 @@ export interface GetMeteredBillingChargesOptions {
|
|
|
393
317
|
*/
|
|
394
318
|
endDate?: Date | null;
|
|
395
319
|
}
|
|
396
|
-
|
|
320
|
+
|
|
321
|
+
export { type BaseEventMetadata as B, type ChargeOverride as C, type GetUrlOptions as G, InvoiceStatus as I, type MessageEnvelope as M, PaymentCycle as P, WebhookIdentityType as W, type GetUrlResponse as a, type GetPurchaseHistoryResponse as b, type PurchasedItem as c, type InvoiceStatusUpdated as d, type GetUrlRequest as e, type GetPurchaseHistoryRequest as f, type GetSitePaymentMethodsStatusRequest as g, type GetSitePaymentMethodsStatusResponse as h, type GetMeteredBillingChargesRequest as i, type GetMeteredBillingChargesResponse as j, type Charge as k, type IdentificationData as l, type IdentificationDataIdOneOf as m, type PurchasedItemInvoiceStatusUpdatedEnvelope as n, type GetMeteredBillingChargesOptions as o };
|
|
@@ -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",
|
|
@@ -26,7 +26,7 @@ export declare enum PaymentCycle {
|
|
|
26
26
|
FOUR_YEARS = "FOUR_YEARS",
|
|
27
27
|
FIVE_YEARS = "FIVE_YEARS"
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
interface InvoiceStatusUpdated {
|
|
30
30
|
/** Invoice payment status. */
|
|
31
31
|
status?: InvoiceStatus;
|
|
32
32
|
/**
|
|
@@ -42,7 +42,7 @@ export interface InvoiceStatusUpdated {
|
|
|
42
42
|
/** Whether the invoice is for a single payment or for multiple, recurring payments. */
|
|
43
43
|
recurring?: boolean;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
declare enum InvoiceStatus {
|
|
46
46
|
UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
|
|
47
47
|
PAYMENT_FAILED = "PAYMENT_FAILED",
|
|
48
48
|
PAID = "PAID",
|
|
@@ -50,7 +50,7 @@ export declare enum InvoiceStatus {
|
|
|
50
50
|
VOIDED = "VOIDED",
|
|
51
51
|
CHARGEDBACK = "CHARGEDBACK"
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
interface GetUrlRequest {
|
|
54
54
|
/**
|
|
55
55
|
* ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
56
56
|
* for a list of your app's supported product IDs.
|
|
@@ -88,7 +88,7 @@ export interface GetUrlRequest {
|
|
|
88
88
|
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
89
89
|
couponCode?: string | null;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
interface ChargeOverride {
|
|
92
92
|
/**
|
|
93
93
|
* Override price. In case you omit the override price, Wix charges site
|
|
94
94
|
* owners the app's default price that's configured in the Pricing page of your app's dashboard.
|
|
@@ -100,7 +100,7 @@ export interface ChargeOverride {
|
|
|
100
100
|
*/
|
|
101
101
|
currency?: string;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
interface GetUrlResponse {
|
|
104
104
|
/**
|
|
105
105
|
* URL for the Wix checkout page.
|
|
106
106
|
* @format WEB_URL
|
|
@@ -113,15 +113,15 @@ export interface GetUrlResponse {
|
|
|
113
113
|
*/
|
|
114
114
|
token?: string | null;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface GetPurchaseHistoryRequest {
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
interface GetPurchaseHistoryResponse {
|
|
119
119
|
/** Retrieved purchases the site owners have completed for you app. */
|
|
120
120
|
purchases?: PurchasedItem[];
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
interface GetSitePaymentMethodsStatusRequest {
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
interface GetSitePaymentMethodsStatusResponse {
|
|
125
125
|
/**
|
|
126
126
|
* Whether the site owners have enabled at least a single online payment method.
|
|
127
127
|
* Online payment methods include Wix Payments, Stripe, PayPal, and credit
|
|
@@ -142,7 +142,7 @@ export interface GetSitePaymentMethodsStatusResponse {
|
|
|
142
142
|
*/
|
|
143
143
|
thirdPartyPosProviderEnabled?: boolean;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
interface GetMeteredBillingChargesRequest {
|
|
146
146
|
/**
|
|
147
147
|
* 3-letter currency code in
|
|
148
148
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
@@ -160,11 +160,11 @@ export interface GetMeteredBillingChargesRequest {
|
|
|
160
160
|
*/
|
|
161
161
|
endDate?: Date | null;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
interface GetMeteredBillingChargesResponse {
|
|
164
164
|
/** List of retrieved custom charges. */
|
|
165
165
|
charges?: Charge[];
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
interface Charge {
|
|
168
168
|
/** ID of the custom charge. The ID consists of 64 characters. */
|
|
169
169
|
_id?: string | null;
|
|
170
170
|
/** Description of the custom charge. */
|
|
@@ -178,7 +178,7 @@ export interface Charge {
|
|
|
178
178
|
*/
|
|
179
179
|
amount?: string;
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
interface MessageEnvelope {
|
|
182
182
|
/**
|
|
183
183
|
* App instance ID.
|
|
184
184
|
* @format GUID
|
|
@@ -194,7 +194,7 @@ export interface MessageEnvelope {
|
|
|
194
194
|
/** Stringify payload. */
|
|
195
195
|
data?: string;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
198
198
|
/**
|
|
199
199
|
* ID of a site visitor that has not logged in to the site.
|
|
200
200
|
* @format GUID
|
|
@@ -219,7 +219,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
219
219
|
identityType?: WebhookIdentityType;
|
|
220
220
|
}
|
|
221
221
|
/** @oneof */
|
|
222
|
-
|
|
222
|
+
interface IdentificationDataIdOneOf {
|
|
223
223
|
/**
|
|
224
224
|
* ID of a site visitor that has not logged in to the site.
|
|
225
225
|
* @format GUID
|
|
@@ -241,33 +241,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
241
241
|
*/
|
|
242
242
|
appId?: string;
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
declare enum WebhookIdentityType {
|
|
245
245
|
UNKNOWN = "UNKNOWN",
|
|
246
246
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
247
247
|
MEMBER = "MEMBER",
|
|
248
248
|
WIX_USER = "WIX_USER",
|
|
249
249
|
APP = "APP"
|
|
250
250
|
}
|
|
251
|
-
|
|
252
|
-
checkoutUrl: string;
|
|
253
|
-
}
|
|
254
|
-
interface PurchasedItemNonNullableFields {
|
|
255
|
-
productId: string;
|
|
256
|
-
price: string;
|
|
257
|
-
currency: string;
|
|
258
|
-
billingCycle: PaymentCycle;
|
|
259
|
-
}
|
|
260
|
-
export interface GetPurchaseHistoryResponseNonNullableFields {
|
|
261
|
-
purchases: PurchasedItemNonNullableFields[];
|
|
262
|
-
}
|
|
263
|
-
interface ChargeNonNullableFields {
|
|
264
|
-
description: string;
|
|
265
|
-
amount: string;
|
|
266
|
-
}
|
|
267
|
-
export interface GetMeteredBillingChargesResponseNonNullableFields {
|
|
268
|
-
charges: ChargeNonNullableFields[];
|
|
269
|
-
}
|
|
270
|
-
export interface BaseEventMetadata {
|
|
251
|
+
interface BaseEventMetadata {
|
|
271
252
|
/**
|
|
272
253
|
* App instance ID.
|
|
273
254
|
* @format GUID
|
|
@@ -281,50 +262,11 @@ export interface BaseEventMetadata {
|
|
|
281
262
|
/** The identification type and identity data. */
|
|
282
263
|
identity?: IdentificationData;
|
|
283
264
|
}
|
|
284
|
-
|
|
265
|
+
interface PurchasedItemInvoiceStatusUpdatedEnvelope {
|
|
285
266
|
data: InvoiceStatusUpdated;
|
|
286
267
|
metadata: BaseEventMetadata;
|
|
287
268
|
}
|
|
288
|
-
|
|
289
|
-
* Triggered when there is an update to the payment status of an invoice.
|
|
290
|
-
* 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.
|
|
291
|
-
* 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).
|
|
292
|
-
* @permissionScope Manage Your App
|
|
293
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
294
|
-
* @permissionScope Read site, business, and email details
|
|
295
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
296
|
-
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
297
|
-
* @webhook
|
|
298
|
-
* @eventType InvoiceStatusUpdated
|
|
299
|
-
* @serviceIdentifier com.wixpress.market.aim.api.Checkout
|
|
300
|
-
* @slug invoice_status_updated
|
|
301
|
-
*/
|
|
302
|
-
export declare function onPurchasedItemInvoiceStatusUpdated(handler: (event: PurchasedItemInvoiceStatusUpdatedEnvelope) => void | Promise<void>): void;
|
|
303
|
-
/**
|
|
304
|
-
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* This call succeeds only in case you have previously
|
|
308
|
-
* [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).
|
|
309
|
-
*
|
|
310
|
-
* The returned checkout URL is valid for 48 hours.
|
|
311
|
-
*
|
|
312
|
-
* This API allows your app to manage your pricing page outside of Wix while
|
|
313
|
-
* still using the standard Wix checkout flow.
|
|
314
|
-
* @param productId - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
315
|
-
* for a list of your app's supported product IDs.
|
|
316
|
-
* @public
|
|
317
|
-
* @requiredField productId
|
|
318
|
-
* @permissionId WIX_DEVELOPERS.CREATE_CHECKOUT
|
|
319
|
-
* @permissionScope Manage Your App
|
|
320
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
321
|
-
* @permissionScope Read site, business, and email details
|
|
322
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
323
|
-
* @applicableIdentity APP
|
|
324
|
-
* @fqn com.wixpress.market.aim.api.Checkout.GetUrl
|
|
325
|
-
*/
|
|
326
|
-
export declare function getUrl(productId: string, options?: GetUrlOptions): Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
327
|
-
export interface GetUrlOptions {
|
|
269
|
+
interface GetUrlOptions {
|
|
328
270
|
/**
|
|
329
271
|
* URL for the Wix checkout page. Redirect site owners to this URL after
|
|
330
272
|
* they've successfully purchased a paid plan for your app.
|
|
@@ -357,25 +299,7 @@ export interface GetUrlOptions {
|
|
|
357
299
|
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
358
300
|
couponCode?: string | null;
|
|
359
301
|
}
|
|
360
|
-
|
|
361
|
-
* Retrieves a list of the site owner's past purchases for your app.
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
365
|
-
* the request, since this information is taken automatically from the context.
|
|
366
|
-
*
|
|
367
|
-
* The response doesn't include any details about cancellations.
|
|
368
|
-
* @public
|
|
369
|
-
* @permissionId WIX_DEVELOPERS.APP_PURCHASE_HISTORY
|
|
370
|
-
* @permissionScope Manage Your App
|
|
371
|
-
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
372
|
-
* @permissionScope Read site, business, and email details
|
|
373
|
-
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
374
|
-
* @applicableIdentity APP
|
|
375
|
-
* @fqn com.wixpress.market.aim.api.Checkout.GetPurchaseHistory
|
|
376
|
-
*/
|
|
377
|
-
export declare function getPurchaseHistory(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
378
|
-
export interface GetMeteredBillingChargesOptions {
|
|
302
|
+
interface GetMeteredBillingChargesOptions {
|
|
379
303
|
/**
|
|
380
304
|
* 3-letter currency code in
|
|
381
305
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
@@ -393,4 +317,5 @@ export interface GetMeteredBillingChargesOptions {
|
|
|
393
317
|
*/
|
|
394
318
|
endDate?: Date | null;
|
|
395
319
|
}
|
|
396
|
-
|
|
320
|
+
|
|
321
|
+
export { type BaseEventMetadata as B, type ChargeOverride as C, type GetUrlOptions as G, InvoiceStatus as I, type MessageEnvelope as M, PaymentCycle as P, WebhookIdentityType as W, type GetUrlResponse as a, type GetPurchaseHistoryResponse as b, type PurchasedItem as c, type InvoiceStatusUpdated as d, type GetUrlRequest as e, type GetPurchaseHistoryRequest as f, type GetSitePaymentMethodsStatusRequest as g, type GetSitePaymentMethodsStatusResponse as h, type GetMeteredBillingChargesRequest as i, type GetMeteredBillingChargesResponse as j, type Charge as k, type IdentificationData as l, type IdentificationDataIdOneOf as m, type PurchasedItemInvoiceStatusUpdatedEnvelope as n, type GetMeteredBillingChargesOptions as o };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetUrlOptions, a as GetUrlResponse, b as GetPurchaseHistoryResponse } from './devcenter-checkout-v1-purchased-item-billing.universal-BvkvBr8A.mjs';
|
|
3
|
+
export { B as BaseEventMetadata, k as Charge, C as ChargeOverride, o as GetMeteredBillingChargesOptions, i as GetMeteredBillingChargesRequest, j as GetMeteredBillingChargesResponse, f as GetPurchaseHistoryRequest, g as GetSitePaymentMethodsStatusRequest, h as GetSitePaymentMethodsStatusResponse, e as GetUrlRequest, l as IdentificationData, m as IdentificationDataIdOneOf, I as InvoiceStatus, d as InvoiceStatusUpdated, M as MessageEnvelope, P as PaymentCycle, c as PurchasedItem, n as PurchasedItemInvoiceStatusUpdatedEnvelope, W as WebhookIdentityType } from './devcenter-checkout-v1-purchased-item-billing.universal-BvkvBr8A.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
7
|
+
interface GetUrlSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* This call succeeds only in case you have previously
|
|
13
|
+
* [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).
|
|
14
|
+
*
|
|
15
|
+
* The returned checkout URL is valid for 48 hours.
|
|
16
|
+
*
|
|
17
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
18
|
+
* still using the standard Wix checkout flow.
|
|
19
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
20
|
+
* for a list of your app's supported product IDs.
|
|
21
|
+
*/
|
|
22
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse>;
|
|
23
|
+
}
|
|
24
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
25
|
+
interface GetPurchaseHistorySignature {
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
31
|
+
* the request, since this information is taken automatically from the context.
|
|
32
|
+
*
|
|
33
|
+
* The response doesn't include any details about cancellations.
|
|
34
|
+
*/
|
|
35
|
+
(): Promise<GetPurchaseHistoryResponse>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const getUrl: MaybeContext<BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1>;
|
|
39
|
+
declare const getPurchaseHistory: MaybeContext<BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1>;
|
|
40
|
+
/**
|
|
41
|
+
* Triggered when there is an update to the payment status of an invoice.
|
|
42
|
+
* 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.
|
|
43
|
+
* 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).
|
|
44
|
+
*/
|
|
45
|
+
declare const onPurchasedItemInvoiceStatusUpdated: ReturnType<typeof createEventModule<typeof publicOnPurchasedItemInvoiceStatusUpdated>>;
|
|
46
|
+
|
|
47
|
+
export { GetPurchaseHistoryResponse, GetUrlOptions, GetUrlResponse, getPurchaseHistory, getUrl, onPurchasedItemInvoiceStatusUpdated };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetUrlOptions, a as GetUrlResponse, b as GetPurchaseHistoryResponse } from './devcenter-checkout-v1-purchased-item-billing.universal-BvkvBr8A.js';
|
|
3
|
+
export { B as BaseEventMetadata, k as Charge, C as ChargeOverride, o as GetMeteredBillingChargesOptions, i as GetMeteredBillingChargesRequest, j as GetMeteredBillingChargesResponse, f as GetPurchaseHistoryRequest, g as GetSitePaymentMethodsStatusRequest, h as GetSitePaymentMethodsStatusResponse, e as GetUrlRequest, l as IdentificationData, m as IdentificationDataIdOneOf, I as InvoiceStatus, d as InvoiceStatusUpdated, M as MessageEnvelope, P as PaymentCycle, c as PurchasedItem, n as PurchasedItemInvoiceStatusUpdatedEnvelope, W as WebhookIdentityType } from './devcenter-checkout-v1-purchased-item-billing.universal-BvkvBr8A.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
7
|
+
interface GetUrlSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* This call succeeds only in case you have previously
|
|
13
|
+
* [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).
|
|
14
|
+
*
|
|
15
|
+
* The returned checkout URL is valid for 48 hours.
|
|
16
|
+
*
|
|
17
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
18
|
+
* still using the standard Wix checkout flow.
|
|
19
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
20
|
+
* for a list of your app's supported product IDs.
|
|
21
|
+
*/
|
|
22
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse>;
|
|
23
|
+
}
|
|
24
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
25
|
+
interface GetPurchaseHistorySignature {
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
31
|
+
* the request, since this information is taken automatically from the context.
|
|
32
|
+
*
|
|
33
|
+
* The response doesn't include any details about cancellations.
|
|
34
|
+
*/
|
|
35
|
+
(): Promise<GetPurchaseHistoryResponse>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const getUrl: MaybeContext<BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1>;
|
|
39
|
+
declare const getPurchaseHistory: MaybeContext<BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1>;
|
|
40
|
+
/**
|
|
41
|
+
* Triggered when there is an update to the payment status of an invoice.
|
|
42
|
+
* 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.
|
|
43
|
+
* 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).
|
|
44
|
+
*/
|
|
45
|
+
declare const onPurchasedItemInvoiceStatusUpdated: ReturnType<typeof createEventModule<typeof publicOnPurchasedItemInvoiceStatusUpdated>>;
|
|
46
|
+
|
|
47
|
+
export { GetPurchaseHistoryResponse, GetUrlOptions, GetUrlResponse, getPurchaseHistory, getUrl, onPurchasedItemInvoiceStatusUpdated };
|