@blindpay/node 3.0.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 (77) hide show
  1. package/dist/{api-client-B7VQkM_4.d.mts → api-client-DhY5DFpq.d.mts} +37 -23
  2. package/dist/{api-client-B7VQkM_4.d.ts → api-client-DhY5DFpq.d.ts} +37 -23
  3. package/dist/{chunk-VRA5HP7F.mjs → chunk-E7M4CJKR.mjs} +0 -7
  4. package/dist/{chunk-WH2VNZE7.mjs → chunk-V4V47AUC.mjs} +12 -12
  5. package/dist/{chunk-W7NJUABI.mjs → chunk-VGU72ZNI.mjs} +1 -7
  6. package/dist/{chunk-VBZHAPK7.mjs → chunk-VOB7TMKL.mjs} +1 -9
  7. package/dist/index.d.mts +4 -4
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.js +2 -22
  10. package/dist/index.mjs +12 -12
  11. package/dist/resources/api-keys/api-keys.test.js +2 -22
  12. package/dist/resources/api-keys/api-keys.test.mjs +5 -5
  13. package/dist/resources/api-keys/index.d.mts +1 -1
  14. package/dist/resources/api-keys/index.d.ts +1 -1
  15. package/dist/resources/available/available.test.js +2 -22
  16. package/dist/resources/available/available.test.mjs +5 -5
  17. package/dist/resources/available/index.d.mts +1 -1
  18. package/dist/resources/available/index.d.ts +1 -1
  19. package/dist/resources/bank-accounts/bank-accounts.test.js +2 -22
  20. package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -5
  21. package/dist/resources/bank-accounts/index.d.mts +1 -1
  22. package/dist/resources/bank-accounts/index.d.ts +1 -1
  23. package/dist/resources/instances/index.d.mts +1 -1
  24. package/dist/resources/instances/index.d.ts +1 -1
  25. package/dist/resources/instances/instances.test.js +2 -22
  26. package/dist/resources/instances/instances.test.mjs +5 -5
  27. package/dist/resources/partner-fees/index.d.mts +1 -1
  28. package/dist/resources/partner-fees/index.d.ts +1 -1
  29. package/dist/resources/partner-fees/partner-fees.test.js +2 -22
  30. package/dist/resources/partner-fees/partner-fees.test.mjs +5 -5
  31. package/dist/resources/payins/index.d.mts +60 -123
  32. package/dist/resources/payins/index.d.ts +60 -123
  33. package/dist/resources/payins/index.js +0 -19
  34. package/dist/resources/payins/index.mjs +1 -1
  35. package/dist/resources/payins/payins-quotes.test.js +2 -108
  36. package/dist/resources/payins/payins-quotes.test.mjs +5 -91
  37. package/dist/resources/payins/payins.test.js +2 -157
  38. package/dist/resources/payins/payins.test.mjs +5 -140
  39. package/dist/resources/payins/quotes.d.mts +7 -72
  40. package/dist/resources/payins/quotes.d.ts +7 -72
  41. package/dist/resources/payins/quotes.js +0 -7
  42. package/dist/resources/payins/quotes.mjs +1 -1
  43. package/dist/resources/payouts/index.d.mts +2 -13
  44. package/dist/resources/payouts/index.d.ts +2 -13
  45. package/dist/resources/payouts/index.js +1 -9
  46. package/dist/resources/payouts/index.mjs +1 -1
  47. package/dist/resources/payouts/payouts.test.js +2 -148
  48. package/dist/resources/payouts/payouts.test.mjs +5 -131
  49. package/dist/resources/quotes/index.d.mts +16 -16
  50. package/dist/resources/quotes/index.d.ts +16 -16
  51. package/dist/resources/quotes/quotes.test.js +3 -23
  52. package/dist/resources/quotes/quotes.test.mjs +6 -6
  53. package/dist/resources/receivers/index.d.mts +1 -1
  54. package/dist/resources/receivers/index.d.ts +1 -1
  55. package/dist/resources/receivers/receivers.test.js +2 -22
  56. package/dist/resources/receivers/receivers.test.mjs +5 -5
  57. package/dist/resources/terms-of-service/index.d.mts +1 -1
  58. package/dist/resources/terms-of-service/index.d.ts +1 -1
  59. package/dist/resources/terms-of-service/terms-of-service.test.js +2 -22
  60. package/dist/resources/terms-of-service/terms-of-service.test.mjs +5 -5
  61. package/dist/resources/virtual-accounts/index.d.mts +1 -1
  62. package/dist/resources/virtual-accounts/index.d.ts +1 -1
  63. package/dist/resources/virtual-accounts/virtual-accounts.test.js +2 -22
  64. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +5 -5
  65. package/dist/resources/wallets/blockchain.d.mts +1 -1
  66. package/dist/resources/wallets/blockchain.d.ts +1 -1
  67. package/dist/resources/wallets/blockchain.test.js +2 -22
  68. package/dist/resources/wallets/blockchain.test.mjs +5 -5
  69. package/dist/resources/wallets/offramp.d.mts +1 -1
  70. package/dist/resources/wallets/offramp.d.ts +1 -1
  71. package/dist/resources/wallets/offramp.test.js +2 -22
  72. package/dist/resources/wallets/offramp.test.mjs +5 -5
  73. package/dist/resources/webhooks/index.d.mts +1 -1
  74. package/dist/resources/webhooks/index.d.ts +1 -1
  75. package/dist/resources/webhooks/webhooks.test.js +2 -22
  76. package/dist/resources/webhooks/webhooks.test.mjs +5 -5
  77. package/package.json +1 -1
@@ -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 = "3.0.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
  },
@@ -18968,12 +18952,8 @@ function createPayoutsResource(instanceId, client) {
18968
18952
  var data = __objRest(_c, []);
18969
18953
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
18970
18954
  },
18971
- authorizeSolana(_d) {
18955
+ createSolana(_d) {
18972
18956
  var data = __objRest(_d, []);
18973
- return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
18974
- },
18975
- createSolana(_e) {
18976
- var data = __objRest(_e, []);
18977
18957
  return client.post(`/instances/${instanceId}/payouts/solana`, data);
18978
18958
  }
18979
18959
  };
@@ -19485,11 +19465,6 @@ describe("Payins", () => {
19485
19465
  name: "BlindPay, Inc.",
19486
19466
  address_line_1: "8 The Green, #19364",
19487
19467
  address_line_2: "Dover, DE 19901"
19488
- },
19489
- receiving_bank: {
19490
- name: "Column NA - Brex",
19491
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19492
- address_line_2: "San Francisco, CA 94129"
19493
19468
  }
19494
19469
  }
19495
19470
  }
@@ -19603,11 +19578,6 @@ describe("Payins", () => {
19603
19578
  name: "BlindPay, Inc.",
19604
19579
  address_line_1: "8 The Green, #19364",
19605
19580
  address_line_2: "Dover, DE 19901"
19606
- },
19607
- receiving_bank: {
19608
- name: "Column NA - Brex",
19609
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19610
- address_line_2: "San Francisco, CA 94129"
19611
19581
  }
19612
19582
  }
19613
19583
  };
@@ -19714,11 +19684,6 @@ describe("Payins", () => {
19714
19684
  name: "BlindPay, Inc.",
19715
19685
  address_line_1: "8 The Green, #19364",
19716
19686
  address_line_2: "Dover, DE 19901"
19717
- },
19718
- receiving_bank: {
19719
- name: "Column NA - Brex",
19720
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19721
- address_line_2: "San Francisco, CA 94129"
19722
19687
  }
19723
19688
  }
19724
19689
  };
@@ -19730,121 +19695,6 @@ describe("Payins", () => {
19730
19695
  globalExpect(data).toEqual(mockedPayinTrack);
19731
19696
  }));
19732
19697
  });
