@blindpay/node 3.8.0 → 3.10.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 (92) hide show
  1. package/dist/{api-client-B9lW57MD.d.ts → api-client-BWImXDBx.d.ts} +1 -1
  2. package/dist/{api-client-Ct0AsDO5.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
  3. package/dist/{chunk-57QRKKXM.mjs → chunk-7PWF4J3Z.mjs} +8 -8
  4. package/dist/{chunk-BGXC2F73.mjs → chunk-KYOUR4KX.mjs} +4 -0
  5. package/dist/{chunk-UOAM7SX3.mjs → chunk-N4F3FBNB.mjs} +20 -0
  6. package/dist/{index.d-CxmQ6ci9.d.mts → index.d-DK8eD9f3.d.mts} +5 -3
  7. package/dist/{index.d-CxmQ6ci9.d.ts → index.d-DK8eD9f3.d.ts} +5 -3
  8. package/dist/index.d.mts +5 -5
  9. package/dist/index.d.ts +5 -5
  10. package/dist/index.js +25 -1
  11. package/dist/index.mjs +8 -8
  12. package/dist/resources/api-keys/api-keys.test.js +25 -1
  13. package/dist/resources/api-keys/api-keys.test.mjs +4 -4
  14. package/dist/resources/api-keys/index.d.mts +2 -2
  15. package/dist/resources/api-keys/index.d.ts +2 -2
  16. package/dist/resources/available/available.test.js +25 -1
  17. package/dist/resources/available/available.test.mjs +4 -4
  18. package/dist/resources/available/index.d.mts +2 -2
  19. package/dist/resources/available/index.d.ts +2 -2
  20. package/dist/resources/bank-accounts/bank-accounts.test.js +63 -1
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +42 -4
  22. package/dist/resources/bank-accounts/index.d.mts +59 -3
  23. package/dist/resources/bank-accounts/index.d.ts +59 -3
  24. package/dist/resources/bank-accounts/index.js +20 -0
  25. package/dist/resources/bank-accounts/index.mjs +1 -1
  26. package/dist/resources/fees/fees.test.js +26 -1
  27. package/dist/resources/fees/fees.test.mjs +5 -4
  28. package/dist/resources/fees/index.d.mts +3 -2
  29. package/dist/resources/fees/index.d.ts +3 -2
  30. package/dist/resources/instances/index.d.mts +10 -3
  31. package/dist/resources/instances/index.d.ts +10 -3
  32. package/dist/resources/instances/index.js +4 -0
  33. package/dist/resources/instances/index.mjs +1 -1
  34. package/dist/resources/instances/instances.test.js +25 -1
  35. package/dist/resources/instances/instances.test.mjs +4 -4
  36. package/dist/resources/partner-fees/index.d.mts +2 -2
  37. package/dist/resources/partner-fees/index.d.ts +2 -2
  38. package/dist/resources/partner-fees/partner-fees.test.js +25 -1
  39. package/dist/resources/partner-fees/partner-fees.test.mjs +4 -4
  40. package/dist/resources/payins/index.d.mts +3 -2
  41. package/dist/resources/payins/index.d.ts +3 -2
  42. package/dist/resources/payins/payins-quotes.test.js +25 -1
  43. package/dist/resources/payins/payins-quotes.test.mjs +4 -4
  44. package/dist/resources/payins/payins.test.js +25 -1
  45. package/dist/resources/payins/payins.test.mjs +4 -4
  46. package/dist/resources/payins/quotes.d.mts +2 -2
  47. package/dist/resources/payins/quotes.d.ts +2 -2
  48. package/dist/resources/payouts/index.d.mts +8 -3
  49. package/dist/resources/payouts/index.d.ts +8 -3
  50. package/dist/resources/payouts/payouts.test.js +25 -1
  51. package/dist/resources/payouts/payouts.test.mjs +4 -4
  52. package/dist/resources/quotes/index.d.mts +3 -6
  53. package/dist/resources/quotes/index.d.ts +3 -6
  54. package/dist/resources/quotes/quotes.test.js +26 -5
  55. package/dist/resources/quotes/quotes.test.mjs +5 -8
  56. package/dist/resources/receivers/index.d.mts +6 -7
  57. package/dist/resources/receivers/index.d.ts +6 -7
  58. package/dist/resources/receivers/receivers.test.js +26 -2
  59. package/dist/resources/receivers/receivers.test.mjs +5 -5
  60. package/dist/resources/terms-of-service/index.d.mts +2 -2
  61. package/dist/resources/terms-of-service/index.d.ts +2 -2
  62. package/dist/resources/terms-of-service/terms-of-service.test.js +25 -1
  63. package/dist/resources/terms-of-service/terms-of-service.test.mjs +4 -4
  64. package/dist/resources/transfers/index.d.mts +2 -2
  65. package/dist/resources/transfers/index.d.ts +2 -2
  66. package/dist/resources/transfers/transfers.test.js +25 -1
  67. package/dist/resources/transfers/transfers.test.mjs +4 -4
  68. package/dist/resources/upload/index.d.mts +1 -1
  69. package/dist/resources/upload/index.d.ts +1 -1
  70. package/dist/resources/upload/upload.test.js +25 -1
  71. package/dist/resources/upload/upload.test.mjs +4 -4
  72. package/dist/resources/virtual-accounts/index.d.mts +3 -3
  73. package/dist/resources/virtual-accounts/index.d.ts +3 -3
  74. package/dist/resources/virtual-accounts/virtual-accounts.test.js +25 -1
  75. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +4 -4
  76. package/dist/resources/wallets/blockchain.d.mts +2 -2
  77. package/dist/resources/wallets/blockchain.d.ts +2 -2
  78. package/dist/resources/wallets/blockchain.test.js +25 -1
  79. package/dist/resources/wallets/blockchain.test.mjs +4 -4
  80. package/dist/resources/wallets/custodial.d.mts +2 -2
  81. package/dist/resources/wallets/custodial.d.ts +2 -2
  82. package/dist/resources/wallets/custodial.test.js +25 -1
  83. package/dist/resources/wallets/custodial.test.mjs +4 -4
  84. package/dist/resources/wallets/offramp.d.mts +3 -3
  85. package/dist/resources/wallets/offramp.d.ts +3 -3
  86. package/dist/resources/wallets/offramp.test.js +25 -1
  87. package/dist/resources/wallets/offramp.test.mjs +4 -4
  88. package/dist/resources/webhooks/index.d.mts +3 -3
  89. package/dist/resources/webhooks/index.d.ts +3 -3
  90. package/dist/resources/webhooks/webhooks.test.js +25 -1
  91. package/dist/resources/webhooks/webhooks.test.mjs +4 -4
  92. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-CxmQ6ci9.js';
1
+ import { B as BlindpayApiResponse } from './index.d-DK8eD9f3.js';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-CxmQ6ci9.mjs';
1
+ import { B as BlindpayApiResponse } from './index.d-DK8eD9f3.mjs';
2
2
 
3
3
  /**
4
4
  *
@@ -47,13 +47,13 @@ import {
47
47
  init_terms_of_service
48
48
  } from "./chunk-Z6EYX4D3.mjs";
49
49
  import {
50
- createBankAccountsResource,
51
- init_bank_accounts
52
- } from "./chunk-UOAM7SX3.mjs";
50
+ createFeesResource,
51
+ init_fees
52
+ } from "./chunk-ALHMJWQN.mjs";
53
53
  import {
54
54
  createInstancesResource,
55
55
  init_instances
56
- } from "./chunk-BGXC2F73.mjs";
56
+ } from "./chunk-KYOUR4KX.mjs";
57
57
  import {
58
58
  createPartnerFeesResource,
59
59
  init_partner_fees
@@ -71,9 +71,9 @@ import {
71
71
  init_available
72
72
  } from "./chunk-WE73MTQL.mjs";
73
73
  import {
74
- createFeesResource,
75
- init_fees
76
- } from "./chunk-ALHMJWQN.mjs";
74
+ createBankAccountsResource,
75
+ init_bank_accounts
76
+ } from "./chunk-N4F3FBNB.mjs";
77
77
  import {
78
78
  __async,
79
79
  __esm,
@@ -85,7 +85,7 @@ import {
85
85
  var version;
86
86
  var init_package = __esm({
87
87
  "package.json"() {
88
- version = "3.8.0";
88
+ version = "3.10.0";
89
89
  }
90
90
  });
91
91
 
@@ -24,6 +24,10 @@ function createInstancesResource(instanceId, client) {
24
24
  role
25
25
  }) {
26
26
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
27
+ },
28
+ migrateOwnership(_b) {
29
+ var data = __objRest(_b, []);
30
+ return client.post(`/instances/${instanceId}/ownership`, data);
27
31
  }
28
32
  };
29
33
  }
@@ -120,6 +120,26 @@ function createBankAccountsResource(instanceId, client) {
120
120
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
121
121
  type: "rtp"
122
122
  }, data));
123
+ },
124
+ createTed(_u) {
125
+ var _v = _u, {
126
+ receiver_id
127
+ } = _v, data = __objRest(_v, [
128
+ "receiver_id"
129
+ ]);
130
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
131
+ type: "ted"
132
+ }, data));
133
+ },
134
+ createSepa(_w) {
135
+ var _x = _w, {
136
+ receiver_id
137
+ } = _x, data = __objRest(_x, [
138
+ "receiver_id"
139
+ ]);
140
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
141
+ type: "sepa"
142
+ }, data));
123
143
  }
124
144
  };
125
145
  }
@@ -26,7 +26,7 @@ type BankAccountType = "checking" | "saving";
26
26
 
27
27
  type Currency = "USDC" | "USDT" | "USDB" | "BRL" | "USD" | "MXN" | "COP" | "ARS";
28
28
 
29
- type Rail = "wire" | "ach" | "pix" | "pix_safe" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp";
29
+ type Rail = "wire" | "ach" | "pix" | "pix_safe" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp" | "ted";
30
30
 
31
31
  type AccountClass = "individual" | "business";
32
32
 
@@ -347,7 +347,7 @@ type PayinTrackingPartnerFee = {
347
347
  completed_at?: string | null
348
348
  }
349
349
 
350
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp"
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp" | "ted"
351
351
 
352
352
  type BusinessIndustry =
353
353
  | "111998"
@@ -651,4 +651,6 @@ type PayoutTrackingPartnerFee = {
651
651
  completed_at: string | null;
652
652
  }
653
653
 
654
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
654
+ type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
655
+
656
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
@@ -26,7 +26,7 @@ type BankAccountType = "checking" | "saving";
26
26
 
27
27
  type Currency = "USDC" | "USDT" | "USDB" | "BRL" | "USD" | "MXN" | "COP" | "ARS";
28
28
 
29
- type Rail = "wire" | "ach" | "pix" | "pix_safe" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp";
29
+ type Rail = "wire" | "ach" | "pix" | "pix_safe" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp" | "ted";
30
30
 
31
31
  type AccountClass = "individual" | "business";
32
32
 
@@ -347,7 +347,7 @@ type PayinTrackingPartnerFee = {
347
347
  completed_at?: string | null
348
348
  }
349
349
 
350
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp"
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp" | "ted"
351
351
 
352
352
  type BusinessIndustry =
353
353
  | "111998"
@@ -651,4 +651,6 @@ type PayoutTrackingPartnerFee = {
651
651
  completed_at: string | null;
652
652
  }
653
653
 
654
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
654
+ type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
655
+
656
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
package/dist/index.d.mts CHANGED
@@ -3,11 +3,11 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
3
3
  import { createAvailableResource } from './resources/available/index.mjs';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
6
- export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.mjs';
6
+ export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.mjs';
7
7
  import { createFeesResource } from './resources/fees/index.mjs';
8
8
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.mjs';
9
9
  import { createInstancesResource } from './resources/instances/index.mjs';
10
- export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.mjs';
10
+ export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, MigrateInstanceOwnershipInput, MigrateInstanceOwnershipResponse, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.mjs';
11
11
  import { createPartnerFeesResource } from './resources/partner-fees/index.mjs';
12
12
  export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput, GetPartnerFeeInput, GetPartnerFeeResponse, ListPartnerFeesResponse } from './resources/partner-fees/index.mjs';
13
13
  import { createPayinsResource } from './resources/payins/index.mjs';
@@ -19,7 +19,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
19
19
  import { createQuotesResource } from './resources/quotes/index.mjs';
20
20
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
21
21
  import { createReceiversResource } from './resources/receivers/index.mjs';
22
- export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, ReceiverKycStatus, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.mjs';
22
+ export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.mjs';
23
23
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
24
24
  import { createTransfersResource } from './resources/transfers/index.mjs';
25
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.mjs';
@@ -35,8 +35,8 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
35
35
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.mjs';
36
36
  import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
37
37
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
38
- import './index.d-CxmQ6ci9.mjs';
39
- import './api-client-Ct0AsDO5.mjs';
38
+ import './index.d-DK8eD9f3.mjs';
39
+ import './api-client-L9eGwH1U.mjs';
40
40
 
41
41
  declare class BlindPay {
42
42
  private readonly baseUrl;
package/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
3
3
  import { createAvailableResource } from './resources/available/index.js';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.js';
6
- export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.js';
6
+ export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.js';
7
7
  import { createFeesResource } from './resources/fees/index.js';
8
8
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.js';
9
9
  import { createInstancesResource } from './resources/instances/index.js';
10
- export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.js';
10
+ export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, MigrateInstanceOwnershipInput, MigrateInstanceOwnershipResponse, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.js';
11
11
  import { createPartnerFeesResource } from './resources/partner-fees/index.js';
12
12
  export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput, GetPartnerFeeInput, GetPartnerFeeResponse, ListPartnerFeesResponse } from './resources/partner-fees/index.js';
13
13
  import { createPayinsResource } from './resources/payins/index.js';
@@ -19,7 +19,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
19
19
  import { createQuotesResource } from './resources/quotes/index.js';
20
20
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
21
21
  import { createReceiversResource } from './resources/receivers/index.js';
22
- export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, ReceiverKycStatus, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.js';
22
+ export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.js';
23
23
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
24
24
  import { createTransfersResource } from './resources/transfers/index.js';
25
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.js';
@@ -35,8 +35,8 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.js';
35
35
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.js';
36
36
  import { createWebhookEndpointsResource } from './resources/webhooks/index.js';
37
37
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.js';
38
- import './index.d-CxmQ6ci9.js';
39
- import './api-client-B9lW57MD.js';
38
+ import './index.d-DK8eD9f3.js';
39
+ import './api-client-BWImXDBx.js';
40
40
 
41
41
  declare class BlindPay {
42
42
  private readonly baseUrl;
package/dist/index.js CHANGED
@@ -95,7 +95,7 @@ module.exports = __toCommonJS(index_exports);
95
95
  var import_svix = require("svix");
96
96
 
97
97
  // package.json
98
- var version = "3.8.0";
98
+ var version = "3.10.0";
99
99
 
100
100
  // src/internal/blindpay-error.ts
101
101
  var BlindPayError = class extends Error {
@@ -258,6 +258,26 @@ function createBankAccountsResource(instanceId, client) {
258
258
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
259
259
  type: "rtp"
260
260
  }, data));
261
+ },
262
+ createTed(_u) {
263
+ var _v = _u, {
264
+ receiver_id
265
+ } = _v, data = __objRest(_v, [
266
+ "receiver_id"
267
+ ]);
268
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
269
+ type: "ted"
270
+ }, data));
271
+ },
272
+ createSepa(_w) {
273
+ var _x = _w, {
274
+ receiver_id
275
+ } = _x, data = __objRest(_x, [
276
+ "receiver_id"
277
+ ]);
278
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
279
+ type: "sepa"
280
+ }, data));
261
281
  }
262
282
  };
263
283
  }
@@ -292,6 +312,10 @@ function createInstancesResource(instanceId, client) {
292
312
  role
293
313
  }) {
294
314
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
315
+ },
316
+ migrateOwnership(_b) {
317
+ var data = __objRest(_b, []);
318
+ return client.post(`/instances/${instanceId}/ownership`, data);
295
319
  }
296
320
  };
297
321
  }
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-57QRKKXM.mjs";
4
+ } from "./chunk-7PWF4J3Z.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -48,13 +48,13 @@ import {
48
48
  } from "./chunk-YIZJM2GU.mjs";
49
49
  import "./chunk-Z6EYX4D3.mjs";
50
50
  import {
51
- createBankAccountsResource,
52
- init_bank_accounts
53
- } from "./chunk-UOAM7SX3.mjs";
51
+ createFeesResource,
52
+ init_fees
53
+ } from "./chunk-ALHMJWQN.mjs";
54
54
  import {
55
55
  createInstancesResource,
56
56
  init_instances
57
- } from "./chunk-BGXC2F73.mjs";
57
+ } from "./chunk-KYOUR4KX.mjs";
58
58
  import {
59
59
  createPartnerFeesResource,
60
60
  init_partner_fees
@@ -72,9 +72,9 @@ import {
72
72
  init_available
73
73
  } from "./chunk-WE73MTQL.mjs";
74
74
  import {
75
- createFeesResource,
76
- init_fees
77
- } from "./chunk-ALHMJWQN.mjs";
75
+ createBankAccountsResource,
76
+ init_bank_accounts
77
+ } from "./chunk-N4F3FBNB.mjs";
78
78
  import "./chunk-OBKEW4AQ.mjs";
79
79
 
80
80
  // src/index.ts
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18697
18697
  var import_svix = require("svix");
18698
18698
 
18699
18699
  // package.json
18700
- var version = "3.8.0";
18700
+ var version = "3.10.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -18860,6 +18860,26 @@ function createBankAccountsResource(instanceId, client) {
18860
18860
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18861
18861
  type: "rtp"
18862
18862
  }, data));
18863
+ },
18864
+ createTed(_u) {
18865
+ var _v = _u, {
18866
+ receiver_id
18867
+ } = _v, data = __objRest(_v, [
18868
+ "receiver_id"
18869
+ ]);
18870
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18871
+ type: "ted"
18872
+ }, data));
18873
+ },
18874
+ createSepa(_w) {
18875
+ var _x = _w, {
18876
+ receiver_id
18877
+ } = _x, data = __objRest(_x, [
18878
+ "receiver_id"
18879
+ ]);
18880
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18881
+ type: "sepa"
18882
+ }, data));
18863
18883
  }
18864
18884
  };
18865
18885
  }
@@ -18894,6 +18914,10 @@ function createInstancesResource(instanceId, client) {
18894
18914
  role
18895
18915
  }) {
18896
18916
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18917
+ },
18918
+ migrateOwnership(_b) {
18919
+ var data = __objRest(_b, []);
18920
+ return client.post(`/instances/${instanceId}/ownership`, data);
18897
18921
  }
18898
18922
  };
18899
18923
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-57QRKKXM.mjs";
10
+ } from "../../chunk-7PWF4J3Z.mjs";
11
11
  import "../../chunk-FG25JHDX.mjs";
12
12
  import "../../chunk-KMU6V4LW.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
@@ -20,13 +20,13 @@ import "../../chunk-F5Z45GCA.mjs";
20
20
  import "../../chunk-TBTA7A2P.mjs";
21
21
  import "../../chunk-YIZJM2GU.mjs";
22
22
  import "../../chunk-Z6EYX4D3.mjs";
23
- import "../../chunk-UOAM7SX3.mjs";
24
- import "../../chunk-BGXC2F73.mjs";
23
+ import "../../chunk-ALHMJWQN.mjs";
24
+ import "../../chunk-KYOUR4KX.mjs";
25
25
  import "../../chunk-RC5NN5UF.mjs";
26
26
  import "../../chunk-VGU72ZNI.mjs";
27
27
  import "../../chunk-LRHWT4JU.mjs";
28
28
  import "../../chunk-WE73MTQL.mjs";
29
- import "../../chunk-ALHMJWQN.mjs";
29
+ import "../../chunk-N4F3FBNB.mjs";
30
30
  import {
31
31
  __async,
32
32
  __commonJS
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  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 = "3.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
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));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -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.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
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));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -19953,6 +19977,44 @@ describe("Bank accounts", () => {
19953
19977
  globalExpect(data).toEqual(mockedPixSafeAccount);
19954
19978
  }));
19955
19979
  });
19980
+ describe("Create sepa bank account", () => {
19981
+ it("should create a sepa bank account", () => __async(null, null, function* () {
19982
+ const mockedSepaAccount = {
19983
+ id: "ba_000000000000",
19984
+ type: "sepa",
19985
+ name: "SEPA Account",
19986
+ account_class: "individual",
19987
+ recipient_relationship: null,
19988
+ sepa_iban: "BE68539007547034",
19989
+ sepa_beneficiary_bic: "GKCCBEBB",
19990
+ sepa_beneficiary_legal_name: "John Doe",
19991
+ sepa_beneficiary_address_line_1: "123 Main Street",
19992
+ sepa_beneficiary_address_line_2: null,
19993
+ sepa_beneficiary_city: "Brussels",
19994
+ sepa_beneficiary_state_province_region: null,
19995
+ sepa_beneficiary_postal_code: "1000",
19996
+ sepa_beneficiary_country: "BE",
19997
+ created_at: "2021-01-01T00:00:00Z"
19998
+ };
19999
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
20000
+ headers: { "Content-Type": "application/json" }
20001
+ });
20002
+ const { data, error } = yield blindpay.receivers.bankAccounts.createSepa({
20003
+ receiver_id: "re_000000000000",
20004
+ name: "SEPA Account",
20005
+ account_class: "individual",
20006
+ sepa_iban: "BE68539007547034",
20007
+ sepa_beneficiary_bic: "GKCCBEBB",
20008
+ sepa_beneficiary_legal_name: "John Doe",
20009
+ sepa_beneficiary_address_line_1: "123 Main Street",
20010
+ sepa_beneficiary_city: "Brussels",
20011
+ sepa_beneficiary_postal_code: "1000",
20012
+ sepa_beneficiary_country: "BE"
20013
+ });
20014
+ globalExpect(error).toBeNull();
20015
+ globalExpect(data).toEqual(mockedSepaAccount);
20016
+ }));
20017
+ });
19956
20018
  describe("Delete bank account", () => {
19957
20019
  it("should delete a bank account", () => __async(null, null, function* () {
19958
20020
  fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {