@blindpay/node 2.5.0 → 3.1.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.
Files changed (80) hide show
  1. package/dist/{api-client-Drd7alfK.d.mts → api-client-DhY5DFpq.d.mts} +109 -34
  2. package/dist/{api-client-Drd7alfK.d.ts → api-client-DhY5DFpq.d.ts} +109 -34
  3. package/dist/{chunk-VRA5HP7F.mjs → chunk-E7M4CJKR.mjs} +0 -7
  4. package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
  5. package/dist/{chunk-CEJF5Y4K.mjs → chunk-V4V47AUC.mjs} +17 -17
  6. package/dist/{chunk-W7NJUABI.mjs → chunk-VGU72ZNI.mjs} +1 -7
  7. package/dist/{chunk-3QQCDR3E.mjs → chunk-VOB7TMKL.mjs} +4 -4
  8. package/dist/index.d.mts +6 -6
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.js +25 -27
  11. package/dist/index.mjs +17 -17
  12. package/dist/resources/api-keys/api-keys.test.js +25 -27
  13. package/dist/resources/api-keys/api-keys.test.mjs +7 -7
  14. package/dist/resources/api-keys/index.d.mts +1 -1
  15. package/dist/resources/api-keys/index.d.ts +1 -1
  16. package/dist/resources/available/available.test.js +25 -27
  17. package/dist/resources/available/available.test.mjs +7 -7
  18. package/dist/resources/available/index.d.mts +1 -1
  19. package/dist/resources/available/index.d.ts +1 -1
  20. package/dist/resources/bank-accounts/bank-accounts.test.js +25 -27
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +7 -7
  22. package/dist/resources/bank-accounts/index.d.mts +2 -4
  23. package/dist/resources/bank-accounts/index.d.ts +2 -4
  24. package/dist/resources/instances/index.d.mts +1 -1
  25. package/dist/resources/instances/index.d.ts +1 -1
  26. package/dist/resources/instances/instances.test.js +25 -27
  27. package/dist/resources/instances/instances.test.mjs +7 -7
  28. package/dist/resources/partner-fees/index.d.mts +1 -1
  29. package/dist/resources/partner-fees/index.d.ts +1 -1
  30. package/dist/resources/partner-fees/partner-fees.test.js +25 -27
  31. package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
  32. package/dist/resources/payins/index.d.mts +61 -148
  33. package/dist/resources/payins/index.d.ts +61 -148
  34. package/dist/resources/payins/index.js +0 -19
  35. package/dist/resources/payins/index.mjs +1 -1
  36. package/dist/resources/payins/payins-quotes.test.js +25 -113
  37. package/dist/resources/payins/payins-quotes.test.mjs +7 -93
  38. package/dist/resources/payins/payins.test.js +113 -163
  39. package/dist/resources/payins/payins.test.mjs +95 -143
  40. package/dist/resources/payins/quotes.d.mts +7 -72
  41. package/dist/resources/payins/quotes.d.ts +7 -72
  42. package/dist/resources/payins/quotes.js +0 -7
  43. package/dist/resources/payins/quotes.mjs +1 -1
  44. package/dist/resources/payouts/index.d.mts +34 -20
  45. package/dist/resources/payouts/index.d.ts +34 -20
  46. package/dist/resources/payouts/index.js +4 -4
  47. package/dist/resources/payouts/index.mjs +1 -1
  48. package/dist/resources/payouts/payouts.test.js +113 -131
  49. package/dist/resources/payouts/payouts.test.mjs +95 -111
  50. package/dist/resources/quotes/index.d.mts +16 -16
  51. package/dist/resources/quotes/index.d.ts +16 -16
  52. package/dist/resources/quotes/quotes.test.js +26 -28
  53. package/dist/resources/quotes/quotes.test.mjs +8 -8
  54. package/dist/resources/receivers/index.d.mts +9 -7
  55. package/dist/resources/receivers/index.d.ts +9 -7
  56. package/dist/resources/receivers/receivers.test.js +32 -35
  57. package/dist/resources/receivers/receivers.test.mjs +14 -15
  58. package/dist/resources/terms-of-service/index.d.mts +1 -1
  59. package/dist/resources/terms-of-service/index.d.ts +1 -1
  60. package/dist/resources/terms-of-service/terms-of-service.test.js +25 -27
  61. package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
  62. package/dist/resources/virtual-accounts/index.d.mts +22 -7
  63. package/dist/resources/virtual-accounts/index.d.ts +22 -7
  64. package/dist/resources/virtual-accounts/index.js +20 -10
  65. package/dist/resources/virtual-accounts/index.mjs +1 -1
  66. package/dist/resources/virtual-accounts/virtual-accounts.test.js +144 -46
  67. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +126 -26
  68. package/dist/resources/wallets/blockchain.d.mts +1 -1
  69. package/dist/resources/wallets/blockchain.d.ts +1 -1
  70. package/dist/resources/wallets/blockchain.test.js +25 -27
  71. package/dist/resources/wallets/blockchain.test.mjs +7 -7
  72. package/dist/resources/wallets/offramp.d.mts +1 -1
  73. package/dist/resources/wallets/offramp.d.ts +1 -1
  74. package/dist/resources/wallets/offramp.test.js +25 -27
  75. package/dist/resources/wallets/offramp.test.mjs +7 -7
  76. package/dist/resources/webhooks/index.d.mts +1 -1
  77. package/dist/resources/webhooks/index.d.ts +1 -1
  78. package/dist/resources/webhooks/webhooks.test.js +25 -27
  79. package/dist/resources/webhooks/webhooks.test.mjs +7 -7
  80. package/package.json +2 -1
