@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 {
@@ -60,6 +60,12 @@ var require_payouts_test = __commonJS({
60
60
  provider_name: "blockchain",
61
61
  provider_transaction_id: "0x123...890",
62
62
  provider_status: "canceled",
63
+ recipient_name: "John Doe",
64
+ recipient_tax_id: "123.456.789-10",
65
+ recipient_bank_code: "00416968",
66
+ recipient_branch_code: "0001",
67
+ recipient_account_number: "1234567890",
68
+ recipient_account_type: "checking",
63
69
  estimated_time_of_arrival: "5_min",
64
70
  completed_at: "2011-10-05T14:48:00.000Z"
65
71
  },
@@ -169,6 +175,12 @@ var require_payouts_test = __commonJS({
169
175
  provider_name: "blockchain",
170
176
  provider_transaction_id: "0x123...890",
171
177
  provider_status: "canceled",
178
+ recipient_name: "John Doe",
179
+ recipient_tax_id: "123.456.789-10",
180
+ recipient_bank_code: "00416968",
181
+ recipient_branch_code: "0001",
182
+ recipient_account_number: "1234567890",
183
+ recipient_account_type: "checking",
172
184
  estimated_time_of_arrival: "5_min",
173
185
  completed_at: "2011-10-05T14:48:00.000Z"
174
186
  },
@@ -250,110 +262,6 @@ var require_payouts_test = __commonJS({
250
262
  globalExpect(data).toEqual(mockedPayout);
251
263
  }));
252
264
  });
