@blindpay/node 3.9.0 → 3.11.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 (106) hide show
  1. package/dist/{api-client-BWImXDBx.d.ts → api-client-5N_7-zad.d.ts} +1 -1
  2. package/dist/{api-client-L9eGwH1U.d.mts → api-client-DYqrodZr.d.mts} +1 -1
  3. package/dist/{chunk-CLGWJEUF.mjs → chunk-IM2L5L4B.mjs} +22 -14
  4. package/dist/{chunk-BGXC2F73.mjs → chunk-KYOUR4KX.mjs} +4 -0
  5. package/dist/{chunk-HKWPAL4R.mjs → chunk-N4F3FBNB.mjs} +10 -0
  6. package/dist/{chunk-YIZJM2GU.mjs → chunk-NAGY6BLL.mjs} +10 -0
  7. package/dist/chunk-SLKVEQUY.mjs +76 -0
  8. package/dist/{index.d-DK8eD9f3.d.mts → index.d-CGeWvXXq.d.mts} +1 -1
  9. package/dist/{index.d-DK8eD9f3.d.ts → index.d-CGeWvXXq.d.ts} +1 -1
  10. package/dist/index.d.mts +17 -5
  11. package/dist/index.d.ts +17 -5
  12. package/dist/index.js +92 -1
  13. package/dist/index.mjs +18 -12
  14. package/dist/resources/api-keys/api-keys.test.js +90 -1
  15. package/dist/resources/api-keys/api-keys.test.mjs +8 -7
  16. package/dist/resources/api-keys/index.d.mts +2 -2
  17. package/dist/resources/api-keys/index.d.ts +2 -2
  18. package/dist/resources/available/available.test.js +90 -1
  19. package/dist/resources/available/available.test.mjs +8 -7
  20. package/dist/resources/available/index.d.mts +2 -2
  21. package/dist/resources/available/index.d.ts +2 -2
  22. package/dist/resources/bank-accounts/bank-accounts.test.js +128 -1
  23. package/dist/resources/bank-accounts/bank-accounts.test.mjs +46 -7
  24. package/dist/resources/bank-accounts/index.d.mts +37 -3
  25. package/dist/resources/bank-accounts/index.d.ts +37 -3
  26. package/dist/resources/bank-accounts/index.js +10 -0
  27. package/dist/resources/bank-accounts/index.mjs +1 -1
  28. package/dist/resources/customers/customers.test.d.mts +2 -0
  29. package/dist/resources/customers/customers.test.d.ts +2 -0
  30. package/dist/resources/customers/customers.test.js +20510 -0
  31. package/dist/resources/customers/customers.test.mjs +652 -0
  32. package/dist/resources/customers/index.d.mts +466 -0
  33. package/dist/resources/customers/index.d.ts +466 -0
  34. package/dist/resources/customers/index.js +115 -0
  35. package/dist/resources/customers/index.mjs +9 -0
  36. package/dist/resources/fees/fees.test.js +90 -1
  37. package/dist/resources/fees/fees.test.mjs +8 -7
  38. package/dist/resources/fees/index.d.mts +2 -2
  39. package/dist/resources/fees/index.d.ts +2 -2
  40. package/dist/resources/instances/index.d.mts +10 -3
  41. package/dist/resources/instances/index.d.ts +10 -3
  42. package/dist/resources/instances/index.js +4 -0
  43. package/dist/resources/instances/index.mjs +1 -1
  44. package/dist/resources/instances/instances.test.js +90 -1
  45. package/dist/resources/instances/instances.test.mjs +8 -7
  46. package/dist/resources/partner-fees/index.d.mts +2 -2
  47. package/dist/resources/partner-fees/index.d.ts +2 -2
  48. package/dist/resources/partner-fees/partner-fees.test.js +90 -1
  49. package/dist/resources/partner-fees/partner-fees.test.mjs +8 -7
  50. package/dist/resources/payins/index.d.mts +2 -2
  51. package/dist/resources/payins/index.d.ts +2 -2
  52. package/dist/resources/payins/payins-quotes.test.js +90 -1
  53. package/dist/resources/payins/payins-quotes.test.mjs +8 -7
  54. package/dist/resources/payins/payins.test.js +90 -1
  55. package/dist/resources/payins/payins.test.mjs +8 -7
  56. package/dist/resources/payins/quotes.d.mts +2 -2
  57. package/dist/resources/payins/quotes.d.ts +2 -2
  58. package/dist/resources/payouts/index.d.mts +4 -3
  59. package/dist/resources/payouts/index.d.ts +4 -3
  60. package/dist/resources/payouts/payouts.test.js +90 -1
  61. package/dist/resources/payouts/payouts.test.mjs +8 -7
  62. package/dist/resources/quotes/index.d.mts +3 -6
  63. package/dist/resources/quotes/index.d.ts +3 -6
  64. package/dist/resources/quotes/quotes.test.js +91 -5
  65. package/dist/resources/quotes/quotes.test.mjs +9 -11
  66. package/dist/resources/receivers/index.d.mts +50 -4
  67. package/dist/resources/receivers/index.d.ts +50 -4
  68. package/dist/resources/receivers/index.js +10 -0
  69. package/dist/resources/receivers/index.mjs +1 -1
  70. package/dist/resources/receivers/receivers.test.js +90 -1
  71. package/dist/resources/receivers/receivers.test.mjs +8 -7
  72. package/dist/resources/terms-of-service/index.d.mts +2 -2
  73. package/dist/resources/terms-of-service/index.d.ts +2 -2
  74. package/dist/resources/terms-of-service/terms-of-service.test.js +90 -1
  75. package/dist/resources/terms-of-service/terms-of-service.test.mjs +8 -7
  76. package/dist/resources/transfers/index.d.mts +2 -2
  77. package/dist/resources/transfers/index.d.ts +2 -2
  78. package/dist/resources/transfers/transfers.test.js +90 -1
  79. package/dist/resources/transfers/transfers.test.mjs +8 -7
  80. package/dist/resources/upload/index.d.mts +1 -1
  81. package/dist/resources/upload/index.d.ts +1 -1
  82. package/dist/resources/upload/upload.test.js +90 -1
  83. package/dist/resources/upload/upload.test.mjs +8 -7
  84. package/dist/resources/virtual-accounts/index.d.mts +2 -2
  85. package/dist/resources/virtual-accounts/index.d.ts +2 -2
  86. package/dist/resources/virtual-accounts/virtual-accounts.test.js +90 -1
  87. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +8 -7
  88. package/dist/resources/wallets/blockchain.d.mts +2 -2
  89. package/dist/resources/wallets/blockchain.d.ts +2 -2
  90. package/dist/resources/wallets/blockchain.test.js +90 -1
  91. package/dist/resources/wallets/blockchain.test.mjs +8 -7
  92. package/dist/resources/wallets/custodial.d.mts +2 -2
  93. package/dist/resources/wallets/custodial.d.ts +2 -2
  94. package/dist/resources/wallets/custodial.test.js +90 -1
  95. package/dist/resources/wallets/custodial.test.mjs +8 -7
  96. package/dist/resources/wallets/offramp.d.mts +3 -3
  97. package/dist/resources/wallets/offramp.d.ts +3 -3
  98. package/dist/resources/wallets/offramp.test.js +90 -1
  99. package/dist/resources/wallets/offramp.test.mjs +8 -7
  100. package/dist/resources/webhooks/index.d.mts +3 -3
  101. package/dist/resources/webhooks/index.d.ts +3 -3
  102. package/dist/resources/webhooks/webhooks.test.js +90 -1
  103. package/dist/resources/webhooks/webhooks.test.mjs +8 -7
  104. package/dist/strict-omit-ByJhzKNC.d.mts +3 -0
  105. package/dist/strict-omit-ByJhzKNC.d.ts +3 -0
  106. 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.9.0";
