@blindpay/node 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-client-Cw2mNJeR.d.mts → api-client-B7VQkM_4.d.mts} +96 -35
- package/dist/{api-client-Cw2mNJeR.d.ts → api-client-B7VQkM_4.d.ts} +96 -35
- package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
- package/dist/{chunk-3QQCDR3E.mjs → chunk-VBZHAPK7.mjs} +8 -0
- package/dist/{chunk-OTRFWEEC.mjs → chunk-VRA5HP7F.mjs} +4 -0
- package/dist/{chunk-4DVSRRBP.mjs → chunk-WH2VNZE7.mjs} +25 -22
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +50 -25
- package/dist/index.mjs +8 -8
- package/dist/resources/api-keys/api-keys.test.js +50 -25
- package/dist/resources/api-keys/api-keys.test.mjs +5 -5
- package/dist/resources/api-keys/index.d.mts +1 -1
- package/dist/resources/api-keys/index.d.ts +1 -1
- package/dist/resources/available/available.test.js +50 -25
- package/dist/resources/available/available.test.mjs +5 -5
- package/dist/resources/available/index.d.mts +1 -1
- package/dist/resources/available/index.d.ts +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +50 -25
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -5
- package/dist/resources/bank-accounts/index.d.mts +2 -4
- package/dist/resources/bank-accounts/index.d.ts +2 -4
- package/dist/resources/instances/index.d.mts +1 -1
- package/dist/resources/instances/index.d.ts +1 -1
- package/dist/resources/instances/instances.test.js +50 -25
- package/dist/resources/instances/instances.test.mjs +5 -5
- package/dist/resources/partner-fees/index.d.mts +1 -1
- package/dist/resources/partner-fees/index.d.ts +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +50 -25
- package/dist/resources/partner-fees/partner-fees.test.mjs +5 -5
- package/dist/resources/payins/index.d.mts +9 -33
- package/dist/resources/payins/index.d.ts +9 -33
- package/dist/resources/payins/payins-quotes.test.js +100 -25
- package/dist/resources/payins/payins-quotes.test.mjs +55 -5
- package/dist/resources/payins/payins.test.js +164 -52
- package/dist/resources/payins/payins.test.mjs +119 -32
- package/dist/resources/payins/quotes.d.mts +38 -2
- package/dist/resources/payins/quotes.d.ts +38 -2
- package/dist/resources/payins/quotes.js +4 -0
- package/dist/resources/payins/quotes.mjs +1 -1
- package/dist/resources/payouts/index.d.mts +42 -17
- package/dist/resources/payouts/index.d.ts +42 -17
- package/dist/resources/payouts/index.js +8 -0
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +162 -27
- package/dist/resources/payouts/payouts.test.mjs +117 -7
- package/dist/resources/quotes/index.d.mts +1 -1
- package/dist/resources/quotes/index.d.ts +1 -1
- package/dist/resources/quotes/quotes.test.js +50 -25
- package/dist/resources/quotes/quotes.test.mjs +5 -5
- package/dist/resources/receivers/index.d.mts +9 -7
- package/dist/resources/receivers/index.d.ts +9 -7
- package/dist/resources/receivers/receivers.test.js +57 -33
- package/dist/resources/receivers/receivers.test.mjs +12 -13
- package/dist/resources/terms-of-service/index.d.mts +1 -1
- package/dist/resources/terms-of-service/index.d.ts +1 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +50 -25
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +5 -5
- package/dist/resources/virtual-accounts/index.d.mts +22 -7
- package/dist/resources/virtual-accounts/index.d.ts +22 -7
- package/dist/resources/virtual-accounts/index.js +20 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +169 -44
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +124 -24
- package/dist/resources/wallets/blockchain.d.mts +1 -1
- package/dist/resources/wallets/blockchain.d.ts +1 -1
- package/dist/resources/wallets/blockchain.test.js +50 -25
- package/dist/resources/wallets/blockchain.test.mjs +5 -5
- package/dist/resources/wallets/offramp.d.mts +1 -1
- package/dist/resources/wallets/offramp.d.ts +1 -1
- package/dist/resources/wallets/offramp.test.js +50 -25
- package/dist/resources/wallets/offramp.test.mjs +5 -5
- package/dist/resources/webhooks/index.d.mts +1 -1
- package/dist/resources/webhooks/index.d.ts +1 -1
- package/dist/resources/webhooks/webhooks.test.js +50 -25
- package/dist/resources/webhooks/webhooks.test.mjs +5 -5
- package/package.json +6 -2
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-WH2VNZE7.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
16
|
import "../../chunk-67XECGMJ.mjs";
|
|
17
17
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
19
19
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
20
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-VRA5HP7F.mjs";
|
|
22
|
+
import "../../chunk-VBZHAPK7.mjs";
|
|
23
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
|
-
import "../../chunk-U7CKUUO7.mjs";
|
|
25
24
|
import "../../chunk-CPOSU35L.mjs";
|
|
25
|
+
import "../../chunk-U7CKUUO7.mjs";
|
|
26
26
|
import "../../chunk-B5T7AQLH.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__async,
|
|
@@ -53,20 +53,38 @@ var require_payins_test = __commonJS({
|
|
|
53
53
|
tracking_transaction: {
|
|
54
54
|
step: "processing",
|
|
55
55
|
status: "failed",
|
|
56
|
-
|
|
57
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
56
|
+
external_id: "12345678",
|
|
57
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
58
|
+
sender_name: "John Doe Smith",
|
|
59
|
+
sender_tax_id: "123.456.789-10",
|
|
60
|
+
sender_bank_code: "00416968",
|
|
61
|
+
sender_account_number: "1234567890",
|
|
62
|
+
trace_number: "1234567890",
|
|
63
|
+
transaction_reference: "1234567890",
|
|
64
|
+
description: "Payment from John Doe Smith",
|
|
65
|
+
pse_instruction: {
|
|
66
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
67
|
+
fid: "fid_abc123",
|
|
68
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
69
|
+
tax_id: "1234567890",
|
|
70
|
+
document_type: "CC",
|
|
71
|
+
phone: "+573001234567",
|
|
72
|
+
email: "juan@example.com",
|
|
73
|
+
bank_code: "1007"
|
|
74
|
+
},
|
|
75
|
+
transfers_instruction: {
|
|
76
|
+
account: "0000003100012389237485",
|
|
77
|
+
type: "CVU",
|
|
78
|
+
tax_id: "20123456783"
|
|
79
|
+
}
|
|
58
80
|
},
|
|
59
81
|
tracking_payment: {
|
|
60
82
|
step: "on_hold",
|
|
61
83
|
provider_name: "blockchain",
|
|
62
|
-
provider_transaction_id: "tx_123456789",
|
|
63
|
-
provider_status: "confirmed",
|
|
64
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
65
84
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
66
85
|
},
|
|
67
86
|
tracking_complete: {
|
|
68
87
|
step: "on_hold",
|
|
69
|
-
status: "completed",
|
|
70
88
|
transaction_hash: "0x123...890",
|
|
71
89
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
72
90
|
},
|
|
@@ -127,8 +145,8 @@ var require_payins_test = __commonJS({
|
|
|
127
145
|
],
|
|
128
146
|
pagination: {
|
|
129
147
|
has_more: true,
|
|
130
|
-
next_page:
|
|
131
|
-
prev_page:
|
|
148
|
+
next_page: "pi_123",
|
|
149
|
+
prev_page: "pi_123"
|
|
132
150
|
}
|
|
133
151
|
};
|
|
134
152
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPayins), {
|
|
@@ -153,20 +171,38 @@ var require_payins_test = __commonJS({
|
|
|
153
171
|
tracking_transaction: {
|
|
154
172
|
step: "processing",
|
|
155
173
|
status: "failed",
|
|
156
|
-
|
|
157
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
174
|
+
external_id: "12345678",
|
|
175
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
176
|
+
sender_name: "John Doe Smith",
|
|
177
|
+
sender_tax_id: "123.456.789-10",
|
|
178
|
+
sender_bank_code: "00416968",
|
|
179
|
+
sender_account_number: "1234567890",
|
|
180
|
+
trace_number: "1234567890",
|
|
181
|
+
transaction_reference: "1234567890",
|
|
182
|
+
description: "Payment from John Doe Smith",
|
|
183
|
+
pse_instruction: {
|
|
184
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
185
|
+
fid: "fid_abc123",
|
|
186
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
187
|
+
tax_id: "1234567890",
|
|
188
|
+
document_type: "CC",
|
|
189
|
+
phone: "+573001234567",
|
|
190
|
+
email: "juan@example.com",
|
|
191
|
+
bank_code: "1007"
|
|
192
|
+
},
|
|
193
|
+
transfers_instruction: {
|
|
194
|
+
account: "0000003100012389237485",
|
|
195
|
+
type: "CVU",
|
|
196
|
+
tax_id: "20123456783"
|
|
197
|
+
}
|
|
158
198
|
},
|
|
159
199
|
tracking_payment: {
|
|
160
200
|
step: "on_hold",
|
|
161
201
|
provider_name: "blockchain",
|
|
162
|
-
provider_transaction_id: "tx_123456789",
|
|
163
|
-
provider_status: "confirmed",
|
|
164
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
165
202
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
166
203
|
},
|
|
167
204
|
tracking_complete: {
|
|
168
205
|
step: "on_hold",
|
|
169
|
-
status: "completed",
|
|
170
206
|
transaction_hash: "0x123...890",
|
|
171
207
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
172
208
|
},
|
|
@@ -254,7 +290,22 @@ var require_payins_test = __commonJS({
|
|
|
254
290
|
sender_account_number: "1234567890",
|
|
255
291
|
trace_number: "1234567890",
|
|
256
292
|
transaction_reference: "1234567890",
|
|
257
|
-
description: "Payment from John Doe Smith"
|
|
293
|
+
description: "Payment from John Doe Smith",
|
|
294
|
+
pse_instruction: {
|
|
295
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
296
|
+
fid: "fid_abc123",
|
|
297
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
298
|
+
tax_id: "1234567890",
|
|
299
|
+
document_type: "CC",
|
|
300
|
+
phone: "+573001234567",
|
|
301
|
+
email: "juan@example.com",
|
|
302
|
+
bank_code: "1007"
|
|
303
|
+
},
|
|
304
|
+
transfers_instruction: {
|
|
305
|
+
account: "0000003100012389237485",
|
|
306
|
+
type: "CVU",
|
|
307
|
+
tax_id: "20123456783"
|
|
308
|
+
}
|
|
258
309
|
},
|
|
259
310
|
tracking_payment: {
|
|
260
311
|
step: "on_hold",
|
|
@@ -343,20 +394,38 @@ var require_payins_test = __commonJS({
|
|
|
343
394
|
tracking_transaction: {
|
|
344
395
|
step: "processing",
|
|
345
396
|
status: "failed",
|
|
346
|
-
|
|
347
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
397
|
+
external_id: "12345678",
|
|
398
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
399
|
+
sender_name: "John Doe Smith",
|
|
400
|
+
sender_tax_id: "123.456.789-10",
|
|
401
|
+
sender_bank_code: "00416968",
|
|
402
|
+
sender_account_number: "1234567890",
|
|
403
|
+
trace_number: "1234567890",
|
|
404
|
+
transaction_reference: "1234567890",
|
|
405
|
+
description: "Payment from John Doe Smith",
|
|
406
|
+
pse_instruction: {
|
|
407
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
408
|
+
fid: "fid_abc123",
|
|
409
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
410
|
+
tax_id: "1234567890",
|
|
411
|
+
document_type: "CC",
|
|
412
|
+
phone: "+573001234567",
|
|
413
|
+
email: "juan@example.com",
|
|
414
|
+
bank_code: "1007"
|
|
415
|
+
},
|
|
416
|
+
transfers_instruction: {
|
|
417
|
+
account: "0000003100012389237485",
|
|
418
|
+
type: "CVU",
|
|
419
|
+
tax_id: "20123456783"
|
|
420
|
+
}
|
|
348
421
|
},
|
|
349
422
|
tracking_payment: {
|
|
350
423
|
step: "on_hold",
|
|
351
424
|
provider_name: "blockchain",
|
|
352
|
-
provider_transaction_id: "tx_123456789",
|
|
353
|
-
provider_status: "confirmed",
|
|
354
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
355
425
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
356
426
|
},
|
|
357
427
|
tracking_complete: {
|
|
358
428
|
step: "on_hold",
|
|
359
|
-
status: "completed",
|
|
360
429
|
transaction_hash: "0x123...890",
|
|
361
430
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
362
431
|
},
|
|
@@ -435,23 +504,41 @@ var require_payins_test = __commonJS({
|
|
|
435
504
|
clabe: "014027000000000008",
|
|
436
505
|
tracking_complete: {
|
|
437
506
|
step: "on_hold",
|
|
438
|
-
status: "completed",
|
|
439
507
|
transaction_hash: "0x123...890",
|
|
440
508
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
441
509
|
},
|
|
442
510
|
tracking_payment: {
|
|
443
511
|
step: "on_hold",
|
|
444
512
|
provider_name: "blockchain",
|
|
445
|
-
provider_transaction_id: "tx_123456789",
|
|
446
|
-
provider_status: "confirmed",
|
|
447
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
448
513
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
449
514
|
},
|
|
450
515
|
tracking_transaction: {
|
|
451
516
|
step: "processing",
|
|
452
517
|
status: "failed",
|
|
453
|
-
|
|
454
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
518
|
+
external_id: "12345678",
|
|
519
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
520
|
+
sender_name: "John Doe Smith",
|
|
521
|
+
sender_tax_id: "123.456.789-10",
|
|
522
|
+
sender_bank_code: "00416968",
|
|
523
|
+
sender_account_number: "1234567890",
|
|
524
|
+
trace_number: "1234567890",
|
|
525
|
+
transaction_reference: "1234567890",
|
|
526
|
+
description: "Payment from John Doe Smith",
|
|
527
|
+
pse_instruction: {
|
|
528
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
529
|
+
fid: "fid_abc123",
|
|
530
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
531
|
+
tax_id: "1234567890",
|
|
532
|
+
document_type: "CC",
|
|
533
|
+
phone: "+573001234567",
|
|
534
|
+
email: "juan@example.com",
|
|
535
|
+
bank_code: "1007"
|
|
536
|
+
},
|
|
537
|
+
transfers_instruction: {
|
|
538
|
+
account: "0000003100012389237485",
|
|
539
|
+
type: "CVU",
|
|
540
|
+
tax_id: "20123456783"
|
|
541
|
+
}
|
|
455
542
|
},
|
|
456
543
|
tracking_partner_fee: {
|
|
457
544
|
step: "on_hold",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient,
|
|
1
|
+
import { I as InternalApiClient, i as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, j as Currency, P as PaginationParams, h as PaginationMetadata } from '../../api-client-B7VQkM_4.mjs';
|
|
2
2
|
|
|
3
3
|
type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
|
|
4
4
|
type CreatePayinQuoteInput = {
|
|
@@ -63,10 +63,46 @@ type GetPayinQuoteResponse = {
|
|
|
63
63
|
created_at: string;
|
|
64
64
|
updated_at: string;
|
|
65
65
|
};
|
|
66
|
+
type ListPayinQuotesInput = PaginationParams & {
|
|
67
|
+
receiver_id?: string;
|
|
68
|
+
blockchain_wallet_id?: string;
|
|
69
|
+
payment_method?: PayinPaymentMethod;
|
|
70
|
+
token?: StablecoinToken;
|
|
71
|
+
};
|
|
72
|
+
type ListPayinQuotesResponse = {
|
|
73
|
+
data: Array<{
|
|
74
|
+
id: string;
|
|
75
|
+
payment_method: PayinPaymentMethod;
|
|
76
|
+
token: StablecoinToken;
|
|
77
|
+
request_amount: number;
|
|
78
|
+
cover_fees: boolean;
|
|
79
|
+
currency_type: CurrencyType;
|
|
80
|
+
expires_at: number | null;
|
|
81
|
+
currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
|
|
82
|
+
commercial_quotation: number | null;
|
|
83
|
+
blindpay_quotation: number | null;
|
|
84
|
+
receiver_amount: number;
|
|
85
|
+
sender_amount: number;
|
|
86
|
+
partner_fee_amount: number | null;
|
|
87
|
+
flat_fee: number | null;
|
|
88
|
+
total_fee_amount: number | null;
|
|
89
|
+
payer_rules: {
|
|
90
|
+
pix_allowed_tax_ids: string[];
|
|
91
|
+
} | null;
|
|
92
|
+
blockchain_wallet_id: string;
|
|
93
|
+
instance_id: string;
|
|
94
|
+
partner_fee_id: string | null;
|
|
95
|
+
billing_fee: number | null;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}>;
|
|
99
|
+
pagination: PaginationMetadata;
|
|
100
|
+
};
|
|
66
101
|
declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
|
|
67
102
|
create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
|
|
68
103
|
getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
|
|
69
104
|
get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
|
|
105
|
+
list(params?: ListPayinQuotesInput): Promise<BlindpayApiResponse<ListPayinQuotesResponse>>;
|
|
70
106
|
};
|
|
71
107
|
|
|
72
|
-
export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type PayinPaymentMethod, createPayinQuotesResource };
|
|
108
|
+
export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type ListPayinQuotesInput, type ListPayinQuotesResponse, type PayinPaymentMethod, createPayinQuotesResource };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient,
|
|
1
|
+
import { I as InternalApiClient, i as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, j as Currency, P as PaginationParams, h as PaginationMetadata } from '../../api-client-B7VQkM_4.js';
|
|
2
2
|
|
|
3
3
|
type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
|
|
4
4
|
type CreatePayinQuoteInput = {
|
|
@@ -63,10 +63,46 @@ type GetPayinQuoteResponse = {
|
|
|
63
63
|
created_at: string;
|
|
64
64
|
updated_at: string;
|
|
65
65
|
};
|
|
66
|
+
type ListPayinQuotesInput = PaginationParams & {
|
|
67
|
+
receiver_id?: string;
|
|
68
|
+
blockchain_wallet_id?: string;
|
|
69
|
+
payment_method?: PayinPaymentMethod;
|
|
70
|
+
token?: StablecoinToken;
|
|
71
|
+
};
|
|
72
|
+
type ListPayinQuotesResponse = {
|
|
73
|
+
data: Array<{
|
|
74
|
+
id: string;
|
|
75
|
+
payment_method: PayinPaymentMethod;
|
|
76
|
+
token: StablecoinToken;
|
|
77
|
+
request_amount: number;
|
|
78
|
+
cover_fees: boolean;
|
|
79
|
+
currency_type: CurrencyType;
|
|
80
|
+
expires_at: number | null;
|
|
81
|
+
currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
|
|
82
|
+
commercial_quotation: number | null;
|
|
83
|
+
blindpay_quotation: number | null;
|
|
84
|
+
receiver_amount: number;
|
|
85
|
+
sender_amount: number;
|
|
86
|
+
partner_fee_amount: number | null;
|
|
87
|
+
flat_fee: number | null;
|
|
88
|
+
total_fee_amount: number | null;
|
|
89
|
+
payer_rules: {
|
|
90
|
+
pix_allowed_tax_ids: string[];
|
|
91
|
+
} | null;
|
|
92
|
+
blockchain_wallet_id: string;
|
|
93
|
+
instance_id: string;
|
|
94
|
+
partner_fee_id: string | null;
|
|
95
|
+
billing_fee: number | null;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}>;
|
|
99
|
+
pagination: PaginationMetadata;
|
|
100
|
+
};
|
|
66
101
|
declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
|
|
67
102
|
create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
|
|
68
103
|
getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
|
|
69
104
|
get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
|
|
105
|
+
list(params?: ListPayinQuotesInput): Promise<BlindpayApiResponse<ListPayinQuotesResponse>>;
|
|
70
106
|
};
|
|
71
107
|
|
|
72
|
-
export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type PayinPaymentMethod, createPayinQuotesResource };
|
|
108
|
+
export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type ListPayinQuotesInput, type ListPayinQuotesResponse, type PayinPaymentMethod, createPayinQuotesResource };
|
|
@@ -49,6 +49,10 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
49
49
|
},
|
|
50
50
|
get(id) {
|
|
51
51
|
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
52
|
+
},
|
|
53
|
+
list(params) {
|
|
54
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
55
|
+
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
52
56
|
}
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus,
|
|
1
|
+
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, k as PayoutTrackingTransaction, l as PayoutTrackingPayment, m as PayoutTrackingLiquidity, n as PayoutTrackingComplete, o as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, p as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, h as PaginationMetadata } from '../../api-client-B7VQkM_4.mjs';
|
|
2
2
|
|
|
3
3
|
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
4
4
|
type Payout = {
|
|
@@ -9,11 +9,11 @@ type Payout = {
|
|
|
9
9
|
signed_transaction: string;
|
|
10
10
|
quote_id: string;
|
|
11
11
|
instance_id: string;
|
|
12
|
-
tracking_transaction:
|
|
13
|
-
tracking_payment:
|
|
14
|
-
tracking_liquidity:
|
|
15
|
-
tracking_complete:
|
|
16
|
-
tracking_partner_fee:
|
|
12
|
+
tracking_transaction: PayoutTrackingTransaction;
|
|
13
|
+
tracking_payment: PayoutTrackingPayment;
|
|
14
|
+
tracking_liquidity: PayoutTrackingLiquidity;
|
|
15
|
+
tracking_complete: PayoutTrackingComplete;
|
|
16
|
+
tracking_partner_fee: PayoutTrackingPartnerFee;
|
|
17
17
|
created_at: string;
|
|
18
18
|
updated_at: string;
|
|
19
19
|
image_url: string;
|
|
@@ -105,11 +105,11 @@ type CreateStellarPayoutResponse = {
|
|
|
105
105
|
id: string;
|
|
106
106
|
status: TransactionStatus;
|
|
107
107
|
sender_wallet_address: string;
|
|
108
|
-
tracking_complete?:
|
|
109
|
-
tracking_payment?:
|
|
110
|
-
tracking_transaction?:
|
|
111
|
-
tracking_partner_fee?:
|
|
112
|
-
tracking_liquidity?:
|
|
108
|
+
tracking_complete?: PayoutTrackingComplete;
|
|
109
|
+
tracking_payment?: PayoutTrackingPayment;
|
|
110
|
+
tracking_transaction?: PayoutTrackingTransaction;
|
|
111
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee;
|
|
112
|
+
tracking_liquidity?: PayoutTrackingLiquidity;
|
|
113
113
|
receiver_id: string;
|
|
114
114
|
};
|
|
115
115
|
type CreateEvmPayoutInput = {
|
|
@@ -120,13 +120,36 @@ type CreateEvmPayoutResponse = {
|
|
|
120
120
|
id: string;
|
|
121
121
|
status: TransactionStatus;
|
|
122
122
|
sender_wallet_address: string;
|
|
123
|
-
tracking_complete?:
|
|
124
|
-
tracking_payment?:
|
|
125
|
-
tracking_transaction?:
|
|
126
|
-
tracking_partner_fee?:
|
|
127
|
-
tracking_liquidity?:
|
|
123
|
+
tracking_complete?: PayoutTrackingComplete;
|
|
124
|
+
tracking_payment?: PayoutTrackingPayment;
|
|
125
|
+
tracking_transaction?: PayoutTrackingTransaction;
|
|
126
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee;
|
|
127
|
+
tracking_liquidity?: PayoutTrackingLiquidity;
|
|
128
128
|
receiver_id: string;
|
|
129
129
|
};
|
|
130
|
+
type AuthorizeSolanaInput = {
|
|
131
|
+
quote_id: string;
|
|
132
|
+
sender_wallet_address: string;
|
|
133
|
+
};
|
|
134
|
+
type AuthorizeSolanaResponse = {
|
|
135
|
+
serialized_transaction: string;
|
|
136
|
+
};
|
|
137
|
+
type CreateSolanaPayoutInput = {
|
|
138
|
+
quote_id: string;
|
|
139
|
+
sender_wallet_address: string;
|
|
140
|
+
signed_transaction: string | null;
|
|
141
|
+
};
|
|
142
|
+
type CreateSolanaPayoutResponse = {
|
|
143
|
+
id: string;
|
|
144
|
+
status: TransactionStatus;
|
|
145
|
+
sender_wallet_address: string;
|
|
146
|
+
tracking_complete: PayoutTrackingComplete;
|
|
147
|
+
tracking_payment: PayoutTrackingPayment;
|
|
148
|
+
tracking_transaction: PayoutTrackingTransaction;
|
|
149
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee | null;
|
|
150
|
+
tracking_liquidity?: PayoutTrackingLiquidity | null;
|
|
151
|
+
receiver_id: string | null;
|
|
152
|
+
};
|
|
130
153
|
declare function createPayoutsResource(instanceId: string, client: InternalApiClient): {
|
|
131
154
|
list(params?: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
|
|
132
155
|
export(params?: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
|
|
@@ -135,6 +158,8 @@ declare function createPayoutsResource(instanceId: string, client: InternalApiCl
|
|
|
135
158
|
authorizeStellarToken({ ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
|
|
136
159
|
createStellar({ ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
|
|
137
160
|
createEvm({ ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
|
|
161
|
+
authorizeSolana({ ...data }: AuthorizeSolanaInput): Promise<BlindpayApiResponse<AuthorizeSolanaResponse>>;
|
|
162
|
+
createSolana({ ...data }: CreateSolanaPayoutInput): Promise<BlindpayApiResponse<CreateSolanaPayoutResponse>>;
|
|
138
163
|
};
|
|
139
164
|
|
|
140
|
-
export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
165
|
+
export { type AuthorizeSolanaInput, type AuthorizeSolanaResponse, type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateSolanaPayoutInput, type CreateSolanaPayoutResponse, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus,
|
|
1
|
+
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, k as PayoutTrackingTransaction, l as PayoutTrackingPayment, m as PayoutTrackingLiquidity, n as PayoutTrackingComplete, o as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, p as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, h as PaginationMetadata } from '../../api-client-B7VQkM_4.js';
|
|
2
2
|
|
|
3
3
|
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
4
4
|
type Payout = {
|
|
@@ -9,11 +9,11 @@ type Payout = {
|
|
|
9
9
|
signed_transaction: string;
|
|
10
10
|
quote_id: string;
|
|
11
11
|
instance_id: string;
|
|
12
|
-
tracking_transaction:
|
|
13
|
-
tracking_payment:
|
|
14
|
-
tracking_liquidity:
|
|
15
|
-
tracking_complete:
|
|
16
|
-
tracking_partner_fee:
|
|
12
|
+
tracking_transaction: PayoutTrackingTransaction;
|
|
13
|
+
tracking_payment: PayoutTrackingPayment;
|
|
14
|
+
tracking_liquidity: PayoutTrackingLiquidity;
|
|
15
|
+
tracking_complete: PayoutTrackingComplete;
|
|
16
|
+
tracking_partner_fee: PayoutTrackingPartnerFee;
|
|
17
17
|
created_at: string;
|
|
18
18
|
updated_at: string;
|
|
19
19
|
image_url: string;
|
|
@@ -105,11 +105,11 @@ type CreateStellarPayoutResponse = {
|
|
|
105
105
|
id: string;
|
|
106
106
|
status: TransactionStatus;
|
|
107
107
|
sender_wallet_address: string;
|
|
108
|
-
tracking_complete?:
|
|
109
|
-
tracking_payment?:
|
|
110
|
-
tracking_transaction?:
|
|
111
|
-
tracking_partner_fee?:
|
|
112
|
-
tracking_liquidity?:
|
|
108
|
+
tracking_complete?: PayoutTrackingComplete;
|
|
109
|
+
tracking_payment?: PayoutTrackingPayment;
|
|
110
|
+
tracking_transaction?: PayoutTrackingTransaction;
|
|
111
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee;
|
|
112
|
+
tracking_liquidity?: PayoutTrackingLiquidity;
|
|
113
113
|
receiver_id: string;
|
|
114
114
|
};
|
|
115
115
|
type CreateEvmPayoutInput = {
|
|
@@ -120,13 +120,36 @@ type CreateEvmPayoutResponse = {
|
|
|
120
120
|
id: string;
|
|
121
121
|
status: TransactionStatus;
|
|
122
122
|
sender_wallet_address: string;
|
|
123
|
-
tracking_complete?:
|
|
124
|
-
tracking_payment?:
|
|
125
|
-
tracking_transaction?:
|
|
126
|
-
tracking_partner_fee?:
|
|
127
|
-
tracking_liquidity?:
|
|
123
|
+
tracking_complete?: PayoutTrackingComplete;
|
|
124
|
+
tracking_payment?: PayoutTrackingPayment;
|
|
125
|
+
tracking_transaction?: PayoutTrackingTransaction;
|
|
126
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee;
|
|
127
|
+
tracking_liquidity?: PayoutTrackingLiquidity;
|
|
128
128
|
receiver_id: string;
|
|
129
129
|
};
|
|
130
|
+
type AuthorizeSolanaInput = {
|
|
131
|
+
quote_id: string;
|
|
132
|
+
sender_wallet_address: string;
|
|
133
|
+
};
|
|
134
|
+
type AuthorizeSolanaResponse = {
|
|
135
|
+
serialized_transaction: string;
|
|
136
|
+
};
|
|
137
|
+
type CreateSolanaPayoutInput = {
|
|
138
|
+
quote_id: string;
|
|
139
|
+
sender_wallet_address: string;
|
|
140
|
+
signed_transaction: string | null;
|
|
141
|
+
};
|
|
142
|
+
type CreateSolanaPayoutResponse = {
|
|
143
|
+
id: string;
|
|
144
|
+
status: TransactionStatus;
|
|
145
|
+
sender_wallet_address: string;
|
|
146
|
+
tracking_complete: PayoutTrackingComplete;
|
|
147
|
+
tracking_payment: PayoutTrackingPayment;
|
|
148
|
+
tracking_transaction: PayoutTrackingTransaction;
|
|
149
|
+
tracking_partner_fee?: PayoutTrackingPartnerFee | null;
|
|
150
|
+
tracking_liquidity?: PayoutTrackingLiquidity | null;
|
|
151
|
+
receiver_id: string | null;
|
|
152
|
+
};
|
|
130
153
|
declare function createPayoutsResource(instanceId: string, client: InternalApiClient): {
|
|
131
154
|
list(params?: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
|
|
132
155
|
export(params?: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
|
|
@@ -135,6 +158,8 @@ declare function createPayoutsResource(instanceId: string, client: InternalApiCl
|
|
|
135
158
|
authorizeStellarToken({ ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
|
|
136
159
|
createStellar({ ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
|
|
137
160
|
createEvm({ ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
|
|
161
|
+
authorizeSolana({ ...data }: AuthorizeSolanaInput): Promise<BlindpayApiResponse<AuthorizeSolanaResponse>>;
|
|
162
|
+
createSolana({ ...data }: CreateSolanaPayoutInput): Promise<BlindpayApiResponse<CreateSolanaPayoutResponse>>;
|
|
138
163
|
};
|
|
139
164
|
|
|
140
|
-
export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
165
|
+
export { type AuthorizeSolanaInput, type AuthorizeSolanaResponse, type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateSolanaPayoutInput, type CreateSolanaPayoutResponse, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
@@ -64,6 +64,14 @@ function createPayoutsResource(instanceId, client) {
|
|
|
64
64
|
createEvm(_c) {
|
|
65
65
|
var data = __objRest(_c, []);
|
|
66
66
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
67
|
+
},
|
|
68
|
+
authorizeSolana(_d) {
|
|
69
|
+
var data = __objRest(_d, []);
|
|
70
|
+
return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
|
|
71
|
+
},
|
|
72
|
+
createSolana(_e) {
|
|
73
|
+
var data = __objRest(_e, []);
|
|
74
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
67
75
|
}
|
|
68
76
|
};
|
|
69
77
|
}
|