253
- describe("Export payouts", () => {
254
- it("should export payouts", () => __async(null, null, function* () {
255
- const mockedExportPayouts = [
256
- {
257
- receiver_id: "re_000000000000",
258
- id: "pa_000000000000",
259
- status: "processing",
260
- sender_wallet_address: "0x123...890",
261
- signed_transaction: "AAA...Zey8y0A",
262
- quote_id: "qu_000000000000",
263
- instance_id: "in_000000000000",
264
- tracking_transaction: {
265
- step: "processing",
266
- status: "failed",
267
- transaction_hash: "0x123...890",
268
- completed_at: "2011-10-05T14:48:00.000Z"
269
- },
270
- tracking_payment: {
271
- step: "on_hold",
272
- provider_name: "blockchain",
273
- provider_transaction_id: "0x123...890",
274
- provider_status: "canceled",
275
- estimated_time_of_arrival: "5_min",
276
- completed_at: "2011-10-05T14:48:00.000Z"
277
- },
278
- tracking_liquidity: {
279
- step: "processing",
280
- provider_transaction_id: "0x123...890",
281
- provider_status: "deposited",
282
- estimated_time_of_arrival: "1_business_day",
283
- completed_at: "2011-10-05T14:48:00.000Z"
284
- },
285
- tracking_complete: {
286
- step: "on_hold",
287
- status: "tokens_refunded",
288
- transaction_hash: "0x123...890",
289
- completed_at: "2011-10-05T14:48:00.000Z"
290
- },
291
- tracking_partner_fee: {
292
- step: "on_hold",
293
- transaction_hash: "0x123...890",
294
- completed_at: "2011-10-05T14:48:00.000Z"
295
- },
296
- created_at: "2021-01-01T00:00:00Z",
297
- updated_at: "2021-01-01T00:00:00Z",
298
- image_url: "https://example.com/image.png",
299
- first_name: "John",
300
- last_name: "Doe",
301
- legal_name: "Company Name Inc.",
302
- network: "sepolia",
303
- token: "USDC",
304
- description: "Memo code or description, only works with USD and BRL",
305
- sender_amount: 1010,
306
- receiver_amount: 5240,
307
- partner_fee_amount: 150,
308
- commercial_quotation: 495,
309
- blindpay_quotation: 485,
310
- total_fee_amount: 1.5,
311
- receiver_local_amount: 1e3,
312
- currency: "BRL",
313
- transaction_document_file: "https://example.com/image.png",
314
- transaction_document_type: "invoice",
315
- transaction_document_id: "1234567890",
316
- name: "Bank Account Name",
317
- type: "wire",
318
- pix_key: "14947677768",
319
- account_number: "1001001234",
320
- routing_number: "012345678",
321
- country: "US",
322
- account_class: "individual",
323
- address_line_1: "Address line 1",
324
- address_line_2: "Address line 2",
325
- city: "City",
326
- state_province_region: "State/Province/Region",
327
- postal_code: "Postal code",
328
- account_type: "checking",
329
- ach_cop_beneficiary_first_name: "Fernando",
330
- ach_cop_bank_account: "12345678",
331
- ach_cop_bank_code: "051",
332
- ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
333
- ach_cop_document_id: "1661105408",
334
- ach_cop_document_type: "CC",
335
- ach_cop_email: "fernando.guzman@gmail.com",
336
- beneficiary_name: "Individual full name or business name",
337
- spei_clabe: "5482347403740546",
338
- spei_protocol: "clabe",
339
- spei_institution_code: "40002",
340
- swift_beneficiary_country: "MX",
341
- swift_code_bic: "123456789",
342
- swift_account_holder_name: "John Doe",
343
- swift_account_number_iban: "123456789",
344
- transfers_account: "BM123123123123",
345
- transfers_type: "CVU",
346
- has_virtual_account: true
347
- }
348
- ];
349
- fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayouts), {
350
- headers: { "Content-Type": "application/json" }
351
- });
352
- const { data, error } = yield blindpay.payouts.export();
353
- globalExpect(error).toBeNull();
354
- globalExpect(data).toEqual(mockedExportPayouts);
355
- }));
356
- });
357
265
  describe("Get payout track", () => {
358
266
  it("should get payout tracking information", () => __async(null, null, function* () {
359
267
  const mockedPayoutTrack = {
@@ -375,6 +283,12 @@ var require_payouts_test = __commonJS({
375
283
  provider_name: "blockchain",
376
284
  provider_transaction_id: "0x123...890",
377
285
  provider_status: "canceled",
286
+ recipient_name: "John Doe",
287
+ recipient_tax_id: "123.456.789-10",
288
+ recipient_bank_code: "00416968",
289
+ recipient_branch_code: "0001",
290
+ recipient_account_number: "1234567890",
291
+ recipient_account_type: "checking",
378
292
  estimated_time_of_arrival: "5_min",
379
293
  completed_at: "2011-10-05T14:48:00.000Z"
380
294
  },
@@ -489,6 +403,12 @@ var require_payouts_test = __commonJS({
489
403
  provider_name: "blockchain",
490
404
  provider_transaction_id: "0x123...890",
491
405
  provider_status: "canceled",
406
+ recipient_name: "John Doe",
407
+ recipient_tax_id: "123.456.789-10",
408
+ recipient_bank_code: "00416968",
409
+ recipient_branch_code: "0001",
410
+ recipient_account_number: "1234567890",
411
+ recipient_account_type: "checking",
492
412
  estimated_time_of_arrival: "5_min",
493
413
  completed_at: "2011-10-05T14:48:00.000Z"
494
414
  },
@@ -540,6 +460,12 @@ var require_payouts_test = __commonJS({
540
460
  provider_name: "blockchain",
541
461
  provider_transaction_id: "0x123...890",
542
462
  provider_status: "canceled",
463
+ recipient_name: "John Doe",
464
+ recipient_tax_id: "123.456.789-10",
465
+ recipient_bank_code: "00416968",
466
+ recipient_branch_code: "0001",
467
+ recipient_account_number: "1234567890",
468
+ recipient_account_type: "checking",
543
469
  estimated_time_of_arrival: "5_min",
544
470
  completed_at: "2011-10-05T14:48:00.000Z"
545
471
  },
@@ -574,6 +500,64 @@ var require_payouts_test = __commonJS({
574
500
  globalExpect(data).toEqual(mockedEvmPayout);
575
501
  }));
576
502
  });
503
+ describe("Create solana payout", () => {
504
+ it("should create a solana payout", () => __async(null, null, function* () {
505
+ const mockedSolanaPayout = {
506
+ id: "pa_000000000000",
507
+ status: "processing",
508
+ sender_wallet_address: "0x123...890",
509
+ tracking_complete: {
510
+ step: "on_hold",
511
+ status: "tokens_refunded",
512
+ transaction_hash: "0x123...890",
513
+ completed_at: "2011-10-05T14:48:00.000Z"
514
+ },
515
+ tracking_payment: {
516
+ step: "on_hold",
517
+ provider_name: "blockchain",
518
+ provider_transaction_id: "0x123...890",
519
+ provider_status: "canceled",
520
+ recipient_name: "John Doe",
521
+ recipient_tax_id: "123.456.789-10",
522
+ recipient_bank_code: "00416968",
523
+ recipient_branch_code: "0001",
524
+ recipient_account_number: "1234567890",
525
+ recipient_account_type: "checking",
526
+ estimated_time_of_arrival: "5_min",
527
+ completed_at: "2011-10-05T14:48:00.000Z"
528
+ },
529
+ tracking_transaction: {
530
+ step: "processing",
531
+ status: "failed",
532
+ transaction_hash: "0x123...890",
533
+ completed_at: "2011-10-05T14:48:00.000Z"
534
+ },
535
+ tracking_partner_fee: {
536
+ step: "on_hold",
537
+ transaction_hash: "0x123...890",
538
+ completed_at: "2011-10-05T14:48:00.000Z"
539
+ },
540
+ tracking_liquidity: {
541
+ step: "processing",
542
+ provider_transaction_id: "0x123...890",
543
+ provider_status: "deposited",
544
+ estimated_time_of_arrival: "1_business_day",
545
+ completed_at: "2011-10-05T14:48:00.000Z"
546
+ },
547
+ receiver_id: "re_000000000000"
548
+ };
549
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSolanaPayout), {
550
+ headers: { "Content-Type": "application/json" }
551
+ });
552
+ const { data, error } = yield blindpay.payouts.createSolana({
553
+ quote_id: "qu_000000000000",
554
+ sender_wallet_address: "0x123...890",
555
+ signed_transaction: "AAA...Zey8y0A"
556
+ });
557
+ globalExpect(error).toBeNull();
558
+ globalExpect(data).toEqual(mockedSolanaPayout);
559
+ }));
560
+ });
577
561
  });
578
562
  }
579
563
  });