18705
+ var version = "3.11.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18875,6 +18875,78 @@ function createBankAccountsResource(instanceId, client) {
18875
18875
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
18876
  type: "ted"
18877
18877
  }, data));
18878
+ },
18879
+ createSepa(_w) {
18880
+ var _x = _w, {
18881
+ receiver_id
18882
+ } = _x, data = __objRest(_x, [
18883
+ "receiver_id"
18884
+ ]);
18885
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18886
+ type: "sepa"
18887
+ }, data));
18888
+ }
18889
+ };
18890
+ }
18891
+
18892
+ // src/resources/customers/index.ts
18893
+ function createCustomersResource(instanceId, client) {
18894
+ return {
18895
+ list(params) {
18896
+ const wireParams = params ? Object.fromEntries(
18897
+ Object.entries(params).map(([k2, v2]) => {
18898
+ if (k2 === "customer_id") return ["receiver_id", v2];
18899
+ if (k2 === "customer_name") return ["receiver_name", v2];
18900
+ return [k2, v2];
18901
+ })
18902
+ ) : void 0;
18903
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
18904
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
18905
+ },
18906
+ createIndividualWithStandardKYC(data) {
18907
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18908
+ kyc_type: "standard",
18909
+ type: "individual"
18910
+ }, data));
18911
+ },
18912
+ createIndividualWithEnhancedKYC(data) {
18913
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18914
+ kyc_type: "enhanced",
18915
+ type: "individual"
18916
+ }, data));
18917
+ },
18918
+ createBusinessWithStandardKYB(data) {
18919
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18920
+ kyc_type: "standard",
18921
+ type: "business"
18922
+ }, data));
18923
+ },
18924
+ get(customer_id) {
18925
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
18926
+ },
18927
+ update(_a3) {
18928
+ var _b = _a3, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
18929
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
18930
+ },
18931
+ delete(customer_id) {
18932
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
18933
+ },
18934
+ getLimits(customer_id) {
18935
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
18936
+ },
18937
+ getLimitIncreaseRequests(customer_id) {
18938
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
18939
+ },
18940
+ requestLimitIncrease(_c) {
18941
+ var _d = _c, {
18942
+ customer_id
18943
+ } = _d, data = __objRest(_d, [
18944
+ "customer_id"
18945
+ ]);
18946
+ return client.post(
18947
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
18948
+ data
18949
+ );
18878
18950
  }
