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