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