@@ -8,20 +8,20 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CEJF5Y4K.mjs";
12
- import "../../chunk-UC57SCKQ.mjs";
11
+ } from "../../chunk-V4V47AUC.mjs";
13
12
  import "../../chunk-FG25JHDX.mjs";
14
13
  import "../../chunk-QGNLMN6Z.mjs";
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-5XJJKYXE.mjs";
19
- import "../../chunk-U7CKUUO7.mjs";
18
+ import "../../chunk-LEPGLH7Q.mjs";
19
+ import "../../chunk-VGU72ZNI.mjs";
20
+ import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-VOB7TMKL.mjs";
20
22
  import "../../chunk-RC5NN5UF.mjs";
21
- import "../../chunk-W7NJUABI.mjs";
22
- import "../../chunk-VRA5HP7F.mjs";
23
- import "../../chunk-3QQCDR3E.mjs";
24
23
  import "../../chunk-LRHWT4JU.mjs";
24
+ import "../../chunk-U7CKUUO7.mjs";
25
25
  import "../../chunk-CPOSU35L.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
@@ -53,20 +53,38 @@ var require_payins_test = __commonJS({
53
53
  tracking_transaction: {
54
54
  step: "processing",
55
55
  status: "failed",
56
- transaction_hash: "0x123...890",
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
  },
@@ -116,11 +134,6 @@ var require_payins_test = __commonJS({
116
134
  name: "BlindPay, Inc.",
117
135
  address_line_1: "8 The Green, #19364",
118
136
  address_line_2: "Dover, DE 19901"
119
- },
120
- receiving_bank: {
121
- name: "Column NA - Brex",
122
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
123
- address_line_2: "San Francisco, CA 94129"
124
137
  }
125
138
  }
126
139
  }
@@ -153,20 +166,38 @@ var require_payins_test = __commonJS({
153
166
  tracking_transaction: {
154
167
  step: "processing",
155
168
  status: "failed",
156
- transaction_hash: "0x123...890",
157
- completed_at: "2011-10-05T14:48:00.000Z"
169
+ external_id: "12345678",
170
+ completed_at: "2011-10-05T14:48:00.000Z",
171
+ sender_name: "John Doe Smith",
172
+ sender_tax_id: "123.456.789-10",
173
+ sender_bank_code: "00416968",
174
+ sender_account_number: "1234567890",
175
+ trace_number: "1234567890",
176
+ transaction_reference: "1234567890",
177
+ description: "Payment from John Doe Smith",
178
+ pse_instruction: {
179
+ payment_link: "https://pse.example.com/payment/abc123",
180
+ fid: "fid_abc123",
181
+ full_name: "Juan P\xE9rez Garc\xEDa",
182
+ tax_id: "1234567890",
183
+ document_type: "CC",
184
+ phone: "+573001234567",
185
+ email: "juan@example.com",
186
+ bank_code: "1007"
187
+ },
188
+ transfers_instruction: {
189
+ account: "0000003100012389237485",
190
+ type: "CVU",
191
+ tax_id: "20123456783"
192
+ }
158
193
  },
159
194
  tracking_payment: {
160
195
  step: "on_hold",
161
196
  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
197
  completed_at: "2011-10-05T14:48:00.000Z"
166
198
  },
167
199
  tracking_complete: {
168
200
  step: "on_hold",
169
- status: "completed",
170
201
  transaction_hash: "0x123...890",
171
202
  completed_at: "2011-10-05T14:48:00.000Z"
172
203
  },
@@ -216,11 +247,6 @@ var require_payins_test = __commonJS({
216
247
  name: "BlindPay, Inc.",
217
248
  address_line_1: "8 The Green, #19364",
218
249
  address_line_2: "Dover, DE 19901"
219
- },
220
- receiving_bank: {
221
- name: "Column NA - Brex",
222
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
223
- address_line_2: "San Francisco, CA 94129"
224
250
  }
225
251
  }
226
252
  };
@@ -254,7 +280,22 @@ var require_payins_test = __commonJS({
254
280
  sender_account_number: "1234567890",
255
281
  trace_number: "1234567890",
256
282
  transaction_reference: "1234567890",
257
- description: "Payment from John Doe Smith"
283
+ description: "Payment from John Doe Smith",
284
+ pse_instruction: {
285
+ payment_link: "https://pse.example.com/payment/abc123",
286
+ fid: "fid_abc123",
287
+ full_name: "Juan P\xE9rez Garc\xEDa",
288
+ tax_id: "1234567890",
289
+ document_type: "CC",
290
+ phone: "+573001234567",
291
+ email: "juan@example.com",
292
+ bank_code: "1007"
293
+ },
294
+ transfers_instruction: {
295
+ account: "0000003100012389237485",
296
+ type: "CVU",
297
+ tax_id: "20123456783"
298
+ }
258
299
  },
259
300
  tracking_payment: {
260
301
  step: "on_hold",
@@ -312,11 +353,6 @@ var require_payins_test = __commonJS({
312
353
  name: "BlindPay, Inc.",
313
354
  address_line_1: "8 The Green, #19364",
314
355
  address_line_2: "Dover, DE 19901"
315
- },
316
- receiving_bank: {
317
- name: "Column NA - Brex",
318
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
319
- address_line_2: "San Francisco, CA 94129"
320
356
  }
321
357
  }
322
358
  };
@@ -328,103 +364,6 @@ var require_payins_test = __commonJS({
328
364
  globalExpect(data).toEqual(mockedPayinTrack);
329
365
  }));
330
366
  });