@@ -1,17 +1,17 @@
1
- import { I as InternalApiClient, g as CurrencyType, N as Network, S as StablecoinToken, j as TransactionDocumentType, B as BlindpayApiResponse, h as Currency } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, l as CurrencyType, N as Network, S as StablecoinToken, r as TransactionDocumentType, B as BlindpayApiResponse, i as Currency } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
3
  type CreateQuoteInput = {
4
4
  bank_account_id: string;
5
5
  currency_type: CurrencyType;
6
- network?: Network | null;
6
+ cover_fees: boolean;
7
7
  request_amount: number;
8
+ network: Network;
8
9
  token?: StablecoinToken | null;
9
- cover_fees: boolean | null;
10
10
  description?: string | null;
11
- partner_fee_id: string | null;
11
+ partner_fee_id?: string | null;
12
12
  transaction_document_file: string | null;
13
- transaction_document_id: string | null;
14
- transaction_document_type: TransactionDocumentType;
13
+ transaction_document_id?: string | null;
14
+ transaction_document_type?: TransactionDocumentType | null;
15
15
  };
16
16
  type CreateQuoteResponse = {
17
17
  id: string;
@@ -20,33 +20,33 @@ type CreateQuoteResponse = {
20
20
  blindpay_quotation: number;
21
21
  receiver_amount: number;
22
22
  sender_amount: number;
23
- partner_fee_amount: number;
24
- flat_fee: number;
25
- contract: {
23
+ partner_fee_amount?: number | null;
24
+ flat_fee?: number | null;
25
+ contract?: {
26
26
  abi: Record<string, unknown>[];
27
27
  address: string;
28
- functionName: string;
28
+ functionName: "approve";
29
29
  blindpayContractAddress: string;
30
30
  amount: string;
31
31
  network: {
32
32
  name: string;
33
33
  chainId: number;
34
34
  };
35
- };
36
- receiver_local_amount: number;
37
- description: string;
35
+ } | null;
36
+ receiver_local_amount?: number | null;
37
+ description?: string | null;
38
38
  };
39
39
  type GetFxRateInput = {
40
40
  currency_type: CurrencyType;
41
- from: Currency;
42
- to: Currency;
41
+ from: StablecoinToken;
42
+ to: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
43
43
  request_amount: number;
44
44
  };
45
45
  type GetFxRateResponse = {
46
46
  commercial_quotation: number;
47
47
  blindpay_quotation: number;
48
48
  result_amount: number;
49
- instance_flat_fee: number;
49
+ instance_flat_fee?: number | null;
50
50
  instance_percentage_fee: number;
51
51
  };
52
52
  declare function createQuotesResource(instanceId: string, client: InternalApiClient): {
@@ -1,17 +1,17 @@
1
- import { I as InternalApiClient, g as CurrencyType, N as Network, S as StablecoinToken, j as TransactionDocumentType, B as BlindpayApiResponse, h as Currency } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, l as CurrencyType, N as Network, S as StablecoinToken, r as TransactionDocumentType, B as BlindpayApiResponse, i as Currency } from '../../api-client-DhY5DFpq.js';
2
2
 
3
3
  type CreateQuoteInput = {
4
4
  bank_account_id: string;
5
5
  currency_type: CurrencyType;
6
- network?: Network | null;
6
+ cover_fees: boolean;
7
7
  request_amount: number;
8
+ network: Network;
8
9
  token?: StablecoinToken | null;
9
- cover_fees: boolean | null;
10
10
  description?: string | null;
11
- partner_fee_id: string | null;
11
+ partner_fee_id?: string | null;
12
12
  transaction_document_file: string | null;
13
- transaction_document_id: string | null;
14
- transaction_document_type: TransactionDocumentType;
13
+ transaction_document_id?: string | null;
14
+ transaction_document_type?: TransactionDocumentType | null;
15
15
  };
16
16
  type CreateQuoteResponse = {
17
17
  id: string;
@@ -20,33 +20,33 @@ type CreateQuoteResponse = {
20
20
  blindpay_quotation: number;
21
21
  receiver_amount: number;
22
22
  sender_amount: number;
23
- partner_fee_amount: number;
24
- flat_fee: number;
25
- contract: {
23
+ partner_fee_amount?: number | null;
24
+ flat_fee?: number | null;
25
+ contract?: {
26
26
  abi: Record<string, unknown>[];
27
27
  address: string;
28
- functionName: string;
28
+ functionName: "approve";
29
29
  blindpayContractAddress: string;
30
30
  amount: string;
31
31
  network: {
32
32
  name: string;
33
33
  chainId: number;
34
34
  };
35
- };
36
- receiver_local_amount: number;
37
- description: string;
35
+ } | null;
36
+ receiver_local_amount?: number | null;
37
+ description?: string | null;
38
38
  };
39
39
  type GetFxRateInput = {
40
40
  currency_type: CurrencyType;
41
- from: Currency;
42
- to: Currency;
41
+ from: StablecoinToken;
42
+ to: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
43
43
  request_amount: number;
44
44
  };
45
45
  type GetFxRateResponse = {
46
46
  commercial_quotation: number;
47
47
  blindpay_quotation: number;
48
48
  result_amount: number;
49
- instance_flat_fee: number;
49
+ instance_flat_fee?: number | null;
50
50
  instance_percentage_fee: number;
51
51
  };
52
52
  declare function createQuotesResource(instanceId: string, client: InternalApiClient): {
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.5.0";
18705
+ var version = "3.1.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
18905
18905
  getTrack(payinId) {
18906
18906
  return client.get(`/e/payins/${payinId}`);
18907
18907
  },
18908
- export(_a3) {
18909
- var params = __objRest(_a3, []);
18910
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18911
- return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
18912
- },
18913
18908
  createEvm(payin_quote_id) {
18914
18909
  return client.post(`/instances/${instanceId}/payins/evm`, {
18915
18910
  payin_quote_id
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
18928
18923
  getFxRate(_b) {
18929
18924
  var data = __objRest(_b, []);
18930
18925
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
- },
18932
- get(id) {
18933
- return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18934
- },
18935
- list(params) {
18936
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18937
- return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
18938
18926
  }
18939
18927
  };
18940
18928
  }
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
18946
18934
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18947
18935
  return client.get(`/instances/${instanceId}/payouts${queryParams}`);
18948
18936
  },
18949
- export(params) {
18950
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18951
- return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
18952
- },
18953
18937
  get(payoutId) {
18954
18938
  return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
18955
18939
  },
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
18967
18951
  createEvm(_c) {
18968
18952
  var data = __objRest(_c, []);
18969
18953
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
18954
+ },
18955
+ createSolana(_d) {
18956
+ var data = __objRest(_d, []);
18957
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
18970
18958
  }
18971
18959
  };
18972
18960
  }
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
19059
19047
  // src/resources/virtual-accounts/index.ts
19060
19048
  function createVirtualAccountsResource(instanceId, client) {
19061
19049
  return {
19062
- update(_a3) {
19050
+ list(receiver_id) {
19051
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19052
+ },
19053
+ get({
19054
+ receiver_id,
19055
+ id
19056
+ }) {
19057
+ return client.get(
19058
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
19059
+ );
19060
+ },
19061
+ create(_a3) {
19063
19062
  var _b = _a3, {
19064
19063
  receiver_id
19065
19064
  } = _b, data = __objRest(_b, [
19066
19065
  "receiver_id"
19067
19066
  ]);
19068
- return client.put(
19067
+ return client.post(
19069
19068
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19070
19069
  data
19071
19070
  );
19072
19071
  },
19073
- create(_c) {
19072
+ update(_c) {
19074
19073
  var _d = _c, {
19075
- receiver_id
19074
+ receiver_id,
19075
+ id
19076
19076
  } = _d, data = __objRest(_d, [
19077
- "receiver_id"
19077
+ "receiver_id",
19078
+ "id"
19078
19079
  ]);
19079
- return client.post(
19080
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19080
+ return client.put(
19081
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
19081
19082
  data
19082
19083
  );
19083
- },
19084
- get(receiver_id) {
19085
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19086
19084
  }
19087
19085
  };
19088
19086
  }
@@ -19429,7 +19427,7 @@ describe("Quotes", () => {
19429
19427
  });
19430
19428
  const { data, error } = yield blindpay.quotes.getFxRate({
19431
19429
  currency_type: "sender",
19432
- from: "USD",
19430
+ from: "USDC",
19433
19431
  to: "BRL",
19434
19432
  request_amount: 1e3
19435
19433
  });
@@ -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 {
@@ -96,7 +96,7 @@ var require_quotes_test = __commonJS({
96
96
  });
97
97
  const { data, error } = yield blindpay.quotes.getFxRate({
98
98
  currency_type: "sender",
99
- from: "USD",
99
+ from: "USDC",
100
100
  to: "BRL",
101
101
  request_amount: 1e3
102
102
  });
@@ -1,4 +1,6 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-DhY5DFpq.mjs';
2
+
3
+ type StrictOmit<T, K extends keyof T> = Omit<T, K>;
2
4
 
3
5
  type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
4
6
  type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
@@ -8,8 +10,6 @@ type KycType = "light" | "standard" | "enhanced";
8
10
  type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
9
11
  type Owner = {
10
12
  id: string;
11
- instance_id: string;
12
- receiver_id: string;
13
13
  role: OwnerRole;
14
14
  first_name: string;
15
15
  last_name: string;
@@ -30,6 +30,7 @@ type Owner = {
30
30
  };
31
31
  type IndividualWithStandardKYC = {
32
32
  id: string;
33
+ is_tos_accepted: boolean;
33
34
  type: Extract<AccountClass, "individual">;
34
35
  kyc_type: Extract<KycType, "standard">;
35
36
  kyc_status: string;
@@ -72,6 +73,7 @@ type IndividualWithStandardKYC = {
72
73
  };
73
74
  type IndividualWithEnhancedKYC = {
74
75
  id: string;
76
+ is_tos_accepted: boolean;
75
77
  type: Extract<AccountClass, "individual">;
76
78
  kyc_type: Extract<KycType, "enhanced">;
77
79
  kyc_status: string;
@@ -119,6 +121,8 @@ type IndividualWithEnhancedKYC = {
119
121
  };
120
122
  type BusinessWithStandardKYB = {
121
123
  id: string;
124
+ is_tos_accepted: boolean;
125
+ is_fbo: boolean;
122
126
  type: Extract<AccountClass, "business">;
123
127
  kyc_type: Extract<KycType, "standard">;
124
128
  kyc_status: string;
@@ -226,7 +230,7 @@ type CreateBusinessWithStandardKYBInput = {
226
230
  formation_date: string;
227
231
  incorporation_doc_file: string;
228
232
  legal_name: string;
229
- owners: Owner[];
233
+ owners: Array<StrictOmit<Owner, "id">>;
230
234
  postal_code: string;
231
235
  proof_of_address_doc_file: string;
232
236
  proof_of_address_doc_type: ProofOfAddressDocType;
@@ -268,9 +272,7 @@ type UpdateReceiverInput = {
268
272
  alternate_name?: string;
269
273
  formation_date?: string;
270
274
  website?: string;
271
- owners?: Array<{
272
- id: string;
273
- } & Pick<Owner, "first_name" | "last_name" | "role" | "date_of_birth" | "tax_id" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "id_doc_country" | "id_doc_type" | "id_doc_front_file" | "id_doc_back_file">>;
275
+ owners?: Array<Pick<Owner, "first_name" | "last_name" | "role" | "date_of_birth" | "tax_id" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "id_doc_country" | "id_doc_type" | "id_doc_front_file" | "id_doc_back_file">>;
274
276
  incorporation_doc_file?: string;
275
277
  proof_of_ownership_doc_file?: string;
276
278
  source_of_funds_doc_type?: SourceOfFundsDocType;