18879
18951
  };
18880
18952
  }
@@ -18909,6 +18981,10 @@ function createInstancesResource(instanceId, client) {
18909
18981
  role
18910
18982
  }) {
18911
18983
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18984
+ },
18985
+ migrateOwnership(_b) {
18986
+ var data = __objRest(_b, []);
18987
+ return client.post(`/instances/${instanceId}/ownership`, data);
18912
18988
  }
18913
18989
  };
18914
18990
  }
@@ -19024,44 +19100,54 @@ function createQuotesResource(instanceId, client) {
19024
19100
  // src/resources/receivers/index.ts
19025
19101
  function createReceiversResource(instanceId, client) {
19026
19102
  return {
19103
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19027
19104
  list(params) {
19028
19105
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
19029
19106
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
19030
19107
  },
19108
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19031
19109
  createIndividualWithStandardKYC(data) {
19032
19110
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19033
19111
  kyc_type: "standard",
19034
19112
  type: "individual"
19035
19113
  }, data));
19036
19114
  },
19115
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19037
19116
  createIndividualWithEnhancedKYC(data) {
19038
19117
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19039
19118
  kyc_type: "enhanced",
19040
19119
  type: "individual"
19041
19120
  }, data));
19042
19121
  },
19122
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19043
19123
  createBusinessWithStandardKYB(data) {
19044
19124
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19045
19125
  kyc_type: "standard",
19046
19126
  type: "business"
19047
19127
  }, data));
19048
19128
  },
19129
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19049
19130
  get(receiver_id) {
19050
19131
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
19051
19132
  },
19133
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19052
19134
  update(_a3) {
19053
19135
  var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
19054
19136
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
19055
19137
  },
19138
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19056
19139
  delete(receiver_id) {
19057
19140
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
19058
19141
  },
19142
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19059
19143
  getLimits(receiver_id) {
19060
19144
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
19061
19145
  },
19146
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19062
19147
  getLimitIncreaseRequests(receiver_id) {
19063
19148
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
19064
19149
  },
