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