@wix/auto_sdk_app-management_billing 1.0.15 → 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.
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-BOJl75V0.d.mts} +27 -87
  2. 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
  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-0VctJpJS.d.mts} +93 -22
  10. 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
  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 +141 -0
  18. package/build/internal/meta.d.ts +141 -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 +141 -0
  24. package/build/meta.d.ts +141 -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 +12 -11
  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 -256
  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 -407
  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 -256
  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 -407
  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,256 +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?: PaymentCycleWithLiterals;
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
- /** @enumType */
30
- export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
31
- export interface InvoiceStatusUpdated {
32
- /** Invoice payment status. */
33
- status?: InvoiceStatusWithLiterals;
34
- /**
35
- * Wix Premium invoice ID.
36
- * @maxLength 50
37
- */
38
- invoiceId?: string;
39
- /**
40
- * App instance ID - a unique ID assigned to each app in each site.
41
- * @format GUID
42
- */
43
- instanceId?: string | null;
44
- /** Whether the invoice is for a single payment or for multiple, recurring payments. */
45
- recurring?: boolean;
46
- }
47
- export declare enum InvoiceStatus {
48
- UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
49
- PAYMENT_FAILED = "PAYMENT_FAILED",
50
- PAID = "PAID",
51
- REFUNDED = "REFUNDED",
52
- VOIDED = "VOIDED",
53
- CHARGEDBACK = "CHARGEDBACK"
54
- }
55
- /** @enumType */
56
- export type InvoiceStatusWithLiterals = InvoiceStatus | 'UNKNOWN_INVOICE_STATUS' | 'PAYMENT_FAILED' | 'PAID' | 'REFUNDED' | 'VOIDED' | 'CHARGEDBACK';
57
- export interface GetUrlRequest {
58
- /**
59
- * ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
60
- * for a list of your app's supported product IDs.
61
- */
62
- productId: string;
63
- /**
64
- * URL for the Wix checkout page. Redirect site owners to this URL after
65
- * they've successfully purchased a paid plan for your app.
66
- * @format WEB_URL
67
- */
68
- successUrl?: string | null;
69
- /**
70
- * Whether the checkout is for testing purposes only. Testing is mainly
71
- * relevant for in-app purchase flows. When `true`, Wix charges the site
72
- * owners an amount of `0.00`.
73
- */
74
- testCheckout?: boolean;
75
- /** Information about the paid plan's billing cycle. */
76
- billingCycle?: PaymentCycleWithLiterals;
77
- /**
78
- * 2-letter country code in
79
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
80
- * format.
81
- *
82
- * Default: `"US"`
83
- */
84
- countryCode?: string | null;
85
- /**
86
- * 2-letter language code in
87
- * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
88
- *
89
- * Default: `"EN"`
90
- */
91
- languageCode?: string | null;
92
- /** Coupon code for the paid plan. Available only in case there is a discount. */
93
- couponCode?: string | null;
94
- }
95
- export interface ChargeOverride {
96
- /**
97
- * Override price. In case you omit the override price, Wix charges site
98
- * owners the app's default price that's configured in the Pricing page of your app's dashboard.
99
- */
100
- price?: number;
101
- /**
102
- * Override 3-letter currency code in
103
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
104
- */
105
- currency?: string;
106
- }
107
- export interface GetUrlResponse {
108
- /**
109
- * URL for the Wix checkout page.
110
- * @format WEB_URL
111
- */
112
- checkoutUrl?: string;
113
- /**
114
- * Token for the Wix checkout page. The token holds all data about the order
115
- * you're creating a checkout for. It is [signed](),
116
- * so you can verify that it comes from Wix.
117
- */
118
- token?: string | null;
119
- }
120
- export interface GetPurchaseHistoryRequest {
121
- }
122
- export interface GetPurchaseHistoryResponse {
123
- /** Retrieved purchases the site owners have completed for you app. */
124
- purchases?: PurchasedItem[];
125
- }
126
- export interface GetSitePaymentMethodsStatusRequest {
127
- }
128
- export interface GetSitePaymentMethodsStatusResponse {
129
- /**
130
- * Whether the site owners have enabled at least a single online payment method.
131
- * Online payment methods include Wix Payments, Stripe, PayPal, and credit
132
- * cards.
133
- */
134
- onlineProviderEnabled?: boolean;
135
- /** Whether the site owners accept offline payments. */
136
- offlineProviderEnabled?: boolean;
137
- /**
138
- * Whether the site owners have enabled the
139
- * [Wix Point of Sale](https://www.wix.com/pos).
140
- * This allows their customers to make electronic payments in person.
141
- */
142
- wixPosProviderEnabled?: boolean;
143
- /**
144
- * Whether the site owners have enabled at least one 3rd-party point-of-sale
145
- * provider. This allows their customers to make electronic payments in person.
146
- */
147
- thirdPartyPosProviderEnabled?: boolean;
148
- }
149
- export interface GetMeteredBillingChargesRequest {
150
- /**
151
- * 3-letter currency code in
152
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
153
- * @format CURRENCY
154
- */
155
- currency?: string | null;
156
- /**
157
- * Start of the period you want to retrieve the custom charges for in
158
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
159
- */
160
- startDate?: Date | null;
161
- /**
162
- * End of the period you want to retrieve the custom charges for in
163
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
164
- */
165
- endDate?: Date | null;
166
- }
167
- export interface GetMeteredBillingChargesResponse {
168
- /** List of retrieved custom charges. */
169
- charges?: Charge[];
170
- }
171
- export interface Charge {
172
- /** ID of the custom charge. The ID consists of 64 characters. */
173
- id?: string | null;
174
- /** Description of the custom charge. */
175
- description?: string;
176
- /**
177
- * Charge amount.
178
- *
179
- * Min: `0.50`
180
- * @format DECIMAL_VALUE
181
- * @decimalValue options { gt:0.00 }
182
- */
183
- amount?: string;
184
- }
185
- export interface MessageEnvelope {
186
- /**
187
- * App instance ID.
188
- * @format GUID
189
- */
190
- instanceId?: string | null;
191
- /**
192
- * Event type.
193
- * @maxLength 150
194
- */
195
- eventType?: string;
196
- /** The identification type and identity data. */
197
- identity?: IdentificationData;
198
- /** Stringify payload. */
199
- data?: string;
200
- }
201
- export interface IdentificationData extends IdentificationDataIdOneOf {
202
- /**
203
- * ID of a site visitor that has not logged in to the site.
204
- * @format GUID
205
- */
206
- anonymousVisitorId?: string;
207
- /**
208
- * ID of a site visitor that has logged in to the site.
209
- * @format GUID
210
- */
211
- memberId?: string;
212
- /**
213
- * ID of a Wix user (site owner, contributor, etc.).
214
- * @format GUID
215
- */
216
- wixUserId?: string;
217
- /**
218
- * ID of an app.
219
- * @format GUID
220
- */
221
- appId?: string;
222
- /** @readonly */
223
- identityType?: WebhookIdentityTypeWithLiterals;
224
- }
225
- /** @oneof */
226
- export interface IdentificationDataIdOneOf {
227
- /**
228
- * ID of a site visitor that has not logged in to the site.
229
- * @format GUID
230
- */
231
- anonymousVisitorId?: string;
232
- /**
233
- * ID of a site visitor that has logged in to the site.
234
- * @format GUID
235
- */
236
- memberId?: string;
237
- /**
238
- * ID of a Wix user (site owner, contributor, etc.).
239
- * @format GUID
240
- */
241
- wixUserId?: string;
242
- /**
243
- * ID of an app.
244
- * @format GUID
245
- */
246
- appId?: string;
247
- }
248
- export declare enum WebhookIdentityType {
249
- UNKNOWN = "UNKNOWN",
250
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
251
- MEMBER = "MEMBER",
252
- WIX_USER = "WIX_USER",
253
- APP = "APP"
254
- }
255
- /** @enumType */
256
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookIdentityType = exports.InvoiceStatus = exports.PaymentCycle = void 0;
4
- var PaymentCycle;
5
- (function (PaymentCycle) {
6
- PaymentCycle["NO_CYCLE"] = "NO_CYCLE";
7
- PaymentCycle["MONTHLY"] = "MONTHLY";
8
- PaymentCycle["YEARLY"] = "YEARLY";
9
- PaymentCycle["ONE_TIME"] = "ONE_TIME";
10
- PaymentCycle["TWO_YEARS"] = "TWO_YEARS";
11
- PaymentCycle["THREE_YEARS"] = "THREE_YEARS";
12
- PaymentCycle["FOUR_YEARS"] = "FOUR_YEARS";
13
- PaymentCycle["FIVE_YEARS"] = "FIVE_YEARS";
14
- })(PaymentCycle || (exports.PaymentCycle = PaymentCycle = {}));
15
- var InvoiceStatus;
16
- (function (InvoiceStatus) {
17
- InvoiceStatus["UNKNOWN_INVOICE_STATUS"] = "UNKNOWN_INVOICE_STATUS";
18
- InvoiceStatus["PAYMENT_FAILED"] = "PAYMENT_FAILED";
19
- InvoiceStatus["PAID"] = "PAID";
20
- InvoiceStatus["REFUNDED"] = "REFUNDED";
21
- InvoiceStatus["VOIDED"] = "VOIDED";
22
- InvoiceStatus["CHARGEDBACK"] = "CHARGEDBACK";
23
- })(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
24
- var WebhookIdentityType;
25
- (function (WebhookIdentityType) {
26
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
27
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
28
- WebhookIdentityType["MEMBER"] = "MEMBER";
29
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
30
- WebhookIdentityType["APP"] = "APP";
31
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
32
- //# sourceMappingURL=devcenter-checkout-v1-purchased-item-billing.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-checkout-v1-purchased-item-billing.types.js","sourceRoot":"","sources":["../../../../src/devcenter-checkout-v1-purchased-item-billing.types.ts"],"names":[],"mappings":";;;AAmBA,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA+BD,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,kEAAiD,CAAA;IACjD,kDAAiC,CAAA;IACjC,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;AAC7B,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAsND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -1,407 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface PurchasedItem {
3
- /** ID of your app's paid plan. */
4
- productId?: string;
5
- /** Price of your app's paid plan. For example, `9.95`. */
6
- price?: string;
7
- /**
8
- * 3-letter currency code in
9
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
10
- */
11
- currency?: string;
12
- /** Information about the billing cycle for your app's paid plan. */
13
- billingCycle?: PaymentCycleWithLiterals;
14
- /**
15
- * Date and time the site onwers have purchased your app's paid plan in
16
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
17
- */
18
- dateCreated?: Date | null;
19
- }
20
- export declare enum PaymentCycle {
21
- NO_CYCLE = "NO_CYCLE",
22
- MONTHLY = "MONTHLY",
23
- YEARLY = "YEARLY",
24
- ONE_TIME = "ONE_TIME",
25
- TWO_YEARS = "TWO_YEARS",
26
- THREE_YEARS = "THREE_YEARS",
27
- FOUR_YEARS = "FOUR_YEARS",
28
- FIVE_YEARS = "FIVE_YEARS"
29
- }
30
- /** @enumType */
31
- export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
32
- export interface InvoiceStatusUpdated {
33
- /** Invoice payment status. */
34
- status?: InvoiceStatusWithLiterals;
35
- /**
36
- * Wix Premium invoice ID.
37
- * @maxLength 50
38
- */
39
- invoiceId?: string;
40
- /**
41
- * App instance ID - a unique ID assigned to each app in each site.
42
- * @format GUID
43
- */
44
- instanceId?: string | null;
45
- /** Whether the invoice is for a single payment or for multiple, recurring payments. */
46
- recurring?: boolean;
47
- }
48
- export declare enum InvoiceStatus {
49
- UNKNOWN_INVOICE_STATUS = "UNKNOWN_INVOICE_STATUS",
50
- PAYMENT_FAILED = "PAYMENT_FAILED",
51
- PAID = "PAID",
52
- REFUNDED = "REFUNDED",
53
- VOIDED = "VOIDED",
54
- CHARGEDBACK = "CHARGEDBACK"
55
- }
56
- /** @enumType */
57
- export type InvoiceStatusWithLiterals = InvoiceStatus | 'UNKNOWN_INVOICE_STATUS' | 'PAYMENT_FAILED' | 'PAID' | 'REFUNDED' | 'VOIDED' | 'CHARGEDBACK';
58
- export interface GetUrlRequest {
59
- /**
60
- * ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
61
- * for a list of your app's supported product IDs.
62
- */
63
- productId: string;
64
- /**
65
- * URL for the Wix checkout page. Redirect site owners to this URL after
66
- * they've successfully purchased a paid plan for your app.
67
- * @format WEB_URL
68
- */
69
- successUrl?: string | null;
70
- /**
71
- * Whether the checkout is for testing purposes only. Testing is mainly
72
- * relevant for in-app purchase flows. When `true`, Wix charges the site
73
- * owners an amount of `0.00`.
74
- */
75
- testCheckout?: boolean;
76
- /** Information about the paid plan's billing cycle. */
77
- billingCycle?: PaymentCycleWithLiterals;
78
- /**
79
- * 2-letter country code in
80
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
81
- * format.
82
- *
83
- * Default: `"US"`
84
- */
85
- countryCode?: string | null;
86
- /**
87
- * 2-letter language code in
88
- * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
89
- *
90
- * Default: `"EN"`
91
- */
92
- languageCode?: string | null;
93
- /** Coupon code for the paid plan. Available only in case there is a discount. */
94
- couponCode?: string | null;
95
- }
96
- export interface ChargeOverride {
97
- /**
98
- * Override price. In case you omit the override price, Wix charges site
99
- * owners the app's default price that's configured in the Pricing page of your app's dashboard.
100
- */
101
- price?: number;
102
- /**
103
- * Override 3-letter currency code in
104
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
105
- */
106
- currency?: string;
107
- }
108
- export interface GetUrlResponse {
109
- /**
110
- * URL for the Wix checkout page.
111
- * @format WEB_URL
112
- */
113
- checkoutUrl?: string;
114
- /**
115
- * Token for the Wix checkout page. The token holds all data about the order
116
- * you're creating a checkout for. It is [signed](),
117
- * so you can verify that it comes from Wix.
118
- */
119
- token?: string | null;
120
- }
121
- export interface GetPurchaseHistoryRequest {
122
- }
123
- export interface GetPurchaseHistoryResponse {
124
- /** Retrieved purchases the site owners have completed for you app. */
125
- purchases?: PurchasedItem[];
126
- }
127
- export interface GetSitePaymentMethodsStatusRequest {
128
- }
129
- export interface GetSitePaymentMethodsStatusResponse {
130
- /**
131
- * Whether the site owners have enabled at least a single online payment method.
132
- * Online payment methods include Wix Payments, Stripe, PayPal, and credit
133
- * cards.
134
- */
135
- onlineProviderEnabled?: boolean;
136
- /** Whether the site owners accept offline payments. */
137
- offlineProviderEnabled?: boolean;
138
- /**
139
- * Whether the site owners have enabled the
140
- * [Wix Point of Sale](https://www.wix.com/pos).
141
- * This allows their customers to make electronic payments in person.
142
- */
143
- wixPosProviderEnabled?: boolean;
144
- /**
145
- * Whether the site owners have enabled at least one 3rd-party point-of-sale
146
- * provider. This allows their customers to make electronic payments in person.
147
- */
148
- thirdPartyPosProviderEnabled?: boolean;
149
- }
150
- export interface GetMeteredBillingChargesRequest {
151
- /**
152
- * 3-letter currency code in
153
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
154
- * @format CURRENCY
155
- */
156
- currency?: string | null;
157
- /**
158
- * Start of the period you want to retrieve the custom charges for in
159
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
160
- */
161
- startDate?: Date | null;
162
- /**
163
- * End of the period you want to retrieve the custom charges for in
164
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
165
- */
166
- endDate?: Date | null;
167
- }
168
- export interface GetMeteredBillingChargesResponse {
169
- /** List of retrieved custom charges. */
170
- charges?: Charge[];
171
- }
172
- export interface Charge {
173
- /** ID of the custom charge. The ID consists of 64 characters. */
174
- _id?: string | null;
175
- /** Description of the custom charge. */
176
- description?: string;
177
- /**
178
- * Charge amount.
179
- *
180
- * Min: `0.50`
181
- * @format DECIMAL_VALUE
182
- * @decimalValue options { gt:0.00 }
183
- */
184
- amount?: string;
185
- }
186
- export interface MessageEnvelope {
187
- /**
188
- * App instance ID.
189
- * @format GUID
190
- */
191
- instanceId?: string | null;
192
- /**
193
- * Event type.
194
- * @maxLength 150
195
- */
196
- eventType?: string;
197
- /** The identification type and identity data. */
198
- identity?: IdentificationData;
199
- /** Stringify payload. */
200
- data?: string;
201
- }
202
- export interface IdentificationData extends IdentificationDataIdOneOf {
203
- /**
204
- * ID of a site visitor that has not logged in to the site.
205
- * @format GUID
206
- */
207
- anonymousVisitorId?: string;
208
- /**
209
- * ID of a site visitor that has logged in to the site.
210
- * @format GUID
211
- */
212
- memberId?: string;
213
- /**
214
- * ID of a Wix user (site owner, contributor, etc.).
215
- * @format GUID
216
- */
217
- wixUserId?: string;
218
- /**
219
- * ID of an app.
220
- * @format GUID
221
- */
222
- appId?: string;
223
- /** @readonly */
224
- identityType?: WebhookIdentityTypeWithLiterals;
225
- }
226
- /** @oneof */
227
- export interface IdentificationDataIdOneOf {
228
- /**
229
- * ID of a site visitor that has not logged in to the site.
230
- * @format GUID
231
- */
232
- anonymousVisitorId?: string;
233
- /**
234
- * ID of a site visitor that has logged in to the site.
235
- * @format GUID
236
- */
237
- memberId?: string;
238
- /**
239
- * ID of a Wix user (site owner, contributor, etc.).
240
- * @format GUID
241
- */
242
- wixUserId?: string;
243
- /**
244
- * ID of an app.
245
- * @format GUID
246
- */
247
- appId?: string;
248
- }
249
- export declare enum WebhookIdentityType {
250
- UNKNOWN = "UNKNOWN",
251
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
252
- MEMBER = "MEMBER",
253
- WIX_USER = "WIX_USER",
254
- APP = "APP"
255
- }
256
- /** @enumType */
257
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
258
- export interface BaseEventMetadata {
259
- /**
260
- * App instance ID.
261
- * @format GUID
262
- */
263
- instanceId?: string | null;
264
- /**
265
- * Event type.
266
- * @maxLength 150
267
- */
268
- eventType?: string;
269
- /** The identification type and identity data. */
270
- identity?: IdentificationData;
271
- }
272
- export interface PurchasedItemInvoiceStatusUpdatedEnvelope {
273
- data: InvoiceStatusUpdated;
274
- metadata: BaseEventMetadata;
275
- }
276
- /**
277
- * Triggered when there is an update to the payment status of an invoice.
278
- * 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.
279
- * 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).
280
- * @permissionScope Manage Your App
281
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
282
- * @permissionScope Read site, business, and email details
283
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
284
- * @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
285
- * @webhook
286
- * @eventType InvoiceStatusUpdated
287
- * @serviceIdentifier com.wixpress.market.aim.api.Checkout
288
- * @slug invoice_status_updated
289
- */
290
- export declare function onPurchasedItemInvoiceStatusUpdated(handler: (event: PurchasedItemInvoiceStatusUpdatedEnvelope) => void | Promise<void>): void;
291
- type PurchasedItemNonNullablePaths = `productId` | `price` | `currency` | `billingCycle`;
292
- /**
293
- * Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
294
- *
295
- *
296
- * This call succeeds only in case you have previously
297
- * [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).
298
- *
299
- * The returned checkout URL is valid for 48 hours.
300
- *
301
- * This API allows your app to manage your pricing page outside of Wix while
302
- * still using the standard Wix checkout flow.
303
- * @param productId - ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
304
- * for a list of your app's supported product IDs.
305
- * @public
306
- * @requiredField productId
307
- * @permissionId WIX_DEVELOPERS.CREATE_CHECKOUT
308
- * @permissionScope Manage Your App
309
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
310
- * @permissionScope Read site, business, and email details
311
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
312
- * @applicableIdentity APP
313
- * @fqn com.wixpress.market.aim.api.Checkout.GetUrl
314
- */
315
- export declare function getUrl(productId: string, options?: GetUrlOptions): Promise<NonNullablePaths<GetUrlResponse, `checkoutUrl`>>;
316
- export interface GetUrlOptions {
317
- /**
318
- * URL for the Wix checkout page. Redirect site owners to this URL after
319
- * they've successfully purchased a paid plan for your app.
320
- * @format WEB_URL
321
- */
322
- successUrl?: string | null;
323
- /**
324
- * Whether the checkout is for testing purposes only. Testing is mainly
325
- * relevant for in-app purchase flows. When `true`, Wix charges the site
326
- * owners an amount of `0.00`.
327
- */
328
- testCheckout?: boolean;
329
- /** Information about the paid plan's billing cycle. */
330
- billingCycle?: PaymentCycleWithLiterals;
331
- /**
332
- * 2-letter country code in
333
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
334
- * format.
335
- *
336
- * Default: `"US"`
337
- */
338
- countryCode?: string | null;
339
- /**
340
- * 2-letter language code in
341
- * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
342
- *
343
- * Default: `"EN"`
344
- */
345
- languageCode?: string | null;
346
- /** Coupon code for the paid plan. Available only in case there is a discount. */
347
- couponCode?: string | null;
348
- }
349
- /**
350
- * Retrieves a list of the site owner's past purchases for your app.
351
- *
352
- *
353
- * You don't have to explicitly pass an identifier for the Wix site as part of
354
- * the request, since this information is taken automatically from the context.
355
- *
356
- * The response doesn't include any details about cancellations.
357
- * @public
358
- * @permissionId WIX_DEVELOPERS.APP_PURCHASE_HISTORY
359
- * @permissionScope Manage Your App
360
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
361
- * @permissionScope Read site, business, and email details
362
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
363
- * @applicableIdentity APP
364
- * @fqn com.wixpress.market.aim.api.Checkout.GetPurchaseHistory
365
- */
366
- export declare function getPurchaseHistory(): Promise<NonNullablePaths<GetPurchaseHistoryResponse, {
367
- [P in PurchasedItemNonNullablePaths]: `purchases.${number}.${P}`;
368
- }[PurchasedItemNonNullablePaths]>>;
369
- /**
370
- * Triggers Wix to call the
371
- * [List Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/custom-charges-provider-v1/list-charges).
372
- *
373
- *
374
- * Wix doesn't use the response from _List Charges_ SPI to actually create an
375
- * invoice that's sent to the customer. Instead, calling _Get Metered Billing Charges_
376
- * allows you confirm that your integration with the Custom Charges SPI is
377
- * working as intended.
378
- * @internal
379
- * @documentationMaturity preview
380
- * @permissionId WIX_DEVELOPERS.METERED_BILLING_CHARGES_READ
381
- * @permissionScope Manage Your App
382
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
383
- * @permissionScope Read site, business, and email details
384
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
385
- * @applicableIdentity APP
386
- * @fqn com.wixpress.market.aim.api.Checkout.GetMeteredBillingCharges
387
- */
388
- export declare function getMeteredBillingCharges(options?: GetMeteredBillingChargesOptions): Promise<NonNullablePaths<GetMeteredBillingChargesResponse, `charges` | `charges.${number}.description` | `charges.${number}.amount`>>;
389
- export interface GetMeteredBillingChargesOptions {
390
- /**
391
- * 3-letter currency code in
392
- * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
393
- * @format CURRENCY
394
- */
395
- currency?: string | null;
396
- /**
397
- * Start of the period you want to retrieve the custom charges for in
398
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
399
- */
400
- startDate?: Date | null;
401
- /**
402
- * End of the period you want to retrieve the custom charges for in
403
- * `YYYY-MM-DDThh:mm:ss.sssZ` format.
404
- */
405
- endDate?: Date | null;
406
- }
407
- export {};