@moneydevkit/nextjs 0.1.0

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