331
- describe("Export payins", () => {
332
- it("should export payins", () => __async(null, null, function* () {
333
- const mockedExportPayins = [
334
- {
335
- receiver_id: "re_000000000000",
336
- id: "re_000000000000",
337
- pix_code: "00020101021226790014br.gov.bcb.pix2557brcode.starkinfra.com/v2/bcf07f6c4110454e9fd6f120bab13e835204000053039865802BR5915Blind Pay, Inc.6010Vila Velha62070503***6304BCAB",
338
- memo_code: "8K45GHBNT6BQ6462",
339
- clabe: "014027000000000008",
340
- status: "processing",
341
- payin_quote_id: "pq_000000000000",
342
- instance_id: "in_000000000000",
343
- tracking_transaction: {
344
- step: "processing",
345
- status: "failed",
346
- transaction_hash: "0x123...890",
347
- completed_at: "2011-10-05T14:48:00.000Z"
348
- },
349
- tracking_payment: {
350
- step: "on_hold",
351
- 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
- completed_at: "2011-10-05T14:48:00.000Z"
356
- },
357
- tracking_complete: {
358
- step: "on_hold",
359
- status: "completed",
360
- transaction_hash: "0x123...890",
361
- completed_at: "2011-10-05T14:48:00.000Z"
362
- },
363
- tracking_partner_fee: {
364
- step: "on_hold",
365
- transaction_hash: "0x123...890",
366
- completed_at: "2011-10-05T14:48:00.000Z"
367
- },
368
- created_at: "2021-01-01T00:00:00Z",
369
- updated_at: "2021-01-01T00:00:00Z",
370
- image_url: "https://example.com/image.png",
371
- first_name: "John",
372
- last_name: "Doe",
373
- legal_name: "Company Name Inc.",
374
- type: "individual",
375
- payment_method: "pix",
376
- sender_amount: 5240,
377
- receiver_amount: 1010,
378
- token: "USDC",
379
- partner_fee_amount: 150,
380
- total_fee_amount: 1.53,
381
- commercial_quotation: 495,
382
- blindpay_quotation: 505,
383
- currency: "BRL",
384
- billing_fee: 100,
385
- name: "Wallet Display Name",
386
- address: "0xDD6a3aD0949396e57C7738ba8FC1A46A5a1C372C",
387
- network: "polygon",
388
- blindpay_bank_details: {
389
- routing_number: "121145349",
390
- account_number: "621327727210181",
391
- account_type: "Business checking",
392
- swift_bic_code: "CHASUS33",
393
- ach: {
394
- routing_number: "123456789",
395
- account_number: "123456789"
396
- },
397
- wire: {
398
- routing_number: "123456789",
399
- account_number: "123456789"
400
- },
401
- rtp: {
402
- routing_number: "123456789",
403
- account_number: "123456789"
404
- },
405
- beneficiary: {
406
- name: "BlindPay, Inc.",
407
- address_line_1: "8 The Green, #19364",
408
- address_line_2: "Dover, DE 19901"
409
- },
410
- receiving_bank: {
411
- name: "Column NA - Brex",
412
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
413
- address_line_2: "San Francisco, CA 94129"
414
- }
415
- }
416
- }
417
- ];
418
- fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayins), {
419
- headers: { "Content-Type": "application/json" }
420
- });
421
- const { data, error } = yield blindpay.payins.export({
422
- status: "processing"
423
- });
424
- globalExpect(error).toBeNull();
425
- globalExpect(data).toEqual(mockedExportPayins);
426
- }));
427
- });
428
367
  describe("Create EVM payin", () => {
429
368
  it("should create an EVM payin", () => __async(null, null, function* () {
430
369
  const mockedEvmPayin = {
@@ -435,23 +374,41 @@ var require_payins_test = __commonJS({
435
374
  clabe: "014027000000000008",
436
375
  tracking_complete: {
437
376
  step: "on_hold",
438
- status: "completed",
439
377
  transaction_hash: "0x123...890",
440
378
  completed_at: "2011-10-05T14:48:00.000Z"
441
379
  },
442
380
  tracking_payment: {
443
381
  step: "on_hold",
444
382
  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
383
  completed_at: "2011-10-05T14:48:00.000Z"
449
384
  },
450
385
  tracking_transaction: {
451
386
  step: "processing",
452
387
  status: "failed",
453
- transaction_hash: "0x123...890",
454
- completed_at: "2011-10-05T14:48:00.000Z"
388
+ external_id: "12345678",
389
+ completed_at: "2011-10-05T14:48:00.000Z",
390
+ sender_name: "John Doe Smith",
391
+ sender_tax_id: "123.456.789-10",
392
+ sender_bank_code: "00416968",
393
+ sender_account_number: "1234567890",
394
+ trace_number: "1234567890",
395
+ transaction_reference: "1234567890",
396
+ description: "Payment from John Doe Smith",
397
+ pse_instruction: {
398
+ payment_link: "https://pse.example.com/payment/abc123",
399
+ fid: "fid_abc123",
400
+ full_name: "Juan P\xE9rez Garc\xEDa",
401
+ tax_id: "1234567890",
402
+ document_type: "CC",
403
+ phone: "+573001234567",
404
+ email: "juan@example.com",
405
+ bank_code: "1007"
406
+ },
407
+ transfers_instruction: {
408
+ account: "0000003100012389237485",
409
+ type: "CVU",
410
+ tax_id: "20123456783"
411
+ }
455
412
  },
456
413
  tracking_partner_fee: {
457
414
  step: "on_hold",
@@ -479,11 +436,6 @@ var require_payins_test = __commonJS({
479
436
  name: "BlindPay, Inc.",
480
437
  address_line_1: "8 The Green, #19364",
481
438
  address_line_2: "Dover, DE 19901"
482
- },
483
- receiving_bank: {
484
- name: "Column NA - Brex",
485
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
486
- address_line_2: "San Francisco, CA 94129"
487
439
  }
488
440
  },
489
441
  receiver_id: "re_000000000000",
@@ -1,17 +1,15 @@
1
- import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency, P as PaginationParams, f as PaginationMetadata } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, l as CurrencyType, h as PayinPaymentMethod, S as StablecoinToken, j as PayerRules, B as BlindpayApiResponse, i as Currency } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
4
3
  type CreatePayinQuoteInput = {
5
4
  blockchain_wallet_id: string;
6
5
  currency_type: CurrencyType;
7
6
  payment_method: PayinPaymentMethod;
8
7
  request_amount: number;
9
8
  token: StablecoinToken;
9
+ is_otc?: boolean | null;
10
10
  cover_fees: boolean;
11
11
  partner_fee_id: string | null;
12
- payer_rules: {
13
- pix_allowed_tax_ids: string[];
14
- };
12
+ payer_rules?: PayerRules | null;
15
13
  };
16
14
  type CreatePayinQuoteResponse = {
17
15
  id: string;
@@ -20,8 +18,9 @@ type CreatePayinQuoteResponse = {
20
18
  blindpay_quotation: number;
21
19
  receiver_amount: number;
22
20
  sender_amount: number;
23
- partner_fee_amount: number | null;
24
- flat_fee: number | null;
21
+ partner_fee_amount?: number | null;
22
+ flat_fee: number;
23
+ is_otc?: boolean | null;
25
24
  };
26
25
  type GetPayinFxRateInput = {
27
26
  currency_type: CurrencyType;
@@ -36,73 +35,9 @@ type GetPayinFxRateResponse = {
36
35
  instance_flat_fee: number;
37
36
  instance_percentage_fee: number;
38
37
  };
39
- type GetPayinQuoteInput = string;
40
- type GetPayinQuoteResponse = {
41
- id: string;
42
- payment_method: PayinPaymentMethod;
43
- token: StablecoinToken;
44
- request_amount: number;
45
- cover_fees: boolean;
46
- currency_type: CurrencyType;
47
- expires_at: number | null;
48
- currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
49
- commercial_quotation: number | null;
50
- blindpay_quotation: number | null;
51
- receiver_amount: number;
52
- sender_amount: number;
53
- partner_fee_amount: number | null;
54
- flat_fee: number | null;
55
- total_fee_amount: number | null;
56
- payer_rules: {
57
- pix_allowed_tax_ids: string[];
58
- } | null;
59
- blockchain_wallet_id: string;
60
- instance_id: string;
61
- partner_fee_id: string | null;
62
- billing_fee: number | null;
63
- created_at: string;
64
- updated_at: string;
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
- };
101
38
  declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
102
39
  create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
103
40
  getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
104
- get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
105
- list(params?: ListPayinQuotesInput): Promise<BlindpayApiResponse<ListPayinQuotesResponse>>;
106
41
  };
107
42
 
108
- export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type ListPayinQuotesInput, type ListPayinQuotesResponse, type PayinPaymentMethod, createPayinQuotesResource };
43
+ export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, createPayinQuotesResource };
@@ -1,17 +1,15 @@
1
- import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency, P as PaginationParams, f as PaginationMetadata } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, l as CurrencyType, h as PayinPaymentMethod, S as StablecoinToken, j as PayerRules, B as BlindpayApiResponse, i as Currency } from '../../api-client-DhY5DFpq.js';
2
2
 
3
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
4
3
  type CreatePayinQuoteInput = {
5
4
  blockchain_wallet_id: string;
6
5
  currency_type: CurrencyType;
7
6
  payment_method: PayinPaymentMethod;
8
7
  request_amount: number;
9
8
  token: StablecoinToken;
9
+ is_otc?: boolean | null;
10
10
  cover_fees: boolean;
11
11
  partner_fee_id: string | null;
12
- payer_rules: {
13
- pix_allowed_tax_ids: string[];
14
- };
12
+ payer_rules?: PayerRules | null;
15
13
  };
16
14
  type CreatePayinQuoteResponse = {
17
15
  id: string;
@@ -20,8 +18,9 @@ type CreatePayinQuoteResponse = {
20
18
  blindpay_quotation: number;
21
19
  receiver_amount: number;
22
20
  sender_amount: number;
23
- partner_fee_amount: number | null;
24
- flat_fee: number | null;
21
+ partner_fee_amount?: number | null;
22
+ flat_fee: number;
23
+ is_otc?: boolean | null;
25
24
  };
26
25
  type GetPayinFxRateInput = {
27
26
  currency_type: CurrencyType;
@@ -36,73 +35,9 @@ type GetPayinFxRateResponse = {
36
35
  instance_flat_fee: number;
37
36
  instance_percentage_fee: number;
38
37
  };
39
- type GetPayinQuoteInput = string;
40
- type GetPayinQuoteResponse = {
41
- id: string;
42
- payment_method: PayinPaymentMethod;
43
- token: StablecoinToken;
44
- request_amount: number;
45
- cover_fees: boolean;
46
- currency_type: CurrencyType;
47
- expires_at: number | null;
48
- currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
49
- commercial_quotation: number | null;
50
- blindpay_quotation: number | null;
51
- receiver_amount: number;
52
- sender_amount: number;
53
- partner_fee_amount: number | null;
54
- flat_fee: number | null;
55
- total_fee_amount: number | null;
56
- payer_rules: {
57
- pix_allowed_tax_ids: string[];
58
- } | null;
59
- blockchain_wallet_id: string;
60
- instance_id: string;
61
- partner_fee_id: string | null;
62
- billing_fee: number | null;
63
- created_at: string;
64
- updated_at: string;
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
- };
101
38
  declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
102
39
  create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
103
40
  getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
104
- get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
105
- list(params?: ListPayinQuotesInput): Promise<BlindpayApiResponse<ListPayinQuotesResponse>>;
106
41
  };
107
42
 
108
- export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type ListPayinQuotesInput, type ListPayinQuotesResponse, type PayinPaymentMethod, createPayinQuotesResource };
43
+ export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, createPayinQuotesResource };
@@ -46,13 +46,6 @@ function createPayinQuotesResource(instanceId, client) {
46
46
  getFxRate(_b) {
47
47
  var data = __objRest(_b, []);
48
48
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
49
- },
50
- get(id) {
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}`);
56
49
  }
57
50
  };
58
51
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPayinQuotesResource,
3
3
  init_quotes
4
- } from "../../chunk-VRA5HP7F.mjs";
4
+ } from "../../chunk-E7M4CJKR.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_quotes();
7
7
  export {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, b as TrackingTransaction, c as TrackingPayment, i as TrackingLiquidity, d as TrackingComplete, e as TrackingPartnerFee, N as Network, S as StablecoinToken, h as Currency, j as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, f as PaginationMetadata } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, m as PayoutTrackingTransaction, n as PayoutTrackingPayment, o as PayoutTrackingLiquidity, p as PayoutTrackingComplete, q as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, i as Currency, r as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, k as PaginationMetadata } from '../../api-client-DhY5DFpq.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: TrackingTransaction;
13
- tracking_payment: TrackingPayment;
14
- tracking_liquidity: TrackingLiquidity;
15
- tracking_complete: TrackingComplete;
16
- tracking_partner_fee: TrackingPartnerFee;
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;
@@ -87,8 +87,6 @@ type GetPayoutInput = string;
87
87
  type GetPayoutResponse = Payout;
88
88
  type GetPayoutTrackInput = string;
89
89
  type GetPayoutTrackResponse = Payout;
90
- type ExportPayoutsInput = Pick<PaginationParams, "limit" | "offset">;
91
- type ExportPayoutsResponse = Payout[];
92
90
  type AuthorizeStellarTokenInput = {
93
91
  quote_id: string;
94
92
  sender_wallet_address: string;
@@ -105,11 +103,11 @@ type CreateStellarPayoutResponse = {
105
103
  id: string;
106
104
  status: TransactionStatus;
107
105
  sender_wallet_address: string;
108
- tracking_complete?: TrackingComplete;
109
- tracking_payment?: TrackingPayment;
110
- tracking_transaction?: TrackingTransaction;
111
- tracking_partner_fee?: TrackingPartnerFee;
112
- tracking_liquidity?: TrackingLiquidity;
106
+ tracking_complete?: PayoutTrackingComplete;
107
+ tracking_payment?: PayoutTrackingPayment;
108
+ tracking_transaction?: PayoutTrackingTransaction;
109
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
110
+ tracking_liquidity?: PayoutTrackingLiquidity;
113
111
  receiver_id: string;
114
112
  };
115
113
  type CreateEvmPayoutInput = {
@@ -120,21 +118,37 @@ type CreateEvmPayoutResponse = {
120
118
  id: string;
121
119
  status: TransactionStatus;
122
120
  sender_wallet_address: string;
123
- tracking_complete?: TrackingComplete;
124
- tracking_payment?: TrackingPayment;
125
- tracking_transaction?: TrackingTransaction;
126
- tracking_partner_fee?: TrackingPartnerFee;
127
- tracking_liquidity?: TrackingLiquidity;
121
+ tracking_complete?: PayoutTrackingComplete;
122
+ tracking_payment?: PayoutTrackingPayment;
123
+ tracking_transaction?: PayoutTrackingTransaction;
124
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
125
+ tracking_liquidity?: PayoutTrackingLiquidity;
128
126
  receiver_id: string;
129
127
  };
128
+ type CreateSolanaPayoutInput = {
129
+ quote_id: string;
130
+ sender_wallet_address: string;
131
+ signed_transaction: string | null;
132
+ };
133
+ type CreateSolanaPayoutResponse = {
134
+ id: string;
135
+ status: TransactionStatus;
136
+ sender_wallet_address: string;
137
+ tracking_complete: PayoutTrackingComplete;
138
+ tracking_payment: PayoutTrackingPayment;
139
+ tracking_transaction: PayoutTrackingTransaction;
140
+ tracking_partner_fee?: PayoutTrackingPartnerFee | null;
141
+ tracking_liquidity?: PayoutTrackingLiquidity | null;
142
+ receiver_id: string | null;
143
+ };
130
144
  declare function createPayoutsResource(instanceId: string, client: InternalApiClient): {
131
145
  list(params?: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
132
- export(params?: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
133
146
  get(payoutId: GetPayoutInput): Promise<BlindpayApiResponse<GetPayoutResponse>>;
134
147
  getTrack(payoutId: GetPayoutTrackInput): Promise<BlindpayApiResponse<GetPayoutTrackResponse>>;
135
148
  authorizeStellarToken({ ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
136
149
  createStellar({ ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
137
150
  createEvm({ ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
151
+ createSolana({ ...data }: CreateSolanaPayoutInput): Promise<BlindpayApiResponse<CreateSolanaPayoutResponse>>;
138
152
  };
139
153
 
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 };
154
+ export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateSolanaPayoutInput, type CreateSolanaPayoutResponse, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };