@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
@@ -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
  }
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
3
  type ListPartnerFeesResponse = Array<{
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.js';
2
2
 
3
3
  type ListPartnerFeesResponse = Array<{
4
4
  id: string;
@@ -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
  }
@@ -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 {
@@ -1,66 +1,68 @@
1
- import { I as InternalApiClient, P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, b as TrackingTransaction, c as TrackingPayment, d as TrackingComplete, e as TrackingPartnerFee, S as StablecoinToken, N as Network, f as PaginationMetadata } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, d as PayinTrackingTransaction, e as PayinTrackingPayment, f as PayinTrackingComplete, g as PayinTrackingPartnerFee, A as AccountClass, h as PayinPaymentMethod, S as StablecoinToken, i as Currency, j as PayerRules, N as Network, b as AchCopDocument, k as PaginationMetadata } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
+ type BlindpayBankDetails = {
4
+ routing_number: string;
5
+ account_number: string;
6
+ account_type: string;
7
+ swift_bic_code?: string | null;
8
+ ach?: {
9
+ routing_number: string;
10
+ account_number: string;
11
+ } | null;
12
+ wire?: {
13
+ routing_number: string;
14
+ account_number: string;
15
+ } | null;
16
+ rtp?: {
17
+ routing_number: string;
18
+ account_number: string;
19
+ } | null;
20
+ beneficiary: {
21
+ name: string;
22
+ address_line_1: string;
23
+ address_line_2: string;
24
+ };
25
+ };
3
26
  type Payin = {
4
- receiver_id: string;
5
27
  id: string;
6
- pix_code?: string;
7
- memo_code?: string;
8
- clabe?: string;
28
+ receiver_id: string;
29
+ pix_code?: string | null;
30
+ memo_code?: string | null;
31
+ clabe?: string | null;
9
32
  status: TransactionStatus;
10
33
  payin_quote_id: string;
11
34
  instance_id: string;
12
- tracking_transaction?: TrackingTransaction;
13
- tracking_payment?: TrackingPayment;
14
- tracking_complete?: TrackingComplete;
15
- tracking_partner_fee?: TrackingPartnerFee;
35
+ tracking_transaction: PayinTrackingTransaction;
36
+ tracking_payment: PayinTrackingPayment;
37
+ tracking_complete: PayinTrackingComplete;
38
+ tracking_partner_fee?: PayinTrackingPartnerFee;
16
39
  created_at: string;
17
40
  updated_at: string;
18
- image_url?: string;
19
- first_name?: string;
20
- last_name?: string;
21
- legal_name?: string;
22
- type: string;
23
- payment_method: string;
41
+ image_url?: string | null | undefined;
42
+ first_name?: string | null | undefined;
43
+ last_name?: string | null | undefined;
44
+ legal_name?: string | null | undefined;
45
+ type: AccountClass;
46
+ payment_method: PayinPaymentMethod;
24
47
  sender_amount: number;
25
48
  receiver_amount: number;
26
49
  token: StablecoinToken;
27
- partner_fee_amount: number;
28
- total_fee_amount: number;
50
+ partner_fee_amount?: number | null;
51
+ total_fee_amount?: number | null;
29
52
  commercial_quotation: number;
30
53
  blindpay_quotation: number;
31
- currency: string;
32
- billing_fee: number;
54
+ currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
55
+ billing_fee?: number | null;
56
+ is_otc?: boolean | null;
57
+ payer_rules?: PayerRules | null;
33
58
  name: string;
34
- address: string;
59
+ address?: string | null;
35
60
  network: Network;
36
- blindpay_bank_details: {
37
- routing_number: string;
38
- account_number: string;
39
- account_type: string;
40
- swift_bic_code: string;
41
- ach: {
42
- routing_number: string;
43
- account_number: string;
44
- };
45
- wire: {
46
- routing_number: string;
47
- account_number: string;
48
- };
49
- rtp: {
50
- routing_number: string;
51
- account_number: string;
52
- };
53
- beneficiary: {
54
- name: string;
55
- address_line_1: string;
56
- address_line_2: string;
57
- };
58
- receiving_bank: {
59
- name: string;
60
- address_line_1: string;
61
- address_line_2: string;
62
- };
63
- };
61
+ blindpay_bank_details?: BlindpayBankDetails | null;
62
+ pse_payment_link?: string | null;
63
+ pse_full_name?: string | null;
64
+ pse_tax_id?: string | null;
65
+ pse_document_type?: Extract<AchCopDocument, "CC" | "NIT"> | null;
64
66
  };
65
67
  type ListPayinsInput = PaginationParams & {
66
68
  status?: TransactionStatus;
@@ -69,117 +71,28 @@ type ListPayinsInput = PaginationParams & {
69
71
  type ListPayinsResponse = {
70
72
  data: Payin[];
71
73
  pagination: PaginationMetadata;
72
- };
74
+ } | Payin[];
73
75
  type CreatePayinInput = {
74
76
  quote_id: string;
75
- sender_address: string;
76
- receiver_address: string;
77
- amount: number;
78
- token: StablecoinToken;
79
- network: Network;
80
- description?: string | null;
81
77
  };
82
78
  type GetPayinInput = string;
83
79
  type GetPayinResponse = Payin;
84
80
  type GetPayinTrackInput = string;
85
- type GetPayinTrackResponse = {
86
- receiver_id: string;
87
- id: string;
88
- pix_code: string;
89
- memo_code: string;
90
- clabe: string;
91
- status: string;
92
- payin_quote_id: string;
93
- instance_id: string;
94
- tracking_transaction: {
95
- step: string;
96
- status: string;
97
- external_id: string;
98
- completed_at: string;
99
- sender_name: string;
100
- sender_tax_id: string;
101
- sender_bank_code: string;
102
- sender_account_number: string;
103
- trace_number: string;
104
- transaction_reference: string;
105
- description: string;
106
- };
107
- tracking_payment: {
108
- step: string;
109
- provider_name: string;
110
- completed_at: string;
111
- };
112
- tracking_complete: {
113
- step: string;
114
- transaction_hash: string;
115
- completed_at: string;
116
- };
117
- tracking_partner_fee: {
118
- step: string;
119
- transaction_hash: string;
120
- completed_at: string;
121
- };
122
- created_at: string;
123
- updated_at: string;
124
- image_url: string;
125
- first_name: string;
126
- last_name: string;
127
- legal_name: string;
128
- type: string;
129
- payment_method: string;
130
- sender_amount: number;
131
- receiver_amount: number;
132
- token: StablecoinToken;
133
- partner_fee_amount: number;
134
- total_fee_amount: number;
135
- commercial_quotation: number;
136
- blindpay_quotation: number;
137
- currency: string;
138
- billing_fee: number;
139
- name: string;
140
- address: string;
141
- network: Network;
142
- blindpay_bank_details: {
143
- routing_number: string;
144
- account_number: string;
145
- account_type: string;
146
- swift_bic_code: string;
147
- ach: {
148
- routing_number: string;
149
- account_number: string;
150
- };
151
- wire: {
152
- routing_number: string;
153
- account_number: string;
154
- };
155
- rtp: {
156
- routing_number: string;
157
- account_number: string;
158
- };
159
- beneficiary: {
160
- name: string;
161
- address_line_1: string;
162
- address_line_2: string;
163
- };
164
- receiving_bank: {
165
- name: string;
166
- address_line_1: string;
167
- address_line_2: string;
168
- };
169
- };
170
- };
171
- type ExportPayinsInput = Pick<PaginationParams, "limit" | "offset"> & {
172
- status: TransactionStatus;
173
- };
174
- type ExportPayinsResponse = Payin[];
81
+ type GetPayinTrackResponse = Payin;
175
82
  type CreateEvmPayinInput = string;
176
- type CreateEvmPayinResponse = Pick<Payin, "id" | "status" | "pix_code" | "memo_code" | "clabe" | "tracking_complete" | "tracking_payment" | "tracking_transaction" | "tracking_partner_fee" | "blindpay_bank_details" | "receiver_id" | "receiver_amount">;
83
+ type CreateEvmPayinResponse = Pick<Payin, "id" | "status" | "pix_code" | "memo_code" | "clabe" | "tracking_complete" | "tracking_payment" | "tracking_transaction" | "tracking_partner_fee"> & {
84
+ blindpay_bank_details: BlindpayBankDetails;
85
+ receiver_id?: string | null;
86
+ receiver_amount?: number | null;
87
+ payment_method?: PayinPaymentMethod | null;
88
+ billing_fee?: number | null;
89
+ sender_amount?: number | null;
90
+ };
177
91
  declare function createPayinsResource(instanceId: string, client: InternalApiClient): {
178
92
  list(params?: ListPayinsInput): Promise<BlindpayApiResponse<ListPayinsResponse>>;
179
93
  get(payinId: GetPayinInput): Promise<BlindpayApiResponse<GetPayinResponse>>;
180
94
  getTrack(payinId: GetPayinTrackInput): Promise<BlindpayApiResponse<GetPayinTrackResponse>>;
181
- export({ ...params }: ExportPayinsInput): Promise<BlindpayApiResponse<ExportPayinsResponse>>;
182
95
  createEvm(payin_quote_id: CreateEvmPayinInput): Promise<BlindpayApiResponse<CreateEvmPayinResponse>>;
183
96
  };
184
97
 
185
- export { type CreateEvmPayinInput, type CreateEvmPayinResponse, type CreatePayinInput, type ExportPayinsInput, type ExportPayinsResponse, type GetPayinInput, type GetPayinResponse, type GetPayinTrackInput, type GetPayinTrackResponse, type ListPayinsInput, type ListPayinsResponse, type Payin, createPayinsResource };
98
+ export { type BlindpayBankDetails, type CreateEvmPayinInput, type CreateEvmPayinResponse, type CreatePayinInput, type GetPayinInput, type GetPayinResponse, type GetPayinTrackInput, type GetPayinTrackResponse, type ListPayinsInput, type ListPayinsResponse, type Payin, createPayinsResource };