@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
@@ -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
@@ -481,6 +481,44 @@ var require_bank_accounts_test = __commonJS({
481
481
  globalExpect(data).toEqual(mockedPixSafeAccount);
482
482
  }));
483
483
  });
484
+ describe("Create sepa bank account", () => {
485
+ it("should create a sepa bank account", () => __async(null, null, function* () {
486
+ const mockedSepaAccount = {
487
+ id: "ba_000000000000",
488
+ type: "sepa",
489
+ name: "SEPA Account",
490
+ account_class: "individual",
491
+ recipient_relationship: null,
492
+ sepa_iban: "BE68539007547034",
493
+ sepa_beneficiary_bic: "GKCCBEBB",
494
+ sepa_beneficiary_legal_name: "John Doe",
495
+ sepa_beneficiary_address_line_1: "123 Main Street",
496
+ sepa_beneficiary_address_line_2: null,
497
+ sepa_beneficiary_city: "Brussels",
498
+ sepa_beneficiary_state_province_region: null,
499
+ sepa_beneficiary_postal_code: "1000",
500
+ sepa_beneficiary_country: "BE",
501
+ created_at: "2021-01-01T00:00:00Z"
502
+ };
503
+ fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
504
+ headers: { "Content-Type": "application/json" }
505
+ });
506
+ const { data, error } = yield blindpay.receivers.bankAccounts.createSepa({
507
+ receiver_id: "re_000000000000",
508
+ name: "SEPA Account",
509
+ account_class: "individual",
510
+ sepa_iban: "BE68539007547034",
511
+ sepa_beneficiary_bic: "GKCCBEBB",
512
+ sepa_beneficiary_legal_name: "John Doe",
513
+ sepa_beneficiary_address_line_1: "123 Main Street",
514
+ sepa_beneficiary_city: "Brussels",
515
+ sepa_beneficiary_postal_code: "1000",
516
+ sepa_beneficiary_country: "BE"
517
+ });
518
+ globalExpect(error).toBeNull();
519
+ globalExpect(data).toEqual(mockedSepaAccount);
520
+ }));
521
+ });
484
522
  describe("Delete bank account", () => {
485
523
  it("should delete a bank account", () => __async(null, null, function* () {
486
524
  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-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.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-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.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;
@@ -77,6 +78,9 @@ type ListBankAccountsResponse = {
77
78
  status?: string | null;
78
79
  recipient_relationship?: RecipientRelationship | null;
79
80
  swift_payment_code?: string | null;
81
+ ted_bank_code?: string | null;
82
+ ted_branch_code?: string | null;
83
+ ted_cpf_cnpj?: string | null;
80
84
  created_at: string;
81
85
  }>;
82
86
  };
@@ -94,6 +98,7 @@ type GetBankAccountResponse = {
94
98
  bank_name: string;
95
99
  swift_code?: string | null;
96
100
  iban?: string | null;
101
+ sepa_beneficiary_bic?: string | null;
97
102
  is_primary: boolean;
98
103
  created_at: string;
99
104
  updated_at: string;
@@ -380,6 +385,55 @@ type CreateRtpResponse = {
380
385
  postal_code: string;
381
386
  created_at: string;
382
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
+ };
419
+ type CreateTedInput = {
420
+ receiver_id: string;
421
+ name: string;
422
+ beneficiary_name: string;
423
+ ted_bank_code: string;
424
+ ted_branch_code: string;
425
+ ted_cpf_cnpj: string;
426
+ };
427
+ type CreateTedResponse = {
428
+ id: string;
429
+ type: "ted";
430
+ name: string;
431
+ beneficiary_name: string;
432
+ ted_bank_code: string;
433
+ ted_branch_code: string;
434
+ ted_cpf_cnpj: string;
435
+ created_at: string;
436
+ };
383
437
  declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
384
438
  list({ receiver_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
385
439
  get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
@@ -393,6 +447,8 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
393
447
  createWire({ receiver_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
394
448
  createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
395
449
  createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
450
+ createTed({ receiver_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
451
+ createSepa({ receiver_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
396
452
  };
397
453
 
398
- 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 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-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.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-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.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;
@@ -77,6 +78,9 @@ type ListBankAccountsResponse = {
77
78
  status?: string | null;
78
79
  recipient_relationship?: RecipientRelationship | null;
79
80
  swift_payment_code?: string | null;
81
+ ted_bank_code?: string | null;
82
+ ted_branch_code?: string | null;
83
+ ted_cpf_cnpj?: string | null;
80
84
  created_at: string;
81
85
  }>;
82
86
  };
@@ -94,6 +98,7 @@ type GetBankAccountResponse = {
94
98
  bank_name: string;
95
99
  swift_code?: string | null;
96
100
  iban?: string | null;
101
+ sepa_beneficiary_bic?: string | null;
97
102
  is_primary: boolean;
98
103
  created_at: string;
99
104
  updated_at: string;
@@ -380,6 +385,55 @@ type CreateRtpResponse = {
380
385
  postal_code: string;
381
386
  created_at: string;
382
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
+ };
419
+ type CreateTedInput = {
420
+ receiver_id: string;
421
+ name: string;
422
+ beneficiary_name: string;
423
+ ted_bank_code: string;
424
+ ted_branch_code: string;
425
+ ted_cpf_cnpj: string;
426
+ };
427
+ type CreateTedResponse = {
428
+ id: string;
429
+ type: "ted";
430
+ name: string;
431
+ beneficiary_name: string;
432
+ ted_bank_code: string;
433
+ ted_branch_code: string;
434
+ ted_cpf_cnpj: string;
435
+ created_at: string;
436
+ };
383
437
  declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
384
438
  list({ receiver_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
385
439
  get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
@@ -393,6 +447,8 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
393
447
  createWire({ receiver_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
394
448
  createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
395
449
  createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
450
+ createTed({ receiver_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
451
+ createSepa({ receiver_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
396
452
  };
397
453
 
398
- 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 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 };
@@ -164,6 +164,26 @@ function createBankAccountsResource(instanceId, client) {
164
164
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
165
165
  type: "rtp"
166
166
  }, data));
167
+ },
168
+ createTed(_u) {
169
+ var _v = _u, {
170
+ receiver_id
171
+ } = _v, data = __objRest(_v, [
172
+ "receiver_id"
173
+ ]);
174
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
175
+ type: "ted"
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));
167
187
  }
168
188
  };
169
189
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createBankAccountsResource,
3
3
  init_bank_accounts
4
- } from "../../chunk-UOAM7SX3.mjs";
4
+ } from "../../chunk-N4F3FBNB.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_bank_accounts();
7
7
  export {
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "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
  }
@@ -19540,6 +19564,7 @@ describe("Fees", () => {
19540
19564
  arbitrum: mockFeeOptions,
19541
19565
  stellar: mockFeeOptions,
19542
19566
  solana: mockFeeOptions,
19567
+ ted: mockFeeOptions,
19543
19568
  created_at: "2025-01-01T00:00:00Z",
19544
19569
  updated_at: "2025-01-01T00:00:00Z"
19545
19570
  };
@@ -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
@@ -68,6 +68,7 @@ var require_fees_test = __commonJS({
68
68
  arbitrum: mockFeeOptions,
69
69
  stellar: mockFeeOptions,
70
70
  solana: mockFeeOptions,
71
+ ted: mockFeeOptions,
71
72
  created_at: "2025-01-01T00:00:00Z",
72
73
  updated_at: "2025-01-01T00:00:00Z"
73
74
  };
@@ -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 FeeOptions = {
5
5
  payin_flat: number;
@@ -26,6 +26,7 @@ type GetFeesResponse = {
26
26
  arbitrum: FeeOptions;
27
27
  stellar: FeeOptions;
28
28
  solana: FeeOptions;
29
+ ted: FeeOptions;
29
30
  created_at: string;
30
31
  updated_at: string;
31
32
  };
@@ -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 FeeOptions = {
5
5
  payin_flat: number;
@@ -26,6 +26,7 @@ type GetFeesResponse = {
26
26
  arbitrum: FeeOptions;
27
27
  stellar: FeeOptions;
28
28
  solana: FeeOptions;
29
+ ted: FeeOptions;
29
30
  created_at: string;
30
31
  updated_at: string;
31
32
  };
@@ -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 InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
5
5
  type GetInstanceMembersResponse = Array<{
@@ -23,12 +23,19 @@ type UpdateInstanceMemberRoleInput = {
23
23
  memberId: string;
24
24
  role: InstanceMemberRole;
25
25
  };
26
+ type MigrateInstanceOwnershipInput = {
27
+ user_id: string;
28
+ };
29
+ type MigrateInstanceOwnershipResponse = {
30
+ success: boolean;
31
+ };
26
32
  declare function createInstancesResource(instanceId: string, client: InternalApiClient): {
27
33
  getMembers(): Promise<BlindpayApiResponse<GetInstanceMembersResponse>>;
28
34
  update({ ...data }: UpdateInstanceInput): Promise<BlindpayApiResponse<void>>;
29
35
  delete(): Promise<BlindpayApiResponse<void>>;
30
36
  deleteMember(memberId: DeleteInstanceMemberInput): Promise<BlindpayApiResponse<void>>;
31
37
  updateMemberRole({ memberId, role, }: UpdateInstanceMemberRoleInput): Promise<BlindpayApiResponse<void>>;
38
+ migrateOwnership({ ...data }: MigrateInstanceOwnershipInput): Promise<BlindpayApiResponse<MigrateInstanceOwnershipResponse>>;
32
39
  };
33
40
 
34
- export { type DeleteInstanceMemberInput, type GetInstanceMembersResponse, type InstanceMemberRole, type UpdateInstanceInput, type UpdateInstanceMemberRoleInput, createInstancesResource };
41
+ export { type DeleteInstanceMemberInput, type GetInstanceMembersResponse, type InstanceMemberRole, type MigrateInstanceOwnershipInput, type MigrateInstanceOwnershipResponse, type UpdateInstanceInput, type UpdateInstanceMemberRoleInput, createInstancesResource };
@@ -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 InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
5
5
  type GetInstanceMembersResponse = Array<{
@@ -23,12 +23,19 @@ type UpdateInstanceMemberRoleInput = {
23
23
  memberId: string;
24
24
  role: InstanceMemberRole;
25
25
  };
26
+ type MigrateInstanceOwnershipInput = {
27
+ user_id: string;
28
+ };
29
+ type MigrateInstanceOwnershipResponse = {
30
+ success: boolean;
31
+ };
26
32
  declare function createInstancesResource(instanceId: string, client: InternalApiClient): {
27
33
  getMembers(): Promise<BlindpayApiResponse<GetInstanceMembersResponse>>;
28
34
  update({ ...data }: UpdateInstanceInput): Promise<BlindpayApiResponse<void>>;
29
35
  delete(): Promise<BlindpayApiResponse<void>>;
30
36
  deleteMember(memberId: DeleteInstanceMemberInput): Promise<BlindpayApiResponse<void>>;
31
37
  updateMemberRole({ memberId, role, }: UpdateInstanceMemberRoleInput): Promise<BlindpayApiResponse<void>>;
38
+ migrateOwnership({ ...data }: MigrateInstanceOwnershipInput): Promise<BlindpayApiResponse<MigrateInstanceOwnershipResponse>>;
32
39
  };
33
40
 
34
- export { type DeleteInstanceMemberInput, type GetInstanceMembersResponse, type InstanceMemberRole, type UpdateInstanceInput, type UpdateInstanceMemberRoleInput, createInstancesResource };
41
+ export { type DeleteInstanceMemberInput, type GetInstanceMembersResponse, type InstanceMemberRole, type MigrateInstanceOwnershipInput, type MigrateInstanceOwnershipResponse, type UpdateInstanceInput, type UpdateInstanceMemberRoleInput, createInstancesResource };
@@ -57,6 +57,10 @@ function createInstancesResource(instanceId, client) {
57
57
  role
58
58
  }) {
59
59
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
60
+ },
61
+ migrateOwnership(_b) {
62
+ var data = __objRest(_b, []);
63
+ return client.post(`/instances/${instanceId}/ownership`, data);
60
64
  }
61
65
  };
62
66
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createInstancesResource,
3
3
  init_instances
4
- } from "../../chunk-BGXC2F73.mjs";
4
+ } from "../../chunk-KYOUR4KX.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_instances();
7
7
  export {
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "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 { 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 ListPartnerFeesResponse = 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 ListPartnerFeesResponse = 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
  }