19733
- describe("Export payins", () => {
19734
- it("should export payins", () => __async(null, null, function* () {
19735
- const mockedExportPayins = [
19736
- {
19737
- receiver_id: "re_000000000000",
19738
- id: "re_000000000000",
19739
- pix_code: "00020101021226790014br.gov.bcb.pix2557brcode.starkinfra.com/v2/bcf07f6c4110454e9fd6f120bab13e835204000053039865802BR5915Blind Pay, Inc.6010Vila Velha62070503***6304BCAB",
19740
- memo_code: "8K45GHBNT6BQ6462",
19741
- clabe: "014027000000000008",
19742
- status: "processing",
19743
- payin_quote_id: "pq_000000000000",
19744
- instance_id: "in_000000000000",
19745
- tracking_transaction: {
19746
- step: "processing",
19747
- status: "failed",
19748
- external_id: "12345678",
19749
- completed_at: "2011-10-05T14:48:00.000Z",
19750
- sender_name: "John Doe Smith",
19751
- sender_tax_id: "123.456.789-10",
19752
- sender_bank_code: "00416968",
19753
- sender_account_number: "1234567890",
19754
- trace_number: "1234567890",
19755
- transaction_reference: "1234567890",
19756
- description: "Payment from John Doe Smith",
19757
- pse_instruction: {
19758
- payment_link: "https://pse.example.com/payment/abc123",
19759
- fid: "fid_abc123",
19760
- full_name: "Juan P\xE9rez Garc\xEDa",
19761
- tax_id: "1234567890",
19762
- document_type: "CC",
19763
- phone: "+573001234567",
19764
- email: "juan@example.com",
19765
- bank_code: "1007"
19766
- },
19767
- transfers_instruction: {
19768
- account: "0000003100012389237485",
19769
- type: "CVU",
19770
- tax_id: "20123456783"
19771
- }
19772
- },
19773
- tracking_payment: {
19774
- step: "on_hold",
19775
- provider_name: "blockchain",
19776
- completed_at: "2011-10-05T14:48:00.000Z"
19777
- },
19778
- tracking_complete: {
19779
- step: "on_hold",
19780
- transaction_hash: "0x123...890",
19781
- completed_at: "2011-10-05T14:48:00.000Z"
19782
- },
19783
- tracking_partner_fee: {
19784
- step: "on_hold",
19785
- transaction_hash: "0x123...890",
19786
- completed_at: "2011-10-05T14:48:00.000Z"
19787
- },
19788
- created_at: "2021-01-01T00:00:00Z",
19789
- updated_at: "2021-01-01T00:00:00Z",
19790
- image_url: "https://example.com/image.png",
19791
- first_name: "John",
19792
- last_name: "Doe",
19793
- legal_name: "Company Name Inc.",
19794
- type: "individual",
19795
- payment_method: "pix",
19796
- sender_amount: 5240,
19797
- receiver_amount: 1010,
19798
- token: "USDC",
19799
- partner_fee_amount: 150,
19800
- total_fee_amount: 1.53,
19801
- commercial_quotation: 495,
19802
- blindpay_quotation: 505,
19803
- currency: "BRL",
19804
- billing_fee: 100,
19805
- name: "Wallet Display Name",
19806
- address: "0xDD6a3aD0949396e57C7738ba8FC1A46A5a1C372C",
19807
- network: "polygon",
19808
- blindpay_bank_details: {
19809
- routing_number: "121145349",
19810
- account_number: "621327727210181",
19811
- account_type: "Business checking",
19812
- swift_bic_code: "CHASUS33",
19813
- ach: {
19814
- routing_number: "123456789",
19815
- account_number: "123456789"
19816
- },
19817
- wire: {
19818
- routing_number: "123456789",
19819
- account_number: "123456789"
19820
- },
19821
- rtp: {
19822
- routing_number: "123456789",
19823
- account_number: "123456789"
19824
- },
19825
- beneficiary: {
19826
- name: "BlindPay, Inc.",
19827
- address_line_1: "8 The Green, #19364",
19828
- address_line_2: "Dover, DE 19901"
19829
- },
19830
- receiving_bank: {
19831
- name: "Column NA - Brex",
19832
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19833
- address_line_2: "San Francisco, CA 94129"
19834
- }
19835
- }
19836
- }
19837
- ];
19838
- fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayins), {
19839
- headers: { "Content-Type": "application/json" }
19840
- });
19841
- const { data, error } = yield blindpay.payins.export({
19842
- status: "processing"
19843
- });
19844
- globalExpect(error).toBeNull();
19845
- globalExpect(data).toEqual(mockedExportPayins);
19846
- }));
19847
- });
19848
19698
  describe("Create EVM payin", () => {
19849
19699
  it("should create an EVM payin", () => __async(null, null, function* () {
19850
19700
  const mockedEvmPayin = {
@@ -19917,11 +19767,6 @@ describe("Payins", () => {
19917
19767
  name: "BlindPay, Inc.",
19918
19768
  address_line_1: "8 The Green, #19364",
19919
19769
  address_line_2: "Dover, DE 19901"
19920
- },
19921
- receiving_bank: {
19922
- name: "Column NA - Brex",
19923
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19924
- address_line_2: "San Francisco, CA 94129"
19925
19770
  }
19926
19771
  },
19927
19772
  receiver_id: "re_000000000000",
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-WH2VNZE7.mjs";
11
+ } from "../../chunk-V4V47AUC.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -16,13 +16,13 @@ import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
17
  import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-LEPGLH7Q.mjs";
19
+ import "../../chunk-VGU72ZNI.mjs";
20
+ import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-VOB7TMKL.mjs";
19
22
  import "../../chunk-RC5NN5UF.mjs";
20
- import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-VRA5HP7F.mjs";
22
- import "../../chunk-VBZHAPK7.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
- import "../../chunk-CPOSU35L.mjs";
25
24
  import "../../chunk-U7CKUUO7.mjs";
25
+ import "../../chunk-CPOSU35L.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
28
28
  __async,
@@ -134,11 +134,6 @@ var require_payins_test = __commonJS({
134
134
  name: "BlindPay, Inc.",
135
135
  address_line_1: "8 The Green, #19364",
136
136
  address_line_2: "Dover, DE 19901"
137
- },
138
- receiving_bank: {
139
- name: "Column NA - Brex",
140
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
141
- address_line_2: "San Francisco, CA 94129"
142
137
  }
143
138
  }
144
139
  }
@@ -252,11 +247,6 @@ var require_payins_test = __commonJS({
252
247
  name: "BlindPay, Inc.",
253
248
  address_line_1: "8 The Green, #19364",
254
249
  address_line_2: "Dover, DE 19901"
255
- },
256
- receiving_bank: {
257
- name: "Column NA - Brex",
258
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
259
- address_line_2: "San Francisco, CA 94129"
260
250
  }
261
251
  }
262
252
  };
@@ -363,11 +353,6 @@ var require_payins_test = __commonJS({
363
353
  name: "BlindPay, Inc.",
364
354
  address_line_1: "8 The Green, #19364",
365
355
  address_line_2: "Dover, DE 19901"
366
- },
367
- receiving_bank: {
368
- name: "Column NA - Brex",
369
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
370
- address_line_2: "San Francisco, CA 94129"
371
356
  }
372
357
  }
373
358
  };
@@ -379,121 +364,6 @@ var require_payins_test = __commonJS({
379
364
  globalExpect(data).toEqual(mockedPayinTrack);
380
365
  }));
381
366
  });
