@moneydevkit/core 0.0.7 → 0.0.9
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/dist/actions.d.ts +1012 -1012
- package/dist/actions.js +6 -4
- package/dist/actions.js.map +1 -1
- package/dist/client-actions.d.ts +1002 -1002
- package/dist/components/checkout/PendingPaymentCheckout.js +10 -4
- package/dist/components/checkout/PendingPaymentCheckout.js.map +1 -1
- package/dist/handlers/pay_invoice.js +3 -3
- package/dist/handlers/pay_invoice.js.map +1 -1
- package/dist/logging.d.ts +1 -0
- package/dist/logging.js +6 -0
- package/dist/logging.js.map +1 -1
- package/dist/mdk-client.d.ts +1335 -1335
- package/dist/preview.js +32 -7
- package/dist/preview.js.map +1 -1
- package/dist/route.js +10 -8
- package/dist/route.js.map +1 -1
- package/package.json +7 -5
package/dist/actions.d.ts
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
import type { ConfirmCheckout } from '@moneydevkit/api-contract';
|
|
2
2
|
export declare function getCheckout(checkoutId: string): Promise<{
|
|
3
|
-
|
|
3
|
+
id: string;
|
|
4
4
|
type: "PRODUCTS";
|
|
5
5
|
status: "UNCONFIRMED";
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
clientSecret: string;
|
|
8
|
+
organizationId: string;
|
|
9
|
+
expiresAt: Date;
|
|
10
|
+
userMetadata: Record<string, any> | null;
|
|
11
|
+
customFieldData: Record<string, any> | null;
|
|
12
|
+
customerMetadata: Record<string, any> | null;
|
|
13
|
+
currency: string;
|
|
14
|
+
allowDiscountCodes: boolean;
|
|
15
|
+
customerName: string | null;
|
|
16
|
+
customerEmail: string | null;
|
|
17
|
+
requireCustomerFields: {
|
|
18
|
+
customerName?: boolean | undefined;
|
|
19
|
+
customerEmail?: boolean | undefined;
|
|
20
|
+
} | null;
|
|
21
|
+
successUrl: string | null;
|
|
22
|
+
customerId: string | null;
|
|
23
|
+
customerExternalId: string | null;
|
|
24
|
+
customerIpAddress: string | null;
|
|
25
|
+
customerBillingAddress: Record<string, any> | null;
|
|
6
26
|
products: [{
|
|
7
27
|
id: string;
|
|
8
28
|
name: string;
|
|
9
29
|
description: string | null;
|
|
10
30
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
11
31
|
prices: {
|
|
12
|
-
priceAmount: number | null;
|
|
13
32
|
id: string;
|
|
14
33
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
34
|
+
priceAmount: number | null;
|
|
15
35
|
minimumAmount: number | null;
|
|
16
36
|
maximumAmount: number | null;
|
|
17
37
|
presetAmount: number | null;
|
|
@@ -25,9 +45,9 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
25
45
|
description: string | null;
|
|
26
46
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
27
47
|
prices: {
|
|
28
|
-
priceAmount: number | null;
|
|
29
48
|
id: string;
|
|
30
49
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
50
|
+
priceAmount: number | null;
|
|
31
51
|
minimumAmount: number | null;
|
|
32
52
|
maximumAmount: number | null;
|
|
33
53
|
presetAmount: number | null;
|
|
@@ -36,27 +56,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
36
56
|
meterId: string | null;
|
|
37
57
|
}[];
|
|
38
58
|
}[]];
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
customerEmail?: boolean | undefined;
|
|
48
|
-
} | null;
|
|
59
|
+
providedAmount: number | null;
|
|
60
|
+
totalAmount: number | null;
|
|
61
|
+
discountAmount: number | null;
|
|
62
|
+
netAmount: number | null;
|
|
63
|
+
taxAmount: number | null;
|
|
64
|
+
invoiceAmountSats: number | null;
|
|
65
|
+
invoiceScid: string | null;
|
|
66
|
+
btcPrice: number | null;
|
|
49
67
|
invoice: {
|
|
68
|
+
expiresAt: Date;
|
|
50
69
|
currency: string;
|
|
70
|
+
btcPrice: number | null;
|
|
51
71
|
invoice: string;
|
|
52
72
|
paymentHash: string;
|
|
53
73
|
amountSats: number | null;
|
|
54
|
-
expiresAt: Date;
|
|
55
|
-
btcPrice: number | null;
|
|
56
74
|
amountSatsReceived: number | null;
|
|
57
75
|
fiatAmount: number | null;
|
|
58
76
|
} | null;
|
|
77
|
+
} | {
|
|
59
78
|
id: string;
|
|
79
|
+
type: "AMOUNT";
|
|
80
|
+
status: "UNCONFIRMED";
|
|
60
81
|
createdAt: Date;
|
|
61
82
|
clientSecret: string;
|
|
62
83
|
organizationId: string;
|
|
@@ -64,29 +85,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
64
85
|
userMetadata: Record<string, any> | null;
|
|
65
86
|
customFieldData: Record<string, any> | null;
|
|
66
87
|
customerMetadata: Record<string, any> | null;
|
|
88
|
+
currency: string;
|
|
89
|
+
allowDiscountCodes: boolean;
|
|
90
|
+
customerName: string | null;
|
|
91
|
+
customerEmail: string | null;
|
|
92
|
+
requireCustomerFields: {
|
|
93
|
+
customerName?: boolean | undefined;
|
|
94
|
+
customerEmail?: boolean | undefined;
|
|
95
|
+
} | null;
|
|
96
|
+
successUrl: string | null;
|
|
67
97
|
customerId: string | null;
|
|
98
|
+
customerExternalId: string | null;
|
|
99
|
+
customerIpAddress: string | null;
|
|
68
100
|
customerBillingAddress: Record<string, any> | null;
|
|
69
|
-
providedAmount: number | null;
|
|
70
|
-
totalAmount: number | null;
|
|
71
|
-
discountAmount: number | null;
|
|
72
|
-
netAmount: number | null;
|
|
73
|
-
taxAmount: number | null;
|
|
74
|
-
invoiceAmountSats: number | null;
|
|
75
|
-
invoiceScid: string | null;
|
|
76
|
-
btcPrice: number | null;
|
|
77
|
-
} | {
|
|
78
|
-
currency: string;
|
|
79
|
-
type: "AMOUNT";
|
|
80
|
-
status: "UNCONFIRMED";
|
|
81
101
|
products: {
|
|
82
102
|
id: string;
|
|
83
103
|
name: string;
|
|
84
104
|
description: string | null;
|
|
85
105
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
86
106
|
prices: {
|
|
87
|
-
priceAmount: number | null;
|
|
88
107
|
id: string;
|
|
89
108
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
109
|
+
priceAmount: number | null;
|
|
90
110
|
minimumAmount: number | null;
|
|
91
111
|
maximumAmount: number | null;
|
|
92
112
|
presetAmount: number | null;
|
|
@@ -95,27 +115,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
95
115
|
meterId: string | null;
|
|
96
116
|
}[];
|
|
97
117
|
}[] | null;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
customerEmail?: boolean | undefined;
|
|
107
|
-
} | null;
|
|
118
|
+
providedAmount: number;
|
|
119
|
+
totalAmount: number | null;
|
|
120
|
+
discountAmount: number | null;
|
|
121
|
+
netAmount: number | null;
|
|
122
|
+
taxAmount: number | null;
|
|
123
|
+
invoiceAmountSats: number | null;
|
|
124
|
+
invoiceScid: string | null;
|
|
125
|
+
btcPrice: number | null;
|
|
108
126
|
invoice: {
|
|
127
|
+
expiresAt: Date;
|
|
109
128
|
currency: string;
|
|
129
|
+
btcPrice: number | null;
|
|
110
130
|
invoice: string;
|
|
111
131
|
paymentHash: string;
|
|
112
132
|
amountSats: number | null;
|
|
113
|
-
expiresAt: Date;
|
|
114
|
-
btcPrice: number | null;
|
|
115
133
|
amountSatsReceived: number | null;
|
|
116
134
|
fiatAmount: number | null;
|
|
117
135
|
} | null;
|
|
136
|
+
} | {
|
|
118
137
|
id: string;
|
|
138
|
+
type: "TOP_UP";
|
|
139
|
+
status: "UNCONFIRMED";
|
|
119
140
|
createdAt: Date;
|
|
120
141
|
clientSecret: string;
|
|
121
142
|
organizationId: string;
|
|
@@ -123,29 +144,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
123
144
|
userMetadata: Record<string, any> | null;
|
|
124
145
|
customFieldData: Record<string, any> | null;
|
|
125
146
|
customerMetadata: Record<string, any> | null;
|
|
147
|
+
currency: string;
|
|
148
|
+
allowDiscountCodes: boolean;
|
|
149
|
+
customerName: string | null;
|
|
150
|
+
customerEmail: string | null;
|
|
151
|
+
requireCustomerFields: {
|
|
152
|
+
customerName?: boolean | undefined;
|
|
153
|
+
customerEmail?: boolean | undefined;
|
|
154
|
+
} | null;
|
|
155
|
+
successUrl: string | null;
|
|
126
156
|
customerId: string | null;
|
|
157
|
+
customerExternalId: string | null;
|
|
158
|
+
customerIpAddress: string | null;
|
|
127
159
|
customerBillingAddress: Record<string, any> | null;
|
|
128
|
-
providedAmount: number;
|
|
129
|
-
totalAmount: number | null;
|
|
130
|
-
discountAmount: number | null;
|
|
131
|
-
netAmount: number | null;
|
|
132
|
-
taxAmount: number | null;
|
|
133
|
-
invoiceAmountSats: number | null;
|
|
134
|
-
invoiceScid: string | null;
|
|
135
|
-
btcPrice: number | null;
|
|
136
|
-
} | {
|
|
137
|
-
currency: string;
|
|
138
|
-
type: "TOP_UP";
|
|
139
|
-
status: "UNCONFIRMED";
|
|
140
160
|
products: {
|
|
141
161
|
id: string;
|
|
142
162
|
name: string;
|
|
143
163
|
description: string | null;
|
|
144
164
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
145
165
|
prices: {
|
|
146
|
-
priceAmount: number | null;
|
|
147
166
|
id: string;
|
|
148
167
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
168
|
+
priceAmount: number | null;
|
|
149
169
|
minimumAmount: number | null;
|
|
150
170
|
maximumAmount: number | null;
|
|
151
171
|
presetAmount: number | null;
|
|
@@ -154,27 +174,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
154
174
|
meterId: string | null;
|
|
155
175
|
}[];
|
|
156
176
|
}[] | null;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
customerEmail?: boolean | undefined;
|
|
166
|
-
} | null;
|
|
177
|
+
providedAmount: number | null;
|
|
178
|
+
totalAmount: number | null;
|
|
179
|
+
discountAmount: number | null;
|
|
180
|
+
netAmount: number | null;
|
|
181
|
+
taxAmount: number | null;
|
|
182
|
+
invoiceAmountSats: number | null;
|
|
183
|
+
invoiceScid: string | null;
|
|
184
|
+
btcPrice: number | null;
|
|
167
185
|
invoice: {
|
|
186
|
+
expiresAt: Date;
|
|
168
187
|
currency: string;
|
|
188
|
+
btcPrice: number | null;
|
|
169
189
|
invoice: string;
|
|
170
190
|
paymentHash: string;
|
|
171
191
|
amountSats: number | null;
|
|
172
|
-
expiresAt: Date;
|
|
173
|
-
btcPrice: number | null;
|
|
174
192
|
amountSatsReceived: number | null;
|
|
175
193
|
fiatAmount: number | null;
|
|
176
194
|
} | null;
|
|
195
|
+
} | {
|
|
177
196
|
id: string;
|
|
197
|
+
type: "PRODUCTS";
|
|
198
|
+
status: "CONFIRMED";
|
|
178
199
|
createdAt: Date;
|
|
179
200
|
clientSecret: string;
|
|
180
201
|
organizationId: string;
|
|
@@ -182,29 +203,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
182
203
|
userMetadata: Record<string, any> | null;
|
|
183
204
|
customFieldData: Record<string, any> | null;
|
|
184
205
|
customerMetadata: Record<string, any> | null;
|
|
206
|
+
currency: string;
|
|
207
|
+
allowDiscountCodes: boolean;
|
|
208
|
+
customerName: string | null;
|
|
209
|
+
customerEmail: string | null;
|
|
210
|
+
requireCustomerFields: {
|
|
211
|
+
customerName?: boolean | undefined;
|
|
212
|
+
customerEmail?: boolean | undefined;
|
|
213
|
+
} | null;
|
|
214
|
+
successUrl: string | null;
|
|
185
215
|
customerId: string | null;
|
|
216
|
+
customerExternalId: string | null;
|
|
217
|
+
customerIpAddress: string | null;
|
|
186
218
|
customerBillingAddress: Record<string, any> | null;
|
|
187
|
-
providedAmount: number | null;
|
|
188
|
-
totalAmount: number | null;
|
|
189
|
-
discountAmount: number | null;
|
|
190
|
-
netAmount: number | null;
|
|
191
|
-
taxAmount: number | null;
|
|
192
|
-
invoiceAmountSats: number | null;
|
|
193
|
-
invoiceScid: string | null;
|
|
194
|
-
btcPrice: number | null;
|
|
195
|
-
} | {
|
|
196
|
-
currency: string;
|
|
197
|
-
type: "PRODUCTS";
|
|
198
|
-
status: "CONFIRMED";
|
|
199
219
|
products: [{
|
|
200
220
|
id: string;
|
|
201
221
|
name: string;
|
|
202
222
|
description: string | null;
|
|
203
223
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
204
224
|
prices: {
|
|
205
|
-
priceAmount: number | null;
|
|
206
225
|
id: string;
|
|
207
226
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
227
|
+
priceAmount: number | null;
|
|
208
228
|
minimumAmount: number | null;
|
|
209
229
|
maximumAmount: number | null;
|
|
210
230
|
presetAmount: number | null;
|
|
@@ -218,9 +238,9 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
218
238
|
description: string | null;
|
|
219
239
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
220
240
|
prices: {
|
|
221
|
-
priceAmount: number | null;
|
|
222
241
|
id: string;
|
|
223
242
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
243
|
+
priceAmount: number | null;
|
|
224
244
|
minimumAmount: number | null;
|
|
225
245
|
maximumAmount: number | null;
|
|
226
246
|
presetAmount: number | null;
|
|
@@ -229,27 +249,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
229
249
|
meterId: string | null;
|
|
230
250
|
}[];
|
|
231
251
|
}[]];
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
customerEmail?: boolean | undefined;
|
|
241
|
-
} | null;
|
|
252
|
+
providedAmount: number | null;
|
|
253
|
+
totalAmount: number;
|
|
254
|
+
discountAmount: number;
|
|
255
|
+
netAmount: number;
|
|
256
|
+
taxAmount: number;
|
|
257
|
+
invoiceAmountSats: number;
|
|
258
|
+
invoiceScid: string | null;
|
|
259
|
+
btcPrice: number;
|
|
242
260
|
invoice: {
|
|
261
|
+
expiresAt: Date;
|
|
243
262
|
currency: string;
|
|
263
|
+
btcPrice: number | null;
|
|
244
264
|
invoice: string;
|
|
245
265
|
paymentHash: string;
|
|
246
266
|
amountSats: number | null;
|
|
247
|
-
expiresAt: Date;
|
|
248
|
-
btcPrice: number | null;
|
|
249
267
|
amountSatsReceived: number | null;
|
|
250
268
|
fiatAmount: number | null;
|
|
251
269
|
} | null;
|
|
270
|
+
} | {
|
|
252
271
|
id: string;
|
|
272
|
+
type: "AMOUNT";
|
|
273
|
+
status: "CONFIRMED";
|
|
253
274
|
createdAt: Date;
|
|
254
275
|
clientSecret: string;
|
|
255
276
|
organizationId: string;
|
|
@@ -257,29 +278,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
257
278
|
userMetadata: Record<string, any> | null;
|
|
258
279
|
customFieldData: Record<string, any> | null;
|
|
259
280
|
customerMetadata: Record<string, any> | null;
|
|
281
|
+
currency: string;
|
|
282
|
+
allowDiscountCodes: boolean;
|
|
283
|
+
customerName: string | null;
|
|
284
|
+
customerEmail: string | null;
|
|
285
|
+
requireCustomerFields: {
|
|
286
|
+
customerName?: boolean | undefined;
|
|
287
|
+
customerEmail?: boolean | undefined;
|
|
288
|
+
} | null;
|
|
289
|
+
successUrl: string | null;
|
|
260
290
|
customerId: string | null;
|
|
291
|
+
customerExternalId: string | null;
|
|
292
|
+
customerIpAddress: string | null;
|
|
261
293
|
customerBillingAddress: Record<string, any> | null;
|
|
262
|
-
providedAmount: number | null;
|
|
263
|
-
totalAmount: number;
|
|
264
|
-
discountAmount: number;
|
|
265
|
-
netAmount: number;
|
|
266
|
-
taxAmount: number;
|
|
267
|
-
invoiceAmountSats: number;
|
|
268
|
-
invoiceScid: string | null;
|
|
269
|
-
btcPrice: number;
|
|
270
|
-
} | {
|
|
271
|
-
currency: string;
|
|
272
|
-
type: "AMOUNT";
|
|
273
|
-
status: "CONFIRMED";
|
|
274
294
|
products: {
|
|
275
295
|
id: string;
|
|
276
296
|
name: string;
|
|
277
297
|
description: string | null;
|
|
278
298
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
279
299
|
prices: {
|
|
280
|
-
priceAmount: number | null;
|
|
281
300
|
id: string;
|
|
282
301
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
302
|
+
priceAmount: number | null;
|
|
283
303
|
minimumAmount: number | null;
|
|
284
304
|
maximumAmount: number | null;
|
|
285
305
|
presetAmount: number | null;
|
|
@@ -288,27 +308,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
288
308
|
meterId: string | null;
|
|
289
309
|
}[];
|
|
290
310
|
}[] | null;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
customerEmail?: boolean | undefined;
|
|
300
|
-
} | null;
|
|
311
|
+
providedAmount: number;
|
|
312
|
+
totalAmount: number;
|
|
313
|
+
discountAmount: number;
|
|
314
|
+
netAmount: number;
|
|
315
|
+
taxAmount: number;
|
|
316
|
+
invoiceAmountSats: number;
|
|
317
|
+
invoiceScid: string | null;
|
|
318
|
+
btcPrice: number;
|
|
301
319
|
invoice: {
|
|
320
|
+
expiresAt: Date;
|
|
302
321
|
currency: string;
|
|
322
|
+
btcPrice: number | null;
|
|
303
323
|
invoice: string;
|
|
304
324
|
paymentHash: string;
|
|
305
325
|
amountSats: number | null;
|
|
306
|
-
expiresAt: Date;
|
|
307
|
-
btcPrice: number | null;
|
|
308
326
|
amountSatsReceived: number | null;
|
|
309
327
|
fiatAmount: number | null;
|
|
310
328
|
} | null;
|
|
329
|
+
} | {
|
|
311
330
|
id: string;
|
|
331
|
+
type: "TOP_UP";
|
|
332
|
+
status: "CONFIRMED";
|
|
312
333
|
createdAt: Date;
|
|
313
334
|
clientSecret: string;
|
|
314
335
|
organizationId: string;
|
|
@@ -316,29 +337,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
316
337
|
userMetadata: Record<string, any> | null;
|
|
317
338
|
customFieldData: Record<string, any> | null;
|
|
318
339
|
customerMetadata: Record<string, any> | null;
|
|
319
|
-
customerId: string | null;
|
|
320
|
-
customerBillingAddress: Record<string, any> | null;
|
|
321
|
-
providedAmount: number;
|
|
322
|
-
totalAmount: number;
|
|
323
|
-
discountAmount: number;
|
|
324
|
-
netAmount: number;
|
|
325
|
-
taxAmount: number;
|
|
326
|
-
invoiceAmountSats: number;
|
|
327
|
-
invoiceScid: string | null;
|
|
328
|
-
btcPrice: number;
|
|
329
|
-
} | {
|
|
330
340
|
currency: string;
|
|
331
|
-
|
|
332
|
-
|
|
341
|
+
allowDiscountCodes: boolean;
|
|
342
|
+
customerName: string | null;
|
|
343
|
+
customerEmail: string | null;
|
|
344
|
+
requireCustomerFields: {
|
|
345
|
+
customerName?: boolean | undefined;
|
|
346
|
+
customerEmail?: boolean | undefined;
|
|
347
|
+
} | null;
|
|
348
|
+
successUrl: string | null;
|
|
349
|
+
customerId: string | null;
|
|
350
|
+
customerExternalId: string | null;
|
|
351
|
+
customerIpAddress: string | null;
|
|
352
|
+
customerBillingAddress: Record<string, any> | null;
|
|
333
353
|
products: {
|
|
334
354
|
id: string;
|
|
335
355
|
name: string;
|
|
336
356
|
description: string | null;
|
|
337
357
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
338
358
|
prices: {
|
|
339
|
-
priceAmount: number | null;
|
|
340
359
|
id: string;
|
|
341
360
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
361
|
+
priceAmount: number | null;
|
|
342
362
|
minimumAmount: number | null;
|
|
343
363
|
maximumAmount: number | null;
|
|
344
364
|
presetAmount: number | null;
|
|
@@ -347,27 +367,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
347
367
|
meterId: string | null;
|
|
348
368
|
}[];
|
|
349
369
|
}[] | null;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
customerEmail?: boolean | undefined;
|
|
359
|
-
} | null;
|
|
370
|
+
providedAmount: number | null;
|
|
371
|
+
totalAmount: number | null;
|
|
372
|
+
discountAmount: number | null;
|
|
373
|
+
netAmount: number | null;
|
|
374
|
+
taxAmount: number | null;
|
|
375
|
+
invoiceAmountSats: number | null;
|
|
376
|
+
invoiceScid: string | null;
|
|
377
|
+
btcPrice: number | null;
|
|
360
378
|
invoice: {
|
|
379
|
+
expiresAt: Date;
|
|
361
380
|
currency: string;
|
|
381
|
+
btcPrice: number | null;
|
|
362
382
|
invoice: string;
|
|
363
383
|
paymentHash: string;
|
|
364
384
|
amountSats: number | null;
|
|
365
|
-
expiresAt: Date;
|
|
366
|
-
btcPrice: number | null;
|
|
367
385
|
amountSatsReceived: number | null;
|
|
368
386
|
fiatAmount: number | null;
|
|
369
387
|
} | null;
|
|
388
|
+
} | {
|
|
370
389
|
id: string;
|
|
390
|
+
type: "PRODUCTS";
|
|
391
|
+
status: "PENDING_PAYMENT";
|
|
371
392
|
createdAt: Date;
|
|
372
393
|
clientSecret: string;
|
|
373
394
|
organizationId: string;
|
|
@@ -375,29 +396,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
375
396
|
userMetadata: Record<string, any> | null;
|
|
376
397
|
customFieldData: Record<string, any> | null;
|
|
377
398
|
customerMetadata: Record<string, any> | null;
|
|
399
|
+
currency: string;
|
|
400
|
+
allowDiscountCodes: boolean;
|
|
401
|
+
customerName: string | null;
|
|
402
|
+
customerEmail: string | null;
|
|
403
|
+
requireCustomerFields: {
|
|
404
|
+
customerName?: boolean | undefined;
|
|
405
|
+
customerEmail?: boolean | undefined;
|
|
406
|
+
} | null;
|
|
407
|
+
successUrl: string | null;
|
|
378
408
|
customerId: string | null;
|
|
409
|
+
customerExternalId: string | null;
|
|
410
|
+
customerIpAddress: string | null;
|
|
379
411
|
customerBillingAddress: Record<string, any> | null;
|
|
380
|
-
providedAmount: number | null;
|
|
381
|
-
totalAmount: number | null;
|
|
382
|
-
discountAmount: number | null;
|
|
383
|
-
netAmount: number | null;
|
|
384
|
-
taxAmount: number | null;
|
|
385
|
-
invoiceAmountSats: number | null;
|
|
386
|
-
invoiceScid: string | null;
|
|
387
|
-
btcPrice: number | null;
|
|
388
|
-
} | {
|
|
389
|
-
currency: string;
|
|
390
|
-
type: "PRODUCTS";
|
|
391
|
-
status: "PENDING_PAYMENT";
|
|
392
412
|
products: [{
|
|
393
413
|
id: string;
|
|
394
414
|
name: string;
|
|
395
415
|
description: string | null;
|
|
396
416
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
397
417
|
prices: {
|
|
398
|
-
priceAmount: number | null;
|
|
399
418
|
id: string;
|
|
400
419
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
420
|
+
priceAmount: number | null;
|
|
401
421
|
minimumAmount: number | null;
|
|
402
422
|
maximumAmount: number | null;
|
|
403
423
|
presetAmount: number | null;
|
|
@@ -411,9 +431,9 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
411
431
|
description: string | null;
|
|
412
432
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
413
433
|
prices: {
|
|
414
|
-
priceAmount: number | null;
|
|
415
434
|
id: string;
|
|
416
435
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
436
|
+
priceAmount: number | null;
|
|
417
437
|
minimumAmount: number | null;
|
|
418
438
|
maximumAmount: number | null;
|
|
419
439
|
presetAmount: number | null;
|
|
@@ -422,27 +442,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
422
442
|
meterId: string | null;
|
|
423
443
|
}[];
|
|
424
444
|
}[]];
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
customerEmail?: boolean | undefined;
|
|
434
|
-
} | null;
|
|
445
|
+
providedAmount: number | null;
|
|
446
|
+
totalAmount: number;
|
|
447
|
+
discountAmount: number;
|
|
448
|
+
netAmount: number;
|
|
449
|
+
taxAmount: number;
|
|
450
|
+
invoiceAmountSats: number;
|
|
451
|
+
invoiceScid: string | null;
|
|
452
|
+
btcPrice: number;
|
|
435
453
|
invoice: {
|
|
454
|
+
expiresAt: Date;
|
|
436
455
|
currency: string;
|
|
456
|
+
btcPrice: number;
|
|
437
457
|
invoice: string;
|
|
438
458
|
paymentHash: string;
|
|
439
459
|
amountSats: number;
|
|
440
|
-
expiresAt: Date;
|
|
441
|
-
btcPrice: number;
|
|
442
460
|
amountSatsReceived: number | null;
|
|
443
461
|
fiatAmount: number;
|
|
444
462
|
};
|
|
463
|
+
} | {
|
|
445
464
|
id: string;
|
|
465
|
+
type: "AMOUNT";
|
|
466
|
+
status: "PENDING_PAYMENT";
|
|
446
467
|
createdAt: Date;
|
|
447
468
|
clientSecret: string;
|
|
448
469
|
organizationId: string;
|
|
@@ -450,29 +471,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
450
471
|
userMetadata: Record<string, any> | null;
|
|
451
472
|
customFieldData: Record<string, any> | null;
|
|
452
473
|
customerMetadata: Record<string, any> | null;
|
|
474
|
+
currency: string;
|
|
475
|
+
allowDiscountCodes: boolean;
|
|
476
|
+
customerName: string | null;
|
|
477
|
+
customerEmail: string | null;
|
|
478
|
+
requireCustomerFields: {
|
|
479
|
+
customerName?: boolean | undefined;
|
|
480
|
+
customerEmail?: boolean | undefined;
|
|
481
|
+
} | null;
|
|
482
|
+
successUrl: string | null;
|
|
453
483
|
customerId: string | null;
|
|
484
|
+
customerExternalId: string | null;
|
|
485
|
+
customerIpAddress: string | null;
|
|
454
486
|
customerBillingAddress: Record<string, any> | null;
|
|
455
|
-
providedAmount: number | null;
|
|
456
|
-
totalAmount: number;
|
|
457
|
-
discountAmount: number;
|
|
458
|
-
netAmount: number;
|
|
459
|
-
taxAmount: number;
|
|
460
|
-
invoiceAmountSats: number;
|
|
461
|
-
invoiceScid: string | null;
|
|
462
|
-
btcPrice: number;
|
|
463
|
-
} | {
|
|
464
|
-
currency: string;
|
|
465
|
-
type: "AMOUNT";
|
|
466
|
-
status: "PENDING_PAYMENT";
|
|
467
487
|
products: {
|
|
468
488
|
id: string;
|
|
469
489
|
name: string;
|
|
470
490
|
description: string | null;
|
|
471
491
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
472
492
|
prices: {
|
|
473
|
-
priceAmount: number | null;
|
|
474
493
|
id: string;
|
|
475
494
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
495
|
+
priceAmount: number | null;
|
|
476
496
|
minimumAmount: number | null;
|
|
477
497
|
maximumAmount: number | null;
|
|
478
498
|
presetAmount: number | null;
|
|
@@ -481,27 +501,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
481
501
|
meterId: string | null;
|
|
482
502
|
}[];
|
|
483
503
|
}[] | null;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
customerEmail?: boolean | undefined;
|
|
493
|
-
} | null;
|
|
504
|
+
providedAmount: number;
|
|
505
|
+
totalAmount: number;
|
|
506
|
+
discountAmount: number;
|
|
507
|
+
netAmount: number;
|
|
508
|
+
taxAmount: number;
|
|
509
|
+
invoiceAmountSats: number;
|
|
510
|
+
invoiceScid: string | null;
|
|
511
|
+
btcPrice: number;
|
|
494
512
|
invoice: {
|
|
513
|
+
expiresAt: Date;
|
|
495
514
|
currency: string;
|
|
515
|
+
btcPrice: number;
|
|
496
516
|
invoice: string;
|
|
497
517
|
paymentHash: string;
|
|
498
518
|
amountSats: number;
|
|
499
|
-
expiresAt: Date;
|
|
500
|
-
btcPrice: number;
|
|
501
519
|
amountSatsReceived: number | null;
|
|
502
520
|
fiatAmount: number;
|
|
503
521
|
};
|
|
522
|
+
} | {
|
|
504
523
|
id: string;
|
|
524
|
+
type: "TOP_UP";
|
|
525
|
+
status: "PENDING_PAYMENT";
|
|
505
526
|
createdAt: Date;
|
|
506
527
|
clientSecret: string;
|
|
507
528
|
organizationId: string;
|
|
@@ -509,29 +530,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
509
530
|
userMetadata: Record<string, any> | null;
|
|
510
531
|
customFieldData: Record<string, any> | null;
|
|
511
532
|
customerMetadata: Record<string, any> | null;
|
|
533
|
+
currency: string;
|
|
534
|
+
allowDiscountCodes: boolean;
|
|
535
|
+
customerName: string | null;
|
|
536
|
+
customerEmail: string | null;
|
|
537
|
+
requireCustomerFields: {
|
|
538
|
+
customerName?: boolean | undefined;
|
|
539
|
+
customerEmail?: boolean | undefined;
|
|
540
|
+
} | null;
|
|
541
|
+
successUrl: string | null;
|
|
512
542
|
customerId: string | null;
|
|
543
|
+
customerExternalId: string | null;
|
|
544
|
+
customerIpAddress: string | null;
|
|
513
545
|
customerBillingAddress: Record<string, any> | null;
|
|
514
|
-
providedAmount: number;
|
|
515
|
-
totalAmount: number;
|
|
516
|
-
discountAmount: number;
|
|
517
|
-
netAmount: number;
|
|
518
|
-
taxAmount: number;
|
|
519
|
-
invoiceAmountSats: number;
|
|
520
|
-
invoiceScid: string | null;
|
|
521
|
-
btcPrice: number;
|
|
522
|
-
} | {
|
|
523
|
-
currency: string;
|
|
524
|
-
type: "TOP_UP";
|
|
525
|
-
status: "PENDING_PAYMENT";
|
|
526
546
|
products: {
|
|
527
547
|
id: string;
|
|
528
548
|
name: string;
|
|
529
549
|
description: string | null;
|
|
530
550
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
531
551
|
prices: {
|
|
532
|
-
priceAmount: number | null;
|
|
533
552
|
id: string;
|
|
534
553
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
554
|
+
priceAmount: number | null;
|
|
535
555
|
minimumAmount: number | null;
|
|
536
556
|
maximumAmount: number | null;
|
|
537
557
|
presetAmount: number | null;
|
|
@@ -540,27 +560,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
540
560
|
meterId: string | null;
|
|
541
561
|
}[];
|
|
542
562
|
}[] | null;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
customerEmail?: boolean | undefined;
|
|
552
|
-
} | null;
|
|
563
|
+
providedAmount: number | null;
|
|
564
|
+
totalAmount: number | null;
|
|
565
|
+
discountAmount: number | null;
|
|
566
|
+
netAmount: number | null;
|
|
567
|
+
taxAmount: number | null;
|
|
568
|
+
invoiceAmountSats: number | null;
|
|
569
|
+
invoiceScid: string | null;
|
|
570
|
+
btcPrice: number | null;
|
|
553
571
|
invoice: {
|
|
572
|
+
expiresAt: Date;
|
|
554
573
|
currency: string;
|
|
574
|
+
btcPrice: number | null;
|
|
555
575
|
invoice: string;
|
|
556
576
|
paymentHash: string;
|
|
557
577
|
amountSats: number | null;
|
|
558
|
-
expiresAt: Date;
|
|
559
|
-
btcPrice: number | null;
|
|
560
578
|
amountSatsReceived: number | null;
|
|
561
579
|
fiatAmount: number | null;
|
|
562
580
|
};
|
|
581
|
+
} | {
|
|
563
582
|
id: string;
|
|
583
|
+
type: "PRODUCTS";
|
|
584
|
+
status: "PAYMENT_RECEIVED";
|
|
564
585
|
createdAt: Date;
|
|
565
586
|
clientSecret: string;
|
|
566
587
|
organizationId: string;
|
|
@@ -568,29 +589,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
568
589
|
userMetadata: Record<string, any> | null;
|
|
569
590
|
customFieldData: Record<string, any> | null;
|
|
570
591
|
customerMetadata: Record<string, any> | null;
|
|
592
|
+
currency: string;
|
|
593
|
+
allowDiscountCodes: boolean;
|
|
594
|
+
customerName: string | null;
|
|
595
|
+
customerEmail: string | null;
|
|
596
|
+
requireCustomerFields: {
|
|
597
|
+
customerName?: boolean | undefined;
|
|
598
|
+
customerEmail?: boolean | undefined;
|
|
599
|
+
} | null;
|
|
600
|
+
successUrl: string | null;
|
|
571
601
|
customerId: string | null;
|
|
602
|
+
customerExternalId: string | null;
|
|
603
|
+
customerIpAddress: string | null;
|
|
572
604
|
customerBillingAddress: Record<string, any> | null;
|
|
573
|
-
providedAmount: number | null;
|
|
574
|
-
totalAmount: number | null;
|
|
575
|
-
discountAmount: number | null;
|
|
576
|
-
netAmount: number | null;
|
|
577
|
-
taxAmount: number | null;
|
|
578
|
-
invoiceAmountSats: number | null;
|
|
579
|
-
invoiceScid: string | null;
|
|
580
|
-
btcPrice: number | null;
|
|
581
|
-
} | {
|
|
582
|
-
currency: string;
|
|
583
|
-
type: "PRODUCTS";
|
|
584
|
-
status: "PAYMENT_RECEIVED";
|
|
585
605
|
products: [{
|
|
586
606
|
id: string;
|
|
587
607
|
name: string;
|
|
588
608
|
description: string | null;
|
|
589
609
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
590
610
|
prices: {
|
|
591
|
-
priceAmount: number | null;
|
|
592
611
|
id: string;
|
|
593
612
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
613
|
+
priceAmount: number | null;
|
|
594
614
|
minimumAmount: number | null;
|
|
595
615
|
maximumAmount: number | null;
|
|
596
616
|
presetAmount: number | null;
|
|
@@ -604,9 +624,9 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
604
624
|
description: string | null;
|
|
605
625
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
606
626
|
prices: {
|
|
607
|
-
priceAmount: number | null;
|
|
608
627
|
id: string;
|
|
609
628
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
629
|
+
priceAmount: number | null;
|
|
610
630
|
minimumAmount: number | null;
|
|
611
631
|
maximumAmount: number | null;
|
|
612
632
|
presetAmount: number | null;
|
|
@@ -615,27 +635,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
615
635
|
meterId: string | null;
|
|
616
636
|
}[];
|
|
617
637
|
}[]];
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
customerEmail?: boolean | undefined;
|
|
627
|
-
} | null;
|
|
638
|
+
providedAmount: number | null;
|
|
639
|
+
totalAmount: number;
|
|
640
|
+
discountAmount: number;
|
|
641
|
+
netAmount: number;
|
|
642
|
+
taxAmount: number;
|
|
643
|
+
invoiceAmountSats: number;
|
|
644
|
+
invoiceScid: string | null;
|
|
645
|
+
btcPrice: number;
|
|
628
646
|
invoice: {
|
|
647
|
+
expiresAt: Date;
|
|
629
648
|
currency: string;
|
|
649
|
+
btcPrice: number;
|
|
630
650
|
invoice: string;
|
|
631
651
|
paymentHash: string;
|
|
632
652
|
amountSats: number;
|
|
633
|
-
expiresAt: Date;
|
|
634
|
-
btcPrice: number;
|
|
635
653
|
amountSatsReceived: number;
|
|
636
654
|
fiatAmount: number;
|
|
637
655
|
};
|
|
656
|
+
} | {
|
|
638
657
|
id: string;
|
|
658
|
+
type: "AMOUNT";
|
|
659
|
+
status: "PAYMENT_RECEIVED";
|
|
639
660
|
createdAt: Date;
|
|
640
661
|
clientSecret: string;
|
|
641
662
|
organizationId: string;
|
|
@@ -643,29 +664,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
643
664
|
userMetadata: Record<string, any> | null;
|
|
644
665
|
customFieldData: Record<string, any> | null;
|
|
645
666
|
customerMetadata: Record<string, any> | null;
|
|
646
|
-
customerId: string | null;
|
|
647
|
-
customerBillingAddress: Record<string, any> | null;
|
|
648
|
-
providedAmount: number | null;
|
|
649
|
-
totalAmount: number;
|
|
650
|
-
discountAmount: number;
|
|
651
|
-
netAmount: number;
|
|
652
|
-
taxAmount: number;
|
|
653
|
-
invoiceAmountSats: number;
|
|
654
|
-
invoiceScid: string | null;
|
|
655
|
-
btcPrice: number;
|
|
656
|
-
} | {
|
|
657
667
|
currency: string;
|
|
658
|
-
|
|
659
|
-
|
|
668
|
+
allowDiscountCodes: boolean;
|
|
669
|
+
customerName: string | null;
|
|
670
|
+
customerEmail: string | null;
|
|
671
|
+
requireCustomerFields: {
|
|
672
|
+
customerName?: boolean | undefined;
|
|
673
|
+
customerEmail?: boolean | undefined;
|
|
674
|
+
} | null;
|
|
675
|
+
successUrl: string | null;
|
|
676
|
+
customerId: string | null;
|
|
677
|
+
customerExternalId: string | null;
|
|
678
|
+
customerIpAddress: string | null;
|
|
679
|
+
customerBillingAddress: Record<string, any> | null;
|
|
660
680
|
products: {
|
|
661
681
|
id: string;
|
|
662
682
|
name: string;
|
|
663
683
|
description: string | null;
|
|
664
684
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
665
685
|
prices: {
|
|
666
|
-
priceAmount: number | null;
|
|
667
686
|
id: string;
|
|
668
687
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
688
|
+
priceAmount: number | null;
|
|
669
689
|
minimumAmount: number | null;
|
|
670
690
|
maximumAmount: number | null;
|
|
671
691
|
presetAmount: number | null;
|
|
@@ -674,27 +694,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
674
694
|
meterId: string | null;
|
|
675
695
|
}[];
|
|
676
696
|
}[] | null;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
customerEmail?: boolean | undefined;
|
|
686
|
-
} | null;
|
|
697
|
+
providedAmount: number;
|
|
698
|
+
totalAmount: number;
|
|
699
|
+
discountAmount: number;
|
|
700
|
+
netAmount: number;
|
|
701
|
+
taxAmount: number;
|
|
702
|
+
invoiceAmountSats: number;
|
|
703
|
+
invoiceScid: string | null;
|
|
704
|
+
btcPrice: number;
|
|
687
705
|
invoice: {
|
|
706
|
+
expiresAt: Date;
|
|
688
707
|
currency: string;
|
|
708
|
+
btcPrice: number;
|
|
689
709
|
invoice: string;
|
|
690
710
|
paymentHash: string;
|
|
691
711
|
amountSats: number;
|
|
692
|
-
expiresAt: Date;
|
|
693
|
-
btcPrice: number;
|
|
694
712
|
amountSatsReceived: number;
|
|
695
713
|
fiatAmount: number;
|
|
696
714
|
};
|
|
715
|
+
} | {
|
|
697
716
|
id: string;
|
|
717
|
+
type: "TOP_UP";
|
|
718
|
+
status: "PAYMENT_RECEIVED";
|
|
698
719
|
createdAt: Date;
|
|
699
720
|
clientSecret: string;
|
|
700
721
|
organizationId: string;
|
|
@@ -702,29 +723,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
702
723
|
userMetadata: Record<string, any> | null;
|
|
703
724
|
customFieldData: Record<string, any> | null;
|
|
704
725
|
customerMetadata: Record<string, any> | null;
|
|
726
|
+
currency: string;
|
|
727
|
+
allowDiscountCodes: boolean;
|
|
728
|
+
customerName: string | null;
|
|
729
|
+
customerEmail: string | null;
|
|
730
|
+
requireCustomerFields: {
|
|
731
|
+
customerName?: boolean | undefined;
|
|
732
|
+
customerEmail?: boolean | undefined;
|
|
733
|
+
} | null;
|
|
734
|
+
successUrl: string | null;
|
|
705
735
|
customerId: string | null;
|
|
736
|
+
customerExternalId: string | null;
|
|
737
|
+
customerIpAddress: string | null;
|
|
706
738
|
customerBillingAddress: Record<string, any> | null;
|
|
707
|
-
providedAmount: number;
|
|
708
|
-
totalAmount: number;
|
|
709
|
-
discountAmount: number;
|
|
710
|
-
netAmount: number;
|
|
711
|
-
taxAmount: number;
|
|
712
|
-
invoiceAmountSats: number;
|
|
713
|
-
invoiceScid: string | null;
|
|
714
|
-
btcPrice: number;
|
|
715
|
-
} | {
|
|
716
|
-
currency: string;
|
|
717
|
-
type: "TOP_UP";
|
|
718
|
-
status: "PAYMENT_RECEIVED";
|
|
719
739
|
products: {
|
|
720
740
|
id: string;
|
|
721
741
|
name: string;
|
|
722
742
|
description: string | null;
|
|
723
743
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
724
744
|
prices: {
|
|
725
|
-
priceAmount: number | null;
|
|
726
745
|
id: string;
|
|
727
746
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
747
|
+
priceAmount: number | null;
|
|
728
748
|
minimumAmount: number | null;
|
|
729
749
|
maximumAmount: number | null;
|
|
730
750
|
presetAmount: number | null;
|
|
@@ -733,27 +753,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
733
753
|
meterId: string | null;
|
|
734
754
|
}[];
|
|
735
755
|
}[] | null;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
customerEmail?: boolean | undefined;
|
|
745
|
-
} | null;
|
|
756
|
+
providedAmount: number | null;
|
|
757
|
+
totalAmount: number;
|
|
758
|
+
discountAmount: number;
|
|
759
|
+
netAmount: number;
|
|
760
|
+
taxAmount: number;
|
|
761
|
+
invoiceAmountSats: number;
|
|
762
|
+
invoiceScid: string | null;
|
|
763
|
+
btcPrice: number;
|
|
746
764
|
invoice: {
|
|
765
|
+
expiresAt: Date;
|
|
747
766
|
currency: string;
|
|
767
|
+
btcPrice: number;
|
|
748
768
|
invoice: string;
|
|
749
769
|
paymentHash: string;
|
|
750
770
|
amountSats: number;
|
|
751
|
-
expiresAt: Date;
|
|
752
|
-
btcPrice: number;
|
|
753
771
|
amountSatsReceived: number;
|
|
754
772
|
fiatAmount: number;
|
|
755
773
|
};
|
|
774
|
+
} | {
|
|
756
775
|
id: string;
|
|
776
|
+
type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
|
|
777
|
+
status: "EXPIRED";
|
|
757
778
|
createdAt: Date;
|
|
758
779
|
clientSecret: string;
|
|
759
780
|
organizationId: string;
|
|
@@ -761,29 +782,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
761
782
|
userMetadata: Record<string, any> | null;
|
|
762
783
|
customFieldData: Record<string, any> | null;
|
|
763
784
|
customerMetadata: Record<string, any> | null;
|
|
785
|
+
currency: string;
|
|
786
|
+
allowDiscountCodes: boolean;
|
|
787
|
+
customerName: string | null;
|
|
788
|
+
customerEmail: string | null;
|
|
789
|
+
requireCustomerFields: {
|
|
790
|
+
customerName?: boolean | undefined;
|
|
791
|
+
customerEmail?: boolean | undefined;
|
|
792
|
+
} | null;
|
|
793
|
+
successUrl: string | null;
|
|
764
794
|
customerId: string | null;
|
|
795
|
+
customerExternalId: string | null;
|
|
796
|
+
customerIpAddress: string | null;
|
|
765
797
|
customerBillingAddress: Record<string, any> | null;
|
|
766
|
-
providedAmount: number | null;
|
|
767
|
-
totalAmount: number;
|
|
768
|
-
discountAmount: number;
|
|
769
|
-
netAmount: number;
|
|
770
|
-
taxAmount: number;
|
|
771
|
-
invoiceAmountSats: number;
|
|
772
|
-
invoiceScid: string | null;
|
|
773
|
-
btcPrice: number;
|
|
774
|
-
} | {
|
|
775
|
-
currency: string;
|
|
776
|
-
type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
|
|
777
|
-
status: "EXPIRED";
|
|
778
798
|
products: {
|
|
779
799
|
id: string;
|
|
780
800
|
name: string;
|
|
781
801
|
description: string | null;
|
|
782
802
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
783
803
|
prices: {
|
|
784
|
-
priceAmount: number | null;
|
|
785
804
|
id: string;
|
|
786
805
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
806
|
+
priceAmount: number | null;
|
|
787
807
|
minimumAmount: number | null;
|
|
788
808
|
maximumAmount: number | null;
|
|
789
809
|
presetAmount: number | null;
|
|
@@ -792,27 +812,29 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
792
812
|
meterId: string | null;
|
|
793
813
|
}[];
|
|
794
814
|
}[] | null;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
customerEmail?: boolean | undefined;
|
|
804
|
-
} | null;
|
|
815
|
+
providedAmount: number | null;
|
|
816
|
+
totalAmount: number | null;
|
|
817
|
+
discountAmount: number | null;
|
|
818
|
+
netAmount: number | null;
|
|
819
|
+
taxAmount: number | null;
|
|
820
|
+
invoiceAmountSats: number | null;
|
|
821
|
+
invoiceScid: string | null;
|
|
822
|
+
btcPrice: number | null;
|
|
805
823
|
invoice: {
|
|
824
|
+
expiresAt: Date;
|
|
806
825
|
currency: string;
|
|
826
|
+
btcPrice: number | null;
|
|
807
827
|
invoice: string;
|
|
808
828
|
paymentHash: string;
|
|
809
829
|
amountSats: number | null;
|
|
810
|
-
expiresAt: Date;
|
|
811
|
-
btcPrice: number | null;
|
|
812
830
|
amountSatsReceived: number | null;
|
|
813
831
|
fiatAmount: number | null;
|
|
814
832
|
} | null;
|
|
833
|
+
}>;
|
|
834
|
+
export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
815
835
|
id: string;
|
|
836
|
+
type: "PRODUCTS";
|
|
837
|
+
status: "UNCONFIRMED";
|
|
816
838
|
createdAt: Date;
|
|
817
839
|
clientSecret: string;
|
|
818
840
|
organizationId: string;
|
|
@@ -820,30 +842,28 @@ export declare function getCheckout(checkoutId: string): Promise<{
|
|
|
820
842
|
userMetadata: Record<string, any> | null;
|
|
821
843
|
customFieldData: Record<string, any> | null;
|
|
822
844
|
customerMetadata: Record<string, any> | null;
|
|
845
|
+
currency: string;
|
|
846
|
+
allowDiscountCodes: boolean;
|
|
847
|
+
customerName: string | null;
|
|
848
|
+
customerEmail: string | null;
|
|
849
|
+
requireCustomerFields: {
|
|
850
|
+
customerName?: boolean | undefined;
|
|
851
|
+
customerEmail?: boolean | undefined;
|
|
852
|
+
} | null;
|
|
853
|
+
successUrl: string | null;
|
|
823
854
|
customerId: string | null;
|
|
855
|
+
customerExternalId: string | null;
|
|
856
|
+
customerIpAddress: string | null;
|
|
824
857
|
customerBillingAddress: Record<string, any> | null;
|
|
825
|
-
providedAmount: number | null;
|
|
826
|
-
totalAmount: number | null;
|
|
827
|
-
discountAmount: number | null;
|
|
828
|
-
netAmount: number | null;
|
|
829
|
-
taxAmount: number | null;
|
|
830
|
-
invoiceAmountSats: number | null;
|
|
831
|
-
invoiceScid: string | null;
|
|
832
|
-
btcPrice: number | null;
|
|
833
|
-
}>;
|
|
834
|
-
export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
835
|
-
currency: string;
|
|
836
|
-
type: "PRODUCTS";
|
|
837
|
-
status: "UNCONFIRMED";
|
|
838
858
|
products: [{
|
|
839
859
|
id: string;
|
|
840
860
|
name: string;
|
|
841
861
|
description: string | null;
|
|
842
862
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
843
863
|
prices: {
|
|
844
|
-
priceAmount: number | null;
|
|
845
864
|
id: string;
|
|
846
865
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
866
|
+
priceAmount: number | null;
|
|
847
867
|
minimumAmount: number | null;
|
|
848
868
|
maximumAmount: number | null;
|
|
849
869
|
presetAmount: number | null;
|
|
@@ -857,9 +877,9 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
857
877
|
description: string | null;
|
|
858
878
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
859
879
|
prices: {
|
|
860
|
-
priceAmount: number | null;
|
|
861
880
|
id: string;
|
|
862
881
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
882
|
+
priceAmount: number | null;
|
|
863
883
|
minimumAmount: number | null;
|
|
864
884
|
maximumAmount: number | null;
|
|
865
885
|
presetAmount: number | null;
|
|
@@ -868,27 +888,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
868
888
|
meterId: string | null;
|
|
869
889
|
}[];
|
|
870
890
|
}[]];
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
customerEmail?: boolean | undefined;
|
|
880
|
-
} | null;
|
|
891
|
+
providedAmount: number | null;
|
|
892
|
+
totalAmount: number | null;
|
|
893
|
+
discountAmount: number | null;
|
|
894
|
+
netAmount: number | null;
|
|
895
|
+
taxAmount: number | null;
|
|
896
|
+
invoiceAmountSats: number | null;
|
|
897
|
+
invoiceScid: string | null;
|
|
898
|
+
btcPrice: number | null;
|
|
881
899
|
invoice: {
|
|
900
|
+
expiresAt: Date;
|
|
882
901
|
currency: string;
|
|
902
|
+
btcPrice: number | null;
|
|
883
903
|
invoice: string;
|
|
884
904
|
paymentHash: string;
|
|
885
905
|
amountSats: number | null;
|
|
886
|
-
expiresAt: Date;
|
|
887
|
-
btcPrice: number | null;
|
|
888
906
|
amountSatsReceived: number | null;
|
|
889
907
|
fiatAmount: number | null;
|
|
890
908
|
} | null;
|
|
909
|
+
} | {
|
|
891
910
|
id: string;
|
|
911
|
+
type: "AMOUNT";
|
|
912
|
+
status: "UNCONFIRMED";
|
|
892
913
|
createdAt: Date;
|
|
893
914
|
clientSecret: string;
|
|
894
915
|
organizationId: string;
|
|
@@ -896,29 +917,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
896
917
|
userMetadata: Record<string, any> | null;
|
|
897
918
|
customFieldData: Record<string, any> | null;
|
|
898
919
|
customerMetadata: Record<string, any> | null;
|
|
920
|
+
currency: string;
|
|
921
|
+
allowDiscountCodes: boolean;
|
|
922
|
+
customerName: string | null;
|
|
923
|
+
customerEmail: string | null;
|
|
924
|
+
requireCustomerFields: {
|
|
925
|
+
customerName?: boolean | undefined;
|
|
926
|
+
customerEmail?: boolean | undefined;
|
|
927
|
+
} | null;
|
|
928
|
+
successUrl: string | null;
|
|
899
929
|
customerId: string | null;
|
|
930
|
+
customerExternalId: string | null;
|
|
931
|
+
customerIpAddress: string | null;
|
|
900
932
|
customerBillingAddress: Record<string, any> | null;
|
|
901
|
-
providedAmount: number | null;
|
|
902
|
-
totalAmount: number | null;
|
|
903
|
-
discountAmount: number | null;
|
|
904
|
-
netAmount: number | null;
|
|
905
|
-
taxAmount: number | null;
|
|
906
|
-
invoiceAmountSats: number | null;
|
|
907
|
-
invoiceScid: string | null;
|
|
908
|
-
btcPrice: number | null;
|
|
909
|
-
} | {
|
|
910
|
-
currency: string;
|
|
911
|
-
type: "AMOUNT";
|
|
912
|
-
status: "UNCONFIRMED";
|
|
913
933
|
products: {
|
|
914
934
|
id: string;
|
|
915
935
|
name: string;
|
|
916
936
|
description: string | null;
|
|
917
937
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
918
938
|
prices: {
|
|
919
|
-
priceAmount: number | null;
|
|
920
939
|
id: string;
|
|
921
940
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
941
|
+
priceAmount: number | null;
|
|
922
942
|
minimumAmount: number | null;
|
|
923
943
|
maximumAmount: number | null;
|
|
924
944
|
presetAmount: number | null;
|
|
@@ -927,27 +947,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
927
947
|
meterId: string | null;
|
|
928
948
|
}[];
|
|
929
949
|
}[] | null;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
customerEmail?: boolean | undefined;
|
|
939
|
-
} | null;
|
|
950
|
+
providedAmount: number;
|
|
951
|
+
totalAmount: number | null;
|
|
952
|
+
discountAmount: number | null;
|
|
953
|
+
netAmount: number | null;
|
|
954
|
+
taxAmount: number | null;
|
|
955
|
+
invoiceAmountSats: number | null;
|
|
956
|
+
invoiceScid: string | null;
|
|
957
|
+
btcPrice: number | null;
|
|
940
958
|
invoice: {
|
|
959
|
+
expiresAt: Date;
|
|
941
960
|
currency: string;
|
|
961
|
+
btcPrice: number | null;
|
|
942
962
|
invoice: string;
|
|
943
963
|
paymentHash: string;
|
|
944
964
|
amountSats: number | null;
|
|
945
|
-
expiresAt: Date;
|
|
946
|
-
btcPrice: number | null;
|
|
947
965
|
amountSatsReceived: number | null;
|
|
948
966
|
fiatAmount: number | null;
|
|
949
967
|
} | null;
|
|
968
|
+
} | {
|
|
950
969
|
id: string;
|
|
970
|
+
type: "TOP_UP";
|
|
971
|
+
status: "UNCONFIRMED";
|
|
951
972
|
createdAt: Date;
|
|
952
973
|
clientSecret: string;
|
|
953
974
|
organizationId: string;
|
|
@@ -955,29 +976,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
955
976
|
userMetadata: Record<string, any> | null;
|
|
956
977
|
customFieldData: Record<string, any> | null;
|
|
957
978
|
customerMetadata: Record<string, any> | null;
|
|
958
|
-
customerId: string | null;
|
|
959
|
-
customerBillingAddress: Record<string, any> | null;
|
|
960
|
-
providedAmount: number;
|
|
961
|
-
totalAmount: number | null;
|
|
962
|
-
discountAmount: number | null;
|
|
963
|
-
netAmount: number | null;
|
|
964
|
-
taxAmount: number | null;
|
|
965
|
-
invoiceAmountSats: number | null;
|
|
966
|
-
invoiceScid: string | null;
|
|
967
|
-
btcPrice: number | null;
|
|
968
|
-
} | {
|
|
969
979
|
currency: string;
|
|
970
|
-
|
|
971
|
-
|
|
980
|
+
allowDiscountCodes: boolean;
|
|
981
|
+
customerName: string | null;
|
|
982
|
+
customerEmail: string | null;
|
|
983
|
+
requireCustomerFields: {
|
|
984
|
+
customerName?: boolean | undefined;
|
|
985
|
+
customerEmail?: boolean | undefined;
|
|
986
|
+
} | null;
|
|
987
|
+
successUrl: string | null;
|
|
988
|
+
customerId: string | null;
|
|
989
|
+
customerExternalId: string | null;
|
|
990
|
+
customerIpAddress: string | null;
|
|
991
|
+
customerBillingAddress: Record<string, any> | null;
|
|
972
992
|
products: {
|
|
973
993
|
id: string;
|
|
974
994
|
name: string;
|
|
975
995
|
description: string | null;
|
|
976
996
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
977
997
|
prices: {
|
|
978
|
-
priceAmount: number | null;
|
|
979
998
|
id: string;
|
|
980
999
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1000
|
+
priceAmount: number | null;
|
|
981
1001
|
minimumAmount: number | null;
|
|
982
1002
|
maximumAmount: number | null;
|
|
983
1003
|
presetAmount: number | null;
|
|
@@ -986,27 +1006,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
986
1006
|
meterId: string | null;
|
|
987
1007
|
}[];
|
|
988
1008
|
}[] | null;
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
customerEmail?: boolean | undefined;
|
|
998
|
-
} | null;
|
|
1009
|
+
providedAmount: number | null;
|
|
1010
|
+
totalAmount: number | null;
|
|
1011
|
+
discountAmount: number | null;
|
|
1012
|
+
netAmount: number | null;
|
|
1013
|
+
taxAmount: number | null;
|
|
1014
|
+
invoiceAmountSats: number | null;
|
|
1015
|
+
invoiceScid: string | null;
|
|
1016
|
+
btcPrice: number | null;
|
|
999
1017
|
invoice: {
|
|
1018
|
+
expiresAt: Date;
|
|
1000
1019
|
currency: string;
|
|
1020
|
+
btcPrice: number | null;
|
|
1001
1021
|
invoice: string;
|
|
1002
1022
|
paymentHash: string;
|
|
1003
1023
|
amountSats: number | null;
|
|
1004
|
-
expiresAt: Date;
|
|
1005
|
-
btcPrice: number | null;
|
|
1006
1024
|
amountSatsReceived: number | null;
|
|
1007
1025
|
fiatAmount: number | null;
|
|
1008
1026
|
} | null;
|
|
1027
|
+
} | {
|
|
1009
1028
|
id: string;
|
|
1029
|
+
type: "PRODUCTS";
|
|
1030
|
+
status: "CONFIRMED";
|
|
1010
1031
|
createdAt: Date;
|
|
1011
1032
|
clientSecret: string;
|
|
1012
1033
|
organizationId: string;
|
|
@@ -1014,29 +1035,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1014
1035
|
userMetadata: Record<string, any> | null;
|
|
1015
1036
|
customFieldData: Record<string, any> | null;
|
|
1016
1037
|
customerMetadata: Record<string, any> | null;
|
|
1038
|
+
currency: string;
|
|
1039
|
+
allowDiscountCodes: boolean;
|
|
1040
|
+
customerName: string | null;
|
|
1041
|
+
customerEmail: string | null;
|
|
1042
|
+
requireCustomerFields: {
|
|
1043
|
+
customerName?: boolean | undefined;
|
|
1044
|
+
customerEmail?: boolean | undefined;
|
|
1045
|
+
} | null;
|
|
1046
|
+
successUrl: string | null;
|
|
1017
1047
|
customerId: string | null;
|
|
1048
|
+
customerExternalId: string | null;
|
|
1049
|
+
customerIpAddress: string | null;
|
|
1018
1050
|
customerBillingAddress: Record<string, any> | null;
|
|
1019
|
-
providedAmount: number | null;
|
|
1020
|
-
totalAmount: number | null;
|
|
1021
|
-
discountAmount: number | null;
|
|
1022
|
-
netAmount: number | null;
|
|
1023
|
-
taxAmount: number | null;
|
|
1024
|
-
invoiceAmountSats: number | null;
|
|
1025
|
-
invoiceScid: string | null;
|
|
1026
|
-
btcPrice: number | null;
|
|
1027
|
-
} | {
|
|
1028
|
-
currency: string;
|
|
1029
|
-
type: "PRODUCTS";
|
|
1030
|
-
status: "CONFIRMED";
|
|
1031
1051
|
products: [{
|
|
1032
1052
|
id: string;
|
|
1033
1053
|
name: string;
|
|
1034
1054
|
description: string | null;
|
|
1035
1055
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1036
1056
|
prices: {
|
|
1037
|
-
priceAmount: number | null;
|
|
1038
1057
|
id: string;
|
|
1039
1058
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1059
|
+
priceAmount: number | null;
|
|
1040
1060
|
minimumAmount: number | null;
|
|
1041
1061
|
maximumAmount: number | null;
|
|
1042
1062
|
presetAmount: number | null;
|
|
@@ -1050,9 +1070,9 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1050
1070
|
description: string | null;
|
|
1051
1071
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1052
1072
|
prices: {
|
|
1053
|
-
priceAmount: number | null;
|
|
1054
1073
|
id: string;
|
|
1055
1074
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1075
|
+
priceAmount: number | null;
|
|
1056
1076
|
minimumAmount: number | null;
|
|
1057
1077
|
maximumAmount: number | null;
|
|
1058
1078
|
presetAmount: number | null;
|
|
@@ -1061,27 +1081,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1061
1081
|
meterId: string | null;
|
|
1062
1082
|
}[];
|
|
1063
1083
|
}[]];
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
customerEmail?: boolean | undefined;
|
|
1073
|
-
} | null;
|
|
1084
|
+
providedAmount: number | null;
|
|
1085
|
+
totalAmount: number;
|
|
1086
|
+
discountAmount: number;
|
|
1087
|
+
netAmount: number;
|
|
1088
|
+
taxAmount: number;
|
|
1089
|
+
invoiceAmountSats: number;
|
|
1090
|
+
invoiceScid: string | null;
|
|
1091
|
+
btcPrice: number;
|
|
1074
1092
|
invoice: {
|
|
1093
|
+
expiresAt: Date;
|
|
1075
1094
|
currency: string;
|
|
1095
|
+
btcPrice: number | null;
|
|
1076
1096
|
invoice: string;
|
|
1077
1097
|
paymentHash: string;
|
|
1078
1098
|
amountSats: number | null;
|
|
1079
|
-
expiresAt: Date;
|
|
1080
|
-
btcPrice: number | null;
|
|
1081
1099
|
amountSatsReceived: number | null;
|
|
1082
1100
|
fiatAmount: number | null;
|
|
1083
1101
|
} | null;
|
|
1102
|
+
} | {
|
|
1084
1103
|
id: string;
|
|
1104
|
+
type: "AMOUNT";
|
|
1105
|
+
status: "CONFIRMED";
|
|
1085
1106
|
createdAt: Date;
|
|
1086
1107
|
clientSecret: string;
|
|
1087
1108
|
organizationId: string;
|
|
@@ -1089,29 +1110,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1089
1110
|
userMetadata: Record<string, any> | null;
|
|
1090
1111
|
customFieldData: Record<string, any> | null;
|
|
1091
1112
|
customerMetadata: Record<string, any> | null;
|
|
1113
|
+
currency: string;
|
|
1114
|
+
allowDiscountCodes: boolean;
|
|
1115
|
+
customerName: string | null;
|
|
1116
|
+
customerEmail: string | null;
|
|
1117
|
+
requireCustomerFields: {
|
|
1118
|
+
customerName?: boolean | undefined;
|
|
1119
|
+
customerEmail?: boolean | undefined;
|
|
1120
|
+
} | null;
|
|
1121
|
+
successUrl: string | null;
|
|
1092
1122
|
customerId: string | null;
|
|
1123
|
+
customerExternalId: string | null;
|
|
1124
|
+
customerIpAddress: string | null;
|
|
1093
1125
|
customerBillingAddress: Record<string, any> | null;
|
|
1094
|
-
providedAmount: number | null;
|
|
1095
|
-
totalAmount: number;
|
|
1096
|
-
discountAmount: number;
|
|
1097
|
-
netAmount: number;
|
|
1098
|
-
taxAmount: number;
|
|
1099
|
-
invoiceAmountSats: number;
|
|
1100
|
-
invoiceScid: string | null;
|
|
1101
|
-
btcPrice: number;
|
|
1102
|
-
} | {
|
|
1103
|
-
currency: string;
|
|
1104
|
-
type: "AMOUNT";
|
|
1105
|
-
status: "CONFIRMED";
|
|
1106
1126
|
products: {
|
|
1107
1127
|
id: string;
|
|
1108
1128
|
name: string;
|
|
1109
1129
|
description: string | null;
|
|
1110
1130
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1111
1131
|
prices: {
|
|
1112
|
-
priceAmount: number | null;
|
|
1113
1132
|
id: string;
|
|
1114
1133
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1134
|
+
priceAmount: number | null;
|
|
1115
1135
|
minimumAmount: number | null;
|
|
1116
1136
|
maximumAmount: number | null;
|
|
1117
1137
|
presetAmount: number | null;
|
|
@@ -1120,27 +1140,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1120
1140
|
meterId: string | null;
|
|
1121
1141
|
}[];
|
|
1122
1142
|
}[] | null;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
customerEmail?: boolean | undefined;
|
|
1132
|
-
} | null;
|
|
1143
|
+
providedAmount: number;
|
|
1144
|
+
totalAmount: number;
|
|
1145
|
+
discountAmount: number;
|
|
1146
|
+
netAmount: number;
|
|
1147
|
+
taxAmount: number;
|
|
1148
|
+
invoiceAmountSats: number;
|
|
1149
|
+
invoiceScid: string | null;
|
|
1150
|
+
btcPrice: number;
|
|
1133
1151
|
invoice: {
|
|
1152
|
+
expiresAt: Date;
|
|
1134
1153
|
currency: string;
|
|
1154
|
+
btcPrice: number | null;
|
|
1135
1155
|
invoice: string;
|
|
1136
1156
|
paymentHash: string;
|
|
1137
1157
|
amountSats: number | null;
|
|
1138
|
-
expiresAt: Date;
|
|
1139
|
-
btcPrice: number | null;
|
|
1140
1158
|
amountSatsReceived: number | null;
|
|
1141
1159
|
fiatAmount: number | null;
|
|
1142
1160
|
} | null;
|
|
1161
|
+
} | {
|
|
1143
1162
|
id: string;
|
|
1163
|
+
type: "TOP_UP";
|
|
1164
|
+
status: "CONFIRMED";
|
|
1144
1165
|
createdAt: Date;
|
|
1145
1166
|
clientSecret: string;
|
|
1146
1167
|
organizationId: string;
|
|
@@ -1148,29 +1169,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1148
1169
|
userMetadata: Record<string, any> | null;
|
|
1149
1170
|
customFieldData: Record<string, any> | null;
|
|
1150
1171
|
customerMetadata: Record<string, any> | null;
|
|
1172
|
+
currency: string;
|
|
1173
|
+
allowDiscountCodes: boolean;
|
|
1174
|
+
customerName: string | null;
|
|
1175
|
+
customerEmail: string | null;
|
|
1176
|
+
requireCustomerFields: {
|
|
1177
|
+
customerName?: boolean | undefined;
|
|
1178
|
+
customerEmail?: boolean | undefined;
|
|
1179
|
+
} | null;
|
|
1180
|
+
successUrl: string | null;
|
|
1151
1181
|
customerId: string | null;
|
|
1182
|
+
customerExternalId: string | null;
|
|
1183
|
+
customerIpAddress: string | null;
|
|
1152
1184
|
customerBillingAddress: Record<string, any> | null;
|
|
1153
|
-
providedAmount: number;
|
|
1154
|
-
totalAmount: number;
|
|
1155
|
-
discountAmount: number;
|
|
1156
|
-
netAmount: number;
|
|
1157
|
-
taxAmount: number;
|
|
1158
|
-
invoiceAmountSats: number;
|
|
1159
|
-
invoiceScid: string | null;
|
|
1160
|
-
btcPrice: number;
|
|
1161
|
-
} | {
|
|
1162
|
-
currency: string;
|
|
1163
|
-
type: "TOP_UP";
|
|
1164
|
-
status: "CONFIRMED";
|
|
1165
1185
|
products: {
|
|
1166
1186
|
id: string;
|
|
1167
1187
|
name: string;
|
|
1168
1188
|
description: string | null;
|
|
1169
1189
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1170
1190
|
prices: {
|
|
1171
|
-
priceAmount: number | null;
|
|
1172
1191
|
id: string;
|
|
1173
1192
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1193
|
+
priceAmount: number | null;
|
|
1174
1194
|
minimumAmount: number | null;
|
|
1175
1195
|
maximumAmount: number | null;
|
|
1176
1196
|
presetAmount: number | null;
|
|
@@ -1179,27 +1199,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1179
1199
|
meterId: string | null;
|
|
1180
1200
|
}[];
|
|
1181
1201
|
}[] | null;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
customerEmail?: boolean | undefined;
|
|
1191
|
-
} | null;
|
|
1202
|
+
providedAmount: number | null;
|
|
1203
|
+
totalAmount: number | null;
|
|
1204
|
+
discountAmount: number | null;
|
|
1205
|
+
netAmount: number | null;
|
|
1206
|
+
taxAmount: number | null;
|
|
1207
|
+
invoiceAmountSats: number | null;
|
|
1208
|
+
invoiceScid: string | null;
|
|
1209
|
+
btcPrice: number | null;
|
|
1192
1210
|
invoice: {
|
|
1211
|
+
expiresAt: Date;
|
|
1193
1212
|
currency: string;
|
|
1213
|
+
btcPrice: number | null;
|
|
1194
1214
|
invoice: string;
|
|
1195
1215
|
paymentHash: string;
|
|
1196
1216
|
amountSats: number | null;
|
|
1197
|
-
expiresAt: Date;
|
|
1198
|
-
btcPrice: number | null;
|
|
1199
1217
|
amountSatsReceived: number | null;
|
|
1200
1218
|
fiatAmount: number | null;
|
|
1201
1219
|
} | null;
|
|
1220
|
+
} | {
|
|
1202
1221
|
id: string;
|
|
1222
|
+
type: "PRODUCTS";
|
|
1223
|
+
status: "PENDING_PAYMENT";
|
|
1203
1224
|
createdAt: Date;
|
|
1204
1225
|
clientSecret: string;
|
|
1205
1226
|
organizationId: string;
|
|
@@ -1207,29 +1228,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1207
1228
|
userMetadata: Record<string, any> | null;
|
|
1208
1229
|
customFieldData: Record<string, any> | null;
|
|
1209
1230
|
customerMetadata: Record<string, any> | null;
|
|
1231
|
+
currency: string;
|
|
1232
|
+
allowDiscountCodes: boolean;
|
|
1233
|
+
customerName: string | null;
|
|
1234
|
+
customerEmail: string | null;
|
|
1235
|
+
requireCustomerFields: {
|
|
1236
|
+
customerName?: boolean | undefined;
|
|
1237
|
+
customerEmail?: boolean | undefined;
|
|
1238
|
+
} | null;
|
|
1239
|
+
successUrl: string | null;
|
|
1210
1240
|
customerId: string | null;
|
|
1241
|
+
customerExternalId: string | null;
|
|
1242
|
+
customerIpAddress: string | null;
|
|
1211
1243
|
customerBillingAddress: Record<string, any> | null;
|
|
1212
|
-
providedAmount: number | null;
|
|
1213
|
-
totalAmount: number | null;
|
|
1214
|
-
discountAmount: number | null;
|
|
1215
|
-
netAmount: number | null;
|
|
1216
|
-
taxAmount: number | null;
|
|
1217
|
-
invoiceAmountSats: number | null;
|
|
1218
|
-
invoiceScid: string | null;
|
|
1219
|
-
btcPrice: number | null;
|
|
1220
|
-
} | {
|
|
1221
|
-
currency: string;
|
|
1222
|
-
type: "PRODUCTS";
|
|
1223
|
-
status: "PENDING_PAYMENT";
|
|
1224
1244
|
products: [{
|
|
1225
1245
|
id: string;
|
|
1226
1246
|
name: string;
|
|
1227
1247
|
description: string | null;
|
|
1228
1248
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1229
1249
|
prices: {
|
|
1230
|
-
priceAmount: number | null;
|
|
1231
1250
|
id: string;
|
|
1232
1251
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1252
|
+
priceAmount: number | null;
|
|
1233
1253
|
minimumAmount: number | null;
|
|
1234
1254
|
maximumAmount: number | null;
|
|
1235
1255
|
presetAmount: number | null;
|
|
@@ -1243,9 +1263,9 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1243
1263
|
description: string | null;
|
|
1244
1264
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1245
1265
|
prices: {
|
|
1246
|
-
priceAmount: number | null;
|
|
1247
1266
|
id: string;
|
|
1248
1267
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1268
|
+
priceAmount: number | null;
|
|
1249
1269
|
minimumAmount: number | null;
|
|
1250
1270
|
maximumAmount: number | null;
|
|
1251
1271
|
presetAmount: number | null;
|
|
@@ -1254,27 +1274,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1254
1274
|
meterId: string | null;
|
|
1255
1275
|
}[];
|
|
1256
1276
|
}[]];
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
customerEmail?: boolean | undefined;
|
|
1266
|
-
} | null;
|
|
1277
|
+
providedAmount: number | null;
|
|
1278
|
+
totalAmount: number;
|
|
1279
|
+
discountAmount: number;
|
|
1280
|
+
netAmount: number;
|
|
1281
|
+
taxAmount: number;
|
|
1282
|
+
invoiceAmountSats: number;
|
|
1283
|
+
invoiceScid: string | null;
|
|
1284
|
+
btcPrice: number;
|
|
1267
1285
|
invoice: {
|
|
1286
|
+
expiresAt: Date;
|
|
1268
1287
|
currency: string;
|
|
1288
|
+
btcPrice: number;
|
|
1269
1289
|
invoice: string;
|
|
1270
1290
|
paymentHash: string;
|
|
1271
1291
|
amountSats: number;
|
|
1272
|
-
expiresAt: Date;
|
|
1273
|
-
btcPrice: number;
|
|
1274
1292
|
amountSatsReceived: number | null;
|
|
1275
1293
|
fiatAmount: number;
|
|
1276
1294
|
};
|
|
1295
|
+
} | {
|
|
1277
1296
|
id: string;
|
|
1297
|
+
type: "AMOUNT";
|
|
1298
|
+
status: "PENDING_PAYMENT";
|
|
1278
1299
|
createdAt: Date;
|
|
1279
1300
|
clientSecret: string;
|
|
1280
1301
|
organizationId: string;
|
|
@@ -1282,29 +1303,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1282
1303
|
userMetadata: Record<string, any> | null;
|
|
1283
1304
|
customFieldData: Record<string, any> | null;
|
|
1284
1305
|
customerMetadata: Record<string, any> | null;
|
|
1285
|
-
customerId: string | null;
|
|
1286
|
-
customerBillingAddress: Record<string, any> | null;
|
|
1287
|
-
providedAmount: number | null;
|
|
1288
|
-
totalAmount: number;
|
|
1289
|
-
discountAmount: number;
|
|
1290
|
-
netAmount: number;
|
|
1291
|
-
taxAmount: number;
|
|
1292
|
-
invoiceAmountSats: number;
|
|
1293
|
-
invoiceScid: string | null;
|
|
1294
|
-
btcPrice: number;
|
|
1295
|
-
} | {
|
|
1296
1306
|
currency: string;
|
|
1297
|
-
|
|
1298
|
-
|
|
1307
|
+
allowDiscountCodes: boolean;
|
|
1308
|
+
customerName: string | null;
|
|
1309
|
+
customerEmail: string | null;
|
|
1310
|
+
requireCustomerFields: {
|
|
1311
|
+
customerName?: boolean | undefined;
|
|
1312
|
+
customerEmail?: boolean | undefined;
|
|
1313
|
+
} | null;
|
|
1314
|
+
successUrl: string | null;
|
|
1315
|
+
customerId: string | null;
|
|
1316
|
+
customerExternalId: string | null;
|
|
1317
|
+
customerIpAddress: string | null;
|
|
1318
|
+
customerBillingAddress: Record<string, any> | null;
|
|
1299
1319
|
products: {
|
|
1300
1320
|
id: string;
|
|
1301
1321
|
name: string;
|
|
1302
1322
|
description: string | null;
|
|
1303
1323
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1304
1324
|
prices: {
|
|
1305
|
-
priceAmount: number | null;
|
|
1306
1325
|
id: string;
|
|
1307
1326
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1327
|
+
priceAmount: number | null;
|
|
1308
1328
|
minimumAmount: number | null;
|
|
1309
1329
|
maximumAmount: number | null;
|
|
1310
1330
|
presetAmount: number | null;
|
|
@@ -1313,27 +1333,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1313
1333
|
meterId: string | null;
|
|
1314
1334
|
}[];
|
|
1315
1335
|
}[] | null;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
customerEmail?: boolean | undefined;
|
|
1325
|
-
} | null;
|
|
1336
|
+
providedAmount: number;
|
|
1337
|
+
totalAmount: number;
|
|
1338
|
+
discountAmount: number;
|
|
1339
|
+
netAmount: number;
|
|
1340
|
+
taxAmount: number;
|
|
1341
|
+
invoiceAmountSats: number;
|
|
1342
|
+
invoiceScid: string | null;
|
|
1343
|
+
btcPrice: number;
|
|
1326
1344
|
invoice: {
|
|
1345
|
+
expiresAt: Date;
|
|
1327
1346
|
currency: string;
|
|
1347
|
+
btcPrice: number;
|
|
1328
1348
|
invoice: string;
|
|
1329
1349
|
paymentHash: string;
|
|
1330
1350
|
amountSats: number;
|
|
1331
|
-
expiresAt: Date;
|
|
1332
|
-
btcPrice: number;
|
|
1333
1351
|
amountSatsReceived: number | null;
|
|
1334
1352
|
fiatAmount: number;
|
|
1335
1353
|
};
|
|
1354
|
+
} | {
|
|
1336
1355
|
id: string;
|
|
1356
|
+
type: "TOP_UP";
|
|
1357
|
+
status: "PENDING_PAYMENT";
|
|
1337
1358
|
createdAt: Date;
|
|
1338
1359
|
clientSecret: string;
|
|
1339
1360
|
organizationId: string;
|
|
@@ -1341,29 +1362,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1341
1362
|
userMetadata: Record<string, any> | null;
|
|
1342
1363
|
customFieldData: Record<string, any> | null;
|
|
1343
1364
|
customerMetadata: Record<string, any> | null;
|
|
1365
|
+
currency: string;
|
|
1366
|
+
allowDiscountCodes: boolean;
|
|
1367
|
+
customerName: string | null;
|
|
1368
|
+
customerEmail: string | null;
|
|
1369
|
+
requireCustomerFields: {
|
|
1370
|
+
customerName?: boolean | undefined;
|
|
1371
|
+
customerEmail?: boolean | undefined;
|
|
1372
|
+
} | null;
|
|
1373
|
+
successUrl: string | null;
|
|
1344
1374
|
customerId: string | null;
|
|
1375
|
+
customerExternalId: string | null;
|
|
1376
|
+
customerIpAddress: string | null;
|
|
1345
1377
|
customerBillingAddress: Record<string, any> | null;
|
|
1346
|
-
providedAmount: number;
|
|
1347
|
-
totalAmount: number;
|
|
1348
|
-
discountAmount: number;
|
|
1349
|
-
netAmount: number;
|
|
1350
|
-
taxAmount: number;
|
|
1351
|
-
invoiceAmountSats: number;
|
|
1352
|
-
invoiceScid: string | null;
|
|
1353
|
-
btcPrice: number;
|
|
1354
|
-
} | {
|
|
1355
|
-
currency: string;
|
|
1356
|
-
type: "TOP_UP";
|
|
1357
|
-
status: "PENDING_PAYMENT";
|
|
1358
1378
|
products: {
|
|
1359
1379
|
id: string;
|
|
1360
1380
|
name: string;
|
|
1361
1381
|
description: string | null;
|
|
1362
1382
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1363
1383
|
prices: {
|
|
1364
|
-
priceAmount: number | null;
|
|
1365
1384
|
id: string;
|
|
1366
1385
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1386
|
+
priceAmount: number | null;
|
|
1367
1387
|
minimumAmount: number | null;
|
|
1368
1388
|
maximumAmount: number | null;
|
|
1369
1389
|
presetAmount: number | null;
|
|
@@ -1372,27 +1392,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1372
1392
|
meterId: string | null;
|
|
1373
1393
|
}[];
|
|
1374
1394
|
}[] | null;
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
customerEmail?: boolean | undefined;
|
|
1384
|
-
} | null;
|
|
1395
|
+
providedAmount: number | null;
|
|
1396
|
+
totalAmount: number | null;
|
|
1397
|
+
discountAmount: number | null;
|
|
1398
|
+
netAmount: number | null;
|
|
1399
|
+
taxAmount: number | null;
|
|
1400
|
+
invoiceAmountSats: number | null;
|
|
1401
|
+
invoiceScid: string | null;
|
|
1402
|
+
btcPrice: number | null;
|
|
1385
1403
|
invoice: {
|
|
1404
|
+
expiresAt: Date;
|
|
1386
1405
|
currency: string;
|
|
1406
|
+
btcPrice: number | null;
|
|
1387
1407
|
invoice: string;
|
|
1388
1408
|
paymentHash: string;
|
|
1389
1409
|
amountSats: number | null;
|
|
1390
|
-
expiresAt: Date;
|
|
1391
|
-
btcPrice: number | null;
|
|
1392
1410
|
amountSatsReceived: number | null;
|
|
1393
1411
|
fiatAmount: number | null;
|
|
1394
1412
|
};
|
|
1413
|
+
} | {
|
|
1395
1414
|
id: string;
|
|
1415
|
+
type: "PRODUCTS";
|
|
1416
|
+
status: "PAYMENT_RECEIVED";
|
|
1396
1417
|
createdAt: Date;
|
|
1397
1418
|
clientSecret: string;
|
|
1398
1419
|
organizationId: string;
|
|
@@ -1400,29 +1421,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1400
1421
|
userMetadata: Record<string, any> | null;
|
|
1401
1422
|
customFieldData: Record<string, any> | null;
|
|
1402
1423
|
customerMetadata: Record<string, any> | null;
|
|
1424
|
+
currency: string;
|
|
1425
|
+
allowDiscountCodes: boolean;
|
|
1426
|
+
customerName: string | null;
|
|
1427
|
+
customerEmail: string | null;
|
|
1428
|
+
requireCustomerFields: {
|
|
1429
|
+
customerName?: boolean | undefined;
|
|
1430
|
+
customerEmail?: boolean | undefined;
|
|
1431
|
+
} | null;
|
|
1432
|
+
successUrl: string | null;
|
|
1403
1433
|
customerId: string | null;
|
|
1434
|
+
customerExternalId: string | null;
|
|
1435
|
+
customerIpAddress: string | null;
|
|
1404
1436
|
customerBillingAddress: Record<string, any> | null;
|
|
1405
|
-
providedAmount: number | null;
|
|
1406
|
-
totalAmount: number | null;
|
|
1407
|
-
discountAmount: number | null;
|
|
1408
|
-
netAmount: number | null;
|
|
1409
|
-
taxAmount: number | null;
|
|
1410
|
-
invoiceAmountSats: number | null;
|
|
1411
|
-
invoiceScid: string | null;
|
|
1412
|
-
btcPrice: number | null;
|
|
1413
|
-
} | {
|
|
1414
|
-
currency: string;
|
|
1415
|
-
type: "PRODUCTS";
|
|
1416
|
-
status: "PAYMENT_RECEIVED";
|
|
1417
1437
|
products: [{
|
|
1418
1438
|
id: string;
|
|
1419
1439
|
name: string;
|
|
1420
1440
|
description: string | null;
|
|
1421
1441
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1422
1442
|
prices: {
|
|
1423
|
-
priceAmount: number | null;
|
|
1424
1443
|
id: string;
|
|
1425
1444
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1445
|
+
priceAmount: number | null;
|
|
1426
1446
|
minimumAmount: number | null;
|
|
1427
1447
|
maximumAmount: number | null;
|
|
1428
1448
|
presetAmount: number | null;
|
|
@@ -1436,9 +1456,9 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1436
1456
|
description: string | null;
|
|
1437
1457
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1438
1458
|
prices: {
|
|
1439
|
-
priceAmount: number | null;
|
|
1440
1459
|
id: string;
|
|
1441
1460
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1461
|
+
priceAmount: number | null;
|
|
1442
1462
|
minimumAmount: number | null;
|
|
1443
1463
|
maximumAmount: number | null;
|
|
1444
1464
|
presetAmount: number | null;
|
|
@@ -1447,27 +1467,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1447
1467
|
meterId: string | null;
|
|
1448
1468
|
}[];
|
|
1449
1469
|
}[]];
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
customerEmail?: boolean | undefined;
|
|
1459
|
-
} | null;
|
|
1470
|
+
providedAmount: number | null;
|
|
1471
|
+
totalAmount: number;
|
|
1472
|
+
discountAmount: number;
|
|
1473
|
+
netAmount: number;
|
|
1474
|
+
taxAmount: number;
|
|
1475
|
+
invoiceAmountSats: number;
|
|
1476
|
+
invoiceScid: string | null;
|
|
1477
|
+
btcPrice: number;
|
|
1460
1478
|
invoice: {
|
|
1479
|
+
expiresAt: Date;
|
|
1461
1480
|
currency: string;
|
|
1481
|
+
btcPrice: number;
|
|
1462
1482
|
invoice: string;
|
|
1463
1483
|
paymentHash: string;
|
|
1464
1484
|
amountSats: number;
|
|
1465
|
-
expiresAt: Date;
|
|
1466
|
-
btcPrice: number;
|
|
1467
1485
|
amountSatsReceived: number;
|
|
1468
1486
|
fiatAmount: number;
|
|
1469
1487
|
};
|
|
1488
|
+
} | {
|
|
1470
1489
|
id: string;
|
|
1490
|
+
type: "AMOUNT";
|
|
1491
|
+
status: "PAYMENT_RECEIVED";
|
|
1471
1492
|
createdAt: Date;
|
|
1472
1493
|
clientSecret: string;
|
|
1473
1494
|
organizationId: string;
|
|
@@ -1475,29 +1496,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1475
1496
|
userMetadata: Record<string, any> | null;
|
|
1476
1497
|
customFieldData: Record<string, any> | null;
|
|
1477
1498
|
customerMetadata: Record<string, any> | null;
|
|
1499
|
+
currency: string;
|
|
1500
|
+
allowDiscountCodes: boolean;
|
|
1501
|
+
customerName: string | null;
|
|
1502
|
+
customerEmail: string | null;
|
|
1503
|
+
requireCustomerFields: {
|
|
1504
|
+
customerName?: boolean | undefined;
|
|
1505
|
+
customerEmail?: boolean | undefined;
|
|
1506
|
+
} | null;
|
|
1507
|
+
successUrl: string | null;
|
|
1478
1508
|
customerId: string | null;
|
|
1509
|
+
customerExternalId: string | null;
|
|
1510
|
+
customerIpAddress: string | null;
|
|
1479
1511
|
customerBillingAddress: Record<string, any> | null;
|
|
1480
|
-
providedAmount: number | null;
|
|
1481
|
-
totalAmount: number;
|
|
1482
|
-
discountAmount: number;
|
|
1483
|
-
netAmount: number;
|
|
1484
|
-
taxAmount: number;
|
|
1485
|
-
invoiceAmountSats: number;
|
|
1486
|
-
invoiceScid: string | null;
|
|
1487
|
-
btcPrice: number;
|
|
1488
|
-
} | {
|
|
1489
|
-
currency: string;
|
|
1490
|
-
type: "AMOUNT";
|
|
1491
|
-
status: "PAYMENT_RECEIVED";
|
|
1492
1512
|
products: {
|
|
1493
1513
|
id: string;
|
|
1494
1514
|
name: string;
|
|
1495
1515
|
description: string | null;
|
|
1496
1516
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1497
1517
|
prices: {
|
|
1498
|
-
priceAmount: number | null;
|
|
1499
1518
|
id: string;
|
|
1500
1519
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1520
|
+
priceAmount: number | null;
|
|
1501
1521
|
minimumAmount: number | null;
|
|
1502
1522
|
maximumAmount: number | null;
|
|
1503
1523
|
presetAmount: number | null;
|
|
@@ -1506,27 +1526,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1506
1526
|
meterId: string | null;
|
|
1507
1527
|
}[];
|
|
1508
1528
|
}[] | null;
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
customerEmail?: boolean | undefined;
|
|
1518
|
-
} | null;
|
|
1529
|
+
providedAmount: number;
|
|
1530
|
+
totalAmount: number;
|
|
1531
|
+
discountAmount: number;
|
|
1532
|
+
netAmount: number;
|
|
1533
|
+
taxAmount: number;
|
|
1534
|
+
invoiceAmountSats: number;
|
|
1535
|
+
invoiceScid: string | null;
|
|
1536
|
+
btcPrice: number;
|
|
1519
1537
|
invoice: {
|
|
1538
|
+
expiresAt: Date;
|
|
1520
1539
|
currency: string;
|
|
1540
|
+
btcPrice: number;
|
|
1521
1541
|
invoice: string;
|
|
1522
1542
|
paymentHash: string;
|
|
1523
1543
|
amountSats: number;
|
|
1524
|
-
expiresAt: Date;
|
|
1525
|
-
btcPrice: number;
|
|
1526
1544
|
amountSatsReceived: number;
|
|
1527
1545
|
fiatAmount: number;
|
|
1528
1546
|
};
|
|
1547
|
+
} | {
|
|
1529
1548
|
id: string;
|
|
1549
|
+
type: "TOP_UP";
|
|
1550
|
+
status: "PAYMENT_RECEIVED";
|
|
1530
1551
|
createdAt: Date;
|
|
1531
1552
|
clientSecret: string;
|
|
1532
1553
|
organizationId: string;
|
|
@@ -1534,29 +1555,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1534
1555
|
userMetadata: Record<string, any> | null;
|
|
1535
1556
|
customFieldData: Record<string, any> | null;
|
|
1536
1557
|
customerMetadata: Record<string, any> | null;
|
|
1558
|
+
currency: string;
|
|
1559
|
+
allowDiscountCodes: boolean;
|
|
1560
|
+
customerName: string | null;
|
|
1561
|
+
customerEmail: string | null;
|
|
1562
|
+
requireCustomerFields: {
|
|
1563
|
+
customerName?: boolean | undefined;
|
|
1564
|
+
customerEmail?: boolean | undefined;
|
|
1565
|
+
} | null;
|
|
1566
|
+
successUrl: string | null;
|
|
1537
1567
|
customerId: string | null;
|
|
1568
|
+
customerExternalId: string | null;
|
|
1569
|
+
customerIpAddress: string | null;
|
|
1538
1570
|
customerBillingAddress: Record<string, any> | null;
|
|
1539
|
-
providedAmount: number;
|
|
1540
|
-
totalAmount: number;
|
|
1541
|
-
discountAmount: number;
|
|
1542
|
-
netAmount: number;
|
|
1543
|
-
taxAmount: number;
|
|
1544
|
-
invoiceAmountSats: number;
|
|
1545
|
-
invoiceScid: string | null;
|
|
1546
|
-
btcPrice: number;
|
|
1547
|
-
} | {
|
|
1548
|
-
currency: string;
|
|
1549
|
-
type: "TOP_UP";
|
|
1550
|
-
status: "PAYMENT_RECEIVED";
|
|
1551
1571
|
products: {
|
|
1552
1572
|
id: string;
|
|
1553
1573
|
name: string;
|
|
1554
1574
|
description: string | null;
|
|
1555
1575
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1556
1576
|
prices: {
|
|
1557
|
-
priceAmount: number | null;
|
|
1558
1577
|
id: string;
|
|
1559
1578
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1579
|
+
priceAmount: number | null;
|
|
1560
1580
|
minimumAmount: number | null;
|
|
1561
1581
|
maximumAmount: number | null;
|
|
1562
1582
|
presetAmount: number | null;
|
|
@@ -1565,27 +1585,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1565
1585
|
meterId: string | null;
|
|
1566
1586
|
}[];
|
|
1567
1587
|
}[] | null;
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
customerEmail?: boolean | undefined;
|
|
1577
|
-
} | null;
|
|
1588
|
+
providedAmount: number | null;
|
|
1589
|
+
totalAmount: number;
|
|
1590
|
+
discountAmount: number;
|
|
1591
|
+
netAmount: number;
|
|
1592
|
+
taxAmount: number;
|
|
1593
|
+
invoiceAmountSats: number;
|
|
1594
|
+
invoiceScid: string | null;
|
|
1595
|
+
btcPrice: number;
|
|
1578
1596
|
invoice: {
|
|
1597
|
+
expiresAt: Date;
|
|
1579
1598
|
currency: string;
|
|
1599
|
+
btcPrice: number;
|
|
1580
1600
|
invoice: string;
|
|
1581
1601
|
paymentHash: string;
|
|
1582
1602
|
amountSats: number;
|
|
1583
|
-
expiresAt: Date;
|
|
1584
|
-
btcPrice: number;
|
|
1585
1603
|
amountSatsReceived: number;
|
|
1586
1604
|
fiatAmount: number;
|
|
1587
1605
|
};
|
|
1606
|
+
} | {
|
|
1588
1607
|
id: string;
|
|
1608
|
+
type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
|
|
1609
|
+
status: "EXPIRED";
|
|
1589
1610
|
createdAt: Date;
|
|
1590
1611
|
clientSecret: string;
|
|
1591
1612
|
organizationId: string;
|
|
@@ -1593,29 +1614,28 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1593
1614
|
userMetadata: Record<string, any> | null;
|
|
1594
1615
|
customFieldData: Record<string, any> | null;
|
|
1595
1616
|
customerMetadata: Record<string, any> | null;
|
|
1596
|
-
customerId: string | null;
|
|
1597
|
-
customerBillingAddress: Record<string, any> | null;
|
|
1598
|
-
providedAmount: number | null;
|
|
1599
|
-
totalAmount: number;
|
|
1600
|
-
discountAmount: number;
|
|
1601
|
-
netAmount: number;
|
|
1602
|
-
taxAmount: number;
|
|
1603
|
-
invoiceAmountSats: number;
|
|
1604
|
-
invoiceScid: string | null;
|
|
1605
|
-
btcPrice: number;
|
|
1606
|
-
} | {
|
|
1607
1617
|
currency: string;
|
|
1608
|
-
|
|
1609
|
-
|
|
1618
|
+
allowDiscountCodes: boolean;
|
|
1619
|
+
customerName: string | null;
|
|
1620
|
+
customerEmail: string | null;
|
|
1621
|
+
requireCustomerFields: {
|
|
1622
|
+
customerName?: boolean | undefined;
|
|
1623
|
+
customerEmail?: boolean | undefined;
|
|
1624
|
+
} | null;
|
|
1625
|
+
successUrl: string | null;
|
|
1626
|
+
customerId: string | null;
|
|
1627
|
+
customerExternalId: string | null;
|
|
1628
|
+
customerIpAddress: string | null;
|
|
1629
|
+
customerBillingAddress: Record<string, any> | null;
|
|
1610
1630
|
products: {
|
|
1611
1631
|
id: string;
|
|
1612
1632
|
name: string;
|
|
1613
1633
|
description: string | null;
|
|
1614
1634
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1615
1635
|
prices: {
|
|
1616
|
-
priceAmount: number | null;
|
|
1617
1636
|
id: string;
|
|
1618
1637
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1638
|
+
priceAmount: number | null;
|
|
1619
1639
|
minimumAmount: number | null;
|
|
1620
1640
|
maximumAmount: number | null;
|
|
1621
1641
|
presetAmount: number | null;
|
|
@@ -1624,36 +1644,6 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1624
1644
|
meterId: string | null;
|
|
1625
1645
|
}[];
|
|
1626
1646
|
}[] | null;
|
|
1627
|
-
successUrl: string | null;
|
|
1628
|
-
allowDiscountCodes: boolean;
|
|
1629
|
-
customerName: string | null;
|
|
1630
|
-
customerEmail: string | null;
|
|
1631
|
-
customerIpAddress: string | null;
|
|
1632
|
-
customerExternalId: string | null;
|
|
1633
|
-
requireCustomerFields: {
|
|
1634
|
-
customerName?: boolean | undefined;
|
|
1635
|
-
customerEmail?: boolean | undefined;
|
|
1636
|
-
} | null;
|
|
1637
|
-
invoice: {
|
|
1638
|
-
currency: string;
|
|
1639
|
-
invoice: string;
|
|
1640
|
-
paymentHash: string;
|
|
1641
|
-
amountSats: number | null;
|
|
1642
|
-
expiresAt: Date;
|
|
1643
|
-
btcPrice: number | null;
|
|
1644
|
-
amountSatsReceived: number | null;
|
|
1645
|
-
fiatAmount: number | null;
|
|
1646
|
-
} | null;
|
|
1647
|
-
id: string;
|
|
1648
|
-
createdAt: Date;
|
|
1649
|
-
clientSecret: string;
|
|
1650
|
-
organizationId: string;
|
|
1651
|
-
expiresAt: Date;
|
|
1652
|
-
userMetadata: Record<string, any> | null;
|
|
1653
|
-
customFieldData: Record<string, any> | null;
|
|
1654
|
-
customerMetadata: Record<string, any> | null;
|
|
1655
|
-
customerId: string | null;
|
|
1656
|
-
customerBillingAddress: Record<string, any> | null;
|
|
1657
1647
|
providedAmount: number | null;
|
|
1658
1648
|
totalAmount: number | null;
|
|
1659
1649
|
discountAmount: number | null;
|
|
@@ -1662,6 +1652,16 @@ export declare function confirmCheckout(confirm: ConfirmCheckout): Promise<{
|
|
|
1662
1652
|
invoiceAmountSats: number | null;
|
|
1663
1653
|
invoiceScid: string | null;
|
|
1664
1654
|
btcPrice: number | null;
|
|
1655
|
+
invoice: {
|
|
1656
|
+
expiresAt: Date;
|
|
1657
|
+
currency: string;
|
|
1658
|
+
btcPrice: number | null;
|
|
1659
|
+
invoice: string;
|
|
1660
|
+
paymentHash: string;
|
|
1661
|
+
amountSats: number | null;
|
|
1662
|
+
amountSatsReceived: number | null;
|
|
1663
|
+
fiatAmount: number | null;
|
|
1664
|
+
} | null;
|
|
1665
1665
|
}>;
|
|
1666
1666
|
export interface CreateCheckoutParams {
|
|
1667
1667
|
title: string;
|
|
@@ -1673,18 +1673,38 @@ export interface CreateCheckoutParams {
|
|
|
1673
1673
|
metadata?: Record<string, any>;
|
|
1674
1674
|
}
|
|
1675
1675
|
export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
1676
|
-
|
|
1676
|
+
id: string;
|
|
1677
1677
|
type: "PRODUCTS";
|
|
1678
1678
|
status: "UNCONFIRMED";
|
|
1679
|
+
createdAt: Date;
|
|
1680
|
+
clientSecret: string;
|
|
1681
|
+
organizationId: string;
|
|
1682
|
+
expiresAt: Date;
|
|
1683
|
+
userMetadata: Record<string, any> | null;
|
|
1684
|
+
customFieldData: Record<string, any> | null;
|
|
1685
|
+
customerMetadata: Record<string, any> | null;
|
|
1686
|
+
currency: string;
|
|
1687
|
+
allowDiscountCodes: boolean;
|
|
1688
|
+
customerName: string | null;
|
|
1689
|
+
customerEmail: string | null;
|
|
1690
|
+
requireCustomerFields: {
|
|
1691
|
+
customerName?: boolean | undefined;
|
|
1692
|
+
customerEmail?: boolean | undefined;
|
|
1693
|
+
} | null;
|
|
1694
|
+
successUrl: string | null;
|
|
1695
|
+
customerId: string | null;
|
|
1696
|
+
customerExternalId: string | null;
|
|
1697
|
+
customerIpAddress: string | null;
|
|
1698
|
+
customerBillingAddress: Record<string, any> | null;
|
|
1679
1699
|
products: [{
|
|
1680
1700
|
id: string;
|
|
1681
1701
|
name: string;
|
|
1682
1702
|
description: string | null;
|
|
1683
1703
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1684
1704
|
prices: {
|
|
1685
|
-
priceAmount: number | null;
|
|
1686
1705
|
id: string;
|
|
1687
1706
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1707
|
+
priceAmount: number | null;
|
|
1688
1708
|
minimumAmount: number | null;
|
|
1689
1709
|
maximumAmount: number | null;
|
|
1690
1710
|
presetAmount: number | null;
|
|
@@ -1698,9 +1718,9 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1698
1718
|
description: string | null;
|
|
1699
1719
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1700
1720
|
prices: {
|
|
1701
|
-
priceAmount: number | null;
|
|
1702
1721
|
id: string;
|
|
1703
1722
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1723
|
+
priceAmount: number | null;
|
|
1704
1724
|
minimumAmount: number | null;
|
|
1705
1725
|
maximumAmount: number | null;
|
|
1706
1726
|
presetAmount: number | null;
|
|
@@ -1709,27 +1729,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1709
1729
|
meterId: string | null;
|
|
1710
1730
|
}[];
|
|
1711
1731
|
}[]];
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
customerEmail?: boolean | undefined;
|
|
1721
|
-
} | null;
|
|
1732
|
+
providedAmount: number | null;
|
|
1733
|
+
totalAmount: number | null;
|
|
1734
|
+
discountAmount: number | null;
|
|
1735
|
+
netAmount: number | null;
|
|
1736
|
+
taxAmount: number | null;
|
|
1737
|
+
invoiceAmountSats: number | null;
|
|
1738
|
+
invoiceScid: string | null;
|
|
1739
|
+
btcPrice: number | null;
|
|
1722
1740
|
invoice: {
|
|
1741
|
+
expiresAt: Date;
|
|
1723
1742
|
currency: string;
|
|
1743
|
+
btcPrice: number | null;
|
|
1724
1744
|
invoice: string;
|
|
1725
1745
|
paymentHash: string;
|
|
1726
1746
|
amountSats: number | null;
|
|
1727
|
-
expiresAt: Date;
|
|
1728
|
-
btcPrice: number | null;
|
|
1729
1747
|
amountSatsReceived: number | null;
|
|
1730
1748
|
fiatAmount: number | null;
|
|
1731
1749
|
} | null;
|
|
1750
|
+
} | {
|
|
1732
1751
|
id: string;
|
|
1752
|
+
type: "AMOUNT";
|
|
1753
|
+
status: "UNCONFIRMED";
|
|
1733
1754
|
createdAt: Date;
|
|
1734
1755
|
clientSecret: string;
|
|
1735
1756
|
organizationId: string;
|
|
@@ -1737,29 +1758,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1737
1758
|
userMetadata: Record<string, any> | null;
|
|
1738
1759
|
customFieldData: Record<string, any> | null;
|
|
1739
1760
|
customerMetadata: Record<string, any> | null;
|
|
1761
|
+
currency: string;
|
|
1762
|
+
allowDiscountCodes: boolean;
|
|
1763
|
+
customerName: string | null;
|
|
1764
|
+
customerEmail: string | null;
|
|
1765
|
+
requireCustomerFields: {
|
|
1766
|
+
customerName?: boolean | undefined;
|
|
1767
|
+
customerEmail?: boolean | undefined;
|
|
1768
|
+
} | null;
|
|
1769
|
+
successUrl: string | null;
|
|
1740
1770
|
customerId: string | null;
|
|
1771
|
+
customerExternalId: string | null;
|
|
1772
|
+
customerIpAddress: string | null;
|
|
1741
1773
|
customerBillingAddress: Record<string, any> | null;
|
|
1742
|
-
providedAmount: number | null;
|
|
1743
|
-
totalAmount: number | null;
|
|
1744
|
-
discountAmount: number | null;
|
|
1745
|
-
netAmount: number | null;
|
|
1746
|
-
taxAmount: number | null;
|
|
1747
|
-
invoiceAmountSats: number | null;
|
|
1748
|
-
invoiceScid: string | null;
|
|
1749
|
-
btcPrice: number | null;
|
|
1750
|
-
} | {
|
|
1751
|
-
currency: string;
|
|
1752
|
-
type: "AMOUNT";
|
|
1753
|
-
status: "UNCONFIRMED";
|
|
1754
1774
|
products: {
|
|
1755
1775
|
id: string;
|
|
1756
1776
|
name: string;
|
|
1757
1777
|
description: string | null;
|
|
1758
1778
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1759
1779
|
prices: {
|
|
1760
|
-
priceAmount: number | null;
|
|
1761
1780
|
id: string;
|
|
1762
1781
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1782
|
+
priceAmount: number | null;
|
|
1763
1783
|
minimumAmount: number | null;
|
|
1764
1784
|
maximumAmount: number | null;
|
|
1765
1785
|
presetAmount: number | null;
|
|
@@ -1768,27 +1788,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1768
1788
|
meterId: string | null;
|
|
1769
1789
|
}[];
|
|
1770
1790
|
}[] | null;
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
customerEmail?: boolean | undefined;
|
|
1780
|
-
} | null;
|
|
1791
|
+
providedAmount: number;
|
|
1792
|
+
totalAmount: number | null;
|
|
1793
|
+
discountAmount: number | null;
|
|
1794
|
+
netAmount: number | null;
|
|
1795
|
+
taxAmount: number | null;
|
|
1796
|
+
invoiceAmountSats: number | null;
|
|
1797
|
+
invoiceScid: string | null;
|
|
1798
|
+
btcPrice: number | null;
|
|
1781
1799
|
invoice: {
|
|
1800
|
+
expiresAt: Date;
|
|
1782
1801
|
currency: string;
|
|
1802
|
+
btcPrice: number | null;
|
|
1783
1803
|
invoice: string;
|
|
1784
1804
|
paymentHash: string;
|
|
1785
1805
|
amountSats: number | null;
|
|
1786
|
-
expiresAt: Date;
|
|
1787
|
-
btcPrice: number | null;
|
|
1788
1806
|
amountSatsReceived: number | null;
|
|
1789
1807
|
fiatAmount: number | null;
|
|
1790
1808
|
} | null;
|
|
1809
|
+
} | {
|
|
1791
1810
|
id: string;
|
|
1811
|
+
type: "TOP_UP";
|
|
1812
|
+
status: "UNCONFIRMED";
|
|
1792
1813
|
createdAt: Date;
|
|
1793
1814
|
clientSecret: string;
|
|
1794
1815
|
organizationId: string;
|
|
@@ -1796,29 +1817,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1796
1817
|
userMetadata: Record<string, any> | null;
|
|
1797
1818
|
customFieldData: Record<string, any> | null;
|
|
1798
1819
|
customerMetadata: Record<string, any> | null;
|
|
1820
|
+
currency: string;
|
|
1821
|
+
allowDiscountCodes: boolean;
|
|
1822
|
+
customerName: string | null;
|
|
1823
|
+
customerEmail: string | null;
|
|
1824
|
+
requireCustomerFields: {
|
|
1825
|
+
customerName?: boolean | undefined;
|
|
1826
|
+
customerEmail?: boolean | undefined;
|
|
1827
|
+
} | null;
|
|
1828
|
+
successUrl: string | null;
|
|
1799
1829
|
customerId: string | null;
|
|
1830
|
+
customerExternalId: string | null;
|
|
1831
|
+
customerIpAddress: string | null;
|
|
1800
1832
|
customerBillingAddress: Record<string, any> | null;
|
|
1801
|
-
providedAmount: number;
|
|
1802
|
-
totalAmount: number | null;
|
|
1803
|
-
discountAmount: number | null;
|
|
1804
|
-
netAmount: number | null;
|
|
1805
|
-
taxAmount: number | null;
|
|
1806
|
-
invoiceAmountSats: number | null;
|
|
1807
|
-
invoiceScid: string | null;
|
|
1808
|
-
btcPrice: number | null;
|
|
1809
|
-
} | {
|
|
1810
|
-
currency: string;
|
|
1811
|
-
type: "TOP_UP";
|
|
1812
|
-
status: "UNCONFIRMED";
|
|
1813
1833
|
products: {
|
|
1814
1834
|
id: string;
|
|
1815
1835
|
name: string;
|
|
1816
1836
|
description: string | null;
|
|
1817
1837
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1818
1838
|
prices: {
|
|
1819
|
-
priceAmount: number | null;
|
|
1820
1839
|
id: string;
|
|
1821
1840
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1841
|
+
priceAmount: number | null;
|
|
1822
1842
|
minimumAmount: number | null;
|
|
1823
1843
|
maximumAmount: number | null;
|
|
1824
1844
|
presetAmount: number | null;
|
|
@@ -1827,27 +1847,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1827
1847
|
meterId: string | null;
|
|
1828
1848
|
}[];
|
|
1829
1849
|
}[] | null;
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
customerEmail?: boolean | undefined;
|
|
1839
|
-
} | null;
|
|
1850
|
+
providedAmount: number | null;
|
|
1851
|
+
totalAmount: number | null;
|
|
1852
|
+
discountAmount: number | null;
|
|
1853
|
+
netAmount: number | null;
|
|
1854
|
+
taxAmount: number | null;
|
|
1855
|
+
invoiceAmountSats: number | null;
|
|
1856
|
+
invoiceScid: string | null;
|
|
1857
|
+
btcPrice: number | null;
|
|
1840
1858
|
invoice: {
|
|
1859
|
+
expiresAt: Date;
|
|
1841
1860
|
currency: string;
|
|
1861
|
+
btcPrice: number | null;
|
|
1842
1862
|
invoice: string;
|
|
1843
1863
|
paymentHash: string;
|
|
1844
1864
|
amountSats: number | null;
|
|
1845
|
-
expiresAt: Date;
|
|
1846
|
-
btcPrice: number | null;
|
|
1847
1865
|
amountSatsReceived: number | null;
|
|
1848
1866
|
fiatAmount: number | null;
|
|
1849
1867
|
} | null;
|
|
1868
|
+
} | {
|
|
1850
1869
|
id: string;
|
|
1870
|
+
type: "PRODUCTS";
|
|
1871
|
+
status: "PENDING_PAYMENT";
|
|
1851
1872
|
createdAt: Date;
|
|
1852
1873
|
clientSecret: string;
|
|
1853
1874
|
organizationId: string;
|
|
@@ -1855,29 +1876,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1855
1876
|
userMetadata: Record<string, any> | null;
|
|
1856
1877
|
customFieldData: Record<string, any> | null;
|
|
1857
1878
|
customerMetadata: Record<string, any> | null;
|
|
1879
|
+
currency: string;
|
|
1880
|
+
allowDiscountCodes: boolean;
|
|
1881
|
+
customerName: string | null;
|
|
1882
|
+
customerEmail: string | null;
|
|
1883
|
+
requireCustomerFields: {
|
|
1884
|
+
customerName?: boolean | undefined;
|
|
1885
|
+
customerEmail?: boolean | undefined;
|
|
1886
|
+
} | null;
|
|
1887
|
+
successUrl: string | null;
|
|
1858
1888
|
customerId: string | null;
|
|
1889
|
+
customerExternalId: string | null;
|
|
1890
|
+
customerIpAddress: string | null;
|
|
1859
1891
|
customerBillingAddress: Record<string, any> | null;
|
|
1860
|
-
providedAmount: number | null;
|
|
1861
|
-
totalAmount: number | null;
|
|
1862
|
-
discountAmount: number | null;
|
|
1863
|
-
netAmount: number | null;
|
|
1864
|
-
taxAmount: number | null;
|
|
1865
|
-
invoiceAmountSats: number | null;
|
|
1866
|
-
invoiceScid: string | null;
|
|
1867
|
-
btcPrice: number | null;
|
|
1868
|
-
} | {
|
|
1869
|
-
currency: string;
|
|
1870
|
-
type: "PRODUCTS";
|
|
1871
|
-
status: "PENDING_PAYMENT";
|
|
1872
1892
|
products: [{
|
|
1873
1893
|
id: string;
|
|
1874
1894
|
name: string;
|
|
1875
1895
|
description: string | null;
|
|
1876
1896
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1877
1897
|
prices: {
|
|
1878
|
-
priceAmount: number | null;
|
|
1879
1898
|
id: string;
|
|
1880
1899
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1900
|
+
priceAmount: number | null;
|
|
1881
1901
|
minimumAmount: number | null;
|
|
1882
1902
|
maximumAmount: number | null;
|
|
1883
1903
|
presetAmount: number | null;
|
|
@@ -1891,9 +1911,9 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1891
1911
|
description: string | null;
|
|
1892
1912
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1893
1913
|
prices: {
|
|
1894
|
-
priceAmount: number | null;
|
|
1895
1914
|
id: string;
|
|
1896
1915
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1916
|
+
priceAmount: number | null;
|
|
1897
1917
|
minimumAmount: number | null;
|
|
1898
1918
|
maximumAmount: number | null;
|
|
1899
1919
|
presetAmount: number | null;
|
|
@@ -1902,27 +1922,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1902
1922
|
meterId: string | null;
|
|
1903
1923
|
}[];
|
|
1904
1924
|
}[]];
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
currency: string;
|
|
1917
|
-
invoice: string;
|
|
1918
|
-
paymentHash: string;
|
|
1919
|
-
amountSats: number;
|
|
1920
|
-
expiresAt: Date;
|
|
1925
|
+
providedAmount: number | null;
|
|
1926
|
+
totalAmount: number;
|
|
1927
|
+
discountAmount: number;
|
|
1928
|
+
netAmount: number;
|
|
1929
|
+
taxAmount: number;
|
|
1930
|
+
invoiceAmountSats: number;
|
|
1931
|
+
invoiceScid: string | null;
|
|
1932
|
+
btcPrice: number;
|
|
1933
|
+
invoice: {
|
|
1934
|
+
expiresAt: Date;
|
|
1935
|
+
currency: string;
|
|
1921
1936
|
btcPrice: number;
|
|
1937
|
+
invoice: string;
|
|
1938
|
+
paymentHash: string;
|
|
1939
|
+
amountSats: number;
|
|
1922
1940
|
amountSatsReceived: number | null;
|
|
1923
1941
|
fiatAmount: number;
|
|
1924
1942
|
};
|
|
1943
|
+
} | {
|
|
1925
1944
|
id: string;
|
|
1945
|
+
type: "AMOUNT";
|
|
1946
|
+
status: "PENDING_PAYMENT";
|
|
1926
1947
|
createdAt: Date;
|
|
1927
1948
|
clientSecret: string;
|
|
1928
1949
|
organizationId: string;
|
|
@@ -1930,29 +1951,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1930
1951
|
userMetadata: Record<string, any> | null;
|
|
1931
1952
|
customFieldData: Record<string, any> | null;
|
|
1932
1953
|
customerMetadata: Record<string, any> | null;
|
|
1954
|
+
currency: string;
|
|
1955
|
+
allowDiscountCodes: boolean;
|
|
1956
|
+
customerName: string | null;
|
|
1957
|
+
customerEmail: string | null;
|
|
1958
|
+
requireCustomerFields: {
|
|
1959
|
+
customerName?: boolean | undefined;
|
|
1960
|
+
customerEmail?: boolean | undefined;
|
|
1961
|
+
} | null;
|
|
1962
|
+
successUrl: string | null;
|
|
1933
1963
|
customerId: string | null;
|
|
1964
|
+
customerExternalId: string | null;
|
|
1965
|
+
customerIpAddress: string | null;
|
|
1934
1966
|
customerBillingAddress: Record<string, any> | null;
|
|
1935
|
-
providedAmount: number | null;
|
|
1936
|
-
totalAmount: number;
|
|
1937
|
-
discountAmount: number;
|
|
1938
|
-
netAmount: number;
|
|
1939
|
-
taxAmount: number;
|
|
1940
|
-
invoiceAmountSats: number;
|
|
1941
|
-
invoiceScid: string | null;
|
|
1942
|
-
btcPrice: number;
|
|
1943
|
-
} | {
|
|
1944
|
-
currency: string;
|
|
1945
|
-
type: "AMOUNT";
|
|
1946
|
-
status: "PENDING_PAYMENT";
|
|
1947
1967
|
products: {
|
|
1948
1968
|
id: string;
|
|
1949
1969
|
name: string;
|
|
1950
1970
|
description: string | null;
|
|
1951
1971
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
1952
1972
|
prices: {
|
|
1953
|
-
priceAmount: number | null;
|
|
1954
1973
|
id: string;
|
|
1955
1974
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
1975
|
+
priceAmount: number | null;
|
|
1956
1976
|
minimumAmount: number | null;
|
|
1957
1977
|
maximumAmount: number | null;
|
|
1958
1978
|
presetAmount: number | null;
|
|
@@ -1961,27 +1981,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1961
1981
|
meterId: string | null;
|
|
1962
1982
|
}[];
|
|
1963
1983
|
}[] | null;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
customerEmail?: boolean | undefined;
|
|
1973
|
-
} | null;
|
|
1984
|
+
providedAmount: number;
|
|
1985
|
+
totalAmount: number;
|
|
1986
|
+
discountAmount: number;
|
|
1987
|
+
netAmount: number;
|
|
1988
|
+
taxAmount: number;
|
|
1989
|
+
invoiceAmountSats: number;
|
|
1990
|
+
invoiceScid: string | null;
|
|
1991
|
+
btcPrice: number;
|
|
1974
1992
|
invoice: {
|
|
1993
|
+
expiresAt: Date;
|
|
1975
1994
|
currency: string;
|
|
1995
|
+
btcPrice: number;
|
|
1976
1996
|
invoice: string;
|
|
1977
1997
|
paymentHash: string;
|
|
1978
1998
|
amountSats: number;
|
|
1979
|
-
expiresAt: Date;
|
|
1980
|
-
btcPrice: number;
|
|
1981
1999
|
amountSatsReceived: number | null;
|
|
1982
2000
|
fiatAmount: number;
|
|
1983
2001
|
};
|
|
2002
|
+
} | {
|
|
1984
2003
|
id: string;
|
|
2004
|
+
type: "TOP_UP";
|
|
2005
|
+
status: "PENDING_PAYMENT";
|
|
1985
2006
|
createdAt: Date;
|
|
1986
2007
|
clientSecret: string;
|
|
1987
2008
|
organizationId: string;
|
|
@@ -1989,29 +2010,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
1989
2010
|
userMetadata: Record<string, any> | null;
|
|
1990
2011
|
customFieldData: Record<string, any> | null;
|
|
1991
2012
|
customerMetadata: Record<string, any> | null;
|
|
2013
|
+
currency: string;
|
|
2014
|
+
allowDiscountCodes: boolean;
|
|
2015
|
+
customerName: string | null;
|
|
2016
|
+
customerEmail: string | null;
|
|
2017
|
+
requireCustomerFields: {
|
|
2018
|
+
customerName?: boolean | undefined;
|
|
2019
|
+
customerEmail?: boolean | undefined;
|
|
2020
|
+
} | null;
|
|
2021
|
+
successUrl: string | null;
|
|
1992
2022
|
customerId: string | null;
|
|
2023
|
+
customerExternalId: string | null;
|
|
2024
|
+
customerIpAddress: string | null;
|
|
1993
2025
|
customerBillingAddress: Record<string, any> | null;
|
|
1994
|
-
providedAmount: number;
|
|
1995
|
-
totalAmount: number;
|
|
1996
|
-
discountAmount: number;
|
|
1997
|
-
netAmount: number;
|
|
1998
|
-
taxAmount: number;
|
|
1999
|
-
invoiceAmountSats: number;
|
|
2000
|
-
invoiceScid: string | null;
|
|
2001
|
-
btcPrice: number;
|
|
2002
|
-
} | {
|
|
2003
|
-
currency: string;
|
|
2004
|
-
type: "TOP_UP";
|
|
2005
|
-
status: "PENDING_PAYMENT";
|
|
2006
2026
|
products: {
|
|
2007
2027
|
id: string;
|
|
2008
2028
|
name: string;
|
|
2009
2029
|
description: string | null;
|
|
2010
2030
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2011
2031
|
prices: {
|
|
2012
|
-
priceAmount: number | null;
|
|
2013
2032
|
id: string;
|
|
2014
2033
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2034
|
+
priceAmount: number | null;
|
|
2015
2035
|
minimumAmount: number | null;
|
|
2016
2036
|
maximumAmount: number | null;
|
|
2017
2037
|
presetAmount: number | null;
|
|
@@ -2020,27 +2040,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2020
2040
|
meterId: string | null;
|
|
2021
2041
|
}[];
|
|
2022
2042
|
}[] | null;
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
customerEmail?: boolean | undefined;
|
|
2032
|
-
} | null;
|
|
2043
|
+
providedAmount: number | null;
|
|
2044
|
+
totalAmount: number | null;
|
|
2045
|
+
discountAmount: number | null;
|
|
2046
|
+
netAmount: number | null;
|
|
2047
|
+
taxAmount: number | null;
|
|
2048
|
+
invoiceAmountSats: number | null;
|
|
2049
|
+
invoiceScid: string | null;
|
|
2050
|
+
btcPrice: number | null;
|
|
2033
2051
|
invoice: {
|
|
2052
|
+
expiresAt: Date;
|
|
2034
2053
|
currency: string;
|
|
2054
|
+
btcPrice: number | null;
|
|
2035
2055
|
invoice: string;
|
|
2036
2056
|
paymentHash: string;
|
|
2037
2057
|
amountSats: number | null;
|
|
2038
|
-
expiresAt: Date;
|
|
2039
|
-
btcPrice: number | null;
|
|
2040
2058
|
amountSatsReceived: number | null;
|
|
2041
2059
|
fiatAmount: number | null;
|
|
2042
2060
|
};
|
|
2061
|
+
} | {
|
|
2043
2062
|
id: string;
|
|
2063
|
+
type: "PRODUCTS";
|
|
2064
|
+
status: "PAYMENT_RECEIVED";
|
|
2044
2065
|
createdAt: Date;
|
|
2045
2066
|
clientSecret: string;
|
|
2046
2067
|
organizationId: string;
|
|
@@ -2048,29 +2069,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2048
2069
|
userMetadata: Record<string, any> | null;
|
|
2049
2070
|
customFieldData: Record<string, any> | null;
|
|
2050
2071
|
customerMetadata: Record<string, any> | null;
|
|
2072
|
+
currency: string;
|
|
2073
|
+
allowDiscountCodes: boolean;
|
|
2074
|
+
customerName: string | null;
|
|
2075
|
+
customerEmail: string | null;
|
|
2076
|
+
requireCustomerFields: {
|
|
2077
|
+
customerName?: boolean | undefined;
|
|
2078
|
+
customerEmail?: boolean | undefined;
|
|
2079
|
+
} | null;
|
|
2080
|
+
successUrl: string | null;
|
|
2051
2081
|
customerId: string | null;
|
|
2082
|
+
customerExternalId: string | null;
|
|
2083
|
+
customerIpAddress: string | null;
|
|
2052
2084
|
customerBillingAddress: Record<string, any> | null;
|
|
2053
|
-
providedAmount: number | null;
|
|
2054
|
-
totalAmount: number | null;
|
|
2055
|
-
discountAmount: number | null;
|
|
2056
|
-
netAmount: number | null;
|
|
2057
|
-
taxAmount: number | null;
|
|
2058
|
-
invoiceAmountSats: number | null;
|
|
2059
|
-
invoiceScid: string | null;
|
|
2060
|
-
btcPrice: number | null;
|
|
2061
|
-
} | {
|
|
2062
|
-
currency: string;
|
|
2063
|
-
type: "PRODUCTS";
|
|
2064
|
-
status: "PAYMENT_RECEIVED";
|
|
2065
2085
|
products: [{
|
|
2066
2086
|
id: string;
|
|
2067
2087
|
name: string;
|
|
2068
2088
|
description: string | null;
|
|
2069
2089
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2070
2090
|
prices: {
|
|
2071
|
-
priceAmount: number | null;
|
|
2072
2091
|
id: string;
|
|
2073
2092
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2093
|
+
priceAmount: number | null;
|
|
2074
2094
|
minimumAmount: number | null;
|
|
2075
2095
|
maximumAmount: number | null;
|
|
2076
2096
|
presetAmount: number | null;
|
|
@@ -2084,9 +2104,9 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2084
2104
|
description: string | null;
|
|
2085
2105
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2086
2106
|
prices: {
|
|
2087
|
-
priceAmount: number | null;
|
|
2088
2107
|
id: string;
|
|
2089
2108
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2109
|
+
priceAmount: number | null;
|
|
2090
2110
|
minimumAmount: number | null;
|
|
2091
2111
|
maximumAmount: number | null;
|
|
2092
2112
|
presetAmount: number | null;
|
|
@@ -2095,27 +2115,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2095
2115
|
meterId: string | null;
|
|
2096
2116
|
}[];
|
|
2097
2117
|
}[]];
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
customerEmail?: boolean | undefined;
|
|
2107
|
-
} | null;
|
|
2118
|
+
providedAmount: number | null;
|
|
2119
|
+
totalAmount: number;
|
|
2120
|
+
discountAmount: number;
|
|
2121
|
+
netAmount: number;
|
|
2122
|
+
taxAmount: number;
|
|
2123
|
+
invoiceAmountSats: number;
|
|
2124
|
+
invoiceScid: string | null;
|
|
2125
|
+
btcPrice: number;
|
|
2108
2126
|
invoice: {
|
|
2127
|
+
expiresAt: Date;
|
|
2109
2128
|
currency: string;
|
|
2129
|
+
btcPrice: number;
|
|
2110
2130
|
invoice: string;
|
|
2111
2131
|
paymentHash: string;
|
|
2112
2132
|
amountSats: number;
|
|
2113
|
-
expiresAt: Date;
|
|
2114
|
-
btcPrice: number;
|
|
2115
2133
|
amountSatsReceived: number;
|
|
2116
2134
|
fiatAmount: number;
|
|
2117
2135
|
};
|
|
2136
|
+
} | {
|
|
2118
2137
|
id: string;
|
|
2138
|
+
type: "AMOUNT";
|
|
2139
|
+
status: "PAYMENT_RECEIVED";
|
|
2119
2140
|
createdAt: Date;
|
|
2120
2141
|
clientSecret: string;
|
|
2121
2142
|
organizationId: string;
|
|
@@ -2123,29 +2144,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2123
2144
|
userMetadata: Record<string, any> | null;
|
|
2124
2145
|
customFieldData: Record<string, any> | null;
|
|
2125
2146
|
customerMetadata: Record<string, any> | null;
|
|
2147
|
+
currency: string;
|
|
2148
|
+
allowDiscountCodes: boolean;
|
|
2149
|
+
customerName: string | null;
|
|
2150
|
+
customerEmail: string | null;
|
|
2151
|
+
requireCustomerFields: {
|
|
2152
|
+
customerName?: boolean | undefined;
|
|
2153
|
+
customerEmail?: boolean | undefined;
|
|
2154
|
+
} | null;
|
|
2155
|
+
successUrl: string | null;
|
|
2126
2156
|
customerId: string | null;
|
|
2157
|
+
customerExternalId: string | null;
|
|
2158
|
+
customerIpAddress: string | null;
|
|
2127
2159
|
customerBillingAddress: Record<string, any> | null;
|
|
2128
|
-
providedAmount: number | null;
|
|
2129
|
-
totalAmount: number;
|
|
2130
|
-
discountAmount: number;
|
|
2131
|
-
netAmount: number;
|
|
2132
|
-
taxAmount: number;
|
|
2133
|
-
invoiceAmountSats: number;
|
|
2134
|
-
invoiceScid: string | null;
|
|
2135
|
-
btcPrice: number;
|
|
2136
|
-
} | {
|
|
2137
|
-
currency: string;
|
|
2138
|
-
type: "AMOUNT";
|
|
2139
|
-
status: "PAYMENT_RECEIVED";
|
|
2140
2160
|
products: {
|
|
2141
2161
|
id: string;
|
|
2142
2162
|
name: string;
|
|
2143
2163
|
description: string | null;
|
|
2144
2164
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2145
2165
|
prices: {
|
|
2146
|
-
priceAmount: number | null;
|
|
2147
2166
|
id: string;
|
|
2148
2167
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2168
|
+
priceAmount: number | null;
|
|
2149
2169
|
minimumAmount: number | null;
|
|
2150
2170
|
maximumAmount: number | null;
|
|
2151
2171
|
presetAmount: number | null;
|
|
@@ -2154,27 +2174,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2154
2174
|
meterId: string | null;
|
|
2155
2175
|
}[];
|
|
2156
2176
|
}[] | null;
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
customerEmail?: boolean | undefined;
|
|
2166
|
-
} | null;
|
|
2177
|
+
providedAmount: number;
|
|
2178
|
+
totalAmount: number;
|
|
2179
|
+
discountAmount: number;
|
|
2180
|
+
netAmount: number;
|
|
2181
|
+
taxAmount: number;
|
|
2182
|
+
invoiceAmountSats: number;
|
|
2183
|
+
invoiceScid: string | null;
|
|
2184
|
+
btcPrice: number;
|
|
2167
2185
|
invoice: {
|
|
2186
|
+
expiresAt: Date;
|
|
2168
2187
|
currency: string;
|
|
2188
|
+
btcPrice: number;
|
|
2169
2189
|
invoice: string;
|
|
2170
2190
|
paymentHash: string;
|
|
2171
2191
|
amountSats: number;
|
|
2172
|
-
expiresAt: Date;
|
|
2173
|
-
btcPrice: number;
|
|
2174
2192
|
amountSatsReceived: number;
|
|
2175
2193
|
fiatAmount: number;
|
|
2176
2194
|
};
|
|
2195
|
+
} | {
|
|
2177
2196
|
id: string;
|
|
2197
|
+
type: "TOP_UP";
|
|
2198
|
+
status: "PAYMENT_RECEIVED";
|
|
2178
2199
|
createdAt: Date;
|
|
2179
2200
|
clientSecret: string;
|
|
2180
2201
|
organizationId: string;
|
|
@@ -2182,29 +2203,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2182
2203
|
userMetadata: Record<string, any> | null;
|
|
2183
2204
|
customFieldData: Record<string, any> | null;
|
|
2184
2205
|
customerMetadata: Record<string, any> | null;
|
|
2206
|
+
currency: string;
|
|
2207
|
+
allowDiscountCodes: boolean;
|
|
2208
|
+
customerName: string | null;
|
|
2209
|
+
customerEmail: string | null;
|
|
2210
|
+
requireCustomerFields: {
|
|
2211
|
+
customerName?: boolean | undefined;
|
|
2212
|
+
customerEmail?: boolean | undefined;
|
|
2213
|
+
} | null;
|
|
2214
|
+
successUrl: string | null;
|
|
2185
2215
|
customerId: string | null;
|
|
2216
|
+
customerExternalId: string | null;
|
|
2217
|
+
customerIpAddress: string | null;
|
|
2186
2218
|
customerBillingAddress: Record<string, any> | null;
|
|
2187
|
-
providedAmount: number;
|
|
2188
|
-
totalAmount: number;
|
|
2189
|
-
discountAmount: number;
|
|
2190
|
-
netAmount: number;
|
|
2191
|
-
taxAmount: number;
|
|
2192
|
-
invoiceAmountSats: number;
|
|
2193
|
-
invoiceScid: string | null;
|
|
2194
|
-
btcPrice: number;
|
|
2195
|
-
} | {
|
|
2196
|
-
currency: string;
|
|
2197
|
-
type: "TOP_UP";
|
|
2198
|
-
status: "PAYMENT_RECEIVED";
|
|
2199
2219
|
products: {
|
|
2200
2220
|
id: string;
|
|
2201
2221
|
name: string;
|
|
2202
2222
|
description: string | null;
|
|
2203
2223
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2204
2224
|
prices: {
|
|
2205
|
-
priceAmount: number | null;
|
|
2206
2225
|
id: string;
|
|
2207
2226
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2227
|
+
priceAmount: number | null;
|
|
2208
2228
|
minimumAmount: number | null;
|
|
2209
2229
|
maximumAmount: number | null;
|
|
2210
2230
|
presetAmount: number | null;
|
|
@@ -2213,27 +2233,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2213
2233
|
meterId: string | null;
|
|
2214
2234
|
}[];
|
|
2215
2235
|
}[] | null;
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
customerEmail?: boolean | undefined;
|
|
2225
|
-
} | null;
|
|
2236
|
+
providedAmount: number | null;
|
|
2237
|
+
totalAmount: number;
|
|
2238
|
+
discountAmount: number;
|
|
2239
|
+
netAmount: number;
|
|
2240
|
+
taxAmount: number;
|
|
2241
|
+
invoiceAmountSats: number;
|
|
2242
|
+
invoiceScid: string | null;
|
|
2243
|
+
btcPrice: number;
|
|
2226
2244
|
invoice: {
|
|
2245
|
+
expiresAt: Date;
|
|
2227
2246
|
currency: string;
|
|
2247
|
+
btcPrice: number;
|
|
2228
2248
|
invoice: string;
|
|
2229
2249
|
paymentHash: string;
|
|
2230
2250
|
amountSats: number;
|
|
2231
|
-
expiresAt: Date;
|
|
2232
|
-
btcPrice: number;
|
|
2233
2251
|
amountSatsReceived: number;
|
|
2234
2252
|
fiatAmount: number;
|
|
2235
2253
|
};
|
|
2254
|
+
} | {
|
|
2236
2255
|
id: string;
|
|
2256
|
+
type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
|
|
2257
|
+
status: "EXPIRED";
|
|
2237
2258
|
createdAt: Date;
|
|
2238
2259
|
clientSecret: string;
|
|
2239
2260
|
organizationId: string;
|
|
@@ -2241,29 +2262,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2241
2262
|
userMetadata: Record<string, any> | null;
|
|
2242
2263
|
customFieldData: Record<string, any> | null;
|
|
2243
2264
|
customerMetadata: Record<string, any> | null;
|
|
2265
|
+
currency: string;
|
|
2266
|
+
allowDiscountCodes: boolean;
|
|
2267
|
+
customerName: string | null;
|
|
2268
|
+
customerEmail: string | null;
|
|
2269
|
+
requireCustomerFields: {
|
|
2270
|
+
customerName?: boolean | undefined;
|
|
2271
|
+
customerEmail?: boolean | undefined;
|
|
2272
|
+
} | null;
|
|
2273
|
+
successUrl: string | null;
|
|
2244
2274
|
customerId: string | null;
|
|
2275
|
+
customerExternalId: string | null;
|
|
2276
|
+
customerIpAddress: string | null;
|
|
2245
2277
|
customerBillingAddress: Record<string, any> | null;
|
|
2246
|
-
providedAmount: number | null;
|
|
2247
|
-
totalAmount: number;
|
|
2248
|
-
discountAmount: number;
|
|
2249
|
-
netAmount: number;
|
|
2250
|
-
taxAmount: number;
|
|
2251
|
-
invoiceAmountSats: number;
|
|
2252
|
-
invoiceScid: string | null;
|
|
2253
|
-
btcPrice: number;
|
|
2254
|
-
} | {
|
|
2255
|
-
currency: string;
|
|
2256
|
-
type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
|
|
2257
|
-
status: "EXPIRED";
|
|
2258
2278
|
products: {
|
|
2259
2279
|
id: string;
|
|
2260
2280
|
name: string;
|
|
2261
2281
|
description: string | null;
|
|
2262
2282
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2263
2283
|
prices: {
|
|
2264
|
-
priceAmount: number | null;
|
|
2265
2284
|
id: string;
|
|
2266
2285
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2286
|
+
priceAmount: number | null;
|
|
2267
2287
|
minimumAmount: number | null;
|
|
2268
2288
|
maximumAmount: number | null;
|
|
2269
2289
|
presetAmount: number | null;
|
|
@@ -2272,27 +2292,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2272
2292
|
meterId: string | null;
|
|
2273
2293
|
}[];
|
|
2274
2294
|
}[] | null;
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
customerEmail?: boolean | undefined;
|
|
2284
|
-
} | null;
|
|
2295
|
+
providedAmount: number | null;
|
|
2296
|
+
totalAmount: number | null;
|
|
2297
|
+
discountAmount: number | null;
|
|
2298
|
+
netAmount: number | null;
|
|
2299
|
+
taxAmount: number | null;
|
|
2300
|
+
invoiceAmountSats: number | null;
|
|
2301
|
+
invoiceScid: string | null;
|
|
2302
|
+
btcPrice: number | null;
|
|
2285
2303
|
invoice: {
|
|
2304
|
+
expiresAt: Date;
|
|
2286
2305
|
currency: string;
|
|
2306
|
+
btcPrice: number | null;
|
|
2287
2307
|
invoice: string;
|
|
2288
2308
|
paymentHash: string;
|
|
2289
2309
|
amountSats: number | null;
|
|
2290
|
-
expiresAt: Date;
|
|
2291
|
-
btcPrice: number | null;
|
|
2292
2310
|
amountSatsReceived: number | null;
|
|
2293
2311
|
fiatAmount: number | null;
|
|
2294
2312
|
} | null;
|
|
2313
|
+
} | {
|
|
2295
2314
|
id: string;
|
|
2315
|
+
type: "PRODUCTS";
|
|
2316
|
+
status: "CONFIRMED";
|
|
2296
2317
|
createdAt: Date;
|
|
2297
2318
|
clientSecret: string;
|
|
2298
2319
|
organizationId: string;
|
|
@@ -2300,29 +2321,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2300
2321
|
userMetadata: Record<string, any> | null;
|
|
2301
2322
|
customFieldData: Record<string, any> | null;
|
|
2302
2323
|
customerMetadata: Record<string, any> | null;
|
|
2324
|
+
currency: string;
|
|
2325
|
+
allowDiscountCodes: boolean;
|
|
2326
|
+
customerName: string | null;
|
|
2327
|
+
customerEmail: string | null;
|
|
2328
|
+
requireCustomerFields: {
|
|
2329
|
+
customerName?: boolean | undefined;
|
|
2330
|
+
customerEmail?: boolean | undefined;
|
|
2331
|
+
} | null;
|
|
2332
|
+
successUrl: string | null;
|
|
2303
2333
|
customerId: string | null;
|
|
2334
|
+
customerExternalId: string | null;
|
|
2335
|
+
customerIpAddress: string | null;
|
|
2304
2336
|
customerBillingAddress: Record<string, any> | null;
|
|
2305
|
-
providedAmount: number | null;
|
|
2306
|
-
totalAmount: number | null;
|
|
2307
|
-
discountAmount: number | null;
|
|
2308
|
-
netAmount: number | null;
|
|
2309
|
-
taxAmount: number | null;
|
|
2310
|
-
invoiceAmountSats: number | null;
|
|
2311
|
-
invoiceScid: string | null;
|
|
2312
|
-
btcPrice: number | null;
|
|
2313
|
-
} | {
|
|
2314
|
-
currency: string;
|
|
2315
|
-
type: "PRODUCTS";
|
|
2316
|
-
status: "CONFIRMED";
|
|
2317
2337
|
products: [{
|
|
2318
2338
|
id: string;
|
|
2319
2339
|
name: string;
|
|
2320
2340
|
description: string | null;
|
|
2321
2341
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2322
2342
|
prices: {
|
|
2323
|
-
priceAmount: number | null;
|
|
2324
2343
|
id: string;
|
|
2325
2344
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2345
|
+
priceAmount: number | null;
|
|
2326
2346
|
minimumAmount: number | null;
|
|
2327
2347
|
maximumAmount: number | null;
|
|
2328
2348
|
presetAmount: number | null;
|
|
@@ -2336,9 +2356,9 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2336
2356
|
description: string | null;
|
|
2337
2357
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2338
2358
|
prices: {
|
|
2339
|
-
priceAmount: number | null;
|
|
2340
2359
|
id: string;
|
|
2341
2360
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2361
|
+
priceAmount: number | null;
|
|
2342
2362
|
minimumAmount: number | null;
|
|
2343
2363
|
maximumAmount: number | null;
|
|
2344
2364
|
presetAmount: number | null;
|
|
@@ -2347,27 +2367,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2347
2367
|
meterId: string | null;
|
|
2348
2368
|
}[];
|
|
2349
2369
|
}[]];
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
customerEmail?: boolean | undefined;
|
|
2359
|
-
} | null;
|
|
2370
|
+
providedAmount: number | null;
|
|
2371
|
+
totalAmount: number;
|
|
2372
|
+
discountAmount: number;
|
|
2373
|
+
netAmount: number;
|
|
2374
|
+
taxAmount: number;
|
|
2375
|
+
invoiceAmountSats: number;
|
|
2376
|
+
invoiceScid: string | null;
|
|
2377
|
+
btcPrice: number;
|
|
2360
2378
|
invoice: {
|
|
2379
|
+
expiresAt: Date;
|
|
2361
2380
|
currency: string;
|
|
2381
|
+
btcPrice: number | null;
|
|
2362
2382
|
invoice: string;
|
|
2363
2383
|
paymentHash: string;
|
|
2364
2384
|
amountSats: number | null;
|
|
2365
|
-
expiresAt: Date;
|
|
2366
|
-
btcPrice: number | null;
|
|
2367
2385
|
amountSatsReceived: number | null;
|
|
2368
2386
|
fiatAmount: number | null;
|
|
2369
2387
|
} | null;
|
|
2388
|
+
} | {
|
|
2370
2389
|
id: string;
|
|
2390
|
+
type: "AMOUNT";
|
|
2391
|
+
status: "CONFIRMED";
|
|
2371
2392
|
createdAt: Date;
|
|
2372
2393
|
clientSecret: string;
|
|
2373
2394
|
organizationId: string;
|
|
@@ -2375,29 +2396,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2375
2396
|
userMetadata: Record<string, any> | null;
|
|
2376
2397
|
customFieldData: Record<string, any> | null;
|
|
2377
2398
|
customerMetadata: Record<string, any> | null;
|
|
2399
|
+
currency: string;
|
|
2400
|
+
allowDiscountCodes: boolean;
|
|
2401
|
+
customerName: string | null;
|
|
2402
|
+
customerEmail: string | null;
|
|
2403
|
+
requireCustomerFields: {
|
|
2404
|
+
customerName?: boolean | undefined;
|
|
2405
|
+
customerEmail?: boolean | undefined;
|
|
2406
|
+
} | null;
|
|
2407
|
+
successUrl: string | null;
|
|
2378
2408
|
customerId: string | null;
|
|
2409
|
+
customerExternalId: string | null;
|
|
2410
|
+
customerIpAddress: string | null;
|
|
2379
2411
|
customerBillingAddress: Record<string, any> | null;
|
|
2380
|
-
providedAmount: number | null;
|
|
2381
|
-
totalAmount: number;
|
|
2382
|
-
discountAmount: number;
|
|
2383
|
-
netAmount: number;
|
|
2384
|
-
taxAmount: number;
|
|
2385
|
-
invoiceAmountSats: number;
|
|
2386
|
-
invoiceScid: string | null;
|
|
2387
|
-
btcPrice: number;
|
|
2388
|
-
} | {
|
|
2389
|
-
currency: string;
|
|
2390
|
-
type: "AMOUNT";
|
|
2391
|
-
status: "CONFIRMED";
|
|
2392
2412
|
products: {
|
|
2393
2413
|
id: string;
|
|
2394
2414
|
name: string;
|
|
2395
2415
|
description: string | null;
|
|
2396
2416
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2397
2417
|
prices: {
|
|
2398
|
-
priceAmount: number | null;
|
|
2399
2418
|
id: string;
|
|
2400
2419
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2420
|
+
priceAmount: number | null;
|
|
2401
2421
|
minimumAmount: number | null;
|
|
2402
2422
|
maximumAmount: number | null;
|
|
2403
2423
|
presetAmount: number | null;
|
|
@@ -2406,27 +2426,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2406
2426
|
meterId: string | null;
|
|
2407
2427
|
}[];
|
|
2408
2428
|
}[] | null;
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
customerEmail?: boolean | undefined;
|
|
2418
|
-
} | null;
|
|
2429
|
+
providedAmount: number;
|
|
2430
|
+
totalAmount: number;
|
|
2431
|
+
discountAmount: number;
|
|
2432
|
+
netAmount: number;
|
|
2433
|
+
taxAmount: number;
|
|
2434
|
+
invoiceAmountSats: number;
|
|
2435
|
+
invoiceScid: string | null;
|
|
2436
|
+
btcPrice: number;
|
|
2419
2437
|
invoice: {
|
|
2438
|
+
expiresAt: Date;
|
|
2420
2439
|
currency: string;
|
|
2440
|
+
btcPrice: number | null;
|
|
2421
2441
|
invoice: string;
|
|
2422
2442
|
paymentHash: string;
|
|
2423
2443
|
amountSats: number | null;
|
|
2424
|
-
expiresAt: Date;
|
|
2425
|
-
btcPrice: number | null;
|
|
2426
2444
|
amountSatsReceived: number | null;
|
|
2427
2445
|
fiatAmount: number | null;
|
|
2428
2446
|
} | null;
|
|
2447
|
+
} | {
|
|
2429
2448
|
id: string;
|
|
2449
|
+
type: "TOP_UP";
|
|
2450
|
+
status: "CONFIRMED";
|
|
2430
2451
|
createdAt: Date;
|
|
2431
2452
|
clientSecret: string;
|
|
2432
2453
|
organizationId: string;
|
|
@@ -2434,29 +2455,28 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2434
2455
|
userMetadata: Record<string, any> | null;
|
|
2435
2456
|
customFieldData: Record<string, any> | null;
|
|
2436
2457
|
customerMetadata: Record<string, any> | null;
|
|
2458
|
+
currency: string;
|
|
2459
|
+
allowDiscountCodes: boolean;
|
|
2460
|
+
customerName: string | null;
|
|
2461
|
+
customerEmail: string | null;
|
|
2462
|
+
requireCustomerFields: {
|
|
2463
|
+
customerName?: boolean | undefined;
|
|
2464
|
+
customerEmail?: boolean | undefined;
|
|
2465
|
+
} | null;
|
|
2466
|
+
successUrl: string | null;
|
|
2437
2467
|
customerId: string | null;
|
|
2468
|
+
customerExternalId: string | null;
|
|
2469
|
+
customerIpAddress: string | null;
|
|
2438
2470
|
customerBillingAddress: Record<string, any> | null;
|
|
2439
|
-
providedAmount: number;
|
|
2440
|
-
totalAmount: number;
|
|
2441
|
-
discountAmount: number;
|
|
2442
|
-
netAmount: number;
|
|
2443
|
-
taxAmount: number;
|
|
2444
|
-
invoiceAmountSats: number;
|
|
2445
|
-
invoiceScid: string | null;
|
|
2446
|
-
btcPrice: number;
|
|
2447
|
-
} | {
|
|
2448
|
-
currency: string;
|
|
2449
|
-
type: "TOP_UP";
|
|
2450
|
-
status: "CONFIRMED";
|
|
2451
2471
|
products: {
|
|
2452
2472
|
id: string;
|
|
2453
2473
|
name: string;
|
|
2454
2474
|
description: string | null;
|
|
2455
2475
|
recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
|
|
2456
2476
|
prices: {
|
|
2457
|
-
priceAmount: number | null;
|
|
2458
2477
|
id: string;
|
|
2459
2478
|
amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
|
|
2479
|
+
priceAmount: number | null;
|
|
2460
2480
|
minimumAmount: number | null;
|
|
2461
2481
|
maximumAmount: number | null;
|
|
2462
2482
|
presetAmount: number | null;
|
|
@@ -2465,36 +2485,6 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2465
2485
|
meterId: string | null;
|
|
2466
2486
|
}[];
|
|
2467
2487
|
}[] | null;
|
|
2468
|
-
successUrl: string | null;
|
|
2469
|
-
allowDiscountCodes: boolean;
|
|
2470
|
-
customerName: string | null;
|
|
2471
|
-
customerEmail: string | null;
|
|
2472
|
-
customerIpAddress: string | null;
|
|
2473
|
-
customerExternalId: string | null;
|
|
2474
|
-
requireCustomerFields: {
|
|
2475
|
-
customerName?: boolean | undefined;
|
|
2476
|
-
customerEmail?: boolean | undefined;
|
|
2477
|
-
} | null;
|
|
2478
|
-
invoice: {
|
|
2479
|
-
currency: string;
|
|
2480
|
-
invoice: string;
|
|
2481
|
-
paymentHash: string;
|
|
2482
|
-
amountSats: number | null;
|
|
2483
|
-
expiresAt: Date;
|
|
2484
|
-
btcPrice: number | null;
|
|
2485
|
-
amountSatsReceived: number | null;
|
|
2486
|
-
fiatAmount: number | null;
|
|
2487
|
-
} | null;
|
|
2488
|
-
id: string;
|
|
2489
|
-
createdAt: Date;
|
|
2490
|
-
clientSecret: string;
|
|
2491
|
-
organizationId: string;
|
|
2492
|
-
expiresAt: Date;
|
|
2493
|
-
userMetadata: Record<string, any> | null;
|
|
2494
|
-
customFieldData: Record<string, any> | null;
|
|
2495
|
-
customerMetadata: Record<string, any> | null;
|
|
2496
|
-
customerId: string | null;
|
|
2497
|
-
customerBillingAddress: Record<string, any> | null;
|
|
2498
2488
|
providedAmount: number | null;
|
|
2499
2489
|
totalAmount: number | null;
|
|
2500
2490
|
discountAmount: number | null;
|
|
@@ -2503,8 +2493,18 @@ export declare function createCheckout(params: CreateCheckoutParams): Promise<{
|
|
|
2503
2493
|
invoiceAmountSats: number | null;
|
|
2504
2494
|
invoiceScid: string | null;
|
|
2505
2495
|
btcPrice: number | null;
|
|
2496
|
+
invoice: {
|
|
2497
|
+
expiresAt: Date;
|
|
2498
|
+
currency: string;
|
|
2499
|
+
btcPrice: number | null;
|
|
2500
|
+
invoice: string;
|
|
2501
|
+
paymentHash: string;
|
|
2502
|
+
amountSats: number | null;
|
|
2503
|
+
amountSatsReceived: number | null;
|
|
2504
|
+
fiatAmount: number | null;
|
|
2505
|
+
} | null;
|
|
2506
2506
|
}>;
|
|
2507
|
-
export declare function
|
|
2507
|
+
export declare function markInvoicePaidPreview(paymentHash: string, amountSats: number): Promise<{
|
|
2508
2508
|
ok: boolean;
|
|
2509
2509
|
}>;
|
|
2510
2510
|
export declare function paymentHasBeenReceived(paymentHash: string): Promise<boolean>;
|