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