382
- describe("Export payins", () => {
383
- it("should export payins", () => __async(null, null, function* () {
384
- const mockedExportPayins = [
385
- {
386
- receiver_id: "re_000000000000",
387
- id: "re_000000000000",
388
- pix_code: "00020101021226790014br.gov.bcb.pix2557brcode.starkinfra.com/v2/bcf07f6c4110454e9fd6f120bab13e835204000053039865802BR5915Blind Pay, Inc.6010Vila Velha62070503***6304BCAB",
389
- memo_code: "8K45GHBNT6BQ6462",
390
- clabe: "014027000000000008",
391
- status: "processing",
392
- payin_quote_id: "pq_000000000000",
393
- instance_id: "in_000000000000",
394
- tracking_transaction: {
395
- step: "processing",
396
- status: "failed",
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
- }
421
- },
422
- tracking_payment: {
423
- step: "on_hold",
424
- provider_name: "blockchain",
425
- completed_at: "2011-10-05T14:48:00.000Z"
426
- },
427
- tracking_complete: {
428
- step: "on_hold",
429
- transaction_hash: "0x123...890",
430
- completed_at: "2011-10-05T14:48:00.000Z"
431
- },
432
- tracking_partner_fee: {
433
- step: "on_hold",
434
- transaction_hash: "0x123...890",
435
- completed_at: "2011-10-05T14:48:00.000Z"
436
- },
437
- created_at: "2021-01-01T00:00:00Z",
438
- updated_at: "2021-01-01T00:00:00Z",
439
- image_url: "https://example.com/image.png",
440
- first_name: "John",
441
- last_name: "Doe",
442
- legal_name: "Company Name Inc.",
443
- type: "individual",
444
- payment_method: "pix",
445
- sender_amount: 5240,
446
- receiver_amount: 1010,
447
- token: "USDC",
448
- partner_fee_amount: 150,
449
- total_fee_amount: 1.53,
450
- commercial_quotation: 495,
451
- blindpay_quotation: 505,
452
- currency: "BRL",
453
- billing_fee: 100,
454
- name: "Wallet Display Name",
455
- address: "0xDD6a3aD0949396e57C7738ba8FC1A46A5a1C372C",
456
- network: "polygon",
457
- blindpay_bank_details: {
458
- routing_number: "121145349",
459
- account_number: "621327727210181",
460
- account_type: "Business checking",
461
- swift_bic_code: "CHASUS33",
462
- ach: {
463
- routing_number: "123456789",
464
- account_number: "123456789"
465
- },
466
- wire: {
467
- routing_number: "123456789",
468
- account_number: "123456789"
469
- },
470
- rtp: {
471
- routing_number: "123456789",
472
- account_number: "123456789"
473
- },
474
- beneficiary: {
475
- name: "BlindPay, Inc.",
476
- address_line_1: "8 The Green, #19364",
477
- address_line_2: "Dover, DE 19901"
478
- },
479
- receiving_bank: {
480
- name: "Column NA - Brex",
481
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
482
- address_line_2: "San Francisco, CA 94129"
483
- }
484
- }
485
- }
486
- ];
487
- fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayins), {
488
- headers: { "Content-Type": "application/json" }
489
- });
490
- const { data, error } = yield blindpay.payins.export({
491
- status: "processing"
492
- });
493
- globalExpect(error).toBeNull();
494
- globalExpect(data).toEqual(mockedExportPayins);
495
- }));
496
- });
497
367
  describe("Create EVM payin", () => {
498
368
  it("should create an EVM payin", () => __async(null, null, function* () {
499
369
  const mockedEvmPayin = {
@@ -566,11 +436,6 @@ var require_payins_test = __commonJS({
566
436
  name: "BlindPay, Inc.",
567
437
  address_line_1: "8 The Green, #19364",
568
438
  address_line_2: "Dover, DE 19901"
569
- },
570
- receiving_bank: {
571
- name: "Column NA - Brex",
572
- address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
573
- address_line_2: "San Francisco, CA 94129"
574
439
  }
575
440
  },
576
441
  receiver_id: "re_000000000000",
@@ -1,17 +1,15 @@
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';
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, i as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, j as Currency, P as PaginationParams, h as PaginationMetadata } from '../../api-client-B7VQkM_4.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 {