@moneydevkit/core 0.0.10 → 0.0.12

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.
@@ -7,38 +7,18 @@ export declare class MoneyDevKitClient {
7
7
  constructor(options: MoneyDevKitClientOptions);
8
8
  get checkouts(): {
9
9
  get: (params: Parameters<typeof this.client.checkout.get>[0]) => Promise<{
10
- id: string;
10
+ currency: string;
11
11
  type: "PRODUCTS";
12
12
  status: "UNCONFIRMED";
13
- createdAt: Date;
14
- clientSecret: string;
15
- organizationId: string;
16
- expiresAt: Date;
17
- userMetadata: Record<string, any> | null;
18
- customFieldData: Record<string, any> | null;
19
- customerMetadata: Record<string, any> | null;
20
- currency: string;
21
- allowDiscountCodes: boolean;
22
- customerName: string | null;
23
- customerEmail: string | null;
24
- requireCustomerFields: {
25
- customerName?: boolean | undefined;
26
- customerEmail?: boolean | undefined;
27
- } | null;
28
- successUrl: string | null;
29
- customerId: string | null;
30
- customerExternalId: string | null;
31
- customerIpAddress: string | null;
32
- customerBillingAddress: Record<string, any> | null;
33
13
  products: [{
34
14
  id: string;
35
15
  name: string;
36
16
  description: string | null;
37
17
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
38
18
  prices: {
19
+ priceAmount: number | null;
39
20
  id: string;
40
21
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
41
- priceAmount: number | null;
42
22
  minimumAmount: number | null;
43
23
  maximumAmount: number | null;
44
24
  presetAmount: number | null;
@@ -52,9 +32,9 @@ export declare class MoneyDevKitClient {
52
32
  description: string | null;
53
33
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
54
34
  prices: {
35
+ priceAmount: number | null;
55
36
  id: string;
56
37
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
57
- priceAmount: number | null;
58
38
  minimumAmount: number | null;
59
39
  maximumAmount: number | null;
60
40
  presetAmount: number | null;
@@ -63,28 +43,27 @@ export declare class MoneyDevKitClient {
63
43
  meterId: string | null;
64
44
  }[];
65
45
  }[]];
66
- providedAmount: number | null;
67
- totalAmount: number | null;
68
- discountAmount: number | null;
69
- netAmount: number | null;
70
- taxAmount: number | null;
71
- invoiceAmountSats: number | null;
72
- invoiceScid: string | null;
73
- btcPrice: number | null;
46
+ successUrl: string | null;
47
+ allowDiscountCodes: boolean;
48
+ customerName: string | null;
49
+ customerEmail: string | null;
50
+ customerIpAddress: string | null;
51
+ customerExternalId: string | null;
52
+ requireCustomerFields: {
53
+ customerName?: boolean | undefined;
54
+ customerEmail?: boolean | undefined;
55
+ } | null;
74
56
  invoice: {
75
- expiresAt: Date;
76
57
  currency: string;
77
- btcPrice: number | null;
78
58
  invoice: string;
79
59
  paymentHash: string;
80
60
  amountSats: number | null;
61
+ expiresAt: Date;
62
+ btcPrice: number | null;
81
63
  amountSatsReceived: number | null;
82
64
  fiatAmount: number | null;
83
65
  } | null;
84
- } | {
85
66
  id: string;
86
- type: "AMOUNT";
87
- status: "UNCONFIRMED";
88
67
  createdAt: Date;
89
68
  clientSecret: string;
90
69
  organizationId: string;
@@ -92,28 +71,29 @@ export declare class MoneyDevKitClient {
92
71
  userMetadata: Record<string, any> | null;
93
72
  customFieldData: Record<string, any> | null;
94
73
  customerMetadata: Record<string, any> | null;
95
- currency: string;
96
- allowDiscountCodes: boolean;
97
- customerName: string | null;
98
- customerEmail: string | null;
99
- requireCustomerFields: {
100
- customerName?: boolean | undefined;
101
- customerEmail?: boolean | undefined;
102
- } | null;
103
- successUrl: string | null;
104
74
  customerId: string | null;
105
- customerExternalId: string | null;
106
- customerIpAddress: string | null;
107
75
  customerBillingAddress: Record<string, any> | null;
76
+ providedAmount: number | null;
77
+ totalAmount: number | null;
78
+ discountAmount: number | null;
79
+ netAmount: number | null;
80
+ taxAmount: number | null;
81
+ invoiceAmountSats: number | null;
82
+ invoiceScid: string | null;
83
+ btcPrice: number | null;
84
+ } | {
85
+ currency: string;
86
+ type: "AMOUNT";
87
+ status: "UNCONFIRMED";
108
88
  products: {
109
89
  id: string;
110
90
  name: string;
111
91
  description: string | null;
112
92
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
113
93
  prices: {
94
+ priceAmount: number | null;
114
95
  id: string;
115
96
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
116
- priceAmount: number | null;
117
97
  minimumAmount: number | null;
118
98
  maximumAmount: number | null;
119
99
  presetAmount: number | null;
@@ -122,28 +102,27 @@ export declare class MoneyDevKitClient {
122
102
  meterId: string | null;
123
103
  }[];
124
104
  }[] | null;
125
- providedAmount: number;
126
- totalAmount: number | null;
127
- discountAmount: number | null;
128
- netAmount: number | null;
129
- taxAmount: number | null;
130
- invoiceAmountSats: number | null;
131
- invoiceScid: string | null;
132
- btcPrice: number | null;
105
+ successUrl: string | null;
106
+ allowDiscountCodes: boolean;
107
+ customerName: string | null;
108
+ customerEmail: string | null;
109
+ customerIpAddress: string | null;
110
+ customerExternalId: string | null;
111
+ requireCustomerFields: {
112
+ customerName?: boolean | undefined;
113
+ customerEmail?: boolean | undefined;
114
+ } | null;
133
115
  invoice: {
134
- expiresAt: Date;
135
116
  currency: string;
136
- btcPrice: number | null;
137
117
  invoice: string;
138
118
  paymentHash: string;
139
119
  amountSats: number | null;
120
+ expiresAt: Date;
121
+ btcPrice: number | null;
140
122
  amountSatsReceived: number | null;
141
123
  fiatAmount: number | null;
142
124
  } | null;
143
- } | {
144
125
  id: string;
145
- type: "TOP_UP";
146
- status: "UNCONFIRMED";
147
126
  createdAt: Date;
148
127
  clientSecret: string;
149
128
  organizationId: string;
@@ -151,28 +130,29 @@ export declare class MoneyDevKitClient {
151
130
  userMetadata: Record<string, any> | null;
152
131
  customFieldData: Record<string, any> | null;
153
132
  customerMetadata: Record<string, any> | null;
154
- currency: string;
155
- allowDiscountCodes: boolean;
156
- customerName: string | null;
157
- customerEmail: string | null;
158
- requireCustomerFields: {
159
- customerName?: boolean | undefined;
160
- customerEmail?: boolean | undefined;
161
- } | null;
162
- successUrl: string | null;
163
133
  customerId: string | null;
164
- customerExternalId: string | null;
165
- customerIpAddress: string | null;
166
134
  customerBillingAddress: Record<string, any> | null;
135
+ providedAmount: number;
136
+ totalAmount: number | null;
137
+ discountAmount: number | null;
138
+ netAmount: number | null;
139
+ taxAmount: number | null;
140
+ invoiceAmountSats: number | null;
141
+ invoiceScid: string | null;
142
+ btcPrice: number | null;
143
+ } | {
144
+ currency: string;
145
+ type: "TOP_UP";
146
+ status: "UNCONFIRMED";
167
147
  products: {
168
148
  id: string;
169
149
  name: string;
170
150
  description: string | null;
171
151
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
172
152
  prices: {
153
+ priceAmount: number | null;
173
154
  id: string;
174
155
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
175
- priceAmount: number | null;
176
156
  minimumAmount: number | null;
177
157
  maximumAmount: number | null;
178
158
  presetAmount: number | null;
@@ -181,28 +161,27 @@ export declare class MoneyDevKitClient {
181
161
  meterId: string | null;
182
162
  }[];
183
163
  }[] | null;
184
- providedAmount: number | null;
185
- totalAmount: number | null;
186
- discountAmount: number | null;
187
- netAmount: number | null;
188
- taxAmount: number | null;
189
- invoiceAmountSats: number | null;
190
- invoiceScid: string | null;
191
- btcPrice: number | null;
164
+ successUrl: string | null;
165
+ allowDiscountCodes: boolean;
166
+ customerName: string | null;
167
+ customerEmail: string | null;
168
+ customerIpAddress: string | null;
169
+ customerExternalId: string | null;
170
+ requireCustomerFields: {
171
+ customerName?: boolean | undefined;
172
+ customerEmail?: boolean | undefined;
173
+ } | null;
192
174
  invoice: {
193
- expiresAt: Date;
194
175
  currency: string;
195
- btcPrice: number | null;
196
176
  invoice: string;
197
177
  paymentHash: string;
198
178
  amountSats: number | null;
179
+ expiresAt: Date;
180
+ btcPrice: number | null;
199
181
  amountSatsReceived: number | null;
200
182
  fiatAmount: number | null;
201
183
  } | null;
202
- } | {
203
184
  id: string;
204
- type: "PRODUCTS";
205
- status: "CONFIRMED";
206
185
  createdAt: Date;
207
186
  clientSecret: string;
208
187
  organizationId: string;
@@ -210,28 +189,29 @@ export declare class MoneyDevKitClient {
210
189
  userMetadata: Record<string, any> | null;
211
190
  customFieldData: Record<string, any> | null;
212
191
  customerMetadata: Record<string, any> | null;
213
- currency: string;
214
- allowDiscountCodes: boolean;
215
- customerName: string | null;
216
- customerEmail: string | null;
217
- requireCustomerFields: {
218
- customerName?: boolean | undefined;
219
- customerEmail?: boolean | undefined;
220
- } | null;
221
- successUrl: string | null;
222
192
  customerId: string | null;
223
- customerExternalId: string | null;
224
- customerIpAddress: string | null;
225
193
  customerBillingAddress: Record<string, any> | null;
194
+ providedAmount: number | null;
195
+ totalAmount: number | null;
196
+ discountAmount: number | null;
197
+ netAmount: number | null;
198
+ taxAmount: number | null;
199
+ invoiceAmountSats: number | null;
200
+ invoiceScid: string | null;
201
+ btcPrice: number | null;
202
+ } | {
203
+ currency: string;
204
+ type: "PRODUCTS";
205
+ status: "CONFIRMED";
226
206
  products: [{
227
207
  id: string;
228
208
  name: string;
229
209
  description: string | null;
230
210
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
231
211
  prices: {
212
+ priceAmount: number | null;
232
213
  id: string;
233
214
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
234
- priceAmount: number | null;
235
215
  minimumAmount: number | null;
236
216
  maximumAmount: number | null;
237
217
  presetAmount: number | null;
@@ -245,9 +225,9 @@ export declare class MoneyDevKitClient {
245
225
  description: string | null;
246
226
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
247
227
  prices: {
228
+ priceAmount: number | null;
248
229
  id: string;
249
230
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
250
- priceAmount: number | null;
251
231
  minimumAmount: number | null;
252
232
  maximumAmount: number | null;
253
233
  presetAmount: number | null;
@@ -256,28 +236,27 @@ export declare class MoneyDevKitClient {
256
236
  meterId: string | null;
257
237
  }[];
258
238
  }[]];
259
- providedAmount: number | null;
260
- totalAmount: number;
261
- discountAmount: number;
262
- netAmount: number;
263
- taxAmount: number;
264
- invoiceAmountSats: number;
265
- invoiceScid: string | null;
266
- btcPrice: number;
239
+ successUrl: string | null;
240
+ allowDiscountCodes: boolean;
241
+ customerName: string | null;
242
+ customerEmail: string | null;
243
+ customerIpAddress: string | null;
244
+ customerExternalId: string | null;
245
+ requireCustomerFields: {
246
+ customerName?: boolean | undefined;
247
+ customerEmail?: boolean | undefined;
248
+ } | null;
267
249
  invoice: {
268
- expiresAt: Date;
269
250
  currency: string;
270
- btcPrice: number | null;
271
251
  invoice: string;
272
252
  paymentHash: string;
273
253
  amountSats: number | null;
254
+ expiresAt: Date;
255
+ btcPrice: number | null;
274
256
  amountSatsReceived: number | null;
275
257
  fiatAmount: number | null;
276
258
  } | null;
277
- } | {
278
259
  id: string;
279
- type: "AMOUNT";
280
- status: "CONFIRMED";
281
260
  createdAt: Date;
282
261
  clientSecret: string;
283
262
  organizationId: string;
@@ -285,28 +264,29 @@ export declare class MoneyDevKitClient {
285
264
  userMetadata: Record<string, any> | null;
286
265
  customFieldData: Record<string, any> | null;
287
266
  customerMetadata: Record<string, any> | null;
288
- currency: string;
289
- allowDiscountCodes: boolean;
290
- customerName: string | null;
291
- customerEmail: string | null;
292
- requireCustomerFields: {
293
- customerName?: boolean | undefined;
294
- customerEmail?: boolean | undefined;
295
- } | null;
296
- successUrl: string | null;
297
267
  customerId: string | null;
298
- customerExternalId: string | null;
299
- customerIpAddress: string | null;
300
268
  customerBillingAddress: Record<string, any> | null;
269
+ providedAmount: number | null;
270
+ totalAmount: number;
271
+ discountAmount: number;
272
+ netAmount: number;
273
+ taxAmount: number;
274
+ invoiceAmountSats: number;
275
+ invoiceScid: string | null;
276
+ btcPrice: number;
277
+ } | {
278
+ currency: string;
279
+ type: "AMOUNT";
280
+ status: "CONFIRMED";
301
281
  products: {
302
282
  id: string;
303
283
  name: string;
304
284
  description: string | null;
305
285
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
306
286
  prices: {
287
+ priceAmount: number | null;
307
288
  id: string;
308
289
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
309
- priceAmount: number | null;
310
290
  minimumAmount: number | null;
311
291
  maximumAmount: number | null;
312
292
  presetAmount: number | null;
@@ -315,28 +295,27 @@ export declare class MoneyDevKitClient {
315
295
  meterId: string | null;
316
296
  }[];
317
297
  }[] | null;
318
- providedAmount: number;
319
- totalAmount: number;
320
- discountAmount: number;
321
- netAmount: number;
322
- taxAmount: number;
323
- invoiceAmountSats: number;
324
- invoiceScid: string | null;
325
- btcPrice: number;
298
+ successUrl: string | null;
299
+ allowDiscountCodes: boolean;
300
+ customerName: string | null;
301
+ customerEmail: string | null;
302
+ customerIpAddress: string | null;
303
+ customerExternalId: string | null;
304
+ requireCustomerFields: {
305
+ customerName?: boolean | undefined;
306
+ customerEmail?: boolean | undefined;
307
+ } | null;
326
308
  invoice: {
327
- expiresAt: Date;
328
309
  currency: string;
329
- btcPrice: number | null;
330
310
  invoice: string;
331
311
  paymentHash: string;
332
312
  amountSats: number | null;
313
+ expiresAt: Date;
314
+ btcPrice: number | null;
333
315
  amountSatsReceived: number | null;
334
316
  fiatAmount: number | null;
335
317
  } | null;
336
- } | {
337
318
  id: string;
338
- type: "TOP_UP";
339
- status: "CONFIRMED";
340
319
  createdAt: Date;
341
320
  clientSecret: string;
342
321
  organizationId: string;
@@ -344,28 +323,29 @@ export declare class MoneyDevKitClient {
344
323
  userMetadata: Record<string, any> | null;
345
324
  customFieldData: Record<string, any> | null;
346
325
  customerMetadata: Record<string, any> | null;
347
- currency: string;
348
- allowDiscountCodes: boolean;
349
- customerName: string | null;
350
- customerEmail: string | null;
351
- requireCustomerFields: {
352
- customerName?: boolean | undefined;
353
- customerEmail?: boolean | undefined;
354
- } | null;
355
- successUrl: string | null;
356
326
  customerId: string | null;
357
- customerExternalId: string | null;
358
- customerIpAddress: string | null;
359
327
  customerBillingAddress: Record<string, any> | null;
328
+ providedAmount: number;
329
+ totalAmount: number;
330
+ discountAmount: number;
331
+ netAmount: number;
332
+ taxAmount: number;
333
+ invoiceAmountSats: number;
334
+ invoiceScid: string | null;
335
+ btcPrice: number;
336
+ } | {
337
+ currency: string;
338
+ type: "TOP_UP";
339
+ status: "CONFIRMED";
360
340
  products: {
361
341
  id: string;
362
342
  name: string;
363
343
  description: string | null;
364
344
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
365
345
  prices: {
346
+ priceAmount: number | null;
366
347
  id: string;
367
348
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
368
- priceAmount: number | null;
369
349
  minimumAmount: number | null;
370
350
  maximumAmount: number | null;
371
351
  presetAmount: number | null;
@@ -374,28 +354,27 @@ export declare class MoneyDevKitClient {
374
354
  meterId: string | null;
375
355
  }[];
376
356
  }[] | null;
377
- providedAmount: number | null;
378
- totalAmount: number | null;
379
- discountAmount: number | null;
380
- netAmount: number | null;
381
- taxAmount: number | null;
382
- invoiceAmountSats: number | null;
383
- invoiceScid: string | null;
384
- btcPrice: number | null;
357
+ successUrl: string | null;
358
+ allowDiscountCodes: boolean;
359
+ customerName: string | null;
360
+ customerEmail: string | null;
361
+ customerIpAddress: string | null;
362
+ customerExternalId: string | null;
363
+ requireCustomerFields: {
364
+ customerName?: boolean | undefined;
365
+ customerEmail?: boolean | undefined;
366
+ } | null;
385
367
  invoice: {
386
- expiresAt: Date;
387
368
  currency: string;
388
- btcPrice: number | null;
389
369
  invoice: string;
390
370
  paymentHash: string;
391
371
  amountSats: number | null;
372
+ expiresAt: Date;
373
+ btcPrice: number | null;
392
374
  amountSatsReceived: number | null;
393
375
  fiatAmount: number | null;
394
376
  } | null;
395
- } | {
396
377
  id: string;
397
- type: "PRODUCTS";
398
- status: "PENDING_PAYMENT";
399
378
  createdAt: Date;
400
379
  clientSecret: string;
401
380
  organizationId: string;
@@ -403,28 +382,29 @@ export declare class MoneyDevKitClient {
403
382
  userMetadata: Record<string, any> | null;
404
383
  customFieldData: Record<string, any> | null;
405
384
  customerMetadata: Record<string, any> | null;
406
- currency: string;
407
- allowDiscountCodes: boolean;
408
- customerName: string | null;
409
- customerEmail: string | null;
410
- requireCustomerFields: {
411
- customerName?: boolean | undefined;
412
- customerEmail?: boolean | undefined;
413
- } | null;
414
- successUrl: string | null;
415
385
  customerId: string | null;
416
- customerExternalId: string | null;
417
- customerIpAddress: string | null;
418
386
  customerBillingAddress: Record<string, any> | null;
387
+ providedAmount: number | null;
388
+ totalAmount: number | null;
389
+ discountAmount: number | null;
390
+ netAmount: number | null;
391
+ taxAmount: number | null;
392
+ invoiceAmountSats: number | null;
393
+ invoiceScid: string | null;
394
+ btcPrice: number | null;
395
+ } | {
396
+ currency: string;
397
+ type: "PRODUCTS";
398
+ status: "PENDING_PAYMENT";
419
399
  products: [{
420
400
  id: string;
421
401
  name: string;
422
402
  description: string | null;
423
403
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
424
404
  prices: {
405
+ priceAmount: number | null;
425
406
  id: string;
426
407
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
427
- priceAmount: number | null;
428
408
  minimumAmount: number | null;
429
409
  maximumAmount: number | null;
430
410
  presetAmount: number | null;
@@ -438,9 +418,9 @@ export declare class MoneyDevKitClient {
438
418
  description: string | null;
439
419
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
440
420
  prices: {
421
+ priceAmount: number | null;
441
422
  id: string;
442
423
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
443
- priceAmount: number | null;
444
424
  minimumAmount: number | null;
445
425
  maximumAmount: number | null;
446
426
  presetAmount: number | null;
@@ -449,28 +429,27 @@ export declare class MoneyDevKitClient {
449
429
  meterId: string | null;
450
430
  }[];
451
431
  }[]];
452
- providedAmount: number | null;
453
- totalAmount: number;
454
- discountAmount: number;
455
- netAmount: number;
456
- taxAmount: number;
457
- invoiceAmountSats: number;
458
- invoiceScid: string | null;
459
- btcPrice: number;
432
+ successUrl: string | null;
433
+ allowDiscountCodes: boolean;
434
+ customerName: string | null;
435
+ customerEmail: string | null;
436
+ customerIpAddress: string | null;
437
+ customerExternalId: string | null;
438
+ requireCustomerFields: {
439
+ customerName?: boolean | undefined;
440
+ customerEmail?: boolean | undefined;
441
+ } | null;
460
442
  invoice: {
461
- expiresAt: Date;
462
443
  currency: string;
463
- btcPrice: number;
464
444
  invoice: string;
465
445
  paymentHash: string;
466
446
  amountSats: number;
447
+ expiresAt: Date;
448
+ btcPrice: number;
467
449
  amountSatsReceived: number | null;
468
450
  fiatAmount: number;
469
451
  };
470
- } | {
471
452
  id: string;
472
- type: "AMOUNT";
473
- status: "PENDING_PAYMENT";
474
453
  createdAt: Date;
475
454
  clientSecret: string;
476
455
  organizationId: string;
@@ -478,28 +457,29 @@ export declare class MoneyDevKitClient {
478
457
  userMetadata: Record<string, any> | null;
479
458
  customFieldData: Record<string, any> | null;
480
459
  customerMetadata: Record<string, any> | null;
481
- currency: string;
482
- allowDiscountCodes: boolean;
483
- customerName: string | null;
484
- customerEmail: string | null;
485
- requireCustomerFields: {
486
- customerName?: boolean | undefined;
487
- customerEmail?: boolean | undefined;
488
- } | null;
489
- successUrl: string | null;
490
460
  customerId: string | null;
491
- customerExternalId: string | null;
492
- customerIpAddress: string | null;
493
461
  customerBillingAddress: Record<string, any> | null;
462
+ providedAmount: number | null;
463
+ totalAmount: number;
464
+ discountAmount: number;
465
+ netAmount: number;
466
+ taxAmount: number;
467
+ invoiceAmountSats: number;
468
+ invoiceScid: string | null;
469
+ btcPrice: number;
470
+ } | {
471
+ currency: string;
472
+ type: "AMOUNT";
473
+ status: "PENDING_PAYMENT";
494
474
  products: {
495
475
  id: string;
496
476
  name: string;
497
477
  description: string | null;
498
478
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
499
479
  prices: {
480
+ priceAmount: number | null;
500
481
  id: string;
501
482
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
502
- priceAmount: number | null;
503
483
  minimumAmount: number | null;
504
484
  maximumAmount: number | null;
505
485
  presetAmount: number | null;
@@ -508,28 +488,27 @@ export declare class MoneyDevKitClient {
508
488
  meterId: string | null;
509
489
  }[];
510
490
  }[] | null;
511
- providedAmount: number;
512
- totalAmount: number;
513
- discountAmount: number;
514
- netAmount: number;
515
- taxAmount: number;
516
- invoiceAmountSats: number;
517
- invoiceScid: string | null;
518
- btcPrice: number;
491
+ successUrl: string | null;
492
+ allowDiscountCodes: boolean;
493
+ customerName: string | null;
494
+ customerEmail: string | null;
495
+ customerIpAddress: string | null;
496
+ customerExternalId: string | null;
497
+ requireCustomerFields: {
498
+ customerName?: boolean | undefined;
499
+ customerEmail?: boolean | undefined;
500
+ } | null;
519
501
  invoice: {
520
- expiresAt: Date;
521
502
  currency: string;
522
- btcPrice: number;
523
503
  invoice: string;
524
504
  paymentHash: string;
525
505
  amountSats: number;
506
+ expiresAt: Date;
507
+ btcPrice: number;
526
508
  amountSatsReceived: number | null;
527
509
  fiatAmount: number;
528
510
  };
529
- } | {
530
511
  id: string;
531
- type: "TOP_UP";
532
- status: "PENDING_PAYMENT";
533
512
  createdAt: Date;
534
513
  clientSecret: string;
535
514
  organizationId: string;
@@ -537,28 +516,29 @@ export declare class MoneyDevKitClient {
537
516
  userMetadata: Record<string, any> | null;
538
517
  customFieldData: Record<string, any> | null;
539
518
  customerMetadata: Record<string, any> | null;
540
- currency: string;
541
- allowDiscountCodes: boolean;
542
- customerName: string | null;
543
- customerEmail: string | null;
544
- requireCustomerFields: {
545
- customerName?: boolean | undefined;
546
- customerEmail?: boolean | undefined;
547
- } | null;
548
- successUrl: string | null;
549
519
  customerId: string | null;
550
- customerExternalId: string | null;
551
- customerIpAddress: string | null;
552
520
  customerBillingAddress: Record<string, any> | null;
521
+ providedAmount: number;
522
+ totalAmount: number;
523
+ discountAmount: number;
524
+ netAmount: number;
525
+ taxAmount: number;
526
+ invoiceAmountSats: number;
527
+ invoiceScid: string | null;
528
+ btcPrice: number;
529
+ } | {
530
+ currency: string;
531
+ type: "TOP_UP";
532
+ status: "PENDING_PAYMENT";
553
533
  products: {
554
534
  id: string;
555
535
  name: string;
556
536
  description: string | null;
557
537
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
558
538
  prices: {
539
+ priceAmount: number | null;
559
540
  id: string;
560
541
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
561
- priceAmount: number | null;
562
542
  minimumAmount: number | null;
563
543
  maximumAmount: number | null;
564
544
  presetAmount: number | null;
@@ -567,28 +547,27 @@ export declare class MoneyDevKitClient {
567
547
  meterId: string | null;
568
548
  }[];
569
549
  }[] | null;
570
- providedAmount: number | null;
571
- totalAmount: number | null;
572
- discountAmount: number | null;
573
- netAmount: number | null;
574
- taxAmount: number | null;
575
- invoiceAmountSats: number | null;
576
- invoiceScid: string | null;
577
- btcPrice: number | null;
550
+ successUrl: string | null;
551
+ allowDiscountCodes: boolean;
552
+ customerName: string | null;
553
+ customerEmail: string | null;
554
+ customerIpAddress: string | null;
555
+ customerExternalId: string | null;
556
+ requireCustomerFields: {
557
+ customerName?: boolean | undefined;
558
+ customerEmail?: boolean | undefined;
559
+ } | null;
578
560
  invoice: {
579
- expiresAt: Date;
580
561
  currency: string;
581
- btcPrice: number | null;
582
562
  invoice: string;
583
563
  paymentHash: string;
584
564
  amountSats: number | null;
565
+ expiresAt: Date;
566
+ btcPrice: number | null;
585
567
  amountSatsReceived: number | null;
586
568
  fiatAmount: number | null;
587
569
  };
588
- } | {
589
570
  id: string;
590
- type: "PRODUCTS";
591
- status: "PAYMENT_RECEIVED";
592
571
  createdAt: Date;
593
572
  clientSecret: string;
594
573
  organizationId: string;
@@ -596,28 +575,29 @@ export declare class MoneyDevKitClient {
596
575
  userMetadata: Record<string, any> | null;
597
576
  customFieldData: Record<string, any> | null;
598
577
  customerMetadata: Record<string, any> | null;
599
- currency: string;
600
- allowDiscountCodes: boolean;
601
- customerName: string | null;
602
- customerEmail: string | null;
603
- requireCustomerFields: {
604
- customerName?: boolean | undefined;
605
- customerEmail?: boolean | undefined;
606
- } | null;
607
- successUrl: string | null;
608
578
  customerId: string | null;
609
- customerExternalId: string | null;
610
- customerIpAddress: string | null;
611
579
  customerBillingAddress: Record<string, any> | null;
580
+ providedAmount: number | null;
581
+ totalAmount: number | null;
582
+ discountAmount: number | null;
583
+ netAmount: number | null;
584
+ taxAmount: number | null;
585
+ invoiceAmountSats: number | null;
586
+ invoiceScid: string | null;
587
+ btcPrice: number | null;
588
+ } | {
589
+ currency: string;
590
+ type: "PRODUCTS";
591
+ status: "PAYMENT_RECEIVED";
612
592
  products: [{
613
593
  id: string;
614
594
  name: string;
615
595
  description: string | null;
616
596
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
617
597
  prices: {
598
+ priceAmount: number | null;
618
599
  id: string;
619
600
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
620
- priceAmount: number | null;
621
601
  minimumAmount: number | null;
622
602
  maximumAmount: number | null;
623
603
  presetAmount: number | null;
@@ -631,9 +611,9 @@ export declare class MoneyDevKitClient {
631
611
  description: string | null;
632
612
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
633
613
  prices: {
614
+ priceAmount: number | null;
634
615
  id: string;
635
616
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
636
- priceAmount: number | null;
637
617
  minimumAmount: number | null;
638
618
  maximumAmount: number | null;
639
619
  presetAmount: number | null;
@@ -642,28 +622,27 @@ export declare class MoneyDevKitClient {
642
622
  meterId: string | null;
643
623
  }[];
644
624
  }[]];
645
- providedAmount: number | null;
646
- totalAmount: number;
647
- discountAmount: number;
648
- netAmount: number;
649
- taxAmount: number;
650
- invoiceAmountSats: number;
651
- invoiceScid: string | null;
652
- btcPrice: number;
625
+ successUrl: string | null;
626
+ allowDiscountCodes: boolean;
627
+ customerName: string | null;
628
+ customerEmail: string | null;
629
+ customerIpAddress: string | null;
630
+ customerExternalId: string | null;
631
+ requireCustomerFields: {
632
+ customerName?: boolean | undefined;
633
+ customerEmail?: boolean | undefined;
634
+ } | null;
653
635
  invoice: {
654
- expiresAt: Date;
655
636
  currency: string;
656
- btcPrice: number;
657
637
  invoice: string;
658
638
  paymentHash: string;
659
639
  amountSats: number;
640
+ expiresAt: Date;
641
+ btcPrice: number;
660
642
  amountSatsReceived: number;
661
643
  fiatAmount: number;
662
644
  };
663
- } | {
664
645
  id: string;
665
- type: "AMOUNT";
666
- status: "PAYMENT_RECEIVED";
667
646
  createdAt: Date;
668
647
  clientSecret: string;
669
648
  organizationId: string;
@@ -671,28 +650,29 @@ export declare class MoneyDevKitClient {
671
650
  userMetadata: Record<string, any> | null;
672
651
  customFieldData: Record<string, any> | null;
673
652
  customerMetadata: Record<string, any> | null;
674
- currency: string;
675
- allowDiscountCodes: boolean;
676
- customerName: string | null;
677
- customerEmail: string | null;
678
- requireCustomerFields: {
679
- customerName?: boolean | undefined;
680
- customerEmail?: boolean | undefined;
681
- } | null;
682
- successUrl: string | null;
683
653
  customerId: string | null;
684
- customerExternalId: string | null;
685
- customerIpAddress: string | null;
686
654
  customerBillingAddress: Record<string, any> | null;
655
+ providedAmount: number | null;
656
+ totalAmount: number;
657
+ discountAmount: number;
658
+ netAmount: number;
659
+ taxAmount: number;
660
+ invoiceAmountSats: number;
661
+ invoiceScid: string | null;
662
+ btcPrice: number;
663
+ } | {
664
+ currency: string;
665
+ type: "AMOUNT";
666
+ status: "PAYMENT_RECEIVED";
687
667
  products: {
688
668
  id: string;
689
669
  name: string;
690
670
  description: string | null;
691
671
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
692
672
  prices: {
673
+ priceAmount: number | null;
693
674
  id: string;
694
675
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
695
- priceAmount: number | null;
696
676
  minimumAmount: number | null;
697
677
  maximumAmount: number | null;
698
678
  presetAmount: number | null;
@@ -701,28 +681,27 @@ export declare class MoneyDevKitClient {
701
681
  meterId: string | null;
702
682
  }[];
703
683
  }[] | null;
704
- providedAmount: number;
705
- totalAmount: number;
706
- discountAmount: number;
707
- netAmount: number;
708
- taxAmount: number;
709
- invoiceAmountSats: number;
710
- invoiceScid: string | null;
711
- btcPrice: number;
684
+ successUrl: string | null;
685
+ allowDiscountCodes: boolean;
686
+ customerName: string | null;
687
+ customerEmail: string | null;
688
+ customerIpAddress: string | null;
689
+ customerExternalId: string | null;
690
+ requireCustomerFields: {
691
+ customerName?: boolean | undefined;
692
+ customerEmail?: boolean | undefined;
693
+ } | null;
712
694
  invoice: {
713
- expiresAt: Date;
714
695
  currency: string;
715
- btcPrice: number;
716
696
  invoice: string;
717
697
  paymentHash: string;
718
698
  amountSats: number;
699
+ expiresAt: Date;
700
+ btcPrice: number;
719
701
  amountSatsReceived: number;
720
702
  fiatAmount: number;
721
703
  };
722
- } | {
723
704
  id: string;
724
- type: "TOP_UP";
725
- status: "PAYMENT_RECEIVED";
726
705
  createdAt: Date;
727
706
  clientSecret: string;
728
707
  organizationId: string;
@@ -730,28 +709,29 @@ export declare class MoneyDevKitClient {
730
709
  userMetadata: Record<string, any> | null;
731
710
  customFieldData: Record<string, any> | null;
732
711
  customerMetadata: Record<string, any> | null;
733
- currency: string;
734
- allowDiscountCodes: boolean;
735
- customerName: string | null;
736
- customerEmail: string | null;
737
- requireCustomerFields: {
738
- customerName?: boolean | undefined;
739
- customerEmail?: boolean | undefined;
740
- } | null;
741
- successUrl: string | null;
742
712
  customerId: string | null;
743
- customerExternalId: string | null;
744
- customerIpAddress: string | null;
745
713
  customerBillingAddress: Record<string, any> | null;
714
+ providedAmount: number;
715
+ totalAmount: number;
716
+ discountAmount: number;
717
+ netAmount: number;
718
+ taxAmount: number;
719
+ invoiceAmountSats: number;
720
+ invoiceScid: string | null;
721
+ btcPrice: number;
722
+ } | {
723
+ currency: string;
724
+ type: "TOP_UP";
725
+ status: "PAYMENT_RECEIVED";
746
726
  products: {
747
727
  id: string;
748
728
  name: string;
749
729
  description: string | null;
750
730
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
751
731
  prices: {
732
+ priceAmount: number | null;
752
733
  id: string;
753
734
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
754
- priceAmount: number | null;
755
735
  minimumAmount: number | null;
756
736
  maximumAmount: number | null;
757
737
  presetAmount: number | null;
@@ -760,28 +740,27 @@ export declare class MoneyDevKitClient {
760
740
  meterId: string | null;
761
741
  }[];
762
742
  }[] | null;
763
- providedAmount: number | null;
764
- totalAmount: number;
765
- discountAmount: number;
766
- netAmount: number;
767
- taxAmount: number;
768
- invoiceAmountSats: number;
769
- invoiceScid: string | null;
770
- btcPrice: number;
743
+ successUrl: string | null;
744
+ allowDiscountCodes: boolean;
745
+ customerName: string | null;
746
+ customerEmail: string | null;
747
+ customerIpAddress: string | null;
748
+ customerExternalId: string | null;
749
+ requireCustomerFields: {
750
+ customerName?: boolean | undefined;
751
+ customerEmail?: boolean | undefined;
752
+ } | null;
771
753
  invoice: {
772
- expiresAt: Date;
773
754
  currency: string;
774
- btcPrice: number;
775
755
  invoice: string;
776
756
  paymentHash: string;
777
757
  amountSats: number;
758
+ expiresAt: Date;
759
+ btcPrice: number;
778
760
  amountSatsReceived: number;
779
761
  fiatAmount: number;
780
762
  };
781
- } | {
782
763
  id: string;
783
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
784
- status: "EXPIRED";
785
764
  createdAt: Date;
786
765
  clientSecret: string;
787
766
  organizationId: string;
@@ -789,28 +768,29 @@ export declare class MoneyDevKitClient {
789
768
  userMetadata: Record<string, any> | null;
790
769
  customFieldData: Record<string, any> | null;
791
770
  customerMetadata: Record<string, any> | null;
792
- currency: string;
793
- allowDiscountCodes: boolean;
794
- customerName: string | null;
795
- customerEmail: string | null;
796
- requireCustomerFields: {
797
- customerName?: boolean | undefined;
798
- customerEmail?: boolean | undefined;
799
- } | null;
800
- successUrl: string | null;
801
771
  customerId: string | null;
802
- customerExternalId: string | null;
803
- customerIpAddress: string | null;
804
772
  customerBillingAddress: Record<string, any> | null;
773
+ providedAmount: number | null;
774
+ totalAmount: number;
775
+ discountAmount: number;
776
+ netAmount: number;
777
+ taxAmount: number;
778
+ invoiceAmountSats: number;
779
+ invoiceScid: string | null;
780
+ btcPrice: number;
781
+ } | {
782
+ currency: string;
783
+ type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
784
+ status: "EXPIRED";
805
785
  products: {
806
786
  id: string;
807
787
  name: string;
808
788
  description: string | null;
809
789
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
810
790
  prices: {
791
+ priceAmount: number | null;
811
792
  id: string;
812
793
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
813
- priceAmount: number | null;
814
794
  minimumAmount: number | null;
815
795
  maximumAmount: number | null;
816
796
  presetAmount: number | null;
@@ -819,29 +799,27 @@ export declare class MoneyDevKitClient {
819
799
  meterId: string | null;
820
800
  }[];
821
801
  }[] | null;
822
- providedAmount: number | null;
823
- totalAmount: number | null;
824
- discountAmount: number | null;
825
- netAmount: number | null;
826
- taxAmount: number | null;
827
- invoiceAmountSats: number | null;
828
- invoiceScid: string | null;
829
- btcPrice: number | null;
802
+ successUrl: string | null;
803
+ allowDiscountCodes: boolean;
804
+ customerName: string | null;
805
+ customerEmail: string | null;
806
+ customerIpAddress: string | null;
807
+ customerExternalId: string | null;
808
+ requireCustomerFields: {
809
+ customerName?: boolean | undefined;
810
+ customerEmail?: boolean | undefined;
811
+ } | null;
830
812
  invoice: {
831
- expiresAt: Date;
832
813
  currency: string;
833
- btcPrice: number | null;
834
814
  invoice: string;
835
815
  paymentHash: string;
836
816
  amountSats: number | null;
817
+ expiresAt: Date;
818
+ btcPrice: number | null;
837
819
  amountSatsReceived: number | null;
838
820
  fiatAmount: number | null;
839
821
  } | null;
840
- }>;
841
- create: (fields: Omit<Parameters<typeof this.client.checkout.create>[0], "nodeId">, nodeId: string) => Promise<{
842
822
  id: string;
843
- type: "PRODUCTS";
844
- status: "UNCONFIRMED";
845
823
  createdAt: Date;
846
824
  clientSecret: string;
847
825
  organizationId: string;
@@ -849,28 +827,30 @@ export declare class MoneyDevKitClient {
849
827
  userMetadata: Record<string, any> | null;
850
828
  customFieldData: Record<string, any> | null;
851
829
  customerMetadata: Record<string, any> | null;
852
- currency: string;
853
- allowDiscountCodes: boolean;
854
- customerName: string | null;
855
- customerEmail: string | null;
856
- requireCustomerFields: {
857
- customerName?: boolean | undefined;
858
- customerEmail?: boolean | undefined;
859
- } | null;
860
- successUrl: string | null;
861
830
  customerId: string | null;
862
- customerExternalId: string | null;
863
- customerIpAddress: string | null;
864
831
  customerBillingAddress: Record<string, any> | null;
832
+ providedAmount: number | null;
833
+ totalAmount: number | null;
834
+ discountAmount: number | null;
835
+ netAmount: number | null;
836
+ taxAmount: number | null;
837
+ invoiceAmountSats: number | null;
838
+ invoiceScid: string | null;
839
+ btcPrice: number | null;
840
+ }>;
841
+ create: (fields: Omit<Parameters<typeof this.client.checkout.create>[0], "nodeId">, nodeId: string) => Promise<{
842
+ currency: string;
843
+ type: "PRODUCTS";
844
+ status: "UNCONFIRMED";
865
845
  products: [{
866
846
  id: string;
867
847
  name: string;
868
848
  description: string | null;
869
849
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
870
850
  prices: {
851
+ priceAmount: number | null;
871
852
  id: string;
872
853
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
873
- priceAmount: number | null;
874
854
  minimumAmount: number | null;
875
855
  maximumAmount: number | null;
876
856
  presetAmount: number | null;
@@ -884,9 +864,9 @@ export declare class MoneyDevKitClient {
884
864
  description: string | null;
885
865
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
886
866
  prices: {
867
+ priceAmount: number | null;
887
868
  id: string;
888
869
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
889
- priceAmount: number | null;
890
870
  minimumAmount: number | null;
891
871
  maximumAmount: number | null;
892
872
  presetAmount: number | null;
@@ -895,28 +875,27 @@ export declare class MoneyDevKitClient {
895
875
  meterId: string | null;
896
876
  }[];
897
877
  }[]];
898
- providedAmount: number | null;
899
- totalAmount: number | null;
900
- discountAmount: number | null;
901
- netAmount: number | null;
902
- taxAmount: number | null;
903
- invoiceAmountSats: number | null;
904
- invoiceScid: string | null;
905
- btcPrice: number | null;
878
+ successUrl: string | null;
879
+ allowDiscountCodes: boolean;
880
+ customerName: string | null;
881
+ customerEmail: string | null;
882
+ customerIpAddress: string | null;
883
+ customerExternalId: string | null;
884
+ requireCustomerFields: {
885
+ customerName?: boolean | undefined;
886
+ customerEmail?: boolean | undefined;
887
+ } | null;
906
888
  invoice: {
907
- expiresAt: Date;
908
889
  currency: string;
909
- btcPrice: number | null;
910
890
  invoice: string;
911
891
  paymentHash: string;
912
892
  amountSats: number | null;
893
+ expiresAt: Date;
894
+ btcPrice: number | null;
913
895
  amountSatsReceived: number | null;
914
896
  fiatAmount: number | null;
915
897
  } | null;
916
- } | {
917
898
  id: string;
918
- type: "AMOUNT";
919
- status: "UNCONFIRMED";
920
899
  createdAt: Date;
921
900
  clientSecret: string;
922
901
  organizationId: string;
@@ -924,28 +903,29 @@ export declare class MoneyDevKitClient {
924
903
  userMetadata: Record<string, any> | null;
925
904
  customFieldData: Record<string, any> | null;
926
905
  customerMetadata: Record<string, any> | null;
927
- currency: string;
928
- allowDiscountCodes: boolean;
929
- customerName: string | null;
930
- customerEmail: string | null;
931
- requireCustomerFields: {
932
- customerName?: boolean | undefined;
933
- customerEmail?: boolean | undefined;
934
- } | null;
935
- successUrl: string | null;
936
906
  customerId: string | null;
937
- customerExternalId: string | null;
938
- customerIpAddress: string | null;
939
907
  customerBillingAddress: Record<string, any> | null;
908
+ providedAmount: number | null;
909
+ totalAmount: number | null;
910
+ discountAmount: number | null;
911
+ netAmount: number | null;
912
+ taxAmount: number | null;
913
+ invoiceAmountSats: number | null;
914
+ invoiceScid: string | null;
915
+ btcPrice: number | null;
916
+ } | {
917
+ currency: string;
918
+ type: "AMOUNT";
919
+ status: "UNCONFIRMED";
940
920
  products: {
941
921
  id: string;
942
922
  name: string;
943
923
  description: string | null;
944
924
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
945
925
  prices: {
926
+ priceAmount: number | null;
946
927
  id: string;
947
928
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
948
- priceAmount: number | null;
949
929
  minimumAmount: number | null;
950
930
  maximumAmount: number | null;
951
931
  presetAmount: number | null;
@@ -954,28 +934,27 @@ export declare class MoneyDevKitClient {
954
934
  meterId: string | null;
955
935
  }[];
956
936
  }[] | null;
957
- providedAmount: number;
958
- totalAmount: number | null;
959
- discountAmount: number | null;
960
- netAmount: number | null;
961
- taxAmount: number | null;
962
- invoiceAmountSats: number | null;
963
- invoiceScid: string | null;
964
- btcPrice: number | null;
937
+ successUrl: string | null;
938
+ allowDiscountCodes: boolean;
939
+ customerName: string | null;
940
+ customerEmail: string | null;
941
+ customerIpAddress: string | null;
942
+ customerExternalId: string | null;
943
+ requireCustomerFields: {
944
+ customerName?: boolean | undefined;
945
+ customerEmail?: boolean | undefined;
946
+ } | null;
965
947
  invoice: {
966
- expiresAt: Date;
967
948
  currency: string;
968
- btcPrice: number | null;
969
949
  invoice: string;
970
950
  paymentHash: string;
971
951
  amountSats: number | null;
952
+ expiresAt: Date;
953
+ btcPrice: number | null;
972
954
  amountSatsReceived: number | null;
973
955
  fiatAmount: number | null;
974
956
  } | null;
975
- } | {
976
957
  id: string;
977
- type: "TOP_UP";
978
- status: "UNCONFIRMED";
979
958
  createdAt: Date;
980
959
  clientSecret: string;
981
960
  organizationId: string;
@@ -983,28 +962,29 @@ export declare class MoneyDevKitClient {
983
962
  userMetadata: Record<string, any> | null;
984
963
  customFieldData: Record<string, any> | null;
985
964
  customerMetadata: Record<string, any> | null;
986
- currency: string;
987
- allowDiscountCodes: boolean;
988
- customerName: string | null;
989
- customerEmail: string | null;
990
- requireCustomerFields: {
991
- customerName?: boolean | undefined;
992
- customerEmail?: boolean | undefined;
993
- } | null;
994
- successUrl: string | null;
995
965
  customerId: string | null;
996
- customerExternalId: string | null;
997
- customerIpAddress: string | null;
998
966
  customerBillingAddress: Record<string, any> | null;
967
+ providedAmount: number;
968
+ totalAmount: number | null;
969
+ discountAmount: number | null;
970
+ netAmount: number | null;
971
+ taxAmount: number | null;
972
+ invoiceAmountSats: number | null;
973
+ invoiceScid: string | null;
974
+ btcPrice: number | null;
975
+ } | {
976
+ currency: string;
977
+ type: "TOP_UP";
978
+ status: "UNCONFIRMED";
999
979
  products: {
1000
980
  id: string;
1001
981
  name: string;
1002
982
  description: string | null;
1003
983
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1004
984
  prices: {
985
+ priceAmount: number | null;
1005
986
  id: string;
1006
987
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1007
- priceAmount: number | null;
1008
988
  minimumAmount: number | null;
1009
989
  maximumAmount: number | null;
1010
990
  presetAmount: number | null;
@@ -1013,28 +993,27 @@ export declare class MoneyDevKitClient {
1013
993
  meterId: string | null;
1014
994
  }[];
1015
995
  }[] | null;
1016
- providedAmount: number | null;
1017
- totalAmount: number | null;
1018
- discountAmount: number | null;
1019
- netAmount: number | null;
1020
- taxAmount: number | null;
1021
- invoiceAmountSats: number | null;
1022
- invoiceScid: string | null;
1023
- btcPrice: number | null;
996
+ successUrl: string | null;
997
+ allowDiscountCodes: boolean;
998
+ customerName: string | null;
999
+ customerEmail: string | null;
1000
+ customerIpAddress: string | null;
1001
+ customerExternalId: string | null;
1002
+ requireCustomerFields: {
1003
+ customerName?: boolean | undefined;
1004
+ customerEmail?: boolean | undefined;
1005
+ } | null;
1024
1006
  invoice: {
1025
- expiresAt: Date;
1026
1007
  currency: string;
1027
- btcPrice: number | null;
1028
1008
  invoice: string;
1029
1009
  paymentHash: string;
1030
1010
  amountSats: number | null;
1011
+ expiresAt: Date;
1012
+ btcPrice: number | null;
1031
1013
  amountSatsReceived: number | null;
1032
1014
  fiatAmount: number | null;
1033
1015
  } | null;
1034
- } | {
1035
1016
  id: string;
1036
- type: "PRODUCTS";
1037
- status: "CONFIRMED";
1038
1017
  createdAt: Date;
1039
1018
  clientSecret: string;
1040
1019
  organizationId: string;
@@ -1042,28 +1021,29 @@ export declare class MoneyDevKitClient {
1042
1021
  userMetadata: Record<string, any> | null;
1043
1022
  customFieldData: Record<string, any> | null;
1044
1023
  customerMetadata: Record<string, any> | null;
1045
- currency: string;
1046
- allowDiscountCodes: boolean;
1047
- customerName: string | null;
1048
- customerEmail: string | null;
1049
- requireCustomerFields: {
1050
- customerName?: boolean | undefined;
1051
- customerEmail?: boolean | undefined;
1052
- } | null;
1053
- successUrl: string | null;
1054
1024
  customerId: string | null;
1055
- customerExternalId: string | null;
1056
- customerIpAddress: string | null;
1057
1025
  customerBillingAddress: Record<string, any> | null;
1026
+ providedAmount: number | null;
1027
+ totalAmount: number | null;
1028
+ discountAmount: number | null;
1029
+ netAmount: number | null;
1030
+ taxAmount: number | null;
1031
+ invoiceAmountSats: number | null;
1032
+ invoiceScid: string | null;
1033
+ btcPrice: number | null;
1034
+ } | {
1035
+ currency: string;
1036
+ type: "PRODUCTS";
1037
+ status: "CONFIRMED";
1058
1038
  products: [{
1059
1039
  id: string;
1060
1040
  name: string;
1061
1041
  description: string | null;
1062
1042
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1063
1043
  prices: {
1044
+ priceAmount: number | null;
1064
1045
  id: string;
1065
1046
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1066
- priceAmount: number | null;
1067
1047
  minimumAmount: number | null;
1068
1048
  maximumAmount: number | null;
1069
1049
  presetAmount: number | null;
@@ -1077,9 +1057,9 @@ export declare class MoneyDevKitClient {
1077
1057
  description: string | null;
1078
1058
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1079
1059
  prices: {
1060
+ priceAmount: number | null;
1080
1061
  id: string;
1081
1062
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1082
- priceAmount: number | null;
1083
1063
  minimumAmount: number | null;
1084
1064
  maximumAmount: number | null;
1085
1065
  presetAmount: number | null;
@@ -1088,28 +1068,27 @@ export declare class MoneyDevKitClient {
1088
1068
  meterId: string | null;
1089
1069
  }[];
1090
1070
  }[]];
1091
- providedAmount: number | null;
1092
- totalAmount: number;
1093
- discountAmount: number;
1094
- netAmount: number;
1095
- taxAmount: number;
1096
- invoiceAmountSats: number;
1097
- invoiceScid: string | null;
1098
- btcPrice: number;
1071
+ successUrl: string | null;
1072
+ allowDiscountCodes: boolean;
1073
+ customerName: string | null;
1074
+ customerEmail: string | null;
1075
+ customerIpAddress: string | null;
1076
+ customerExternalId: string | null;
1077
+ requireCustomerFields: {
1078
+ customerName?: boolean | undefined;
1079
+ customerEmail?: boolean | undefined;
1080
+ } | null;
1099
1081
  invoice: {
1100
- expiresAt: Date;
1101
1082
  currency: string;
1102
- btcPrice: number | null;
1103
1083
  invoice: string;
1104
1084
  paymentHash: string;
1105
1085
  amountSats: number | null;
1086
+ expiresAt: Date;
1087
+ btcPrice: number | null;
1106
1088
  amountSatsReceived: number | null;
1107
1089
  fiatAmount: number | null;
1108
1090
  } | null;
1109
- } | {
1110
1091
  id: string;
1111
- type: "AMOUNT";
1112
- status: "CONFIRMED";
1113
1092
  createdAt: Date;
1114
1093
  clientSecret: string;
1115
1094
  organizationId: string;
@@ -1117,28 +1096,29 @@ export declare class MoneyDevKitClient {
1117
1096
  userMetadata: Record<string, any> | null;
1118
1097
  customFieldData: Record<string, any> | null;
1119
1098
  customerMetadata: Record<string, any> | null;
1120
- currency: string;
1121
- allowDiscountCodes: boolean;
1122
- customerName: string | null;
1123
- customerEmail: string | null;
1124
- requireCustomerFields: {
1125
- customerName?: boolean | undefined;
1126
- customerEmail?: boolean | undefined;
1127
- } | null;
1128
- successUrl: string | null;
1129
1099
  customerId: string | null;
1130
- customerExternalId: string | null;
1131
- customerIpAddress: string | null;
1132
1100
  customerBillingAddress: Record<string, any> | null;
1101
+ providedAmount: number | null;
1102
+ totalAmount: number;
1103
+ discountAmount: number;
1104
+ netAmount: number;
1105
+ taxAmount: number;
1106
+ invoiceAmountSats: number;
1107
+ invoiceScid: string | null;
1108
+ btcPrice: number;
1109
+ } | {
1110
+ currency: string;
1111
+ type: "AMOUNT";
1112
+ status: "CONFIRMED";
1133
1113
  products: {
1134
1114
  id: string;
1135
1115
  name: string;
1136
1116
  description: string | null;
1137
1117
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1138
1118
  prices: {
1119
+ priceAmount: number | null;
1139
1120
  id: string;
1140
1121
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1141
- priceAmount: number | null;
1142
1122
  minimumAmount: number | null;
1143
1123
  maximumAmount: number | null;
1144
1124
  presetAmount: number | null;
@@ -1147,28 +1127,27 @@ export declare class MoneyDevKitClient {
1147
1127
  meterId: string | null;
1148
1128
  }[];
1149
1129
  }[] | null;
1150
- providedAmount: number;
1151
- totalAmount: number;
1152
- discountAmount: number;
1153
- netAmount: number;
1154
- taxAmount: number;
1155
- invoiceAmountSats: number;
1156
- invoiceScid: string | null;
1157
- btcPrice: number;
1130
+ successUrl: string | null;
1131
+ allowDiscountCodes: boolean;
1132
+ customerName: string | null;
1133
+ customerEmail: string | null;
1134
+ customerIpAddress: string | null;
1135
+ customerExternalId: string | null;
1136
+ requireCustomerFields: {
1137
+ customerName?: boolean | undefined;
1138
+ customerEmail?: boolean | undefined;
1139
+ } | null;
1158
1140
  invoice: {
1159
- expiresAt: Date;
1160
1141
  currency: string;
1161
- btcPrice: number | null;
1162
1142
  invoice: string;
1163
1143
  paymentHash: string;
1164
1144
  amountSats: number | null;
1145
+ expiresAt: Date;
1146
+ btcPrice: number | null;
1165
1147
  amountSatsReceived: number | null;
1166
1148
  fiatAmount: number | null;
1167
1149
  } | null;
1168
- } | {
1169
1150
  id: string;
1170
- type: "TOP_UP";
1171
- status: "CONFIRMED";
1172
1151
  createdAt: Date;
1173
1152
  clientSecret: string;
1174
1153
  organizationId: string;
@@ -1176,28 +1155,29 @@ export declare class MoneyDevKitClient {
1176
1155
  userMetadata: Record<string, any> | null;
1177
1156
  customFieldData: Record<string, any> | null;
1178
1157
  customerMetadata: Record<string, any> | null;
1179
- currency: string;
1180
- allowDiscountCodes: boolean;
1181
- customerName: string | null;
1182
- customerEmail: string | null;
1183
- requireCustomerFields: {
1184
- customerName?: boolean | undefined;
1185
- customerEmail?: boolean | undefined;
1186
- } | null;
1187
- successUrl: string | null;
1188
1158
  customerId: string | null;
1189
- customerExternalId: string | null;
1190
- customerIpAddress: string | null;
1191
1159
  customerBillingAddress: Record<string, any> | null;
1160
+ providedAmount: number;
1161
+ totalAmount: number;
1162
+ discountAmount: number;
1163
+ netAmount: number;
1164
+ taxAmount: number;
1165
+ invoiceAmountSats: number;
1166
+ invoiceScid: string | null;
1167
+ btcPrice: number;
1168
+ } | {
1169
+ currency: string;
1170
+ type: "TOP_UP";
1171
+ status: "CONFIRMED";
1192
1172
  products: {
1193
1173
  id: string;
1194
1174
  name: string;
1195
1175
  description: string | null;
1196
1176
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1197
1177
  prices: {
1178
+ priceAmount: number | null;
1198
1179
  id: string;
1199
1180
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1200
- priceAmount: number | null;
1201
1181
  minimumAmount: number | null;
1202
1182
  maximumAmount: number | null;
1203
1183
  presetAmount: number | null;
@@ -1206,28 +1186,27 @@ export declare class MoneyDevKitClient {
1206
1186
  meterId: string | null;
1207
1187
  }[];
1208
1188
  }[] | null;
1209
- providedAmount: number | null;
1210
- totalAmount: number | null;
1211
- discountAmount: number | null;
1212
- netAmount: number | null;
1213
- taxAmount: number | null;
1214
- invoiceAmountSats: number | null;
1215
- invoiceScid: string | null;
1216
- btcPrice: number | null;
1189
+ successUrl: string | null;
1190
+ allowDiscountCodes: boolean;
1191
+ customerName: string | null;
1192
+ customerEmail: string | null;
1193
+ customerIpAddress: string | null;
1194
+ customerExternalId: string | null;
1195
+ requireCustomerFields: {
1196
+ customerName?: boolean | undefined;
1197
+ customerEmail?: boolean | undefined;
1198
+ } | null;
1217
1199
  invoice: {
1218
- expiresAt: Date;
1219
1200
  currency: string;
1220
- btcPrice: number | null;
1221
1201
  invoice: string;
1222
1202
  paymentHash: string;
1223
1203
  amountSats: number | null;
1204
+ expiresAt: Date;
1205
+ btcPrice: number | null;
1224
1206
  amountSatsReceived: number | null;
1225
1207
  fiatAmount: number | null;
1226
1208
  } | null;
1227
- } | {
1228
1209
  id: string;
1229
- type: "PRODUCTS";
1230
- status: "PENDING_PAYMENT";
1231
1210
  createdAt: Date;
1232
1211
  clientSecret: string;
1233
1212
  organizationId: string;
@@ -1235,28 +1214,29 @@ export declare class MoneyDevKitClient {
1235
1214
  userMetadata: Record<string, any> | null;
1236
1215
  customFieldData: Record<string, any> | null;
1237
1216
  customerMetadata: Record<string, any> | null;
1238
- currency: string;
1239
- allowDiscountCodes: boolean;
1240
- customerName: string | null;
1241
- customerEmail: string | null;
1242
- requireCustomerFields: {
1243
- customerName?: boolean | undefined;
1244
- customerEmail?: boolean | undefined;
1245
- } | null;
1246
- successUrl: string | null;
1247
1217
  customerId: string | null;
1248
- customerExternalId: string | null;
1249
- customerIpAddress: string | null;
1250
1218
  customerBillingAddress: Record<string, any> | null;
1219
+ providedAmount: number | null;
1220
+ totalAmount: number | null;
1221
+ discountAmount: number | null;
1222
+ netAmount: number | null;
1223
+ taxAmount: number | null;
1224
+ invoiceAmountSats: number | null;
1225
+ invoiceScid: string | null;
1226
+ btcPrice: number | null;
1227
+ } | {
1228
+ currency: string;
1229
+ type: "PRODUCTS";
1230
+ status: "PENDING_PAYMENT";
1251
1231
  products: [{
1252
1232
  id: string;
1253
1233
  name: string;
1254
1234
  description: string | null;
1255
1235
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1256
1236
  prices: {
1237
+ priceAmount: number | null;
1257
1238
  id: string;
1258
1239
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1259
- priceAmount: number | null;
1260
1240
  minimumAmount: number | null;
1261
1241
  maximumAmount: number | null;
1262
1242
  presetAmount: number | null;
@@ -1270,9 +1250,9 @@ export declare class MoneyDevKitClient {
1270
1250
  description: string | null;
1271
1251
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1272
1252
  prices: {
1253
+ priceAmount: number | null;
1273
1254
  id: string;
1274
1255
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1275
- priceAmount: number | null;
1276
1256
  minimumAmount: number | null;
1277
1257
  maximumAmount: number | null;
1278
1258
  presetAmount: number | null;
@@ -1281,28 +1261,27 @@ export declare class MoneyDevKitClient {
1281
1261
  meterId: string | null;
1282
1262
  }[];
1283
1263
  }[]];
1284
- providedAmount: number | null;
1285
- totalAmount: number;
1286
- discountAmount: number;
1287
- netAmount: number;
1288
- taxAmount: number;
1289
- invoiceAmountSats: number;
1290
- invoiceScid: string | null;
1291
- btcPrice: number;
1264
+ successUrl: string | null;
1265
+ allowDiscountCodes: boolean;
1266
+ customerName: string | null;
1267
+ customerEmail: string | null;
1268
+ customerIpAddress: string | null;
1269
+ customerExternalId: string | null;
1270
+ requireCustomerFields: {
1271
+ customerName?: boolean | undefined;
1272
+ customerEmail?: boolean | undefined;
1273
+ } | null;
1292
1274
  invoice: {
1293
- expiresAt: Date;
1294
1275
  currency: string;
1295
- btcPrice: number;
1296
1276
  invoice: string;
1297
1277
  paymentHash: string;
1298
1278
  amountSats: number;
1279
+ expiresAt: Date;
1280
+ btcPrice: number;
1299
1281
  amountSatsReceived: number | null;
1300
1282
  fiatAmount: number;
1301
1283
  };
1302
- } | {
1303
1284
  id: string;
1304
- type: "AMOUNT";
1305
- status: "PENDING_PAYMENT";
1306
1285
  createdAt: Date;
1307
1286
  clientSecret: string;
1308
1287
  organizationId: string;
@@ -1310,28 +1289,29 @@ export declare class MoneyDevKitClient {
1310
1289
  userMetadata: Record<string, any> | null;
1311
1290
  customFieldData: Record<string, any> | null;
1312
1291
  customerMetadata: Record<string, any> | null;
1313
- currency: string;
1314
- allowDiscountCodes: boolean;
1315
- customerName: string | null;
1316
- customerEmail: string | null;
1317
- requireCustomerFields: {
1318
- customerName?: boolean | undefined;
1319
- customerEmail?: boolean | undefined;
1320
- } | null;
1321
- successUrl: string | null;
1322
1292
  customerId: string | null;
1323
- customerExternalId: string | null;
1324
- customerIpAddress: string | null;
1325
1293
  customerBillingAddress: Record<string, any> | null;
1294
+ providedAmount: number | null;
1295
+ totalAmount: number;
1296
+ discountAmount: number;
1297
+ netAmount: number;
1298
+ taxAmount: number;
1299
+ invoiceAmountSats: number;
1300
+ invoiceScid: string | null;
1301
+ btcPrice: number;
1302
+ } | {
1303
+ currency: string;
1304
+ type: "AMOUNT";
1305
+ status: "PENDING_PAYMENT";
1326
1306
  products: {
1327
1307
  id: string;
1328
1308
  name: string;
1329
1309
  description: string | null;
1330
1310
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1331
1311
  prices: {
1312
+ priceAmount: number | null;
1332
1313
  id: string;
1333
1314
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1334
- priceAmount: number | null;
1335
1315
  minimumAmount: number | null;
1336
1316
  maximumAmount: number | null;
1337
1317
  presetAmount: number | null;
@@ -1340,28 +1320,27 @@ export declare class MoneyDevKitClient {
1340
1320
  meterId: string | null;
1341
1321
  }[];
1342
1322
  }[] | null;
1343
- providedAmount: number;
1344
- totalAmount: number;
1345
- discountAmount: number;
1346
- netAmount: number;
1347
- taxAmount: number;
1348
- invoiceAmountSats: number;
1349
- invoiceScid: string | null;
1350
- btcPrice: number;
1323
+ successUrl: string | null;
1324
+ allowDiscountCodes: boolean;
1325
+ customerName: string | null;
1326
+ customerEmail: string | null;
1327
+ customerIpAddress: string | null;
1328
+ customerExternalId: string | null;
1329
+ requireCustomerFields: {
1330
+ customerName?: boolean | undefined;
1331
+ customerEmail?: boolean | undefined;
1332
+ } | null;
1351
1333
  invoice: {
1352
- expiresAt: Date;
1353
1334
  currency: string;
1354
- btcPrice: number;
1355
1335
  invoice: string;
1356
1336
  paymentHash: string;
1357
1337
  amountSats: number;
1338
+ expiresAt: Date;
1339
+ btcPrice: number;
1358
1340
  amountSatsReceived: number | null;
1359
1341
  fiatAmount: number;
1360
1342
  };
1361
- } | {
1362
1343
  id: string;
1363
- type: "TOP_UP";
1364
- status: "PENDING_PAYMENT";
1365
1344
  createdAt: Date;
1366
1345
  clientSecret: string;
1367
1346
  organizationId: string;
@@ -1369,28 +1348,29 @@ export declare class MoneyDevKitClient {
1369
1348
  userMetadata: Record<string, any> | null;
1370
1349
  customFieldData: Record<string, any> | null;
1371
1350
  customerMetadata: Record<string, any> | null;
1372
- currency: string;
1373
- allowDiscountCodes: boolean;
1374
- customerName: string | null;
1375
- customerEmail: string | null;
1376
- requireCustomerFields: {
1377
- customerName?: boolean | undefined;
1378
- customerEmail?: boolean | undefined;
1379
- } | null;
1380
- successUrl: string | null;
1381
1351
  customerId: string | null;
1382
- customerExternalId: string | null;
1383
- customerIpAddress: string | null;
1384
1352
  customerBillingAddress: Record<string, any> | null;
1353
+ providedAmount: number;
1354
+ totalAmount: number;
1355
+ discountAmount: number;
1356
+ netAmount: number;
1357
+ taxAmount: number;
1358
+ invoiceAmountSats: number;
1359
+ invoiceScid: string | null;
1360
+ btcPrice: number;
1361
+ } | {
1362
+ currency: string;
1363
+ type: "TOP_UP";
1364
+ status: "PENDING_PAYMENT";
1385
1365
  products: {
1386
1366
  id: string;
1387
1367
  name: string;
1388
1368
  description: string | null;
1389
1369
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1390
1370
  prices: {
1371
+ priceAmount: number | null;
1391
1372
  id: string;
1392
1373
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1393
- priceAmount: number | null;
1394
1374
  minimumAmount: number | null;
1395
1375
  maximumAmount: number | null;
1396
1376
  presetAmount: number | null;
@@ -1399,28 +1379,27 @@ export declare class MoneyDevKitClient {
1399
1379
  meterId: string | null;
1400
1380
  }[];
1401
1381
  }[] | null;
1402
- providedAmount: number | null;
1403
- totalAmount: number | null;
1404
- discountAmount: number | null;
1405
- netAmount: number | null;
1406
- taxAmount: number | null;
1407
- invoiceAmountSats: number | null;
1408
- invoiceScid: string | null;
1409
- btcPrice: number | null;
1382
+ successUrl: string | null;
1383
+ allowDiscountCodes: boolean;
1384
+ customerName: string | null;
1385
+ customerEmail: string | null;
1386
+ customerIpAddress: string | null;
1387
+ customerExternalId: string | null;
1388
+ requireCustomerFields: {
1389
+ customerName?: boolean | undefined;
1390
+ customerEmail?: boolean | undefined;
1391
+ } | null;
1410
1392
  invoice: {
1411
- expiresAt: Date;
1412
1393
  currency: string;
1413
- btcPrice: number | null;
1414
1394
  invoice: string;
1415
1395
  paymentHash: string;
1416
1396
  amountSats: number | null;
1397
+ expiresAt: Date;
1398
+ btcPrice: number | null;
1417
1399
  amountSatsReceived: number | null;
1418
1400
  fiatAmount: number | null;
1419
1401
  };
1420
- } | {
1421
1402
  id: string;
1422
- type: "PRODUCTS";
1423
- status: "PAYMENT_RECEIVED";
1424
1403
  createdAt: Date;
1425
1404
  clientSecret: string;
1426
1405
  organizationId: string;
@@ -1428,28 +1407,29 @@ export declare class MoneyDevKitClient {
1428
1407
  userMetadata: Record<string, any> | null;
1429
1408
  customFieldData: Record<string, any> | null;
1430
1409
  customerMetadata: Record<string, any> | null;
1431
- currency: string;
1432
- allowDiscountCodes: boolean;
1433
- customerName: string | null;
1434
- customerEmail: string | null;
1435
- requireCustomerFields: {
1436
- customerName?: boolean | undefined;
1437
- customerEmail?: boolean | undefined;
1438
- } | null;
1439
- successUrl: string | null;
1440
1410
  customerId: string | null;
1441
- customerExternalId: string | null;
1442
- customerIpAddress: string | null;
1443
1411
  customerBillingAddress: Record<string, any> | null;
1412
+ providedAmount: number | null;
1413
+ totalAmount: number | null;
1414
+ discountAmount: number | null;
1415
+ netAmount: number | null;
1416
+ taxAmount: number | null;
1417
+ invoiceAmountSats: number | null;
1418
+ invoiceScid: string | null;
1419
+ btcPrice: number | null;
1420
+ } | {
1421
+ currency: string;
1422
+ type: "PRODUCTS";
1423
+ status: "PAYMENT_RECEIVED";
1444
1424
  products: [{
1445
1425
  id: string;
1446
1426
  name: string;
1447
1427
  description: string | null;
1448
1428
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1449
1429
  prices: {
1430
+ priceAmount: number | null;
1450
1431
  id: string;
1451
1432
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1452
- priceAmount: number | null;
1453
1433
  minimumAmount: number | null;
1454
1434
  maximumAmount: number | null;
1455
1435
  presetAmount: number | null;
@@ -1463,9 +1443,9 @@ export declare class MoneyDevKitClient {
1463
1443
  description: string | null;
1464
1444
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1465
1445
  prices: {
1446
+ priceAmount: number | null;
1466
1447
  id: string;
1467
1448
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1468
- priceAmount: number | null;
1469
1449
  minimumAmount: number | null;
1470
1450
  maximumAmount: number | null;
1471
1451
  presetAmount: number | null;
@@ -1474,28 +1454,27 @@ export declare class MoneyDevKitClient {
1474
1454
  meterId: string | null;
1475
1455
  }[];
1476
1456
  }[]];
1477
- providedAmount: number | null;
1478
- totalAmount: number;
1479
- discountAmount: number;
1480
- netAmount: number;
1481
- taxAmount: number;
1482
- invoiceAmountSats: number;
1483
- invoiceScid: string | null;
1484
- btcPrice: number;
1457
+ successUrl: string | null;
1458
+ allowDiscountCodes: boolean;
1459
+ customerName: string | null;
1460
+ customerEmail: string | null;
1461
+ customerIpAddress: string | null;
1462
+ customerExternalId: string | null;
1463
+ requireCustomerFields: {
1464
+ customerName?: boolean | undefined;
1465
+ customerEmail?: boolean | undefined;
1466
+ } | null;
1485
1467
  invoice: {
1486
- expiresAt: Date;
1487
1468
  currency: string;
1488
- btcPrice: number;
1489
1469
  invoice: string;
1490
1470
  paymentHash: string;
1491
1471
  amountSats: number;
1472
+ expiresAt: Date;
1473
+ btcPrice: number;
1492
1474
  amountSatsReceived: number;
1493
1475
  fiatAmount: number;
1494
1476
  };
1495
- } | {
1496
1477
  id: string;
1497
- type: "AMOUNT";
1498
- status: "PAYMENT_RECEIVED";
1499
1478
  createdAt: Date;
1500
1479
  clientSecret: string;
1501
1480
  organizationId: string;
@@ -1503,28 +1482,29 @@ export declare class MoneyDevKitClient {
1503
1482
  userMetadata: Record<string, any> | null;
1504
1483
  customFieldData: Record<string, any> | null;
1505
1484
  customerMetadata: Record<string, any> | null;
1506
- currency: string;
1507
- allowDiscountCodes: boolean;
1508
- customerName: string | null;
1509
- customerEmail: string | null;
1510
- requireCustomerFields: {
1511
- customerName?: boolean | undefined;
1512
- customerEmail?: boolean | undefined;
1513
- } | null;
1514
- successUrl: string | null;
1515
1485
  customerId: string | null;
1516
- customerExternalId: string | null;
1517
- customerIpAddress: string | null;
1518
1486
  customerBillingAddress: Record<string, any> | null;
1487
+ providedAmount: number | null;
1488
+ totalAmount: number;
1489
+ discountAmount: number;
1490
+ netAmount: number;
1491
+ taxAmount: number;
1492
+ invoiceAmountSats: number;
1493
+ invoiceScid: string | null;
1494
+ btcPrice: number;
1495
+ } | {
1496
+ currency: string;
1497
+ type: "AMOUNT";
1498
+ status: "PAYMENT_RECEIVED";
1519
1499
  products: {
1520
1500
  id: string;
1521
1501
  name: string;
1522
1502
  description: string | null;
1523
1503
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1524
1504
  prices: {
1505
+ priceAmount: number | null;
1525
1506
  id: string;
1526
1507
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1527
- priceAmount: number | null;
1528
1508
  minimumAmount: number | null;
1529
1509
  maximumAmount: number | null;
1530
1510
  presetAmount: number | null;
@@ -1533,28 +1513,27 @@ export declare class MoneyDevKitClient {
1533
1513
  meterId: string | null;
1534
1514
  }[];
1535
1515
  }[] | null;
1536
- providedAmount: number;
1537
- totalAmount: number;
1538
- discountAmount: number;
1539
- netAmount: number;
1540
- taxAmount: number;
1541
- invoiceAmountSats: number;
1542
- invoiceScid: string | null;
1543
- btcPrice: number;
1516
+ successUrl: string | null;
1517
+ allowDiscountCodes: boolean;
1518
+ customerName: string | null;
1519
+ customerEmail: string | null;
1520
+ customerIpAddress: string | null;
1521
+ customerExternalId: string | null;
1522
+ requireCustomerFields: {
1523
+ customerName?: boolean | undefined;
1524
+ customerEmail?: boolean | undefined;
1525
+ } | null;
1544
1526
  invoice: {
1545
- expiresAt: Date;
1546
1527
  currency: string;
1547
- btcPrice: number;
1548
1528
  invoice: string;
1549
1529
  paymentHash: string;
1550
1530
  amountSats: number;
1531
+ expiresAt: Date;
1532
+ btcPrice: number;
1551
1533
  amountSatsReceived: number;
1552
1534
  fiatAmount: number;
1553
1535
  };
1554
- } | {
1555
1536
  id: string;
1556
- type: "TOP_UP";
1557
- status: "PAYMENT_RECEIVED";
1558
1537
  createdAt: Date;
1559
1538
  clientSecret: string;
1560
1539
  organizationId: string;
@@ -1562,28 +1541,29 @@ export declare class MoneyDevKitClient {
1562
1541
  userMetadata: Record<string, any> | null;
1563
1542
  customFieldData: Record<string, any> | null;
1564
1543
  customerMetadata: Record<string, any> | null;
1565
- currency: string;
1566
- allowDiscountCodes: boolean;
1567
- customerName: string | null;
1568
- customerEmail: string | null;
1569
- requireCustomerFields: {
1570
- customerName?: boolean | undefined;
1571
- customerEmail?: boolean | undefined;
1572
- } | null;
1573
- successUrl: string | null;
1574
1544
  customerId: string | null;
1575
- customerExternalId: string | null;
1576
- customerIpAddress: string | null;
1577
1545
  customerBillingAddress: Record<string, any> | null;
1546
+ providedAmount: number;
1547
+ totalAmount: number;
1548
+ discountAmount: number;
1549
+ netAmount: number;
1550
+ taxAmount: number;
1551
+ invoiceAmountSats: number;
1552
+ invoiceScid: string | null;
1553
+ btcPrice: number;
1554
+ } | {
1555
+ currency: string;
1556
+ type: "TOP_UP";
1557
+ status: "PAYMENT_RECEIVED";
1578
1558
  products: {
1579
1559
  id: string;
1580
1560
  name: string;
1581
1561
  description: string | null;
1582
1562
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1583
1563
  prices: {
1564
+ priceAmount: number | null;
1584
1565
  id: string;
1585
1566
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1586
- priceAmount: number | null;
1587
1567
  minimumAmount: number | null;
1588
1568
  maximumAmount: number | null;
1589
1569
  presetAmount: number | null;
@@ -1592,28 +1572,27 @@ export declare class MoneyDevKitClient {
1592
1572
  meterId: string | null;
1593
1573
  }[];
1594
1574
  }[] | null;
1595
- providedAmount: number | null;
1596
- totalAmount: number;
1597
- discountAmount: number;
1598
- netAmount: number;
1599
- taxAmount: number;
1600
- invoiceAmountSats: number;
1601
- invoiceScid: string | null;
1602
- btcPrice: number;
1575
+ successUrl: string | null;
1576
+ allowDiscountCodes: boolean;
1577
+ customerName: string | null;
1578
+ customerEmail: string | null;
1579
+ customerIpAddress: string | null;
1580
+ customerExternalId: string | null;
1581
+ requireCustomerFields: {
1582
+ customerName?: boolean | undefined;
1583
+ customerEmail?: boolean | undefined;
1584
+ } | null;
1603
1585
  invoice: {
1604
- expiresAt: Date;
1605
1586
  currency: string;
1606
- btcPrice: number;
1607
1587
  invoice: string;
1608
1588
  paymentHash: string;
1609
1589
  amountSats: number;
1590
+ expiresAt: Date;
1591
+ btcPrice: number;
1610
1592
  amountSatsReceived: number;
1611
1593
  fiatAmount: number;
1612
1594
  };
1613
- } | {
1614
1595
  id: string;
1615
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
1616
- status: "EXPIRED";
1617
1596
  createdAt: Date;
1618
1597
  clientSecret: string;
1619
1598
  organizationId: string;
@@ -1621,28 +1600,29 @@ export declare class MoneyDevKitClient {
1621
1600
  userMetadata: Record<string, any> | null;
1622
1601
  customFieldData: Record<string, any> | null;
1623
1602
  customerMetadata: Record<string, any> | null;
1624
- currency: string;
1625
- allowDiscountCodes: boolean;
1626
- customerName: string | null;
1627
- customerEmail: string | null;
1628
- requireCustomerFields: {
1629
- customerName?: boolean | undefined;
1630
- customerEmail?: boolean | undefined;
1631
- } | null;
1632
- successUrl: string | null;
1633
1603
  customerId: string | null;
1634
- customerExternalId: string | null;
1635
- customerIpAddress: string | null;
1636
1604
  customerBillingAddress: Record<string, any> | null;
1637
- products: {
1638
- id: string;
1605
+ providedAmount: number | null;
1606
+ totalAmount: number;
1607
+ discountAmount: number;
1608
+ netAmount: number;
1609
+ taxAmount: number;
1610
+ invoiceAmountSats: number;
1611
+ invoiceScid: string | null;
1612
+ btcPrice: number;
1613
+ } | {
1614
+ currency: string;
1615
+ type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
1616
+ status: "EXPIRED";
1617
+ products: {
1618
+ id: string;
1639
1619
  name: string;
1640
1620
  description: string | null;
1641
1621
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1642
1622
  prices: {
1623
+ priceAmount: number | null;
1643
1624
  id: string;
1644
1625
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1645
- priceAmount: number | null;
1646
1626
  minimumAmount: number | null;
1647
1627
  maximumAmount: number | null;
1648
1628
  presetAmount: number | null;
@@ -1651,29 +1631,27 @@ export declare class MoneyDevKitClient {
1651
1631
  meterId: string | null;
1652
1632
  }[];
1653
1633
  }[] | null;
1654
- providedAmount: number | null;
1655
- totalAmount: number | null;
1656
- discountAmount: number | null;
1657
- netAmount: number | null;
1658
- taxAmount: number | null;
1659
- invoiceAmountSats: number | null;
1660
- invoiceScid: string | null;
1661
- btcPrice: number | null;
1634
+ successUrl: string | null;
1635
+ allowDiscountCodes: boolean;
1636
+ customerName: string | null;
1637
+ customerEmail: string | null;
1638
+ customerIpAddress: string | null;
1639
+ customerExternalId: string | null;
1640
+ requireCustomerFields: {
1641
+ customerName?: boolean | undefined;
1642
+ customerEmail?: boolean | undefined;
1643
+ } | null;
1662
1644
  invoice: {
1663
- expiresAt: Date;
1664
1645
  currency: string;
1665
- btcPrice: number | null;
1666
1646
  invoice: string;
1667
1647
  paymentHash: string;
1668
1648
  amountSats: number | null;
1649
+ expiresAt: Date;
1650
+ btcPrice: number | null;
1669
1651
  amountSatsReceived: number | null;
1670
1652
  fiatAmount: number | null;
1671
1653
  } | null;
1672
- }>;
1673
- confirm: (params: Parameters<typeof this.client.checkout.confirm>[0]) => Promise<{
1674
1654
  id: string;
1675
- type: "PRODUCTS";
1676
- status: "UNCONFIRMED";
1677
1655
  createdAt: Date;
1678
1656
  clientSecret: string;
1679
1657
  organizationId: string;
@@ -1681,28 +1659,30 @@ export declare class MoneyDevKitClient {
1681
1659
  userMetadata: Record<string, any> | null;
1682
1660
  customFieldData: Record<string, any> | null;
1683
1661
  customerMetadata: Record<string, any> | null;
1684
- currency: string;
1685
- allowDiscountCodes: boolean;
1686
- customerName: string | null;
1687
- customerEmail: string | null;
1688
- requireCustomerFields: {
1689
- customerName?: boolean | undefined;
1690
- customerEmail?: boolean | undefined;
1691
- } | null;
1692
- successUrl: string | null;
1693
1662
  customerId: string | null;
1694
- customerExternalId: string | null;
1695
- customerIpAddress: string | null;
1696
1663
  customerBillingAddress: Record<string, any> | null;
1664
+ providedAmount: number | null;
1665
+ totalAmount: number | null;
1666
+ discountAmount: number | null;
1667
+ netAmount: number | null;
1668
+ taxAmount: number | null;
1669
+ invoiceAmountSats: number | null;
1670
+ invoiceScid: string | null;
1671
+ btcPrice: number | null;
1672
+ }>;
1673
+ confirm: (params: Parameters<typeof this.client.checkout.confirm>[0]) => Promise<{
1674
+ currency: string;
1675
+ type: "PRODUCTS";
1676
+ status: "UNCONFIRMED";
1697
1677
  products: [{
1698
1678
  id: string;
1699
1679
  name: string;
1700
1680
  description: string | null;
1701
1681
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1702
1682
  prices: {
1683
+ priceAmount: number | null;
1703
1684
  id: string;
1704
1685
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1705
- priceAmount: number | null;
1706
1686
  minimumAmount: number | null;
1707
1687
  maximumAmount: number | null;
1708
1688
  presetAmount: number | null;
@@ -1716,9 +1696,9 @@ export declare class MoneyDevKitClient {
1716
1696
  description: string | null;
1717
1697
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1718
1698
  prices: {
1699
+ priceAmount: number | null;
1719
1700
  id: string;
1720
1701
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1721
- priceAmount: number | null;
1722
1702
  minimumAmount: number | null;
1723
1703
  maximumAmount: number | null;
1724
1704
  presetAmount: number | null;
@@ -1727,28 +1707,27 @@ export declare class MoneyDevKitClient {
1727
1707
  meterId: string | null;
1728
1708
  }[];
1729
1709
  }[]];
1730
- providedAmount: number | null;
1731
- totalAmount: number | null;
1732
- discountAmount: number | null;
1733
- netAmount: number | null;
1734
- taxAmount: number | null;
1735
- invoiceAmountSats: number | null;
1736
- invoiceScid: string | null;
1737
- btcPrice: number | null;
1710
+ successUrl: string | null;
1711
+ allowDiscountCodes: boolean;
1712
+ customerName: string | null;
1713
+ customerEmail: string | null;
1714
+ customerIpAddress: string | null;
1715
+ customerExternalId: string | null;
1716
+ requireCustomerFields: {
1717
+ customerName?: boolean | undefined;
1718
+ customerEmail?: boolean | undefined;
1719
+ } | null;
1738
1720
  invoice: {
1739
- expiresAt: Date;
1740
1721
  currency: string;
1741
- btcPrice: number | null;
1742
1722
  invoice: string;
1743
1723
  paymentHash: string;
1744
1724
  amountSats: number | null;
1725
+ expiresAt: Date;
1726
+ btcPrice: number | null;
1745
1727
  amountSatsReceived: number | null;
1746
1728
  fiatAmount: number | null;
1747
1729
  } | null;
1748
- } | {
1749
1730
  id: string;
1750
- type: "AMOUNT";
1751
- status: "UNCONFIRMED";
1752
1731
  createdAt: Date;
1753
1732
  clientSecret: string;
1754
1733
  organizationId: string;
@@ -1756,28 +1735,29 @@ export declare class MoneyDevKitClient {
1756
1735
  userMetadata: Record<string, any> | null;
1757
1736
  customFieldData: Record<string, any> | null;
1758
1737
  customerMetadata: Record<string, any> | null;
1759
- currency: string;
1760
- allowDiscountCodes: boolean;
1761
- customerName: string | null;
1762
- customerEmail: string | null;
1763
- requireCustomerFields: {
1764
- customerName?: boolean | undefined;
1765
- customerEmail?: boolean | undefined;
1766
- } | null;
1767
- successUrl: string | null;
1768
1738
  customerId: string | null;
1769
- customerExternalId: string | null;
1770
- customerIpAddress: string | null;
1771
1739
  customerBillingAddress: Record<string, any> | null;
1740
+ providedAmount: number | null;
1741
+ totalAmount: number | null;
1742
+ discountAmount: number | null;
1743
+ netAmount: number | null;
1744
+ taxAmount: number | null;
1745
+ invoiceAmountSats: number | null;
1746
+ invoiceScid: string | null;
1747
+ btcPrice: number | null;
1748
+ } | {
1749
+ currency: string;
1750
+ type: "AMOUNT";
1751
+ status: "UNCONFIRMED";
1772
1752
  products: {
1773
1753
  id: string;
1774
1754
  name: string;
1775
1755
  description: string | null;
1776
1756
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1777
1757
  prices: {
1758
+ priceAmount: number | null;
1778
1759
  id: string;
1779
1760
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1780
- priceAmount: number | null;
1781
1761
  minimumAmount: number | null;
1782
1762
  maximumAmount: number | null;
1783
1763
  presetAmount: number | null;
@@ -1786,28 +1766,27 @@ export declare class MoneyDevKitClient {
1786
1766
  meterId: string | null;
1787
1767
  }[];
1788
1768
  }[] | null;
1789
- providedAmount: number;
1790
- totalAmount: number | null;
1791
- discountAmount: number | null;
1792
- netAmount: number | null;
1793
- taxAmount: number | null;
1794
- invoiceAmountSats: number | null;
1795
- invoiceScid: string | null;
1796
- btcPrice: number | null;
1769
+ successUrl: string | null;
1770
+ allowDiscountCodes: boolean;
1771
+ customerName: string | null;
1772
+ customerEmail: string | null;
1773
+ customerIpAddress: string | null;
1774
+ customerExternalId: string | null;
1775
+ requireCustomerFields: {
1776
+ customerName?: boolean | undefined;
1777
+ customerEmail?: boolean | undefined;
1778
+ } | null;
1797
1779
  invoice: {
1798
- expiresAt: Date;
1799
1780
  currency: string;
1800
- btcPrice: number | null;
1801
1781
  invoice: string;
1802
1782
  paymentHash: string;
1803
1783
  amountSats: number | null;
1784
+ expiresAt: Date;
1785
+ btcPrice: number | null;
1804
1786
  amountSatsReceived: number | null;
1805
1787
  fiatAmount: number | null;
1806
1788
  } | null;
1807
- } | {
1808
1789
  id: string;
1809
- type: "TOP_UP";
1810
- status: "UNCONFIRMED";
1811
1790
  createdAt: Date;
1812
1791
  clientSecret: string;
1813
1792
  organizationId: string;
@@ -1815,28 +1794,29 @@ export declare class MoneyDevKitClient {
1815
1794
  userMetadata: Record<string, any> | null;
1816
1795
  customFieldData: Record<string, any> | null;
1817
1796
  customerMetadata: Record<string, any> | null;
1818
- currency: string;
1819
- allowDiscountCodes: boolean;
1820
- customerName: string | null;
1821
- customerEmail: string | null;
1822
- requireCustomerFields: {
1823
- customerName?: boolean | undefined;
1824
- customerEmail?: boolean | undefined;
1825
- } | null;
1826
- successUrl: string | null;
1827
1797
  customerId: string | null;
1828
- customerExternalId: string | null;
1829
- customerIpAddress: string | null;
1830
1798
  customerBillingAddress: Record<string, any> | null;
1799
+ providedAmount: number;
1800
+ totalAmount: number | null;
1801
+ discountAmount: number | null;
1802
+ netAmount: number | null;
1803
+ taxAmount: number | null;
1804
+ invoiceAmountSats: number | null;
1805
+ invoiceScid: string | null;
1806
+ btcPrice: number | null;
1807
+ } | {
1808
+ currency: string;
1809
+ type: "TOP_UP";
1810
+ status: "UNCONFIRMED";
1831
1811
  products: {
1832
1812
  id: string;
1833
1813
  name: string;
1834
1814
  description: string | null;
1835
1815
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1836
1816
  prices: {
1817
+ priceAmount: number | null;
1837
1818
  id: string;
1838
1819
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1839
- priceAmount: number | null;
1840
1820
  minimumAmount: number | null;
1841
1821
  maximumAmount: number | null;
1842
1822
  presetAmount: number | null;
@@ -1845,28 +1825,27 @@ export declare class MoneyDevKitClient {
1845
1825
  meterId: string | null;
1846
1826
  }[];
1847
1827
  }[] | null;
1848
- providedAmount: number | null;
1849
- totalAmount: number | null;
1850
- discountAmount: number | null;
1851
- netAmount: number | null;
1852
- taxAmount: number | null;
1853
- invoiceAmountSats: number | null;
1854
- invoiceScid: string | null;
1855
- btcPrice: number | null;
1828
+ successUrl: string | null;
1829
+ allowDiscountCodes: boolean;
1830
+ customerName: string | null;
1831
+ customerEmail: string | null;
1832
+ customerIpAddress: string | null;
1833
+ customerExternalId: string | null;
1834
+ requireCustomerFields: {
1835
+ customerName?: boolean | undefined;
1836
+ customerEmail?: boolean | undefined;
1837
+ } | null;
1856
1838
  invoice: {
1857
- expiresAt: Date;
1858
1839
  currency: string;
1859
- btcPrice: number | null;
1860
1840
  invoice: string;
1861
1841
  paymentHash: string;
1862
1842
  amountSats: number | null;
1843
+ expiresAt: Date;
1844
+ btcPrice: number | null;
1863
1845
  amountSatsReceived: number | null;
1864
1846
  fiatAmount: number | null;
1865
1847
  } | null;
1866
- } | {
1867
1848
  id: string;
1868
- type: "PRODUCTS";
1869
- status: "CONFIRMED";
1870
1849
  createdAt: Date;
1871
1850
  clientSecret: string;
1872
1851
  organizationId: string;
@@ -1874,28 +1853,29 @@ export declare class MoneyDevKitClient {
1874
1853
  userMetadata: Record<string, any> | null;
1875
1854
  customFieldData: Record<string, any> | null;
1876
1855
  customerMetadata: Record<string, any> | null;
1877
- currency: string;
1878
- allowDiscountCodes: boolean;
1879
- customerName: string | null;
1880
- customerEmail: string | null;
1881
- requireCustomerFields: {
1882
- customerName?: boolean | undefined;
1883
- customerEmail?: boolean | undefined;
1884
- } | null;
1885
- successUrl: string | null;
1886
1856
  customerId: string | null;
1887
- customerExternalId: string | null;
1888
- customerIpAddress: string | null;
1889
1857
  customerBillingAddress: Record<string, any> | null;
1858
+ providedAmount: number | null;
1859
+ totalAmount: number | null;
1860
+ discountAmount: number | null;
1861
+ netAmount: number | null;
1862
+ taxAmount: number | null;
1863
+ invoiceAmountSats: number | null;
1864
+ invoiceScid: string | null;
1865
+ btcPrice: number | null;
1866
+ } | {
1867
+ currency: string;
1868
+ type: "PRODUCTS";
1869
+ status: "CONFIRMED";
1890
1870
  products: [{
1891
1871
  id: string;
1892
1872
  name: string;
1893
1873
  description: string | null;
1894
1874
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1895
1875
  prices: {
1876
+ priceAmount: number | null;
1896
1877
  id: string;
1897
1878
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1898
- priceAmount: number | null;
1899
1879
  minimumAmount: number | null;
1900
1880
  maximumAmount: number | null;
1901
1881
  presetAmount: number | null;
@@ -1909,9 +1889,9 @@ export declare class MoneyDevKitClient {
1909
1889
  description: string | null;
1910
1890
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1911
1891
  prices: {
1892
+ priceAmount: number | null;
1912
1893
  id: string;
1913
1894
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1914
- priceAmount: number | null;
1915
1895
  minimumAmount: number | null;
1916
1896
  maximumAmount: number | null;
1917
1897
  presetAmount: number | null;
@@ -1920,28 +1900,27 @@ export declare class MoneyDevKitClient {
1920
1900
  meterId: string | null;
1921
1901
  }[];
1922
1902
  }[]];
1923
- providedAmount: number | null;
1924
- totalAmount: number;
1925
- discountAmount: number;
1926
- netAmount: number;
1927
- taxAmount: number;
1928
- invoiceAmountSats: number;
1929
- invoiceScid: string | null;
1930
- btcPrice: number;
1903
+ successUrl: string | null;
1904
+ allowDiscountCodes: boolean;
1905
+ customerName: string | null;
1906
+ customerEmail: string | null;
1907
+ customerIpAddress: string | null;
1908
+ customerExternalId: string | null;
1909
+ requireCustomerFields: {
1910
+ customerName?: boolean | undefined;
1911
+ customerEmail?: boolean | undefined;
1912
+ } | null;
1931
1913
  invoice: {
1932
- expiresAt: Date;
1933
1914
  currency: string;
1934
- btcPrice: number | null;
1935
1915
  invoice: string;
1936
1916
  paymentHash: string;
1937
1917
  amountSats: number | null;
1918
+ expiresAt: Date;
1919
+ btcPrice: number | null;
1938
1920
  amountSatsReceived: number | null;
1939
1921
  fiatAmount: number | null;
1940
1922
  } | null;
1941
- } | {
1942
1923
  id: string;
1943
- type: "AMOUNT";
1944
- status: "CONFIRMED";
1945
1924
  createdAt: Date;
1946
1925
  clientSecret: string;
1947
1926
  organizationId: string;
@@ -1949,28 +1928,29 @@ export declare class MoneyDevKitClient {
1949
1928
  userMetadata: Record<string, any> | null;
1950
1929
  customFieldData: Record<string, any> | null;
1951
1930
  customerMetadata: Record<string, any> | null;
1952
- currency: string;
1953
- allowDiscountCodes: boolean;
1954
- customerName: string | null;
1955
- customerEmail: string | null;
1956
- requireCustomerFields: {
1957
- customerName?: boolean | undefined;
1958
- customerEmail?: boolean | undefined;
1959
- } | null;
1960
- successUrl: string | null;
1961
1931
  customerId: string | null;
1962
- customerExternalId: string | null;
1963
- customerIpAddress: string | null;
1964
1932
  customerBillingAddress: Record<string, any> | null;
1933
+ providedAmount: number | null;
1934
+ totalAmount: number;
1935
+ discountAmount: number;
1936
+ netAmount: number;
1937
+ taxAmount: number;
1938
+ invoiceAmountSats: number;
1939
+ invoiceScid: string | null;
1940
+ btcPrice: number;
1941
+ } | {
1942
+ currency: string;
1943
+ type: "AMOUNT";
1944
+ status: "CONFIRMED";
1965
1945
  products: {
1966
1946
  id: string;
1967
1947
  name: string;
1968
1948
  description: string | null;
1969
1949
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1970
1950
  prices: {
1951
+ priceAmount: number | null;
1971
1952
  id: string;
1972
1953
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1973
- priceAmount: number | null;
1974
1954
  minimumAmount: number | null;
1975
1955
  maximumAmount: number | null;
1976
1956
  presetAmount: number | null;
@@ -1979,28 +1959,27 @@ export declare class MoneyDevKitClient {
1979
1959
  meterId: string | null;
1980
1960
  }[];
1981
1961
  }[] | null;
1982
- providedAmount: number;
1983
- totalAmount: number;
1984
- discountAmount: number;
1985
- netAmount: number;
1986
- taxAmount: number;
1987
- invoiceAmountSats: number;
1988
- invoiceScid: string | null;
1989
- btcPrice: number;
1962
+ successUrl: string | null;
1963
+ allowDiscountCodes: boolean;
1964
+ customerName: string | null;
1965
+ customerEmail: string | null;
1966
+ customerIpAddress: string | null;
1967
+ customerExternalId: string | null;
1968
+ requireCustomerFields: {
1969
+ customerName?: boolean | undefined;
1970
+ customerEmail?: boolean | undefined;
1971
+ } | null;
1990
1972
  invoice: {
1991
- expiresAt: Date;
1992
1973
  currency: string;
1993
- btcPrice: number | null;
1994
1974
  invoice: string;
1995
1975
  paymentHash: string;
1996
1976
  amountSats: number | null;
1977
+ expiresAt: Date;
1978
+ btcPrice: number | null;
1997
1979
  amountSatsReceived: number | null;
1998
1980
  fiatAmount: number | null;
1999
1981
  } | null;
2000
- } | {
2001
1982
  id: string;
2002
- type: "TOP_UP";
2003
- status: "CONFIRMED";
2004
1983
  createdAt: Date;
2005
1984
  clientSecret: string;
2006
1985
  organizationId: string;
@@ -2008,28 +1987,29 @@ export declare class MoneyDevKitClient {
2008
1987
  userMetadata: Record<string, any> | null;
2009
1988
  customFieldData: Record<string, any> | null;
2010
1989
  customerMetadata: Record<string, any> | null;
2011
- currency: string;
2012
- allowDiscountCodes: boolean;
2013
- customerName: string | null;
2014
- customerEmail: string | null;
2015
- requireCustomerFields: {
2016
- customerName?: boolean | undefined;
2017
- customerEmail?: boolean | undefined;
2018
- } | null;
2019
- successUrl: string | null;
2020
1990
  customerId: string | null;
2021
- customerExternalId: string | null;
2022
- customerIpAddress: string | null;
2023
1991
  customerBillingAddress: Record<string, any> | null;
1992
+ providedAmount: number;
1993
+ totalAmount: number;
1994
+ discountAmount: number;
1995
+ netAmount: number;
1996
+ taxAmount: number;
1997
+ invoiceAmountSats: number;
1998
+ invoiceScid: string | null;
1999
+ btcPrice: number;
2000
+ } | {
2001
+ currency: string;
2002
+ type: "TOP_UP";
2003
+ status: "CONFIRMED";
2024
2004
  products: {
2025
2005
  id: string;
2026
2006
  name: string;
2027
2007
  description: string | null;
2028
2008
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2029
2009
  prices: {
2010
+ priceAmount: number | null;
2030
2011
  id: string;
2031
2012
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2032
- priceAmount: number | null;
2033
2013
  minimumAmount: number | null;
2034
2014
  maximumAmount: number | null;
2035
2015
  presetAmount: number | null;
@@ -2038,28 +2018,27 @@ export declare class MoneyDevKitClient {
2038
2018
  meterId: string | null;
2039
2019
  }[];
2040
2020
  }[] | null;
2041
- providedAmount: number | null;
2042
- totalAmount: number | null;
2043
- discountAmount: number | null;
2044
- netAmount: number | null;
2045
- taxAmount: number | null;
2046
- invoiceAmountSats: number | null;
2047
- invoiceScid: string | null;
2048
- btcPrice: number | null;
2021
+ successUrl: string | null;
2022
+ allowDiscountCodes: boolean;
2023
+ customerName: string | null;
2024
+ customerEmail: string | null;
2025
+ customerIpAddress: string | null;
2026
+ customerExternalId: string | null;
2027
+ requireCustomerFields: {
2028
+ customerName?: boolean | undefined;
2029
+ customerEmail?: boolean | undefined;
2030
+ } | null;
2049
2031
  invoice: {
2050
- expiresAt: Date;
2051
2032
  currency: string;
2052
- btcPrice: number | null;
2053
2033
  invoice: string;
2054
2034
  paymentHash: string;
2055
2035
  amountSats: number | null;
2036
+ expiresAt: Date;
2037
+ btcPrice: number | null;
2056
2038
  amountSatsReceived: number | null;
2057
2039
  fiatAmount: number | null;
2058
2040
  } | null;
2059
- } | {
2060
2041
  id: string;
2061
- type: "PRODUCTS";
2062
- status: "PENDING_PAYMENT";
2063
2042
  createdAt: Date;
2064
2043
  clientSecret: string;
2065
2044
  organizationId: string;
@@ -2067,28 +2046,29 @@ export declare class MoneyDevKitClient {
2067
2046
  userMetadata: Record<string, any> | null;
2068
2047
  customFieldData: Record<string, any> | null;
2069
2048
  customerMetadata: Record<string, any> | null;
2070
- currency: string;
2071
- allowDiscountCodes: boolean;
2072
- customerName: string | null;
2073
- customerEmail: string | null;
2074
- requireCustomerFields: {
2075
- customerName?: boolean | undefined;
2076
- customerEmail?: boolean | undefined;
2077
- } | null;
2078
- successUrl: string | null;
2079
2049
  customerId: string | null;
2080
- customerExternalId: string | null;
2081
- customerIpAddress: string | null;
2082
2050
  customerBillingAddress: Record<string, any> | null;
2051
+ providedAmount: number | null;
2052
+ totalAmount: number | null;
2053
+ discountAmount: number | null;
2054
+ netAmount: number | null;
2055
+ taxAmount: number | null;
2056
+ invoiceAmountSats: number | null;
2057
+ invoiceScid: string | null;
2058
+ btcPrice: number | null;
2059
+ } | {
2060
+ currency: string;
2061
+ type: "PRODUCTS";
2062
+ status: "PENDING_PAYMENT";
2083
2063
  products: [{
2084
2064
  id: string;
2085
2065
  name: string;
2086
2066
  description: string | null;
2087
2067
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2088
2068
  prices: {
2069
+ priceAmount: number | null;
2089
2070
  id: string;
2090
2071
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2091
- priceAmount: number | null;
2092
2072
  minimumAmount: number | null;
2093
2073
  maximumAmount: number | null;
2094
2074
  presetAmount: number | null;
@@ -2102,9 +2082,9 @@ export declare class MoneyDevKitClient {
2102
2082
  description: string | null;
2103
2083
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2104
2084
  prices: {
2085
+ priceAmount: number | null;
2105
2086
  id: string;
2106
2087
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2107
- priceAmount: number | null;
2108
2088
  minimumAmount: number | null;
2109
2089
  maximumAmount: number | null;
2110
2090
  presetAmount: number | null;
@@ -2113,28 +2093,27 @@ export declare class MoneyDevKitClient {
2113
2093
  meterId: string | null;
2114
2094
  }[];
2115
2095
  }[]];
2116
- providedAmount: number | null;
2117
- totalAmount: number;
2118
- discountAmount: number;
2119
- netAmount: number;
2120
- taxAmount: number;
2121
- invoiceAmountSats: number;
2122
- invoiceScid: string | null;
2123
- btcPrice: number;
2096
+ successUrl: string | null;
2097
+ allowDiscountCodes: boolean;
2098
+ customerName: string | null;
2099
+ customerEmail: string | null;
2100
+ customerIpAddress: string | null;
2101
+ customerExternalId: string | null;
2102
+ requireCustomerFields: {
2103
+ customerName?: boolean | undefined;
2104
+ customerEmail?: boolean | undefined;
2105
+ } | null;
2124
2106
  invoice: {
2125
- expiresAt: Date;
2126
2107
  currency: string;
2127
- btcPrice: number;
2128
2108
  invoice: string;
2129
2109
  paymentHash: string;
2130
2110
  amountSats: number;
2111
+ expiresAt: Date;
2112
+ btcPrice: number;
2131
2113
  amountSatsReceived: number | null;
2132
2114
  fiatAmount: number;
2133
2115
  };
2134
- } | {
2135
2116
  id: string;
2136
- type: "AMOUNT";
2137
- status: "PENDING_PAYMENT";
2138
2117
  createdAt: Date;
2139
2118
  clientSecret: string;
2140
2119
  organizationId: string;
@@ -2142,28 +2121,29 @@ export declare class MoneyDevKitClient {
2142
2121
  userMetadata: Record<string, any> | null;
2143
2122
  customFieldData: Record<string, any> | null;
2144
2123
  customerMetadata: Record<string, any> | null;
2145
- currency: string;
2146
- allowDiscountCodes: boolean;
2147
- customerName: string | null;
2148
- customerEmail: string | null;
2149
- requireCustomerFields: {
2150
- customerName?: boolean | undefined;
2151
- customerEmail?: boolean | undefined;
2152
- } | null;
2153
- successUrl: string | null;
2154
2124
  customerId: string | null;
2155
- customerExternalId: string | null;
2156
- customerIpAddress: string | null;
2157
2125
  customerBillingAddress: Record<string, any> | null;
2126
+ providedAmount: number | null;
2127
+ totalAmount: number;
2128
+ discountAmount: number;
2129
+ netAmount: number;
2130
+ taxAmount: number;
2131
+ invoiceAmountSats: number;
2132
+ invoiceScid: string | null;
2133
+ btcPrice: number;
2134
+ } | {
2135
+ currency: string;
2136
+ type: "AMOUNT";
2137
+ status: "PENDING_PAYMENT";
2158
2138
  products: {
2159
2139
  id: string;
2160
2140
  name: string;
2161
2141
  description: string | null;
2162
2142
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2163
2143
  prices: {
2144
+ priceAmount: number | null;
2164
2145
  id: string;
2165
2146
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2166
- priceAmount: number | null;
2167
2147
  minimumAmount: number | null;
2168
2148
  maximumAmount: number | null;
2169
2149
  presetAmount: number | null;
@@ -2172,28 +2152,27 @@ export declare class MoneyDevKitClient {
2172
2152
  meterId: string | null;
2173
2153
  }[];
2174
2154
  }[] | null;
2175
- providedAmount: number;
2176
- totalAmount: number;
2177
- discountAmount: number;
2178
- netAmount: number;
2179
- taxAmount: number;
2180
- invoiceAmountSats: number;
2181
- invoiceScid: string | null;
2182
- btcPrice: number;
2155
+ successUrl: string | null;
2156
+ allowDiscountCodes: boolean;
2157
+ customerName: string | null;
2158
+ customerEmail: string | null;
2159
+ customerIpAddress: string | null;
2160
+ customerExternalId: string | null;
2161
+ requireCustomerFields: {
2162
+ customerName?: boolean | undefined;
2163
+ customerEmail?: boolean | undefined;
2164
+ } | null;
2183
2165
  invoice: {
2184
- expiresAt: Date;
2185
2166
  currency: string;
2186
- btcPrice: number;
2187
2167
  invoice: string;
2188
2168
  paymentHash: string;
2189
2169
  amountSats: number;
2170
+ expiresAt: Date;
2171
+ btcPrice: number;
2190
2172
  amountSatsReceived: number | null;
2191
2173
  fiatAmount: number;
2192
2174
  };
2193
- } | {
2194
2175
  id: string;
2195
- type: "TOP_UP";
2196
- status: "PENDING_PAYMENT";
2197
2176
  createdAt: Date;
2198
2177
  clientSecret: string;
2199
2178
  organizationId: string;
@@ -2201,28 +2180,29 @@ export declare class MoneyDevKitClient {
2201
2180
  userMetadata: Record<string, any> | null;
2202
2181
  customFieldData: Record<string, any> | null;
2203
2182
  customerMetadata: Record<string, any> | null;
2204
- currency: string;
2205
- allowDiscountCodes: boolean;
2206
- customerName: string | null;
2207
- customerEmail: string | null;
2208
- requireCustomerFields: {
2209
- customerName?: boolean | undefined;
2210
- customerEmail?: boolean | undefined;
2211
- } | null;
2212
- successUrl: string | null;
2213
2183
  customerId: string | null;
2214
- customerExternalId: string | null;
2215
- customerIpAddress: string | null;
2216
2184
  customerBillingAddress: Record<string, any> | null;
2185
+ providedAmount: number;
2186
+ totalAmount: number;
2187
+ discountAmount: number;
2188
+ netAmount: number;
2189
+ taxAmount: number;
2190
+ invoiceAmountSats: number;
2191
+ invoiceScid: string | null;
2192
+ btcPrice: number;
2193
+ } | {
2194
+ currency: string;
2195
+ type: "TOP_UP";
2196
+ status: "PENDING_PAYMENT";
2217
2197
  products: {
2218
2198
  id: string;
2219
2199
  name: string;
2220
2200
  description: string | null;
2221
2201
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2222
2202
  prices: {
2203
+ priceAmount: number | null;
2223
2204
  id: string;
2224
2205
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2225
- priceAmount: number | null;
2226
2206
  minimumAmount: number | null;
2227
2207
  maximumAmount: number | null;
2228
2208
  presetAmount: number | null;
@@ -2231,28 +2211,27 @@ export declare class MoneyDevKitClient {
2231
2211
  meterId: string | null;
2232
2212
  }[];
2233
2213
  }[] | null;
2234
- providedAmount: number | null;
2235
- totalAmount: number | null;
2236
- discountAmount: number | null;
2237
- netAmount: number | null;
2238
- taxAmount: number | null;
2239
- invoiceAmountSats: number | null;
2240
- invoiceScid: string | null;
2241
- btcPrice: number | null;
2214
+ successUrl: string | null;
2215
+ allowDiscountCodes: boolean;
2216
+ customerName: string | null;
2217
+ customerEmail: string | null;
2218
+ customerIpAddress: string | null;
2219
+ customerExternalId: string | null;
2220
+ requireCustomerFields: {
2221
+ customerName?: boolean | undefined;
2222
+ customerEmail?: boolean | undefined;
2223
+ } | null;
2242
2224
  invoice: {
2243
- expiresAt: Date;
2244
2225
  currency: string;
2245
- btcPrice: number | null;
2246
2226
  invoice: string;
2247
2227
  paymentHash: string;
2248
2228
  amountSats: number | null;
2229
+ expiresAt: Date;
2230
+ btcPrice: number | null;
2249
2231
  amountSatsReceived: number | null;
2250
2232
  fiatAmount: number | null;
2251
2233
  };
2252
- } | {
2253
2234
  id: string;
2254
- type: "PRODUCTS";
2255
- status: "PAYMENT_RECEIVED";
2256
2235
  createdAt: Date;
2257
2236
  clientSecret: string;
2258
2237
  organizationId: string;
@@ -2260,28 +2239,29 @@ export declare class MoneyDevKitClient {
2260
2239
  userMetadata: Record<string, any> | null;
2261
2240
  customFieldData: Record<string, any> | null;
2262
2241
  customerMetadata: Record<string, any> | null;
2263
- currency: string;
2264
- allowDiscountCodes: boolean;
2265
- customerName: string | null;
2266
- customerEmail: string | null;
2267
- requireCustomerFields: {
2268
- customerName?: boolean | undefined;
2269
- customerEmail?: boolean | undefined;
2270
- } | null;
2271
- successUrl: string | null;
2272
2242
  customerId: string | null;
2273
- customerExternalId: string | null;
2274
- customerIpAddress: string | null;
2275
2243
  customerBillingAddress: Record<string, any> | null;
2276
- products: [{
2277
- id: string;
2244
+ providedAmount: number | null;
2245
+ totalAmount: number | null;
2246
+ discountAmount: number | null;
2247
+ netAmount: number | null;
2248
+ taxAmount: number | null;
2249
+ invoiceAmountSats: number | null;
2250
+ invoiceScid: string | null;
2251
+ btcPrice: number | null;
2252
+ } | {
2253
+ currency: string;
2254
+ type: "PRODUCTS";
2255
+ status: "PAYMENT_RECEIVED";
2256
+ products: [{
2257
+ id: string;
2278
2258
  name: string;
2279
2259
  description: string | null;
2280
2260
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2281
2261
  prices: {
2262
+ priceAmount: number | null;
2282
2263
  id: string;
2283
2264
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2284
- priceAmount: number | null;
2285
2265
  minimumAmount: number | null;
2286
2266
  maximumAmount: number | null;
2287
2267
  presetAmount: number | null;
@@ -2295,9 +2275,9 @@ export declare class MoneyDevKitClient {
2295
2275
  description: string | null;
2296
2276
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2297
2277
  prices: {
2278
+ priceAmount: number | null;
2298
2279
  id: string;
2299
2280
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2300
- priceAmount: number | null;
2301
2281
  minimumAmount: number | null;
2302
2282
  maximumAmount: number | null;
2303
2283
  presetAmount: number | null;
@@ -2306,28 +2286,27 @@ export declare class MoneyDevKitClient {
2306
2286
  meterId: string | null;
2307
2287
  }[];
2308
2288
  }[]];
2309
- providedAmount: number | null;
2310
- totalAmount: number;
2311
- discountAmount: number;
2312
- netAmount: number;
2313
- taxAmount: number;
2314
- invoiceAmountSats: number;
2315
- invoiceScid: string | null;
2316
- btcPrice: number;
2289
+ successUrl: string | null;
2290
+ allowDiscountCodes: boolean;
2291
+ customerName: string | null;
2292
+ customerEmail: string | null;
2293
+ customerIpAddress: string | null;
2294
+ customerExternalId: string | null;
2295
+ requireCustomerFields: {
2296
+ customerName?: boolean | undefined;
2297
+ customerEmail?: boolean | undefined;
2298
+ } | null;
2317
2299
  invoice: {
2318
- expiresAt: Date;
2319
2300
  currency: string;
2320
- btcPrice: number;
2321
2301
  invoice: string;
2322
2302
  paymentHash: string;
2323
2303
  amountSats: number;
2304
+ expiresAt: Date;
2305
+ btcPrice: number;
2324
2306
  amountSatsReceived: number;
2325
2307
  fiatAmount: number;
2326
2308
  };
2327
- } | {
2328
2309
  id: string;
2329
- type: "AMOUNT";
2330
- status: "PAYMENT_RECEIVED";
2331
2310
  createdAt: Date;
2332
2311
  clientSecret: string;
2333
2312
  organizationId: string;
@@ -2335,28 +2314,29 @@ export declare class MoneyDevKitClient {
2335
2314
  userMetadata: Record<string, any> | null;
2336
2315
  customFieldData: Record<string, any> | null;
2337
2316
  customerMetadata: Record<string, any> | null;
2338
- currency: string;
2339
- allowDiscountCodes: boolean;
2340
- customerName: string | null;
2341
- customerEmail: string | null;
2342
- requireCustomerFields: {
2343
- customerName?: boolean | undefined;
2344
- customerEmail?: boolean | undefined;
2345
- } | null;
2346
- successUrl: string | null;
2347
2317
  customerId: string | null;
2348
- customerExternalId: string | null;
2349
- customerIpAddress: string | null;
2350
2318
  customerBillingAddress: Record<string, any> | null;
2319
+ providedAmount: number | null;
2320
+ totalAmount: number;
2321
+ discountAmount: number;
2322
+ netAmount: number;
2323
+ taxAmount: number;
2324
+ invoiceAmountSats: number;
2325
+ invoiceScid: string | null;
2326
+ btcPrice: number;
2327
+ } | {
2328
+ currency: string;
2329
+ type: "AMOUNT";
2330
+ status: "PAYMENT_RECEIVED";
2351
2331
  products: {
2352
2332
  id: string;
2353
2333
  name: string;
2354
2334
  description: string | null;
2355
2335
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2356
2336
  prices: {
2337
+ priceAmount: number | null;
2357
2338
  id: string;
2358
2339
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2359
- priceAmount: number | null;
2360
2340
  minimumAmount: number | null;
2361
2341
  maximumAmount: number | null;
2362
2342
  presetAmount: number | null;
@@ -2365,28 +2345,27 @@ export declare class MoneyDevKitClient {
2365
2345
  meterId: string | null;
2366
2346
  }[];
2367
2347
  }[] | null;
2368
- providedAmount: number;
2369
- totalAmount: number;
2370
- discountAmount: number;
2371
- netAmount: number;
2372
- taxAmount: number;
2373
- invoiceAmountSats: number;
2374
- invoiceScid: string | null;
2375
- btcPrice: number;
2348
+ successUrl: string | null;
2349
+ allowDiscountCodes: boolean;
2350
+ customerName: string | null;
2351
+ customerEmail: string | null;
2352
+ customerIpAddress: string | null;
2353
+ customerExternalId: string | null;
2354
+ requireCustomerFields: {
2355
+ customerName?: boolean | undefined;
2356
+ customerEmail?: boolean | undefined;
2357
+ } | null;
2376
2358
  invoice: {
2377
- expiresAt: Date;
2378
2359
  currency: string;
2379
- btcPrice: number;
2380
2360
  invoice: string;
2381
2361
  paymentHash: string;
2382
2362
  amountSats: number;
2363
+ expiresAt: Date;
2364
+ btcPrice: number;
2383
2365
  amountSatsReceived: number;
2384
2366
  fiatAmount: number;
2385
2367
  };
2386
- } | {
2387
2368
  id: string;
2388
- type: "TOP_UP";
2389
- status: "PAYMENT_RECEIVED";
2390
2369
  createdAt: Date;
2391
2370
  clientSecret: string;
2392
2371
  organizationId: string;
@@ -2394,28 +2373,29 @@ export declare class MoneyDevKitClient {
2394
2373
  userMetadata: Record<string, any> | null;
2395
2374
  customFieldData: Record<string, any> | null;
2396
2375
  customerMetadata: Record<string, any> | null;
2397
- currency: string;
2398
- allowDiscountCodes: boolean;
2399
- customerName: string | null;
2400
- customerEmail: string | null;
2401
- requireCustomerFields: {
2402
- customerName?: boolean | undefined;
2403
- customerEmail?: boolean | undefined;
2404
- } | null;
2405
- successUrl: string | null;
2406
2376
  customerId: string | null;
2407
- customerExternalId: string | null;
2408
- customerIpAddress: string | null;
2409
2377
  customerBillingAddress: Record<string, any> | null;
2378
+ providedAmount: number;
2379
+ totalAmount: number;
2380
+ discountAmount: number;
2381
+ netAmount: number;
2382
+ taxAmount: number;
2383
+ invoiceAmountSats: number;
2384
+ invoiceScid: string | null;
2385
+ btcPrice: number;
2386
+ } | {
2387
+ currency: string;
2388
+ type: "TOP_UP";
2389
+ status: "PAYMENT_RECEIVED";
2410
2390
  products: {
2411
2391
  id: string;
2412
2392
  name: string;
2413
2393
  description: string | null;
2414
2394
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2415
2395
  prices: {
2396
+ priceAmount: number | null;
2416
2397
  id: string;
2417
2398
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2418
- priceAmount: number | null;
2419
2399
  minimumAmount: number | null;
2420
2400
  maximumAmount: number | null;
2421
2401
  presetAmount: number | null;
@@ -2424,28 +2404,27 @@ export declare class MoneyDevKitClient {
2424
2404
  meterId: string | null;
2425
2405
  }[];
2426
2406
  }[] | null;
2427
- providedAmount: number | null;
2428
- totalAmount: number;
2429
- discountAmount: number;
2430
- netAmount: number;
2431
- taxAmount: number;
2432
- invoiceAmountSats: number;
2433
- invoiceScid: string | null;
2434
- btcPrice: number;
2407
+ successUrl: string | null;
2408
+ allowDiscountCodes: boolean;
2409
+ customerName: string | null;
2410
+ customerEmail: string | null;
2411
+ customerIpAddress: string | null;
2412
+ customerExternalId: string | null;
2413
+ requireCustomerFields: {
2414
+ customerName?: boolean | undefined;
2415
+ customerEmail?: boolean | undefined;
2416
+ } | null;
2435
2417
  invoice: {
2436
- expiresAt: Date;
2437
2418
  currency: string;
2438
- btcPrice: number;
2439
2419
  invoice: string;
2440
2420
  paymentHash: string;
2441
2421
  amountSats: number;
2422
+ expiresAt: Date;
2423
+ btcPrice: number;
2442
2424
  amountSatsReceived: number;
2443
2425
  fiatAmount: number;
2444
2426
  };
2445
- } | {
2446
2427
  id: string;
2447
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
2448
- status: "EXPIRED";
2449
2428
  createdAt: Date;
2450
2429
  clientSecret: string;
2451
2430
  organizationId: string;
@@ -2453,28 +2432,29 @@ export declare class MoneyDevKitClient {
2453
2432
  userMetadata: Record<string, any> | null;
2454
2433
  customFieldData: Record<string, any> | null;
2455
2434
  customerMetadata: Record<string, any> | null;
2456
- currency: string;
2457
- allowDiscountCodes: boolean;
2458
- customerName: string | null;
2459
- customerEmail: string | null;
2460
- requireCustomerFields: {
2461
- customerName?: boolean | undefined;
2462
- customerEmail?: boolean | undefined;
2463
- } | null;
2464
- successUrl: string | null;
2465
2435
  customerId: string | null;
2466
- customerExternalId: string | null;
2467
- customerIpAddress: string | null;
2468
2436
  customerBillingAddress: Record<string, any> | null;
2437
+ providedAmount: number | null;
2438
+ totalAmount: number;
2439
+ discountAmount: number;
2440
+ netAmount: number;
2441
+ taxAmount: number;
2442
+ invoiceAmountSats: number;
2443
+ invoiceScid: string | null;
2444
+ btcPrice: number;
2445
+ } | {
2446
+ currency: string;
2447
+ type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
2448
+ status: "EXPIRED";
2469
2449
  products: {
2470
2450
  id: string;
2471
2451
  name: string;
2472
2452
  description: string | null;
2473
2453
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2474
2454
  prices: {
2455
+ priceAmount: number | null;
2475
2456
  id: string;
2476
2457
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2477
- priceAmount: number | null;
2478
2458
  minimumAmount: number | null;
2479
2459
  maximumAmount: number | null;
2480
2460
  presetAmount: number | null;
@@ -2483,29 +2463,27 @@ export declare class MoneyDevKitClient {
2483
2463
  meterId: string | null;
2484
2464
  }[];
2485
2465
  }[] | null;
2486
- providedAmount: number | null;
2487
- totalAmount: number | null;
2488
- discountAmount: number | null;
2489
- netAmount: number | null;
2490
- taxAmount: number | null;
2491
- invoiceAmountSats: number | null;
2492
- invoiceScid: string | null;
2493
- btcPrice: number | null;
2466
+ successUrl: string | null;
2467
+ allowDiscountCodes: boolean;
2468
+ customerName: string | null;
2469
+ customerEmail: string | null;
2470
+ customerIpAddress: string | null;
2471
+ customerExternalId: string | null;
2472
+ requireCustomerFields: {
2473
+ customerName?: boolean | undefined;
2474
+ customerEmail?: boolean | undefined;
2475
+ } | null;
2494
2476
  invoice: {
2495
- expiresAt: Date;
2496
2477
  currency: string;
2497
- btcPrice: number | null;
2498
2478
  invoice: string;
2499
2479
  paymentHash: string;
2500
2480
  amountSats: number | null;
2481
+ expiresAt: Date;
2482
+ btcPrice: number | null;
2501
2483
  amountSatsReceived: number | null;
2502
2484
  fiatAmount: number | null;
2503
2485
  } | null;
2504
- }>;
2505
- registerInvoice: (params: Parameters<typeof this.client.checkout.registerInvoice>[0]) => Promise<{
2506
2486
  id: string;
2507
- type: "PRODUCTS";
2508
- status: "UNCONFIRMED";
2509
2487
  createdAt: Date;
2510
2488
  clientSecret: string;
2511
2489
  organizationId: string;
@@ -2513,28 +2491,30 @@ export declare class MoneyDevKitClient {
2513
2491
  userMetadata: Record<string, any> | null;
2514
2492
  customFieldData: Record<string, any> | null;
2515
2493
  customerMetadata: Record<string, any> | null;
2516
- currency: string;
2517
- allowDiscountCodes: boolean;
2518
- customerName: string | null;
2519
- customerEmail: string | null;
2520
- requireCustomerFields: {
2521
- customerName?: boolean | undefined;
2522
- customerEmail?: boolean | undefined;
2523
- } | null;
2524
- successUrl: string | null;
2525
2494
  customerId: string | null;
2526
- customerExternalId: string | null;
2527
- customerIpAddress: string | null;
2528
2495
  customerBillingAddress: Record<string, any> | null;
2496
+ providedAmount: number | null;
2497
+ totalAmount: number | null;
2498
+ discountAmount: number | null;
2499
+ netAmount: number | null;
2500
+ taxAmount: number | null;
2501
+ invoiceAmountSats: number | null;
2502
+ invoiceScid: string | null;
2503
+ btcPrice: number | null;
2504
+ }>;
2505
+ registerInvoice: (params: Parameters<typeof this.client.checkout.registerInvoice>[0]) => Promise<{
2506
+ currency: string;
2507
+ type: "PRODUCTS";
2508
+ status: "UNCONFIRMED";
2529
2509
  products: [{
2530
2510
  id: string;
2531
2511
  name: string;
2532
2512
  description: string | null;
2533
2513
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2534
2514
  prices: {
2515
+ priceAmount: number | null;
2535
2516
  id: string;
2536
2517
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2537
- priceAmount: number | null;
2538
2518
  minimumAmount: number | null;
2539
2519
  maximumAmount: number | null;
2540
2520
  presetAmount: number | null;
@@ -2548,9 +2528,9 @@ export declare class MoneyDevKitClient {
2548
2528
  description: string | null;
2549
2529
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2550
2530
  prices: {
2531
+ priceAmount: number | null;
2551
2532
  id: string;
2552
2533
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2553
- priceAmount: number | null;
2554
2534
  minimumAmount: number | null;
2555
2535
  maximumAmount: number | null;
2556
2536
  presetAmount: number | null;
@@ -2559,28 +2539,27 @@ export declare class MoneyDevKitClient {
2559
2539
  meterId: string | null;
2560
2540
  }[];
2561
2541
  }[]];
2562
- providedAmount: number | null;
2563
- totalAmount: number | null;
2564
- discountAmount: number | null;
2565
- netAmount: number | null;
2566
- taxAmount: number | null;
2567
- invoiceAmountSats: number | null;
2568
- invoiceScid: string | null;
2569
- btcPrice: number | null;
2542
+ successUrl: string | null;
2543
+ allowDiscountCodes: boolean;
2544
+ customerName: string | null;
2545
+ customerEmail: string | null;
2546
+ customerIpAddress: string | null;
2547
+ customerExternalId: string | null;
2548
+ requireCustomerFields: {
2549
+ customerName?: boolean | undefined;
2550
+ customerEmail?: boolean | undefined;
2551
+ } | null;
2570
2552
  invoice: {
2571
- expiresAt: Date;
2572
2553
  currency: string;
2573
- btcPrice: number | null;
2574
2554
  invoice: string;
2575
2555
  paymentHash: string;
2576
2556
  amountSats: number | null;
2557
+ expiresAt: Date;
2558
+ btcPrice: number | null;
2577
2559
  amountSatsReceived: number | null;
2578
2560
  fiatAmount: number | null;
2579
2561
  } | null;
2580
- } | {
2581
2562
  id: string;
2582
- type: "AMOUNT";
2583
- status: "UNCONFIRMED";
2584
2563
  createdAt: Date;
2585
2564
  clientSecret: string;
2586
2565
  organizationId: string;
@@ -2588,28 +2567,29 @@ export declare class MoneyDevKitClient {
2588
2567
  userMetadata: Record<string, any> | null;
2589
2568
  customFieldData: Record<string, any> | null;
2590
2569
  customerMetadata: Record<string, any> | null;
2591
- currency: string;
2592
- allowDiscountCodes: boolean;
2593
- customerName: string | null;
2594
- customerEmail: string | null;
2595
- requireCustomerFields: {
2596
- customerName?: boolean | undefined;
2597
- customerEmail?: boolean | undefined;
2598
- } | null;
2599
- successUrl: string | null;
2600
2570
  customerId: string | null;
2601
- customerExternalId: string | null;
2602
- customerIpAddress: string | null;
2603
2571
  customerBillingAddress: Record<string, any> | null;
2572
+ providedAmount: number | null;
2573
+ totalAmount: number | null;
2574
+ discountAmount: number | null;
2575
+ netAmount: number | null;
2576
+ taxAmount: number | null;
2577
+ invoiceAmountSats: number | null;
2578
+ invoiceScid: string | null;
2579
+ btcPrice: number | null;
2580
+ } | {
2581
+ currency: string;
2582
+ type: "AMOUNT";
2583
+ status: "UNCONFIRMED";
2604
2584
  products: {
2605
2585
  id: string;
2606
2586
  name: string;
2607
2587
  description: string | null;
2608
2588
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2609
2589
  prices: {
2590
+ priceAmount: number | null;
2610
2591
  id: string;
2611
2592
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2612
- priceAmount: number | null;
2613
2593
  minimumAmount: number | null;
2614
2594
  maximumAmount: number | null;
2615
2595
  presetAmount: number | null;
@@ -2618,28 +2598,27 @@ export declare class MoneyDevKitClient {
2618
2598
  meterId: string | null;
2619
2599
  }[];
2620
2600
  }[] | null;
2621
- providedAmount: number;
2622
- totalAmount: number | null;
2623
- discountAmount: number | null;
2624
- netAmount: number | null;
2625
- taxAmount: number | null;
2626
- invoiceAmountSats: number | null;
2627
- invoiceScid: string | null;
2628
- btcPrice: number | null;
2601
+ successUrl: string | null;
2602
+ allowDiscountCodes: boolean;
2603
+ customerName: string | null;
2604
+ customerEmail: string | null;
2605
+ customerIpAddress: string | null;
2606
+ customerExternalId: string | null;
2607
+ requireCustomerFields: {
2608
+ customerName?: boolean | undefined;
2609
+ customerEmail?: boolean | undefined;
2610
+ } | null;
2629
2611
  invoice: {
2630
- expiresAt: Date;
2631
2612
  currency: string;
2632
- btcPrice: number | null;
2633
2613
  invoice: string;
2634
2614
  paymentHash: string;
2635
2615
  amountSats: number | null;
2616
+ expiresAt: Date;
2617
+ btcPrice: number | null;
2636
2618
  amountSatsReceived: number | null;
2637
2619
  fiatAmount: number | null;
2638
2620
  } | null;
2639
- } | {
2640
2621
  id: string;
2641
- type: "TOP_UP";
2642
- status: "UNCONFIRMED";
2643
2622
  createdAt: Date;
2644
2623
  clientSecret: string;
2645
2624
  organizationId: string;
@@ -2647,28 +2626,29 @@ export declare class MoneyDevKitClient {
2647
2626
  userMetadata: Record<string, any> | null;
2648
2627
  customFieldData: Record<string, any> | null;
2649
2628
  customerMetadata: Record<string, any> | null;
2650
- currency: string;
2651
- allowDiscountCodes: boolean;
2652
- customerName: string | null;
2653
- customerEmail: string | null;
2654
- requireCustomerFields: {
2655
- customerName?: boolean | undefined;
2656
- customerEmail?: boolean | undefined;
2657
- } | null;
2658
- successUrl: string | null;
2659
2629
  customerId: string | null;
2660
- customerExternalId: string | null;
2661
- customerIpAddress: string | null;
2662
2630
  customerBillingAddress: Record<string, any> | null;
2631
+ providedAmount: number;
2632
+ totalAmount: number | null;
2633
+ discountAmount: number | null;
2634
+ netAmount: number | null;
2635
+ taxAmount: number | null;
2636
+ invoiceAmountSats: number | null;
2637
+ invoiceScid: string | null;
2638
+ btcPrice: number | null;
2639
+ } | {
2640
+ currency: string;
2641
+ type: "TOP_UP";
2642
+ status: "UNCONFIRMED";
2663
2643
  products: {
2664
2644
  id: string;
2665
2645
  name: string;
2666
2646
  description: string | null;
2667
2647
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2668
2648
  prices: {
2649
+ priceAmount: number | null;
2669
2650
  id: string;
2670
2651
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2671
- priceAmount: number | null;
2672
2652
  minimumAmount: number | null;
2673
2653
  maximumAmount: number | null;
2674
2654
  presetAmount: number | null;
@@ -2677,28 +2657,27 @@ export declare class MoneyDevKitClient {
2677
2657
  meterId: string | null;
2678
2658
  }[];
2679
2659
  }[] | null;
2680
- providedAmount: number | null;
2681
- totalAmount: number | null;
2682
- discountAmount: number | null;
2683
- netAmount: number | null;
2684
- taxAmount: number | null;
2685
- invoiceAmountSats: number | null;
2686
- invoiceScid: string | null;
2687
- btcPrice: number | null;
2660
+ successUrl: string | null;
2661
+ allowDiscountCodes: boolean;
2662
+ customerName: string | null;
2663
+ customerEmail: string | null;
2664
+ customerIpAddress: string | null;
2665
+ customerExternalId: string | null;
2666
+ requireCustomerFields: {
2667
+ customerName?: boolean | undefined;
2668
+ customerEmail?: boolean | undefined;
2669
+ } | null;
2688
2670
  invoice: {
2689
- expiresAt: Date;
2690
2671
  currency: string;
2691
- btcPrice: number | null;
2692
2672
  invoice: string;
2693
2673
  paymentHash: string;
2694
2674
  amountSats: number | null;
2675
+ expiresAt: Date;
2676
+ btcPrice: number | null;
2695
2677
  amountSatsReceived: number | null;
2696
2678
  fiatAmount: number | null;
2697
2679
  } | null;
2698
- } | {
2699
2680
  id: string;
2700
- type: "PRODUCTS";
2701
- status: "CONFIRMED";
2702
2681
  createdAt: Date;
2703
2682
  clientSecret: string;
2704
2683
  organizationId: string;
@@ -2706,28 +2685,29 @@ export declare class MoneyDevKitClient {
2706
2685
  userMetadata: Record<string, any> | null;
2707
2686
  customFieldData: Record<string, any> | null;
2708
2687
  customerMetadata: Record<string, any> | null;
2709
- currency: string;
2710
- allowDiscountCodes: boolean;
2711
- customerName: string | null;
2712
- customerEmail: string | null;
2713
- requireCustomerFields: {
2714
- customerName?: boolean | undefined;
2715
- customerEmail?: boolean | undefined;
2716
- } | null;
2717
- successUrl: string | null;
2718
2688
  customerId: string | null;
2719
- customerExternalId: string | null;
2720
- customerIpAddress: string | null;
2721
2689
  customerBillingAddress: Record<string, any> | null;
2690
+ providedAmount: number | null;
2691
+ totalAmount: number | null;
2692
+ discountAmount: number | null;
2693
+ netAmount: number | null;
2694
+ taxAmount: number | null;
2695
+ invoiceAmountSats: number | null;
2696
+ invoiceScid: string | null;
2697
+ btcPrice: number | null;
2698
+ } | {
2699
+ currency: string;
2700
+ type: "PRODUCTS";
2701
+ status: "CONFIRMED";
2722
2702
  products: [{
2723
2703
  id: string;
2724
2704
  name: string;
2725
2705
  description: string | null;
2726
2706
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2727
2707
  prices: {
2708
+ priceAmount: number | null;
2728
2709
  id: string;
2729
2710
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2730
- priceAmount: number | null;
2731
2711
  minimumAmount: number | null;
2732
2712
  maximumAmount: number | null;
2733
2713
  presetAmount: number | null;
@@ -2741,9 +2721,9 @@ export declare class MoneyDevKitClient {
2741
2721
  description: string | null;
2742
2722
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2743
2723
  prices: {
2724
+ priceAmount: number | null;
2744
2725
  id: string;
2745
2726
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2746
- priceAmount: number | null;
2747
2727
  minimumAmount: number | null;
2748
2728
  maximumAmount: number | null;
2749
2729
  presetAmount: number | null;
@@ -2752,28 +2732,27 @@ export declare class MoneyDevKitClient {
2752
2732
  meterId: string | null;
2753
2733
  }[];
2754
2734
  }[]];
2755
- providedAmount: number | null;
2756
- totalAmount: number;
2757
- discountAmount: number;
2758
- netAmount: number;
2759
- taxAmount: number;
2760
- invoiceAmountSats: number;
2761
- invoiceScid: string | null;
2762
- btcPrice: number;
2735
+ successUrl: string | null;
2736
+ allowDiscountCodes: boolean;
2737
+ customerName: string | null;
2738
+ customerEmail: string | null;
2739
+ customerIpAddress: string | null;
2740
+ customerExternalId: string | null;
2741
+ requireCustomerFields: {
2742
+ customerName?: boolean | undefined;
2743
+ customerEmail?: boolean | undefined;
2744
+ } | null;
2763
2745
  invoice: {
2764
- expiresAt: Date;
2765
2746
  currency: string;
2766
- btcPrice: number | null;
2767
2747
  invoice: string;
2768
2748
  paymentHash: string;
2769
2749
  amountSats: number | null;
2750
+ expiresAt: Date;
2751
+ btcPrice: number | null;
2770
2752
  amountSatsReceived: number | null;
2771
2753
  fiatAmount: number | null;
2772
2754
  } | null;
2773
- } | {
2774
2755
  id: string;
2775
- type: "AMOUNT";
2776
- status: "CONFIRMED";
2777
2756
  createdAt: Date;
2778
2757
  clientSecret: string;
2779
2758
  organizationId: string;
@@ -2781,28 +2760,29 @@ export declare class MoneyDevKitClient {
2781
2760
  userMetadata: Record<string, any> | null;
2782
2761
  customFieldData: Record<string, any> | null;
2783
2762
  customerMetadata: Record<string, any> | null;
2784
- currency: string;
2785
- allowDiscountCodes: boolean;
2786
- customerName: string | null;
2787
- customerEmail: string | null;
2788
- requireCustomerFields: {
2789
- customerName?: boolean | undefined;
2790
- customerEmail?: boolean | undefined;
2791
- } | null;
2792
- successUrl: string | null;
2793
2763
  customerId: string | null;
2794
- customerExternalId: string | null;
2795
- customerIpAddress: string | null;
2796
2764
  customerBillingAddress: Record<string, any> | null;
2765
+ providedAmount: number | null;
2766
+ totalAmount: number;
2767
+ discountAmount: number;
2768
+ netAmount: number;
2769
+ taxAmount: number;
2770
+ invoiceAmountSats: number;
2771
+ invoiceScid: string | null;
2772
+ btcPrice: number;
2773
+ } | {
2774
+ currency: string;
2775
+ type: "AMOUNT";
2776
+ status: "CONFIRMED";
2797
2777
  products: {
2798
2778
  id: string;
2799
2779
  name: string;
2800
2780
  description: string | null;
2801
2781
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2802
2782
  prices: {
2783
+ priceAmount: number | null;
2803
2784
  id: string;
2804
2785
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2805
- priceAmount: number | null;
2806
2786
  minimumAmount: number | null;
2807
2787
  maximumAmount: number | null;
2808
2788
  presetAmount: number | null;
@@ -2811,28 +2791,27 @@ export declare class MoneyDevKitClient {
2811
2791
  meterId: string | null;
2812
2792
  }[];
2813
2793
  }[] | null;
2814
- providedAmount: number;
2815
- totalAmount: number;
2816
- discountAmount: number;
2817
- netAmount: number;
2818
- taxAmount: number;
2819
- invoiceAmountSats: number;
2820
- invoiceScid: string | null;
2821
- btcPrice: number;
2794
+ successUrl: string | null;
2795
+ allowDiscountCodes: boolean;
2796
+ customerName: string | null;
2797
+ customerEmail: string | null;
2798
+ customerIpAddress: string | null;
2799
+ customerExternalId: string | null;
2800
+ requireCustomerFields: {
2801
+ customerName?: boolean | undefined;
2802
+ customerEmail?: boolean | undefined;
2803
+ } | null;
2822
2804
  invoice: {
2823
- expiresAt: Date;
2824
2805
  currency: string;
2825
- btcPrice: number | null;
2826
2806
  invoice: string;
2827
2807
  paymentHash: string;
2828
2808
  amountSats: number | null;
2809
+ expiresAt: Date;
2810
+ btcPrice: number | null;
2829
2811
  amountSatsReceived: number | null;
2830
2812
  fiatAmount: number | null;
2831
2813
  } | null;
2832
- } | {
2833
2814
  id: string;
2834
- type: "TOP_UP";
2835
- status: "CONFIRMED";
2836
2815
  createdAt: Date;
2837
2816
  clientSecret: string;
2838
2817
  organizationId: string;
@@ -2840,28 +2819,29 @@ export declare class MoneyDevKitClient {
2840
2819
  userMetadata: Record<string, any> | null;
2841
2820
  customFieldData: Record<string, any> | null;
2842
2821
  customerMetadata: Record<string, any> | null;
2843
- currency: string;
2844
- allowDiscountCodes: boolean;
2845
- customerName: string | null;
2846
- customerEmail: string | null;
2847
- requireCustomerFields: {
2848
- customerName?: boolean | undefined;
2849
- customerEmail?: boolean | undefined;
2850
- } | null;
2851
- successUrl: string | null;
2852
2822
  customerId: string | null;
2853
- customerExternalId: string | null;
2854
- customerIpAddress: string | null;
2855
2823
  customerBillingAddress: Record<string, any> | null;
2824
+ providedAmount: number;
2825
+ totalAmount: number;
2826
+ discountAmount: number;
2827
+ netAmount: number;
2828
+ taxAmount: number;
2829
+ invoiceAmountSats: number;
2830
+ invoiceScid: string | null;
2831
+ btcPrice: number;
2832
+ } | {
2833
+ currency: string;
2834
+ type: "TOP_UP";
2835
+ status: "CONFIRMED";
2856
2836
  products: {
2857
2837
  id: string;
2858
2838
  name: string;
2859
2839
  description: string | null;
2860
2840
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2861
2841
  prices: {
2842
+ priceAmount: number | null;
2862
2843
  id: string;
2863
2844
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2864
- priceAmount: number | null;
2865
2845
  minimumAmount: number | null;
2866
2846
  maximumAmount: number | null;
2867
2847
  presetAmount: number | null;
@@ -2870,28 +2850,27 @@ export declare class MoneyDevKitClient {
2870
2850
  meterId: string | null;
2871
2851
  }[];
2872
2852
  }[] | null;
2873
- providedAmount: number | null;
2874
- totalAmount: number | null;
2875
- discountAmount: number | null;
2876
- netAmount: number | null;
2877
- taxAmount: number | null;
2878
- invoiceAmountSats: number | null;
2879
- invoiceScid: string | null;
2880
- btcPrice: number | null;
2853
+ successUrl: string | null;
2854
+ allowDiscountCodes: boolean;
2855
+ customerName: string | null;
2856
+ customerEmail: string | null;
2857
+ customerIpAddress: string | null;
2858
+ customerExternalId: string | null;
2859
+ requireCustomerFields: {
2860
+ customerName?: boolean | undefined;
2861
+ customerEmail?: boolean | undefined;
2862
+ } | null;
2881
2863
  invoice: {
2882
- expiresAt: Date;
2883
2864
  currency: string;
2884
- btcPrice: number | null;
2885
2865
  invoice: string;
2886
2866
  paymentHash: string;
2887
2867
  amountSats: number | null;
2868
+ expiresAt: Date;
2869
+ btcPrice: number | null;
2888
2870
  amountSatsReceived: number | null;
2889
2871
  fiatAmount: number | null;
2890
2872
  } | null;
2891
- } | {
2892
2873
  id: string;
2893
- type: "PRODUCTS";
2894
- status: "PENDING_PAYMENT";
2895
2874
  createdAt: Date;
2896
2875
  clientSecret: string;
2897
2876
  organizationId: string;
@@ -2899,28 +2878,29 @@ export declare class MoneyDevKitClient {
2899
2878
  userMetadata: Record<string, any> | null;
2900
2879
  customFieldData: Record<string, any> | null;
2901
2880
  customerMetadata: Record<string, any> | null;
2902
- currency: string;
2903
- allowDiscountCodes: boolean;
2904
- customerName: string | null;
2905
- customerEmail: string | null;
2906
- requireCustomerFields: {
2907
- customerName?: boolean | undefined;
2908
- customerEmail?: boolean | undefined;
2909
- } | null;
2910
- successUrl: string | null;
2911
2881
  customerId: string | null;
2912
- customerExternalId: string | null;
2913
- customerIpAddress: string | null;
2914
2882
  customerBillingAddress: Record<string, any> | null;
2915
- products: [{
2916
- id: string;
2883
+ providedAmount: number | null;
2884
+ totalAmount: number | null;
2885
+ discountAmount: number | null;
2886
+ netAmount: number | null;
2887
+ taxAmount: number | null;
2888
+ invoiceAmountSats: number | null;
2889
+ invoiceScid: string | null;
2890
+ btcPrice: number | null;
2891
+ } | {
2892
+ currency: string;
2893
+ type: "PRODUCTS";
2894
+ status: "PENDING_PAYMENT";
2895
+ products: [{
2896
+ id: string;
2917
2897
  name: string;
2918
2898
  description: string | null;
2919
2899
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2920
2900
  prices: {
2901
+ priceAmount: number | null;
2921
2902
  id: string;
2922
2903
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2923
- priceAmount: number | null;
2924
2904
  minimumAmount: number | null;
2925
2905
  maximumAmount: number | null;
2926
2906
  presetAmount: number | null;
@@ -2934,9 +2914,9 @@ export declare class MoneyDevKitClient {
2934
2914
  description: string | null;
2935
2915
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2936
2916
  prices: {
2917
+ priceAmount: number | null;
2937
2918
  id: string;
2938
2919
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2939
- priceAmount: number | null;
2940
2920
  minimumAmount: number | null;
2941
2921
  maximumAmount: number | null;
2942
2922
  presetAmount: number | null;
@@ -2945,28 +2925,27 @@ export declare class MoneyDevKitClient {
2945
2925
  meterId: string | null;
2946
2926
  }[];
2947
2927
  }[]];
2948
- providedAmount: number | null;
2949
- totalAmount: number;
2950
- discountAmount: number;
2951
- netAmount: number;
2952
- taxAmount: number;
2953
- invoiceAmountSats: number;
2954
- invoiceScid: string | null;
2955
- btcPrice: number;
2928
+ successUrl: string | null;
2929
+ allowDiscountCodes: boolean;
2930
+ customerName: string | null;
2931
+ customerEmail: string | null;
2932
+ customerIpAddress: string | null;
2933
+ customerExternalId: string | null;
2934
+ requireCustomerFields: {
2935
+ customerName?: boolean | undefined;
2936
+ customerEmail?: boolean | undefined;
2937
+ } | null;
2956
2938
  invoice: {
2957
- expiresAt: Date;
2958
2939
  currency: string;
2959
- btcPrice: number;
2960
2940
  invoice: string;
2961
2941
  paymentHash: string;
2962
2942
  amountSats: number;
2943
+ expiresAt: Date;
2944
+ btcPrice: number;
2963
2945
  amountSatsReceived: number | null;
2964
2946
  fiatAmount: number;
2965
2947
  };
2966
- } | {
2967
2948
  id: string;
2968
- type: "AMOUNT";
2969
- status: "PENDING_PAYMENT";
2970
2949
  createdAt: Date;
2971
2950
  clientSecret: string;
2972
2951
  organizationId: string;
@@ -2974,28 +2953,29 @@ export declare class MoneyDevKitClient {
2974
2953
  userMetadata: Record<string, any> | null;
2975
2954
  customFieldData: Record<string, any> | null;
2976
2955
  customerMetadata: Record<string, any> | null;
2977
- currency: string;
2978
- allowDiscountCodes: boolean;
2979
- customerName: string | null;
2980
- customerEmail: string | null;
2981
- requireCustomerFields: {
2982
- customerName?: boolean | undefined;
2983
- customerEmail?: boolean | undefined;
2984
- } | null;
2985
- successUrl: string | null;
2986
2956
  customerId: string | null;
2987
- customerExternalId: string | null;
2988
- customerIpAddress: string | null;
2989
2957
  customerBillingAddress: Record<string, any> | null;
2958
+ providedAmount: number | null;
2959
+ totalAmount: number;
2960
+ discountAmount: number;
2961
+ netAmount: number;
2962
+ taxAmount: number;
2963
+ invoiceAmountSats: number;
2964
+ invoiceScid: string | null;
2965
+ btcPrice: number;
2966
+ } | {
2967
+ currency: string;
2968
+ type: "AMOUNT";
2969
+ status: "PENDING_PAYMENT";
2990
2970
  products: {
2991
2971
  id: string;
2992
2972
  name: string;
2993
2973
  description: string | null;
2994
2974
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2995
2975
  prices: {
2976
+ priceAmount: number | null;
2996
2977
  id: string;
2997
2978
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2998
- priceAmount: number | null;
2999
2979
  minimumAmount: number | null;
3000
2980
  maximumAmount: number | null;
3001
2981
  presetAmount: number | null;
@@ -3004,28 +2984,27 @@ export declare class MoneyDevKitClient {
3004
2984
  meterId: string | null;
3005
2985
  }[];
3006
2986
  }[] | null;
3007
- providedAmount: number;
3008
- totalAmount: number;
3009
- discountAmount: number;
3010
- netAmount: number;
3011
- taxAmount: number;
3012
- invoiceAmountSats: number;
3013
- invoiceScid: string | null;
3014
- btcPrice: number;
2987
+ successUrl: string | null;
2988
+ allowDiscountCodes: boolean;
2989
+ customerName: string | null;
2990
+ customerEmail: string | null;
2991
+ customerIpAddress: string | null;
2992
+ customerExternalId: string | null;
2993
+ requireCustomerFields: {
2994
+ customerName?: boolean | undefined;
2995
+ customerEmail?: boolean | undefined;
2996
+ } | null;
3015
2997
  invoice: {
3016
- expiresAt: Date;
3017
2998
  currency: string;
3018
- btcPrice: number;
3019
2999
  invoice: string;
3020
3000
  paymentHash: string;
3021
3001
  amountSats: number;
3002
+ expiresAt: Date;
3003
+ btcPrice: number;
3022
3004
  amountSatsReceived: number | null;
3023
3005
  fiatAmount: number;
3024
3006
  };
3025
- } | {
3026
3007
  id: string;
3027
- type: "TOP_UP";
3028
- status: "PENDING_PAYMENT";
3029
3008
  createdAt: Date;
3030
3009
  clientSecret: string;
3031
3010
  organizationId: string;
@@ -3033,28 +3012,29 @@ export declare class MoneyDevKitClient {
3033
3012
  userMetadata: Record<string, any> | null;
3034
3013
  customFieldData: Record<string, any> | null;
3035
3014
  customerMetadata: Record<string, any> | null;
3036
- currency: string;
3037
- allowDiscountCodes: boolean;
3038
- customerName: string | null;
3039
- customerEmail: string | null;
3040
- requireCustomerFields: {
3041
- customerName?: boolean | undefined;
3042
- customerEmail?: boolean | undefined;
3043
- } | null;
3044
- successUrl: string | null;
3045
3015
  customerId: string | null;
3046
- customerExternalId: string | null;
3047
- customerIpAddress: string | null;
3048
3016
  customerBillingAddress: Record<string, any> | null;
3017
+ providedAmount: number;
3018
+ totalAmount: number;
3019
+ discountAmount: number;
3020
+ netAmount: number;
3021
+ taxAmount: number;
3022
+ invoiceAmountSats: number;
3023
+ invoiceScid: string | null;
3024
+ btcPrice: number;
3025
+ } | {
3026
+ currency: string;
3027
+ type: "TOP_UP";
3028
+ status: "PENDING_PAYMENT";
3049
3029
  products: {
3050
3030
  id: string;
3051
3031
  name: string;
3052
3032
  description: string | null;
3053
3033
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3054
3034
  prices: {
3035
+ priceAmount: number | null;
3055
3036
  id: string;
3056
3037
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3057
- priceAmount: number | null;
3058
3038
  minimumAmount: number | null;
3059
3039
  maximumAmount: number | null;
3060
3040
  presetAmount: number | null;
@@ -3063,28 +3043,27 @@ export declare class MoneyDevKitClient {
3063
3043
  meterId: string | null;
3064
3044
  }[];
3065
3045
  }[] | null;
3066
- providedAmount: number | null;
3067
- totalAmount: number | null;
3068
- discountAmount: number | null;
3069
- netAmount: number | null;
3070
- taxAmount: number | null;
3071
- invoiceAmountSats: number | null;
3072
- invoiceScid: string | null;
3073
- btcPrice: number | null;
3046
+ successUrl: string | null;
3047
+ allowDiscountCodes: boolean;
3048
+ customerName: string | null;
3049
+ customerEmail: string | null;
3050
+ customerIpAddress: string | null;
3051
+ customerExternalId: string | null;
3052
+ requireCustomerFields: {
3053
+ customerName?: boolean | undefined;
3054
+ customerEmail?: boolean | undefined;
3055
+ } | null;
3074
3056
  invoice: {
3075
- expiresAt: Date;
3076
3057
  currency: string;
3077
- btcPrice: number | null;
3078
3058
  invoice: string;
3079
3059
  paymentHash: string;
3080
3060
  amountSats: number | null;
3061
+ expiresAt: Date;
3062
+ btcPrice: number | null;
3081
3063
  amountSatsReceived: number | null;
3082
3064
  fiatAmount: number | null;
3083
3065
  };
3084
- } | {
3085
3066
  id: string;
3086
- type: "PRODUCTS";
3087
- status: "PAYMENT_RECEIVED";
3088
3067
  createdAt: Date;
3089
3068
  clientSecret: string;
3090
3069
  organizationId: string;
@@ -3092,28 +3071,29 @@ export declare class MoneyDevKitClient {
3092
3071
  userMetadata: Record<string, any> | null;
3093
3072
  customFieldData: Record<string, any> | null;
3094
3073
  customerMetadata: Record<string, any> | null;
3095
- currency: string;
3096
- allowDiscountCodes: boolean;
3097
- customerName: string | null;
3098
- customerEmail: string | null;
3099
- requireCustomerFields: {
3100
- customerName?: boolean | undefined;
3101
- customerEmail?: boolean | undefined;
3102
- } | null;
3103
- successUrl: string | null;
3104
3074
  customerId: string | null;
3105
- customerExternalId: string | null;
3106
- customerIpAddress: string | null;
3107
3075
  customerBillingAddress: Record<string, any> | null;
3076
+ providedAmount: number | null;
3077
+ totalAmount: number | null;
3078
+ discountAmount: number | null;
3079
+ netAmount: number | null;
3080
+ taxAmount: number | null;
3081
+ invoiceAmountSats: number | null;
3082
+ invoiceScid: string | null;
3083
+ btcPrice: number | null;
3084
+ } | {
3085
+ currency: string;
3086
+ type: "PRODUCTS";
3087
+ status: "PAYMENT_RECEIVED";
3108
3088
  products: [{
3109
3089
  id: string;
3110
3090
  name: string;
3111
3091
  description: string | null;
3112
3092
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3113
3093
  prices: {
3094
+ priceAmount: number | null;
3114
3095
  id: string;
3115
3096
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3116
- priceAmount: number | null;
3117
3097
  minimumAmount: number | null;
3118
3098
  maximumAmount: number | null;
3119
3099
  presetAmount: number | null;
@@ -3127,9 +3107,9 @@ export declare class MoneyDevKitClient {
3127
3107
  description: string | null;
3128
3108
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3129
3109
  prices: {
3110
+ priceAmount: number | null;
3130
3111
  id: string;
3131
3112
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3132
- priceAmount: number | null;
3133
3113
  minimumAmount: number | null;
3134
3114
  maximumAmount: number | null;
3135
3115
  presetAmount: number | null;
@@ -3138,28 +3118,27 @@ export declare class MoneyDevKitClient {
3138
3118
  meterId: string | null;
3139
3119
  }[];
3140
3120
  }[]];
3141
- providedAmount: number | null;
3142
- totalAmount: number;
3143
- discountAmount: number;
3144
- netAmount: number;
3145
- taxAmount: number;
3146
- invoiceAmountSats: number;
3147
- invoiceScid: string | null;
3148
- btcPrice: number;
3121
+ successUrl: string | null;
3122
+ allowDiscountCodes: boolean;
3123
+ customerName: string | null;
3124
+ customerEmail: string | null;
3125
+ customerIpAddress: string | null;
3126
+ customerExternalId: string | null;
3127
+ requireCustomerFields: {
3128
+ customerName?: boolean | undefined;
3129
+ customerEmail?: boolean | undefined;
3130
+ } | null;
3149
3131
  invoice: {
3150
- expiresAt: Date;
3151
3132
  currency: string;
3152
- btcPrice: number;
3153
3133
  invoice: string;
3154
3134
  paymentHash: string;
3155
3135
  amountSats: number;
3136
+ expiresAt: Date;
3137
+ btcPrice: number;
3156
3138
  amountSatsReceived: number;
3157
3139
  fiatAmount: number;
3158
3140
  };
3159
- } | {
3160
3141
  id: string;
3161
- type: "AMOUNT";
3162
- status: "PAYMENT_RECEIVED";
3163
3142
  createdAt: Date;
3164
3143
  clientSecret: string;
3165
3144
  organizationId: string;
@@ -3167,28 +3146,29 @@ export declare class MoneyDevKitClient {
3167
3146
  userMetadata: Record<string, any> | null;
3168
3147
  customFieldData: Record<string, any> | null;
3169
3148
  customerMetadata: Record<string, any> | null;
3170
- currency: string;
3171
- allowDiscountCodes: boolean;
3172
- customerName: string | null;
3173
- customerEmail: string | null;
3174
- requireCustomerFields: {
3175
- customerName?: boolean | undefined;
3176
- customerEmail?: boolean | undefined;
3177
- } | null;
3178
- successUrl: string | null;
3179
3149
  customerId: string | null;
3180
- customerExternalId: string | null;
3181
- customerIpAddress: string | null;
3182
3150
  customerBillingAddress: Record<string, any> | null;
3151
+ providedAmount: number | null;
3152
+ totalAmount: number;
3153
+ discountAmount: number;
3154
+ netAmount: number;
3155
+ taxAmount: number;
3156
+ invoiceAmountSats: number;
3157
+ invoiceScid: string | null;
3158
+ btcPrice: number;
3159
+ } | {
3160
+ currency: string;
3161
+ type: "AMOUNT";
3162
+ status: "PAYMENT_RECEIVED";
3183
3163
  products: {
3184
3164
  id: string;
3185
3165
  name: string;
3186
3166
  description: string | null;
3187
3167
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3188
3168
  prices: {
3169
+ priceAmount: number | null;
3189
3170
  id: string;
3190
3171
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3191
- priceAmount: number | null;
3192
3172
  minimumAmount: number | null;
3193
3173
  maximumAmount: number | null;
3194
3174
  presetAmount: number | null;
@@ -3197,28 +3177,27 @@ export declare class MoneyDevKitClient {
3197
3177
  meterId: string | null;
3198
3178
  }[];
3199
3179
  }[] | null;
3200
- providedAmount: number;
3201
- totalAmount: number;
3202
- discountAmount: number;
3203
- netAmount: number;
3204
- taxAmount: number;
3205
- invoiceAmountSats: number;
3206
- invoiceScid: string | null;
3207
- btcPrice: number;
3180
+ successUrl: string | null;
3181
+ allowDiscountCodes: boolean;
3182
+ customerName: string | null;
3183
+ customerEmail: string | null;
3184
+ customerIpAddress: string | null;
3185
+ customerExternalId: string | null;
3186
+ requireCustomerFields: {
3187
+ customerName?: boolean | undefined;
3188
+ customerEmail?: boolean | undefined;
3189
+ } | null;
3208
3190
  invoice: {
3209
- expiresAt: Date;
3210
3191
  currency: string;
3211
- btcPrice: number;
3212
3192
  invoice: string;
3213
3193
  paymentHash: string;
3214
3194
  amountSats: number;
3195
+ expiresAt: Date;
3196
+ btcPrice: number;
3215
3197
  amountSatsReceived: number;
3216
3198
  fiatAmount: number;
3217
3199
  };
3218
- } | {
3219
3200
  id: string;
3220
- type: "TOP_UP";
3221
- status: "PAYMENT_RECEIVED";
3222
3201
  createdAt: Date;
3223
3202
  clientSecret: string;
3224
3203
  organizationId: string;
@@ -3226,28 +3205,29 @@ export declare class MoneyDevKitClient {
3226
3205
  userMetadata: Record<string, any> | null;
3227
3206
  customFieldData: Record<string, any> | null;
3228
3207
  customerMetadata: Record<string, any> | null;
3229
- currency: string;
3230
- allowDiscountCodes: boolean;
3231
- customerName: string | null;
3232
- customerEmail: string | null;
3233
- requireCustomerFields: {
3234
- customerName?: boolean | undefined;
3235
- customerEmail?: boolean | undefined;
3236
- } | null;
3237
- successUrl: string | null;
3238
3208
  customerId: string | null;
3239
- customerExternalId: string | null;
3240
- customerIpAddress: string | null;
3241
3209
  customerBillingAddress: Record<string, any> | null;
3210
+ providedAmount: number;
3211
+ totalAmount: number;
3212
+ discountAmount: number;
3213
+ netAmount: number;
3214
+ taxAmount: number;
3215
+ invoiceAmountSats: number;
3216
+ invoiceScid: string | null;
3217
+ btcPrice: number;
3218
+ } | {
3219
+ currency: string;
3220
+ type: "TOP_UP";
3221
+ status: "PAYMENT_RECEIVED";
3242
3222
  products: {
3243
3223
  id: string;
3244
3224
  name: string;
3245
3225
  description: string | null;
3246
3226
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3247
3227
  prices: {
3228
+ priceAmount: number | null;
3248
3229
  id: string;
3249
3230
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3250
- priceAmount: number | null;
3251
3231
  minimumAmount: number | null;
3252
3232
  maximumAmount: number | null;
3253
3233
  presetAmount: number | null;
@@ -3256,28 +3236,27 @@ export declare class MoneyDevKitClient {
3256
3236
  meterId: string | null;
3257
3237
  }[];
3258
3238
  }[] | null;
3259
- providedAmount: number | null;
3260
- totalAmount: number;
3261
- discountAmount: number;
3262
- netAmount: number;
3263
- taxAmount: number;
3264
- invoiceAmountSats: number;
3265
- invoiceScid: string | null;
3266
- btcPrice: number;
3239
+ successUrl: string | null;
3240
+ allowDiscountCodes: boolean;
3241
+ customerName: string | null;
3242
+ customerEmail: string | null;
3243
+ customerIpAddress: string | null;
3244
+ customerExternalId: string | null;
3245
+ requireCustomerFields: {
3246
+ customerName?: boolean | undefined;
3247
+ customerEmail?: boolean | undefined;
3248
+ } | null;
3267
3249
  invoice: {
3268
- expiresAt: Date;
3269
3250
  currency: string;
3270
- btcPrice: number;
3271
3251
  invoice: string;
3272
3252
  paymentHash: string;
3273
3253
  amountSats: number;
3254
+ expiresAt: Date;
3255
+ btcPrice: number;
3274
3256
  amountSatsReceived: number;
3275
3257
  fiatAmount: number;
3276
3258
  };
3277
- } | {
3278
3259
  id: string;
3279
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
3280
- status: "EXPIRED";
3281
3260
  createdAt: Date;
3282
3261
  clientSecret: string;
3283
3262
  organizationId: string;
@@ -3285,28 +3264,29 @@ export declare class MoneyDevKitClient {
3285
3264
  userMetadata: Record<string, any> | null;
3286
3265
  customFieldData: Record<string, any> | null;
3287
3266
  customerMetadata: Record<string, any> | null;
3288
- currency: string;
3289
- allowDiscountCodes: boolean;
3290
- customerName: string | null;
3291
- customerEmail: string | null;
3292
- requireCustomerFields: {
3293
- customerName?: boolean | undefined;
3294
- customerEmail?: boolean | undefined;
3295
- } | null;
3296
- successUrl: string | null;
3297
3267
  customerId: string | null;
3298
- customerExternalId: string | null;
3299
- customerIpAddress: string | null;
3300
3268
  customerBillingAddress: Record<string, any> | null;
3269
+ providedAmount: number | null;
3270
+ totalAmount: number;
3271
+ discountAmount: number;
3272
+ netAmount: number;
3273
+ taxAmount: number;
3274
+ invoiceAmountSats: number;
3275
+ invoiceScid: string | null;
3276
+ btcPrice: number;
3277
+ } | {
3278
+ currency: string;
3279
+ type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
3280
+ status: "EXPIRED";
3301
3281
  products: {
3302
3282
  id: string;
3303
3283
  name: string;
3304
3284
  description: string | null;
3305
3285
  recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
3306
3286
  prices: {
3287
+ priceAmount: number | null;
3307
3288
  id: string;
3308
3289
  amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
3309
- priceAmount: number | null;
3310
3290
  minimumAmount: number | null;
3311
3291
  maximumAmount: number | null;
3312
3292
  presetAmount: number | null;
@@ -3315,24 +3295,44 @@ export declare class MoneyDevKitClient {
3315
3295
  meterId: string | null;
3316
3296
  }[];
3317
3297
  }[] | null;
3318
- providedAmount: number | null;
3319
- totalAmount: number | null;
3320
- discountAmount: number | null;
3321
- netAmount: number | null;
3322
- taxAmount: number | null;
3323
- invoiceAmountSats: number | null;
3324
- invoiceScid: string | null;
3325
- btcPrice: number | null;
3298
+ successUrl: string | null;
3299
+ allowDiscountCodes: boolean;
3300
+ customerName: string | null;
3301
+ customerEmail: string | null;
3302
+ customerIpAddress: string | null;
3303
+ customerExternalId: string | null;
3304
+ requireCustomerFields: {
3305
+ customerName?: boolean | undefined;
3306
+ customerEmail?: boolean | undefined;
3307
+ } | null;
3326
3308
  invoice: {
3327
- expiresAt: Date;
3328
3309
  currency: string;
3329
- btcPrice: number | null;
3330
3310
  invoice: string;
3331
3311
  paymentHash: string;
3332
3312
  amountSats: number | null;
3313
+ expiresAt: Date;
3314
+ btcPrice: number | null;
3333
3315
  amountSatsReceived: number | null;
3334
3316
  fiatAmount: number | null;
3335
3317
  } | null;
3318
+ id: string;
3319
+ createdAt: Date;
3320
+ clientSecret: string;
3321
+ organizationId: string;
3322
+ expiresAt: Date;
3323
+ userMetadata: Record<string, any> | null;
3324
+ customFieldData: Record<string, any> | null;
3325
+ customerMetadata: Record<string, any> | null;
3326
+ customerId: string | null;
3327
+ customerBillingAddress: Record<string, any> | null;
3328
+ providedAmount: number | null;
3329
+ totalAmount: number | null;
3330
+ discountAmount: number | null;
3331
+ netAmount: number | null;
3332
+ taxAmount: number | null;
3333
+ invoiceAmountSats: number | null;
3334
+ invoiceScid: string | null;
3335
+ btcPrice: number | null;
3336
3336
  }>;
3337
3337
  paymentReceived: (params: Parameters<typeof this.client.checkout.paymentReceived>[0]) => Promise<{
3338
3338
  ok: boolean;