19150
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19065
19151
  requestLimitIncrease(_c) {
19066
19152
  var _d = _c, {
19067
19153
  receiver_id
@@ -19415,6 +19501,9 @@ var BlindPay = class {
19415
19501
  this.transfers = createTransfersResource(this.instanceId, this.api);
19416
19502
  this.fees = createFeesResource(this.instanceId, this.api);
19417
19503
  this.upload = createUploadResource(this.baseUrl, this.headers);
19504
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
19505
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19506
+ });
19418
19507
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
19419
19508
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19420
19509
  });
@@ -19963,6 +20052,44 @@ describe("Bank accounts", () => {
19963
20052
  globalExpect(data).toEqual(mockedPixSafeAccount);
19964
20053
  }));
19965
20054
  });
20055
+ describe("Create sepa bank account", () => {
20056
+ it("should create a sepa bank account", () => __async(null, null, function* () {
20057
+ const mockedSepaAccount = {
20058
+ id: "ba_000000000000",
20059
+ type: "sepa",
20060
+ name: "SEPA Account",
20061
+ account_class: "individual",
20062
+ recipient_relationship: null,
20063
+ sepa_iban: "BE68539007547034",
20064
+ sepa_beneficiary_bic: "GKCCBEBB",
20065
+ sepa_beneficiary_legal_name: "John Doe",
20066
+ sepa_beneficiary_address_line_1: "123 Main Street",
20067
+ sepa_beneficiary_address_line_2: null,
20068
+ sepa_beneficiary_city: "Brussels",
20069
+ sepa_beneficiary_state_province_region: null,
20070
+ sepa_beneficiary_postal_code: "1000",
20071
+ sepa_beneficiary_country: "BE",
20072
+ created_at: "2021-01-01T00:00:00Z"
20073
+ };
20074
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
20075
+ headers: { "Content-Type": "application/json" }
20076
+ });
20077
+ const { data, error } = yield blindpay.receivers.bankAccounts.createSepa({
20078
+ receiver_id: "re_000000000000",
20079
+ name: "SEPA Account",
20080
+ account_class: "individual",
20081
+ sepa_iban: "BE68539007547034",
20082
+ sepa_beneficiary_bic: "GKCCBEBB",
20083
+ sepa_beneficiary_legal_name: "John Doe",
20084
+ sepa_beneficiary_address_line_1: "123 Main Street",
20085
+ sepa_beneficiary_city: "Brussels",
20086
+ sepa_beneficiary_postal_code: "1000",
20087
+ sepa_beneficiary_country: "BE"
20088
+ });
20089
+ globalExpect(error).toBeNull();
20090
+ globalExpect(data).toEqual(mockedSepaAccount);
20091
+ }));
20092
+ });
19966
20093
  describe("Delete bank account", () => {
19967
20094
  it("should delete a bank account", () => __async(null, null, function* () {
19968
20095
  fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
@@ -8,26 +8,27 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CLGWJEUF.mjs";
11
+ } from "../../chunk-IM2L5L4B.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
15
  import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-Z6EYX4D3.mjs";
16
17
  import "../../chunk-ISHZTBAN.mjs";
17
18
  import "../../chunk-UDRMLZWT.mjs";
18
19
  import "../../chunk-LEPGLH7Q.mjs";
20
+ import "../../chunk-VGU72ZNI.mjs";
19
21
  import "../../chunk-E7M4CJKR.mjs";
20
- import "../../chunk-F5Z45GCA.mjs";
21
22
  import "../../chunk-TBTA7A2P.mjs";
22
- import "../../chunk-YIZJM2GU.mjs";
23
- import "../../chunk-Z6EYX4D3.mjs";
23
+ import "../../chunk-NAGY6BLL.mjs";
24
+ import "../../chunk-SLKVEQUY.mjs";
24
25
  import "../../chunk-ALHMJWQN.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
26
+ import "../../chunk-KYOUR4KX.mjs";
26
27
  import "../../chunk-RC5NN5UF.mjs";
27
- import "../../chunk-VGU72ZNI.mjs";
28
+ import "../../chunk-F5Z45GCA.mjs";
28
29
  import "../../chunk-LRHWT4JU.mjs";
29
30
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-HKWPAL4R.mjs";
31
+ import "../../chunk-N4F3FBNB.mjs";
31
32
  import {
32
33
  __async,
33
34
  __commonJS
@@ -481,6 +482,44 @@ var require_bank_accounts_test = __commonJS({
481
482
  globalExpect(data).toEqual(mockedPixSafeAccount);
482
483
  }));
483
484
  });
485
+ describe("Create sepa bank account", () => {
486
+ it("should create a sepa bank account", () => __async(null, null, function* () {
487
+ const mockedSepaAccount = {
488
+ id: "ba_000000000000",
489
+ type: "sepa",
490
+ name: "SEPA Account",
491
+ account_class: "individual",
492
+ recipient_relationship: null,
493
+ sepa_iban: "BE68539007547034",
494
+ sepa_beneficiary_bic: "GKCCBEBB",
495
+ sepa_beneficiary_legal_name: "John Doe",
496
+ sepa_beneficiary_address_line_1: "123 Main Street",
497
+ sepa_beneficiary_address_line_2: null,
498
+ sepa_beneficiary_city: "Brussels",
499
+ sepa_beneficiary_state_province_region: null,
500
+ sepa_beneficiary_postal_code: "1000",
501
+ sepa_beneficiary_country: "BE",
502
+ created_at: "2021-01-01T00:00:00Z"
503
+ };
504
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
505
+ headers: { "Content-Type": "application/json" }
506
+ });
507
+ const { data, error } = yield blindpay.receivers.bankAccounts.createSepa({
508
+ receiver_id: "re_000000000000",
509
+ name: "SEPA Account",
510
+ account_class: "individual",
511
+ sepa_iban: "BE68539007547034",
512
+ sepa_beneficiary_bic: "GKCCBEBB",
513
+ sepa_beneficiary_legal_name: "John Doe",
514
+ sepa_beneficiary_address_line_1: "123 Main Street",
515
+ sepa_beneficiary_city: "Brussels",
516
+ sepa_beneficiary_postal_code: "1000",
517
+ sepa_beneficiary_country: "BE"
518
+ });
519
+ globalExpect(error).toBeNull();
520
+ globalExpect(data).toEqual(mockedSepaAccount);
521
+ }));
522
+ });
484
523
  describe("Delete bank account", () => {
485
524
  it("should delete a bank account", () => __async(null, null, function* () {
486
525
  fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.mjs';
2
- import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CGeWvXXq.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-DYqrodZr.mjs';
3
3
  import { SpeiProtocol } from '../payouts/index.mjs';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
@@ -64,6 +64,7 @@ type ListBankAccountsResponse = {
64
64
  pix_safe_branch_code?: string;
65
65
  pix_safe_cpf_cnpj?: string;
66
66
  tron_wallet_hash?: string;
67
+ sepa_beneficiary_bic?: string | null;
67
68
  offramp_wallets?: Array<{
68
69
  address: string;
69
70
  id: string;
@@ -97,6 +98,7 @@ type GetBankAccountResponse = {
97
98
  bank_name: string;
98
99
  swift_code?: string | null;
99
100
  iban?: string | null;
101
+ sepa_beneficiary_bic?: string | null;
100
102
  is_primary: boolean;
101
103
  created_at: string;
102
104
  updated_at: string;
@@ -383,6 +385,37 @@ type CreateRtpResponse = {
383
385
  postal_code: string;
384
386
  created_at: string;
385
387
  };
388
+ type CreateSepaInput = {
389
+ receiver_id: string;
390
+ name: string;
391
+ account_class: AccountClass;
392
+ sepa_iban: string;
393
+ sepa_beneficiary_bic: string;
394
+ sepa_beneficiary_legal_name: string;
395
+ sepa_beneficiary_address_line_1: string;
396
+ sepa_beneficiary_address_line_2?: string | null;
397
+ sepa_beneficiary_city: string;
398
+ sepa_beneficiary_state_province_region?: string | null;
399
+ sepa_beneficiary_postal_code: string;
400
+ sepa_beneficiary_country: Country;
401
+ };
402
+ type CreateSepaResponse = {
403
+ id: string;
404
+ type: "sepa";
405
+ name: string;
406
+ account_class: AccountClass;
407
+ recipient_relationship: RecipientRelationship | null;
408
+ sepa_iban: string;
409
+ sepa_beneficiary_bic: string;
410
+ sepa_beneficiary_legal_name: string;
411
+ sepa_beneficiary_address_line_1: string;
412
+ sepa_beneficiary_address_line_2: string | null;
413
+ sepa_beneficiary_city: string;
414
+ sepa_beneficiary_state_province_region: string | null;
415
+ sepa_beneficiary_postal_code: string;
416
+ sepa_beneficiary_country: Country;
417
+ created_at: string;
418
+ };
386
419
  type CreateTedInput = {
387
420
  receiver_id: string;
388
421
  name: string;
@@ -415,6 +448,7 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
415
448
  createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
416
449
  createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
417
450
  createTed({ receiver_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
451
+ createSepa({ receiver_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
418
452
  };
419
453
 
420
- export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
454
+ export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSepaInput, type CreateSepaResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.js';
2
- import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CGeWvXXq.js';
2
+ import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
3
3
  import { SpeiProtocol } from '../payouts/index.js';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
@@ -64,6 +64,7 @@ type ListBankAccountsResponse = {
64
64
  pix_safe_branch_code?: string;
65
65
  pix_safe_cpf_cnpj?: string;
66
66
  tron_wallet_hash?: string;
67
+ sepa_beneficiary_bic?: string | null;
67
68
  offramp_wallets?: Array<{
68
69
  address: string;
69
70
  id: string;
@@ -97,6 +98,7 @@ type GetBankAccountResponse = {
97
98
  bank_name: string;
98
99
  swift_code?: string | null;
99
100
  iban?: string | null;
101
+ sepa_beneficiary_bic?: string | null;
100
102
  is_primary: boolean;
101
103
  created_at: string;
102
104
  updated_at: string;
@@ -383,6 +385,37 @@ type CreateRtpResponse = {
383
385
  postal_code: string;
384
386
  created_at: string;
385
387
  };
388
+ type CreateSepaInput = {
389
+ receiver_id: string;
390
+ name: string;
391
+ account_class: AccountClass;
392
+ sepa_iban: string;
393
+ sepa_beneficiary_bic: string;
394
+ sepa_beneficiary_legal_name: string;
395
+ sepa_beneficiary_address_line_1: string;
396
+ sepa_beneficiary_address_line_2?: string | null;
397
+ sepa_beneficiary_city: string;
398
+ sepa_beneficiary_state_province_region?: string | null;
399
+ sepa_beneficiary_postal_code: string;
400
+ sepa_beneficiary_country: Country;
401
+ };
402
+ type CreateSepaResponse = {
403
+ id: string;
404
+ type: "sepa";
405
+ name: string;
406
+ account_class: AccountClass;
407
+ recipient_relationship: RecipientRelationship | null;
408
+ sepa_iban: string;
409
+ sepa_beneficiary_bic: string;
410
+ sepa_beneficiary_legal_name: string;
411
+ sepa_beneficiary_address_line_1: string;
412
+ sepa_beneficiary_address_line_2: string | null;
413
+ sepa_beneficiary_city: string;
414
+ sepa_beneficiary_state_province_region: string | null;
415
+ sepa_beneficiary_postal_code: string;
416
+ sepa_beneficiary_country: Country;
417
+ created_at: string;
418
+ };
386
419
  type CreateTedInput = {
387
420
  receiver_id: string;
388
421
  name: string;
@@ -415,6 +448,7 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
415
448
  createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
416
449
  createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
417
450
  createTed({ receiver_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
451
+ createSepa({ receiver_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
418
452
  };
419
453
 
420
- export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
454
+ export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSepaInput, type CreateSepaResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
@@ -174,6 +174,16 @@ function createBankAccountsResource(instanceId, client) {
174
174
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
175
175
  type: "ted"
176
176
  }, data));
177
+ },
178
+ createSepa(_w) {
179
+ var _x = _w, {
180
+ receiver_id
181
+ } = _x, data = __objRest(_x, [
182
+ "receiver_id"
183
+ ]);
184
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
185
+ type: "sepa"
186
+ }, data));
177
187
  }
178
188
  };
179
189
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createBankAccountsResource,
3
3
  init_bank_accounts
4
- } from "../../chunk-HKWPAL4R.mjs";
4
+ } from "../../chunk-N4F3FBNB.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_bank_accounts();
7
7
  export {
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }