@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,6 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-DhY5DFpq.js';
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;
@@ -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
  }
@@ -19378,6 +19376,7 @@ describe("Receivers", () => {
19378
19376
  type: "individual",
19379
19377
  kyc_type: "standard",
19380
19378
  kyc_status: "verifying",
19379
+ is_tos_accepted: true,
19381
19380
  kyc_warnings: [
19382
19381
  {
19383
19382
  code: null,
@@ -19420,6 +19419,7 @@ describe("Receivers", () => {
19420
19419
  {
19421
19420
  id: "re_YuaMcI2B8zbQ",
19422
19421
  type: "individual",
19422
+ is_tos_accepted: true,
19423
19423
  kyc_type: "enhanced",
19424
19424
  kyc_status: "approved",
19425
19425
  kyc_warnings: null,
@@ -19463,6 +19463,8 @@ describe("Receivers", () => {
19463
19463
  id: "re_IOxAUL24LG7P",
19464
19464
  type: "business",
19465
19465
  kyc_type: "standard",
19466
+ is_tos_accepted: true,
19467
+ is_fbo: false,
19466
19468
  kyc_status: "pending",
19467
19469
  kyc_warnings: null,
19468
19470
  email: "business@example.com",
@@ -19501,9 +19503,7 @@ describe("Receivers", () => {
19501
19503
  id_doc_back_file: "https://example.com/image.png",
19502
19504
  proof_of_address_doc_type: "UTILITY_BILL",
19503
19505
  proof_of_address_doc_file: "https://example.com/image.png",
19504
- id: "ub_000000000000",
19505
- instance_id: "in_000000000000",
19506
- receiver_id: "re_IOxAUL24LG7P"
19506
+ id: "ub_000000000000"
19507
19507
  }
19508
19508
  ],
19509
19509
  incorporation_doc_file: "https://example.com/image.png",
@@ -19640,10 +19640,7 @@ describe("Receivers", () => {
19640
19640
  id_doc_front_file: "https://example.com/image.png",
19641
19641
  id_doc_back_file: "https://example.com/image.png",
19642
19642
  proof_of_address_doc_type: "UTILITY_BILL",
19643
- proof_of_address_doc_file: "https://example.com/image.png",
19644
- id: "ub_000000000000",
19645
- instance_id: "in_000000000000",
19646
- receiver_id: "re_IOxAUL24LG7P"
19643
+ proof_of_address_doc_file: "https://example.com/image.png"
19647
19644
  }
19648
19645
  ]
19649
19646
  });
@@ -19655,6 +19652,7 @@ describe("Receivers", () => {
19655
19652
  it("should get a receiver", () => __async(null, null, function* () {
19656
19653
  const mockedReceiver = {
19657
19654
  id: "re_YuaMcI2B8zbQ",
19655
+ is_tos_accepted: true,
19658
19656
  type: "individual",
19659
19657
  kyc_type: "enhanced",
19660
19658
  kyc_status: "verifying",
@@ -19742,7 +19740,6 @@ describe("Receivers", () => {
19742
19740
  website: "https://site.com",
19743
19741
  owners: [
19744
19742
  {
19745
- id: "ub_000000000000",
19746
19743
  first_name: "Carlos",
19747
19744
  last_name: "Silva",
19748
19745
  role: "beneficial_owner",
@@ -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 {
@@ -45,6 +45,7 @@ var require_receivers_test = __commonJS({
45
45
  type: "individual",
46
46
  kyc_type: "standard",
47
47
  kyc_status: "verifying",
48
+ is_tos_accepted: true,
48
49
  kyc_warnings: [
49
50
  {
50
51
  code: null,
@@ -87,6 +88,7 @@ var require_receivers_test = __commonJS({
87
88
  {
88
89
  id: "re_YuaMcI2B8zbQ",
89
90
  type: "individual",
91
+ is_tos_accepted: true,
90
92
  kyc_type: "enhanced",
91
93
  kyc_status: "approved",
92
94
  kyc_warnings: null,
@@ -130,6 +132,8 @@ var require_receivers_test = __commonJS({
130
132
  id: "re_IOxAUL24LG7P",
131
133
  type: "business",
132
134
  kyc_type: "standard",
135
+ is_tos_accepted: true,
136
+ is_fbo: false,
133
137
  kyc_status: "pending",
134
138
  kyc_warnings: null,
135
139
  email: "business@example.com",
@@ -168,9 +172,7 @@ var require_receivers_test = __commonJS({
168
172
  id_doc_back_file: "https://example.com/image.png",
169
173
  proof_of_address_doc_type: "UTILITY_BILL",
170
174
  proof_of_address_doc_file: "https://example.com/image.png",
171
- id: "ub_000000000000",
172
- instance_id: "in_000000000000",
173
- receiver_id: "re_IOxAUL24LG7P"
175
+ id: "ub_000000000000"
174
176
  }
175
177
  ],
176
178
  incorporation_doc_file: "https://example.com/image.png",
@@ -307,10 +309,7 @@ var require_receivers_test = __commonJS({
307
309
  id_doc_front_file: "https://example.com/image.png",
308
310
  id_doc_back_file: "https://example.com/image.png",
309
311
  proof_of_address_doc_type: "UTILITY_BILL",
310
- proof_of_address_doc_file: "https://example.com/image.png",
311
- id: "ub_000000000000",
312
- instance_id: "in_000000000000",
313
- receiver_id: "re_IOxAUL24LG7P"
312
+ proof_of_address_doc_file: "https://example.com/image.png"
314
313
  }
315
314
  ]
316
315
  });
@@ -322,6 +321,7 @@ var require_receivers_test = __commonJS({
322
321
  it("should get a receiver", () => __async(null, null, function* () {
323
322
  const mockedReceiver = {
324
323
  id: "re_YuaMcI2B8zbQ",
324
+ is_tos_accepted: true,
325
325
  type: "individual",
326
326
  kyc_type: "enhanced",
327
327
  kyc_status: "verifying",
@@ -409,7 +409,6 @@ var require_receivers_test = __commonJS({
409
409
  website: "https://site.com",
410
410
  owners: [
411
411
  {
412
- id: "ub_000000000000",
413
412
  first_name: "Carlos",
414
413
  last_name: "Silva",
415
414
  role: "beneficial_owner",
@@ -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 InitiateInput = {
4
4
  idempotency_key: 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 InitiateInput = {
4
4
  idempotency_key: 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,7 +1,10 @@
1
- import { I as InternalApiClient, S as StablecoinToken, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
+ type BankingPartner = "jpmorgan" | "citi";
3
4
  type VirtualAccount = {
4
5
  id: string;
6
+ banking_partner: BankingPartner;
7
+ kyc_status: string;
5
8
  us: {
6
9
  ach: {
7
10
  routing_number: string;
@@ -30,24 +33,36 @@ type VirtualAccount = {
30
33
  };
31
34
  token: StablecoinToken;
32
35
  blockchain_wallet_id: string;
36
+ blockchain_wallet: {
37
+ network: Network;
38
+ address: string;
39
+ } | null;
33
40
  };
41
+ type ListVirtualAccountsInput = string;
42
+ type ListVirtualAccountsResponse = VirtualAccount[];
34
43
  type CreateVirtualAccountInput = {
35
44
  receiver_id: string;
36
- blockchain_wallet_id: string;
45
+ banking_partner: BankingPartner;
37
46
  token: StablecoinToken;
47
+ blockchain_wallet_id: string;
38
48
  };
39
49
  type CreateVirtualAccountResponse = VirtualAccount;
40
- type GetVirtualAccountInput = string;
50
+ type GetVirtualAccountInput = {
51
+ receiver_id: string;
52
+ id: string;
53
+ };
41
54
  type GetVirtualAccountResponse = VirtualAccount;
42
55
  type UpdateVirtualAccountInput = {
43
56
  receiver_id: string;
44
- blockchain_wallet_id: string;
57
+ id: string;
45
58
  token: StablecoinToken;
59
+ blockchain_wallet_id: string;
46
60
  };
47
61
  declare function createVirtualAccountsResource(instanceId: string, client: InternalApiClient): {
48
- update({ receiver_id, ...data }: UpdateVirtualAccountInput): Promise<BlindpayApiResponse<void>>;
62
+ list(receiver_id: ListVirtualAccountsInput): Promise<BlindpayApiResponse<ListVirtualAccountsResponse>>;
63
+ get({ receiver_id, id, }: GetVirtualAccountInput): Promise<BlindpayApiResponse<GetVirtualAccountResponse>>;
49
64
  create({ receiver_id, ...data }: CreateVirtualAccountInput): Promise<BlindpayApiResponse<CreateVirtualAccountResponse>>;
50
- get(receiver_id: GetVirtualAccountInput): Promise<BlindpayApiResponse<GetVirtualAccountResponse>>;
65
+ update({ receiver_id, id, ...data }: UpdateVirtualAccountInput): Promise<BlindpayApiResponse<void>>;
51
66
  };
52
67
 
53
- export { type CreateVirtualAccountInput, type CreateVirtualAccountResponse, type GetVirtualAccountInput, type GetVirtualAccountResponse, type UpdateVirtualAccountInput, type VirtualAccount, createVirtualAccountsResource };
68
+ export { type BankingPartner, type CreateVirtualAccountInput, type CreateVirtualAccountResponse, type GetVirtualAccountInput, type GetVirtualAccountResponse, type ListVirtualAccountsInput, type ListVirtualAccountsResponse, type UpdateVirtualAccountInput, type VirtualAccount, createVirtualAccountsResource };
@@ -1,7 +1,10 @@
1
- import { I as InternalApiClient, S as StablecoinToken, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../api-client-DhY5DFpq.js';
2
2
 
3
+ type BankingPartner = "jpmorgan" | "citi";
3
4
  type VirtualAccount = {
4
5
  id: string;
6
+ banking_partner: BankingPartner;
7
+ kyc_status: string;
5
8
  us: {
6
9
  ach: {
7
10
  routing_number: string;
@@ -30,24 +33,36 @@ type VirtualAccount = {
30
33
  };
31
34
  token: StablecoinToken;
32
35
  blockchain_wallet_id: string;
36
+ blockchain_wallet: {
37
+ network: Network;
38
+ address: string;
39
+ } | null;
33
40
  };
41
+ type ListVirtualAccountsInput = string;
42
+ type ListVirtualAccountsResponse = VirtualAccount[];
34
43
  type CreateVirtualAccountInput = {
35
44
  receiver_id: string;
36
- blockchain_wallet_id: string;
45
+ banking_partner: BankingPartner;
37
46
  token: StablecoinToken;
47
+ blockchain_wallet_id: string;
38
48
  };
39
49
  type CreateVirtualAccountResponse = VirtualAccount;
40
- type GetVirtualAccountInput = string;
50
+ type GetVirtualAccountInput = {
51
+ receiver_id: string;
52
+ id: string;
53
+ };
41
54
  type GetVirtualAccountResponse = VirtualAccount;
42
55
  type UpdateVirtualAccountInput = {
43
56
  receiver_id: string;
44
- blockchain_wallet_id: string;
57
+ id: string;
45
58
  token: StablecoinToken;
59
+ blockchain_wallet_id: string;
46
60
  };
47
61
  declare function createVirtualAccountsResource(instanceId: string, client: InternalApiClient): {
48
- update({ receiver_id, ...data }: UpdateVirtualAccountInput): Promise<BlindpayApiResponse<void>>;
62
+ list(receiver_id: ListVirtualAccountsInput): Promise<BlindpayApiResponse<ListVirtualAccountsResponse>>;
63
+ get({ receiver_id, id, }: GetVirtualAccountInput): Promise<BlindpayApiResponse<GetVirtualAccountResponse>>;
49
64
  create({ receiver_id, ...data }: CreateVirtualAccountInput): Promise<BlindpayApiResponse<CreateVirtualAccountResponse>>;
50
- get(receiver_id: GetVirtualAccountInput): Promise<BlindpayApiResponse<GetVirtualAccountResponse>>;
65
+ update({ receiver_id, id, ...data }: UpdateVirtualAccountInput): Promise<BlindpayApiResponse<void>>;
51
66
  };
52
67
 
53
- export { type CreateVirtualAccountInput, type CreateVirtualAccountResponse, type GetVirtualAccountInput, type GetVirtualAccountResponse, type UpdateVirtualAccountInput, type VirtualAccount, createVirtualAccountsResource };
68
+ export { type BankingPartner, type CreateVirtualAccountInput, type CreateVirtualAccountResponse, type GetVirtualAccountInput, type GetVirtualAccountResponse, type ListVirtualAccountsInput, type ListVirtualAccountsResponse, type UpdateVirtualAccountInput, type VirtualAccount, createVirtualAccountsResource };
@@ -39,30 +39,40 @@ __export(virtual_accounts_exports, {
39
39
  module.exports = __toCommonJS(virtual_accounts_exports);
40
40
  function createVirtualAccountsResource(instanceId, client) {
41
41
  return {
42
- update(_a) {
42
+ list(receiver_id) {
43
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
44
+ },
45
+ get({
46
+ receiver_id,
47
+ id
48
+ }) {
49
+ return client.get(
50
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
51
+ );
52
+ },
53
+ create(_a) {
43
54
  var _b = _a, {
44
55
  receiver_id
45
56
  } = _b, data = __objRest(_b, [
46
57
  "receiver_id"
47
58
  ]);
48
- return client.put(
59
+ return client.post(
49
60
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
50
61
  data
51
62
  );
52
63
  },
53
- create(_c) {
64
+ update(_c) {
54
65
  var _d = _c, {
55
- receiver_id
66
+ receiver_id,
67
+ id
56
68
  } = _d, data = __objRest(_d, [
57
- "receiver_id"
69
+ "receiver_id",
70
+ "id"
58
71
  ]);
59
- return client.post(
60
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
72
+ return client.put(
73
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
61
74
  data
62
75
  );
63
- },
64
- get(receiver_id) {
65
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
66
76
  }
67
77
  };
68
78
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createVirtualAccountsResource,
3
3
  init_virtual_accounts
4
- } from "../../chunk-5XJJKYXE.mjs";
4
+ } from "../../chunk-LEPGLH7Q.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_virtual_accounts();
7
7
  export {