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