@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
@@ -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.js';
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.js';
2
2
 
3
3
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
4
4
  type Payout = {
@@ -9,11 +9,11 @@ type Payout = {
9
9
  signed_transaction: string;
10
10
  quote_id: string;
11
11
  instance_id: string;
12
- tracking_transaction: 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 };
@@ -43,10 +43,6 @@ function createPayoutsResource(instanceId, client) {
43
43
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
44
44
  return client.get(`/instances/${instanceId}/payouts${queryParams}`);
45
45
  },
46
- export(params) {
47
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
48
- return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
49
- },
50
46
  get(payoutId) {
51
47
  return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
52
48
  },
@@ -64,6 +60,10 @@ function createPayoutsResource(instanceId, client) {
64
60
  createEvm(_c) {
65
61
  var data = __objRest(_c, []);
66
62
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
63
+ },
64
+ createSolana(_d) {
65
+ var data = __objRest(_d, []);
66
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
67
67
  }
68
68
  };
69
69
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPayoutsResource,
3
3
  init_payouts
4
- } from "../../chunk-3QQCDR3E.mjs";
4
+ } from "../../chunk-VOB7TMKL.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_payouts();
7
7
  export {
@@ -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
  }
@@ -19393,6 +19391,12 @@ describe("Payouts", () => {
19393
19391
  provider_name: "blockchain",
19394
19392
  provider_transaction_id: "0x123...890",
19395
19393
  provider_status: "canceled",
19394
+ recipient_name: "John Doe",
19395
+ recipient_tax_id: "123.456.789-10",
19396
+ recipient_bank_code: "00416968",
19397
+ recipient_branch_code: "0001",
19398
+ recipient_account_number: "1234567890",
19399
+ recipient_account_type: "checking",
19396
19400
  estimated_time_of_arrival: "5_min",
19397
19401
  completed_at: "2011-10-05T14:48:00.000Z"
19398
19402
  },
@@ -19502,6 +19506,12 @@ describe("Payouts", () => {
19502
19506
  provider_name: "blockchain",
19503
19507
  provider_transaction_id: "0x123...890",
19504
19508
  provider_status: "canceled",
19509
+ recipient_name: "John Doe",
19510
+ recipient_tax_id: "123.456.789-10",
19511
+ recipient_bank_code: "00416968",
19512
+ recipient_branch_code: "0001",
19513
+ recipient_account_number: "1234567890",
19514
+ recipient_account_type: "checking",
19505
19515
  estimated_time_of_arrival: "5_min",
19506
19516
  completed_at: "2011-10-05T14:48:00.000Z"
19507
19517
  },
@@ -19583,110 +19593,6 @@ describe("Payouts", () => {
19583
19593
  globalExpect(data).toEqual(mockedPayout);
19584
19594
  }));
19585
19595
  });
19586
- describe("Export payouts", () => {
19587
- it("should export payouts", () => __async(null, null, function* () {
19588
- const mockedExportPayouts = [
19589
- {
19590
- receiver_id: "re_000000000000",
19591
- id: "pa_000000000000",
19592
- status: "processing",
19593
- sender_wallet_address: "0x123...890",
19594
- signed_transaction: "AAA...Zey8y0A",
19595
- quote_id: "qu_000000000000",
19596
- instance_id: "in_000000000000",
19597
- tracking_transaction: {
19598
- step: "processing",
19599
- status: "failed",
19600
- transaction_hash: "0x123...890",
19601
- completed_at: "2011-10-05T14:48:00.000Z"
19602
- },
19603
- tracking_payment: {
19604
- step: "on_hold",
19605
- provider_name: "blockchain",
19606
- provider_transaction_id: "0x123...890",
19607
- provider_status: "canceled",
19608
- estimated_time_of_arrival: "5_min",
19609
- completed_at: "2011-10-05T14:48:00.000Z"
19610
- },
19611
- tracking_liquidity: {
19612
- step: "processing",
19613
- provider_transaction_id: "0x123...890",
19614
- provider_status: "deposited",
19615
- estimated_time_of_arrival: "1_business_day",
19616
- completed_at: "2011-10-05T14:48:00.000Z"
19617
- },
19618
- tracking_complete: {
19619
- step: "on_hold",
19620
- status: "tokens_refunded",
19621
- transaction_hash: "0x123...890",
19622
- completed_at: "2011-10-05T14:48:00.000Z"
19623
- },
19624
- tracking_partner_fee: {
19625
- step: "on_hold",
19626
- transaction_hash: "0x123...890",
19627
- completed_at: "2011-10-05T14:48:00.000Z"
19628
- },
19629
- created_at: "2021-01-01T00:00:00Z",
19630
- updated_at: "2021-01-01T00:00:00Z",
19631
- image_url: "https://example.com/image.png",
19632
- first_name: "John",
19633
- last_name: "Doe",
19634
- legal_name: "Company Name Inc.",
19635
- network: "sepolia",
19636
- token: "USDC",
19637
- description: "Memo code or description, only works with USD and BRL",
19638
- sender_amount: 1010,
19639
- receiver_amount: 5240,
19640
- partner_fee_amount: 150,
19641
- commercial_quotation: 495,
19642
- blindpay_quotation: 485,
19643
- total_fee_amount: 1.5,
19644
- receiver_local_amount: 1e3,
19645
- currency: "BRL",
19646
- transaction_document_file: "https://example.com/image.png",
19647
- transaction_document_type: "invoice",
19648
- transaction_document_id: "1234567890",
19649
- name: "Bank Account Name",
19650
- type: "wire",
19651
- pix_key: "14947677768",
19652
- account_number: "1001001234",
19653
- routing_number: "012345678",
19654
- country: "US",
19655
- account_class: "individual",
19656
- address_line_1: "Address line 1",
19657
- address_line_2: "Address line 2",
19658
- city: "City",
19659
- state_province_region: "State/Province/Region",
19660
- postal_code: "Postal code",
19661
- account_type: "checking",
19662
- ach_cop_beneficiary_first_name: "Fernando",
19663
- ach_cop_bank_account: "12345678",
19664
- ach_cop_bank_code: "051",
19665
- ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
19666
- ach_cop_document_id: "1661105408",
19667
- ach_cop_document_type: "CC",
19668
- ach_cop_email: "fernando.guzman@gmail.com",
19669
- beneficiary_name: "Individual full name or business name",
19670
- spei_clabe: "5482347403740546",
19671
- spei_protocol: "clabe",
19672
- spei_institution_code: "40002",
19673
- swift_beneficiary_country: "MX",
19674
- swift_code_bic: "123456789",
19675
- swift_account_holder_name: "John Doe",
19676
- swift_account_number_iban: "123456789",
19677
- transfers_account: "BM123123123123",
19678
- transfers_type: "CVU",
19679
- has_virtual_account: true
19680
- }
19681
- ];
19682
- fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayouts), {
19683
- headers: { "Content-Type": "application/json" }
19684
- });
19685
- const { data, error } = yield blindpay.payouts.export();
19686
- globalExpect(error).toBeNull();
19687
- globalExpect(data).toEqual(mockedExportPayouts);
19688
- }));
19689
- });
19690
19596
  describe("Get payout track", () => {
19691
19597
  it("should get payout tracking information", () => __async(null, null, function* () {
19692
19598
  const mockedPayoutTrack = {
@@ -19708,6 +19614,12 @@ describe("Payouts", () => {
19708
19614
  provider_name: "blockchain",
19709
19615
  provider_transaction_id: "0x123...890",
19710
19616
  provider_status: "canceled",
19617
+ recipient_name: "John Doe",
19618
+ recipient_tax_id: "123.456.789-10",
19619
+ recipient_bank_code: "00416968",
19620
+ recipient_branch_code: "0001",
19621
+ recipient_account_number: "1234567890",
19622
+ recipient_account_type: "checking",
19711
19623
  estimated_time_of_arrival: "5_min",
19712
19624
  completed_at: "2011-10-05T14:48:00.000Z"
19713
19625
  },
@@ -19822,6 +19734,12 @@ describe("Payouts", () => {
19822
19734
  provider_name: "blockchain",
19823
19735
  provider_transaction_id: "0x123...890",
19824
19736
  provider_status: "canceled",
19737
+ recipient_name: "John Doe",
19738
+ recipient_tax_id: "123.456.789-10",
19739
+ recipient_bank_code: "00416968",
19740
+ recipient_branch_code: "0001",
19741
+ recipient_account_number: "1234567890",
19742
+ recipient_account_type: "checking",
19825
19743
  estimated_time_of_arrival: "5_min",
19826
19744
  completed_at: "2011-10-05T14:48:00.000Z"
19827
19745
  },
@@ -19873,6 +19791,12 @@ describe("Payouts", () => {
19873
19791
  provider_name: "blockchain",
19874
19792
  provider_transaction_id: "0x123...890",
19875
19793
  provider_status: "canceled",
19794
+ recipient_name: "John Doe",
19795
+ recipient_tax_id: "123.456.789-10",
19796
+ recipient_bank_code: "00416968",
19797
+ recipient_branch_code: "0001",
19798
+ recipient_account_number: "1234567890",
19799
+ recipient_account_type: "checking",
19876
19800
  estimated_time_of_arrival: "5_min",
19877
19801
  completed_at: "2011-10-05T14:48:00.000Z"
19878
19802
  },
@@ -19907,6 +19831,64 @@ describe("Payouts", () => {
19907
19831
  globalExpect(data).toEqual(mockedEvmPayout);
19908
19832
  }));
19909
19833
  });
19834
+ describe("Create solana payout", () => {
19835
+ it("should create a solana payout", () => __async(null, null, function* () {
19836
+ const mockedSolanaPayout = {
19837
+ id: "pa_000000000000",
19838
+ status: "processing",
19839
+ sender_wallet_address: "0x123...890",
19840
+ tracking_complete: {
19841
+ step: "on_hold",
19842
+ status: "tokens_refunded",
19843
+ transaction_hash: "0x123...890",
19844
+ completed_at: "2011-10-05T14:48:00.000Z"
19845
+ },
19846
+ tracking_payment: {
19847
+ step: "on_hold",
19848
+ provider_name: "blockchain",
19849
+ provider_transaction_id: "0x123...890",
19850
+ provider_status: "canceled",
19851
+ recipient_name: "John Doe",
19852
+ recipient_tax_id: "123.456.789-10",
19853
+ recipient_bank_code: "00416968",
19854
+ recipient_branch_code: "0001",
19855
+ recipient_account_number: "1234567890",
19856
+ recipient_account_type: "checking",
19857
+ estimated_time_of_arrival: "5_min",
19858
+ completed_at: "2011-10-05T14:48:00.000Z"
19859
+ },
19860
+ tracking_transaction: {
19861
+ step: "processing",
19862
+ status: "failed",
19863
+ transaction_hash: "0x123...890",
19864
+ completed_at: "2011-10-05T14:48:00.000Z"
19865
+ },
19866
+ tracking_partner_fee: {
19867
+ step: "on_hold",
19868
+ transaction_hash: "0x123...890",
19869
+ completed_at: "2011-10-05T14:48:00.000Z"
19870
+ },
19871
+ tracking_liquidity: {
19872
+ step: "processing",
19873
+ provider_transaction_id: "0x123...890",
19874
+ provider_status: "deposited",
19875
+ estimated_time_of_arrival: "1_business_day",
19876
+ completed_at: "2011-10-05T14:48:00.000Z"
19877
+ },
19878
+ receiver_id: "re_000000000000"
19879
+ };
19880
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSolanaPayout), {
19881
+ headers: { "Content-Type": "application/json" }
19882
+ });
19883
+ const { data, error } = yield blindpay.payouts.createSolana({
19884
+ quote_id: "qu_000000000000",
19885
+ sender_wallet_address: "0x123...890",
19886
+ signed_transaction: "AAA...Zey8y0A"
19887
+ });
19888
+ globalExpect(error).toBeNull();
19889
+ globalExpect(data).toEqual(mockedSolanaPayout);
19890
+ }));
19891
+ });
19910
19892
  });
19911
19893
  /*! Bundled license information:
19912
19894