@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.
Files changed (134) hide show
  1. 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
  2. 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
  3. package/build/index.d.mts +47 -0
  4. package/build/index.d.ts +47 -0
  5. package/build/index.js +359 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +329 -0
  8. package/build/index.mjs.map +1 -0
  9. 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
  10. 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
  11. package/build/internal/index.d.mts +64 -0
  12. package/build/internal/index.d.ts +64 -0
  13. package/build/internal/index.js +359 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +329 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +139 -0
  18. package/build/internal/meta.d.ts +139 -0
  19. package/build/internal/meta.js +240 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +211 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +139 -0
  24. package/build/meta.d.ts +139 -0
  25. package/build/meta.js +240 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +211 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -14
  40. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -22
  41. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
  42. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
  43. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -184
  44. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
  45. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
  46. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -85
  47. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
  48. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -38
  49. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -32
  50. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
  51. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -32
  52. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
  53. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -207
  54. package/build/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -14
  66. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -16
  67. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
  68. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
  69. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -178
  70. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
  71. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
  72. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -56
  73. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
  74. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -38
  75. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -23
  76. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
  77. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -29
  78. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
  79. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -178
  80. package/build/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -16
  91. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -22
  92. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
  93. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
  94. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -184
  95. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
  96. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
  97. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -85
  98. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
  99. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -53
  100. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -32
  101. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
  102. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts +0 -270
  103. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -32
  104. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
  105. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts +0 -416
  106. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -207
  107. package/build/internal/cjs/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.d.ts +0 -16
  118. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.js +0 -16
  119. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.context.js.map +0 -1
  120. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.d.ts +0 -35
  121. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.js +0 -178
  122. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.http.js.map +0 -1
  123. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.d.ts +0 -15
  124. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js +0 -56
  125. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.meta.js.map +0 -1
  126. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.d.ts +0 -53
  127. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.js +0 -23
  128. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.public.js.map +0 -1
  129. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.d.ts +0 -270
  130. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.js +0 -29
  131. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.types.js.map +0 -1
  132. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.d.ts +0 -416
  133. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js +0 -178
  134. package/build/internal/es/src/devcenter-checkout-v1-purchased-item-billing.universal.js.map +0 -1
@@ -1,416 +0,0 @@
1
- export interface PurchasedItem {
2
- /** ID of your app's paid plan. */
3
- productId?: string;
4
- /** Price of your app's paid plan. For example, `9.95`. */
5
- price?: string;
6
- /**
7
- * 3-letter currency code in
8
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
9
- */
10
- currency?: string;
11
- /** Information about the billing cycle for your app's paid plan. */
12
- billingCycle?: PaymentCycle;
13
- /**
14
- * Date and time the site onwers have purchased your app's paid plan in
15
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
16
- */
17
- dateCreated?: Date | null;
18
- }
19
- export declare enum PaymentCycle {
20
- NO_CYCLE = "NO_CYCLE",
21
- MONTHLY = "MONTHLY",
22
- YEARLY = "YEARLY",
23
- ONE_TIME = "ONE_TIME",
24
- TWO_YEARS = "TWO_YEARS",
25
- THREE_YEARS = "THREE_YEARS",
26
- FOUR_YEARS = "FOUR_YEARS",
27
- FIVE_YEARS = "FIVE_YEARS"
28
- }
29
- export interface InvoiceStatusUpdated {
30
- /** Invoice payment status. */
31
- status?: InvoiceStatus;
32
- /**
33
- * Wix Premium invoice ID.
34
- * @maxLength 50
35
- */
36
- invoiceId?: string;
37
- /**
38
- * App instance ID - a unique ID assigned to each app in each site.
39
- * @format GUID
40
- */
41
- instanceId?: string | null;
42
- /** Whether the invoice is for a single payment or for multiple, recurring payments. */
43
- recurring?: boolean;
44
- }
45
- export declare enum InvoiceStatus {
46
- UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
47
- PAYMENT_FAILED = "PAYMENT_FAILED",
48
- PAID = "PAID",
49
- REFUNDED = "REFUNDED",
50
- VOIDED = "VOIDED",
51
- CHARGEDBACK = "CHARGEDBACK"
52
- }
53
- export interface GetUrlRequest {
54
- /**
55
- * ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
56
- * for a list of your app's supported product IDs.
57
- */
58
- productId: string;
59
- /**
60
- * URL for the Wix checkout page. Redirect site owners to this URL after
61
- * they've successfully purchased a paid plan for your app.
62
- * @format WEB_URL
63
- */
64
- successUrl?: string | null;
65
- /**
66
- * Whether the checkout is for testing purposes only. Testing is mainly
67
- * relevant for in-app purchase flows. When `true`, Wix charges the site
68
- * owners an amount of `0.00`.
69
- */
70
- testCheckout?: boolean;
71
- /** Information about the paid plan's billing cycle. */
72
- billingCycle?: PaymentCycle;
73
- /**
74
- * 2-letter country code in
75
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
76
- * format.
77
- *
78
- * Default: `"US"`
79
- */
80
- countryCode?: string | null;
81
- /**
82
- * 2-letter language code in
83
- * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
84
- *
85
- * Default: `"EN"`
86
- */
87
- languageCode?: string | null;
88
- /** Coupon code for the paid plan. Available only in case there is a discount. */
89
- couponCode?: string | null;
90
- }
91
- export interface ChargeOverride {
92
- /**
93
- * Override price. In case you omit the override price, Wix charges site
94
- * owners the app's default price that's configured in the Pricing page of your app's dashboard.
95
- */
96
- price?: number;
97
- /**
98
- * Override 3-letter currency code in
99
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
100
- */
101
- currency?: string;
102
- }
103
- export interface GetUrlResponse {
104
- /**
105
- * URL for the Wix checkout page.
106
- * @format WEB_URL
107
- */
108
- checkoutUrl?: string;
109
- /**
110
- * Token for the Wix checkout page. The token holds all data about the order
111
- * you're creating a checkout for. It is [signed](),
112
- * so you can verify that it comes from Wix.
113
- */
114
- token?: string | null;
115
- }
116
- export interface GetPurchaseHistoryRequest {
117
- }
118
- export interface GetPurchaseHistoryResponse {
119
- /** Retrieved purchases the site owners have completed for you app. */
120
- purchases?: PurchasedItem[];
121
- }
122
- export interface GetSitePaymentMethodsStatusRequest {
123
- }
124
- export interface GetSitePaymentMethodsStatusResponse {
125
- /**
126
- * Whether the site owners have enabled at least a single online payment method.
127
- * Online payment methods include Wix Payments, Stripe, PayPal, and credit
128
- * cards.
129
- */
130
- onlineProviderEnabled?: boolean;
131
- /** Whether the site owners accept offline payments. */
132
- offlineProviderEnabled?: boolean;
133
- /**
134
- * Whether the site owners have enabled the
135
- * [Wix Point of Sale](https://www.wix.com/pos).
136
- * This allows their customers to make electronic payments in person.
137
- */
138
- wixPosProviderEnabled?: boolean;
139
- /**
140
- * Whether the site owners have enabled at least one 3rd-party point-of-sale
141
- * provider. This allows their customers to make electronic payments in person.
142
- */
143
- thirdPartyPosProviderEnabled?: boolean;
144
- }
145
- export interface GetMeteredBillingChargesRequest {
146
- /**
147
- * 3-letter currency code in
148
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
149
- * @format CURRENCY
150
- */
151
- currency?: string | null;
152
- /**
153
- * Start of the period you want to retrieve the custom charges for in
154
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
155
- */
156
- startDate?: Date | null;
157
- /**
158
- * End of the period you want to retrieve the custom charges for in
159
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
160
- */
161
- endDate?: Date | null;
162
- }
163
- export interface GetMeteredBillingChargesResponse {
164
- /** List of retrieved custom charges. */
165
- charges?: Charge[];
166
- }
167
- export interface Charge {
168
- /** ID of the custom charge. The ID consists of 64 characters. */
169
- _id?: string | null;
170
- /** Description of the custom charge. */
171
- description?: string;
172
- /**
173
- * Charge amount.
174
- *
175
- * Min: `0.50`
176
- * @format DECIMAL_VALUE
177
- * @decimalValue options { gt:0.00 }
178
- */
179
- amount?: string;
180
- }
181
- export interface MessageEnvelope {
182
- /**
183
- * App instance ID.
184
- * @format GUID
185
- */
186
- instanceId?: string | null;
187
- /**
188
- * Event type.
189
- * @maxLength 150
190
- */
191
- eventType?: string;
192
- /** The identification type and identity data. */
193
- identity?: IdentificationData;
194
- /** Stringify payload. */
195
- data?: string;
196
- }
197
- export interface IdentificationData extends IdentificationDataIdOneOf {
198
- /**
199
- * ID of a site visitor that has not logged in to the site.
200
- * @format GUID
201
- */
202
- anonymousVisitorId?: string;
203
- /**
204
- * ID of a site visitor that has logged in to the site.
205
- * @format GUID
206
- */
207
- memberId?: string;
208
- /**
209
- * ID of a Wix user (site owner, contributor, etc.).
210
- * @format GUID
211
- */
212
- wixUserId?: string;
213
- /**
214
- * ID of an app.
215
- * @format GUID
216
- */
217
- appId?: string;
218
- /** @readonly */
219
- identityType?: WebhookIdentityType;
220
- }
221
- /** @oneof */
222
- export interface IdentificationDataIdOneOf {
223
- /**
224
- * ID of a site visitor that has not logged in to the site.
225
- * @format GUID
226
- */
227
- anonymousVisitorId?: string;
228
- /**
229
- * ID of a site visitor that has logged in to the site.
230
- * @format GUID
231
- */
232
- memberId?: string;
233
- /**
234
- * ID of a Wix user (site owner, contributor, etc.).
235
- * @format GUID
236
- */
237
- wixUserId?: string;
238
- /**
239
- * ID of an app.
240
- * @format GUID
241
- */
242
- appId?: string;
243
- }
244
- export declare enum WebhookIdentityType {
245
- UNKNOWN = "UNKNOWN",
246
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
247
- MEMBER = "MEMBER",
248
- WIX_USER = "WIX_USER",
249
- APP = "APP"
250
- }
251
- export interface GetUrlResponseNonNullableFields {
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 {
271
- /**
272
- * App instance ID.
273
- * @format GUID
274
- */
275
- instanceId?: string | null;
276
- /**
277
- * Event type.
278
- * @maxLength 150
279
- */
280
- eventType?: string;
281
- /** The identification type and identity data. */
282
- identity?: IdentificationData;
283
- }
284
- export interface PurchasedItemInvoiceStatusUpdatedEnvelope {
285
- data: InvoiceStatusUpdated;
286
- metadata: BaseEventMetadata;
287
- }
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 {
328
- /**
329
- * URL for the Wix checkout page. Redirect site owners to this URL after
330
- * they've successfully purchased a paid plan for your app.
331
- * @format WEB_URL
332
- */
333
- successUrl?: string | null;
334
- /**
335
- * Whether the checkout is for testing purposes only. Testing is mainly
336
- * relevant for in-app purchase flows. When `true`, Wix charges the site
337
- * owners an amount of `0.00`.
338
- */
339
- testCheckout?: boolean;
340
- /** Information about the paid plan's billing cycle. */
341
- billingCycle?: PaymentCycle;
342
- /**
343
- * 2-letter country code in
344
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
345
- * format.
346
- *
347
- * Default: `"US"`
348
- */
349
- countryCode?: string | null;
350
- /**
351
- * 2-letter language code in
352
- * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
353
- *
354
- * Default: `"EN"`
355
- */
356
- languageCode?: string | null;
357
- /** Coupon code for the paid plan. Available only in case there is a discount. */
358
- couponCode?: string | null;
359
- }
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
- /**
379
- * Triggers Wix to call the
380
- * [List Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/custom-charges-provider-v1/list-charges).
381
- *
382
- *
383
- * Wix doesn't use the response from _List Charges_ SPI to actually create an
384
- * invoice that's sent to the customer. Instead, calling _Get Metered Billing Charges_
385
- * allows you confirm that your integration with the Custom Charges SPI is
386
- * working as intended.
387
- * @internal
388
- * @documentationMaturity preview
389
- * @permissionId WIX_DEVELOPERS.METERED_BILLING_CHARGES_READ
390
- * @permissionScope Manage Your App
391
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
392
- * @permissionScope Read site, business, and email details
393
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
394
- * @applicableIdentity APP
395
- * @fqn com.wixpress.market.aim.api.Checkout.GetMeteredBillingCharges
396
- */
397
- export declare function getMeteredBillingCharges(options?: GetMeteredBillingChargesOptions): Promise<GetMeteredBillingChargesResponse & GetMeteredBillingChargesResponseNonNullableFields>;
398
- export interface GetMeteredBillingChargesOptions {
399
- /**
400
- * 3-letter currency code in
401
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
402
- * @format CURRENCY
403
- */
404
- currency?: string | null;
405
- /**
406
- * Start of the period you want to retrieve the custom charges for in
407
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
408
- */
409
- startDate?: Date | null;
410
- /**
411
- * End of the period you want to retrieve the custom charges for in
412
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
413
- */
414
- endDate?: Date | null;
415
- }
416
- export {};
@@ -1,207 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getMeteredBillingCharges = exports.getPurchaseHistory = exports.getUrl = exports.WebhookIdentityType = exports.InvoiceStatus = exports.PaymentCycle = void 0;
27
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
- const ambassadorWixDevcenterCheckoutV1PurchasedItem = __importStar(require("./devcenter-checkout-v1-purchased-item-billing.http.js"));
30
- var PaymentCycle;
31
- (function (PaymentCycle) {
32
- PaymentCycle["NO_CYCLE"] = "NO_CYCLE";
33
- PaymentCycle["MONTHLY"] = "MONTHLY";
34
- PaymentCycle["YEARLY"] = "YEARLY";
35
- PaymentCycle["ONE_TIME"] = "ONE_TIME";
36
- PaymentCycle["TWO_YEARS"] = "TWO_YEARS";
37
- PaymentCycle["THREE_YEARS"] = "THREE_YEARS";
38
- PaymentCycle["FOUR_YEARS"] = "FOUR_YEARS";
39
- PaymentCycle["FIVE_YEARS"] = "FIVE_YEARS";
40
- })(PaymentCycle || (exports.PaymentCycle = PaymentCycle = {}));
41
- var InvoiceStatus;
42
- (function (InvoiceStatus) {
43
- InvoiceStatus["UNKNOWN_INVOICE_STATUS"] = "UNKNOWN_INVOICE_STATUS";
44
- InvoiceStatus["PAYMENT_FAILED"] = "PAYMENT_FAILED";
45
- InvoiceStatus["PAID"] = "PAID";
46
- InvoiceStatus["REFUNDED"] = "REFUNDED";
47
- InvoiceStatus["VOIDED"] = "VOIDED";
48
- InvoiceStatus["CHARGEDBACK"] = "CHARGEDBACK";
49
- })(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
50
- var WebhookIdentityType;
51
- (function (WebhookIdentityType) {
52
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
53
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
54
- WebhookIdentityType["MEMBER"] = "MEMBER";
55
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
56
- WebhookIdentityType["APP"] = "APP";
57
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
58
- /**
59
- * Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
60
- *
61
- *
62
- * This call succeeds only in case you have previously
63
- * [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).
64
- *
65
- * The returned checkout URL is valid for 48 hours.
66
- *
67
- * This API allows your app to manage your pricing page outside of Wix while
68
- * still using the standard Wix checkout flow.
69
- * @param productId - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
70
- * for a list of your app's supported product IDs.
71
- * @public
72
- * @requiredField productId
73
- * @permissionId WIX_DEVELOPERS.CREATE_CHECKOUT
74
- * @permissionScope Manage Your App
75
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
76
- * @permissionScope Read site, business, and email details
77
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
78
- * @applicableIdentity APP
79
- * @fqn com.wixpress.market.aim.api.Checkout.GetUrl
80
- */
81
- async function getUrl(productId, options) {
82
- // @ts-ignore
83
- const { httpClient, sideEffects } = arguments[2];
84
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
85
- productId: productId,
86
- successUrl: options?.successUrl,
87
- testCheckout: options?.testCheckout,
88
- billingCycle: options?.billingCycle,
89
- countryCode: options?.countryCode,
90
- languageCode: options?.languageCode,
91
- couponCode: options?.couponCode,
92
- });
93
- const reqOpts = ambassadorWixDevcenterCheckoutV1PurchasedItem.getUrl(payload);
94
- sideEffects?.onSiteCall?.();
95
- try {
96
- const result = await httpClient.request(reqOpts);
97
- sideEffects?.onSuccess?.(result);
98
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
99
- }
100
- catch (err) {
101
- const transformedError = (0, transform_error_1.transformError)(err, {
102
- spreadPathsToArguments: {},
103
- explicitPathsToArguments: {
104
- productId: '$[0]',
105
- successUrl: '$[1].successUrl',
106
- testCheckout: '$[1].testCheckout',
107
- billingCycle: '$[1].billingCycle',
108
- countryCode: '$[1].countryCode',
109
- languageCode: '$[1].languageCode',
110
- couponCode: '$[1].couponCode',
111
- },
112
- singleArgumentUnchanged: false,
113
- }, ['productId', 'options']);
114
- sideEffects?.onError?.(err);
115
- throw transformedError;
116
- }
117
- }
118
- exports.getUrl = getUrl;
119
- /**
120
- * Retrieves a list of the site owner's past purchases for your app.
121
- *
122
- *
123
- * You don't have to explicitly pass an identifier for the Wix site as part of
124
- * the request, since this information is taken automatically from the context.
125
- *
126
- * The response doesn't include any details about cancellations.
127
- * @public
128
- * @permissionId WIX_DEVELOPERS.APP_PURCHASE_HISTORY
129
- * @permissionScope Manage Your App
130
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
131
- * @permissionScope Read site, business, and email details
132
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
133
- * @applicableIdentity APP
134
- * @fqn com.wixpress.market.aim.api.Checkout.GetPurchaseHistory
135
- */
136
- async function getPurchaseHistory() {
137
- // @ts-ignore
138
- const { httpClient, sideEffects } = arguments[0];
139
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
140
- const reqOpts = ambassadorWixDevcenterCheckoutV1PurchasedItem.getPurchaseHistory(payload);
141
- sideEffects?.onSiteCall?.();
142
- try {
143
- const result = await httpClient.request(reqOpts);
144
- sideEffects?.onSuccess?.(result);
145
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
146
- }
147
- catch (err) {
148
- const transformedError = (0, transform_error_1.transformError)(err, {
149
- spreadPathsToArguments: {},
150
- explicitPathsToArguments: {},
151
- singleArgumentUnchanged: false,
152
- }, []);
153
- sideEffects?.onError?.(err);
154
- throw transformedError;
155
- }
156
- }
157
- exports.getPurchaseHistory = getPurchaseHistory;
158
- /**
159
- * Triggers Wix to call the
160
- * [List Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/custom-charges-provider-v1/list-charges).
161
- *
162
- *
163
- * Wix doesn't use the response from _List Charges_ SPI to actually create an
164
- * invoice that's sent to the customer. Instead, calling _Get Metered Billing Charges_
165
- * allows you confirm that your integration with the Custom Charges SPI is
166
- * working as intended.
167
- * @internal
168
- * @documentationMaturity preview
169
- * @permissionId WIX_DEVELOPERS.METERED_BILLING_CHARGES_READ
170
- * @permissionScope Manage Your App
171
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
172
- * @permissionScope Read site, business, and email details
173
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
174
- * @applicableIdentity APP
175
- * @fqn com.wixpress.market.aim.api.Checkout.GetMeteredBillingCharges
176
- */
177
- async function getMeteredBillingCharges(options) {
178
- // @ts-ignore
179
- const { httpClient, sideEffects } = arguments[1];
180
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
181
- currency: options?.currency,
182
- startDate: options?.startDate,
183
- endDate: options?.endDate,
184
- });
185
- const reqOpts = ambassadorWixDevcenterCheckoutV1PurchasedItem.getMeteredBillingCharges(payload);
186
- sideEffects?.onSiteCall?.();
187
- try {
188
- const result = await httpClient.request(reqOpts);
189
- sideEffects?.onSuccess?.(result);
190
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
191
- }
192
- catch (err) {
193
- const transformedError = (0, transform_error_1.transformError)(err, {
194
- spreadPathsToArguments: {},
195
- explicitPathsToArguments: {
196
- currency: '$[0].currency',
197
- startDate: '$[0].startDate',
198
- endDate: '$[0].endDate',
199
- },
200
- singleArgumentUnchanged: false,
201
- }, ['options']);
202
- sideEffects?.onError?.(err);
203
- throw transformedError;
204
- }
205
- }
206
- exports.getMeteredBillingCharges = getMeteredBillingCharges;
207
- //# sourceMappingURL=devcenter-checkout-v1-purchased-item-billing.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-checkout-v1-purchased-item-billing.universal.js","sourceRoot":"","sources":["../../../../src/devcenter-checkout-v1-purchased-item-billing.universal.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.context.js';
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,iEAAiE,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.meta.js';
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-checkout-v1-purchased-item-billing.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC"}
@@ -1,16 +0,0 @@
1
- import { getUrl as publicGetUrl, getPurchaseHistory as publicGetPurchaseHistory, getMeteredBillingCharges as publicGetMeteredBillingCharges } from './devcenter-checkout-v1-purchased-item-billing.public.js';
2
- import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
- import { onPurchasedItemInvoiceStatusUpdated as publicOnPurchasedItemInvoiceStatusUpdated } from './devcenter-checkout-v1-purchased-item-billing.public.js';
5
- export declare const getUrl: MaybeContext<BuildRESTFunction<typeof publicGetUrl> & typeof publicGetUrl>;
6
- export declare const getPurchaseHistory: MaybeContext<BuildRESTFunction<typeof publicGetPurchaseHistory> & typeof publicGetPurchaseHistory>;
7
- /** @internal */
8
- export declare const getMeteredBillingCharges: MaybeContext<BuildRESTFunction<typeof publicGetMeteredBillingCharges> & typeof publicGetMeteredBillingCharges>;
9
- /**
10
- * Triggered when there is an update to the payment status of an invoice.
11
- * 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.
12
- * 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).
13
- */
14
- export declare const onPurchasedItemInvoiceStatusUpdated: ReturnType<typeof createEventModule<typeof publicOnPurchasedItemInvoiceStatusUpdated>>;
15
- export { PaymentCycle, InvoiceStatus, WebhookIdentityType, } from './devcenter-checkout-v1-purchased-item-billing.universal.js';
16
- export { PurchasedItem, InvoiceStatusUpdated, GetUrlRequest, ChargeOverride, GetUrlResponse, GetPurchaseHistoryRequest, GetPurchaseHistoryResponse, GetSitePaymentMethodsStatusRequest, GetSitePaymentMethodsStatusResponse, GetMeteredBillingChargesRequest, GetMeteredBillingChargesResponse, Charge, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetUrlResponseNonNullableFields, GetPurchaseHistoryResponseNonNullableFields, GetMeteredBillingChargesResponseNonNullableFields, BaseEventMetadata, PurchasedItemInvoiceStatusUpdatedEnvelope, GetUrlOptions, GetMeteredBillingChargesOptions, } from './devcenter-checkout-v1-purchased-item-billing.universal.js';