@blindpay/node 3.5.0 → 3.8.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 (91) hide show
  1. package/dist/{api-client-Bklw4zQi.d.ts → api-client-B9lW57MD.d.ts} +1 -1
  2. package/dist/{api-client-BlkRiojB.d.mts → api-client-Ct0AsDO5.d.mts} +1 -1
  3. package/dist/{chunk-IHFM6NYO.mjs → chunk-57QRKKXM.mjs} +22 -16
  4. package/dist/chunk-Z6EYX4D3.mjs +29 -0
  5. package/dist/{index.d-Gvol1faW.d.ts → index.d-CxmQ6ci9.d.mts} +2 -2
  6. package/dist/{index.d-Gvol1faW.d.mts → index.d-CxmQ6ci9.d.ts} +2 -2
  7. package/dist/index.d.mts +4 -2
  8. package/dist/index.d.ts +4 -2
  9. package/dist/index.js +20 -2
  10. package/dist/index.mjs +17 -16
  11. package/dist/resources/api-keys/api-keys.test.js +20 -2
  12. package/dist/resources/api-keys/api-keys.test.mjs +6 -5
  13. package/dist/resources/api-keys/index.d.mts +2 -2
  14. package/dist/resources/api-keys/index.d.ts +2 -2
  15. package/dist/resources/available/available.test.js +20 -2
  16. package/dist/resources/available/available.test.mjs +6 -5
  17. package/dist/resources/available/index.d.mts +2 -2
  18. package/dist/resources/available/index.d.ts +2 -2
  19. package/dist/resources/bank-accounts/bank-accounts.test.js +20 -2
  20. package/dist/resources/bank-accounts/bank-accounts.test.mjs +6 -5
  21. package/dist/resources/bank-accounts/index.d.mts +2 -2
  22. package/dist/resources/bank-accounts/index.d.ts +2 -2
  23. package/dist/resources/fees/fees.test.js +20 -2
  24. package/dist/resources/fees/fees.test.mjs +6 -5
  25. package/dist/resources/fees/index.d.mts +2 -2
  26. package/dist/resources/fees/index.d.ts +2 -2
  27. package/dist/resources/instances/index.d.mts +2 -2
  28. package/dist/resources/instances/index.d.ts +2 -2
  29. package/dist/resources/instances/instances.test.js +20 -2
  30. package/dist/resources/instances/instances.test.mjs +6 -5
  31. package/dist/resources/partner-fees/index.d.mts +2 -2
  32. package/dist/resources/partner-fees/index.d.ts +2 -2
  33. package/dist/resources/partner-fees/partner-fees.test.js +20 -2
  34. package/dist/resources/partner-fees/partner-fees.test.mjs +6 -5
  35. package/dist/resources/payins/index.d.mts +13 -2
  36. package/dist/resources/payins/index.d.ts +13 -2
  37. package/dist/resources/payins/payins-quotes.test.js +22 -4
  38. package/dist/resources/payins/payins-quotes.test.mjs +8 -7
  39. package/dist/resources/payins/payins.test.js +40 -2
  40. package/dist/resources/payins/payins.test.mjs +26 -5
  41. package/dist/resources/payins/quotes.d.mts +4 -4
  42. package/dist/resources/payins/quotes.d.ts +4 -4
  43. package/dist/resources/payouts/index.d.mts +3 -3
  44. package/dist/resources/payouts/index.d.ts +3 -3
  45. package/dist/resources/payouts/payouts.test.js +20 -2
  46. package/dist/resources/payouts/payouts.test.mjs +6 -5
  47. package/dist/resources/quotes/index.d.mts +2 -2
  48. package/dist/resources/quotes/index.d.ts +2 -2
  49. package/dist/resources/quotes/quotes.test.js +20 -2
  50. package/dist/resources/quotes/quotes.test.mjs +6 -5
  51. package/dist/resources/receivers/index.d.mts +2 -2
  52. package/dist/resources/receivers/index.d.ts +2 -2
  53. package/dist/resources/receivers/receivers.test.js +20 -2
  54. package/dist/resources/receivers/receivers.test.mjs +6 -5
  55. package/dist/resources/terms-of-service/index.d.mts +16 -0
  56. package/dist/resources/terms-of-service/index.d.ts +16 -0
  57. package/dist/resources/terms-of-service/index.js +44 -0
  58. package/dist/resources/terms-of-service/index.mjs +9 -0
  59. package/dist/resources/terms-of-service/terms-of-service.test.d.mts +2 -0
  60. package/dist/resources/terms-of-service/terms-of-service.test.d.ts +2 -0
  61. package/dist/resources/terms-of-service/terms-of-service.test.js +19824 -0
  62. package/dist/resources/terms-of-service/terms-of-service.test.mjs +64 -0
  63. package/dist/resources/transfers/index.d.mts +2 -2
  64. package/dist/resources/transfers/index.d.ts +2 -2
  65. package/dist/resources/transfers/transfers.test.js +20 -2
  66. package/dist/resources/transfers/transfers.test.mjs +6 -5
  67. package/dist/resources/upload/index.d.mts +1 -1
  68. package/dist/resources/upload/index.d.ts +1 -1
  69. package/dist/resources/upload/upload.test.js +20 -2
  70. package/dist/resources/upload/upload.test.mjs +6 -5
  71. package/dist/resources/virtual-accounts/index.d.mts +2 -2
  72. package/dist/resources/virtual-accounts/index.d.ts +2 -2
  73. package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -2
  74. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +6 -5
  75. package/dist/resources/wallets/blockchain.d.mts +2 -2
  76. package/dist/resources/wallets/blockchain.d.ts +2 -2
  77. package/dist/resources/wallets/blockchain.test.js +20 -2
  78. package/dist/resources/wallets/blockchain.test.mjs +6 -5
  79. package/dist/resources/wallets/custodial.d.mts +2 -2
  80. package/dist/resources/wallets/custodial.d.ts +2 -2
  81. package/dist/resources/wallets/custodial.test.js +20 -2
  82. package/dist/resources/wallets/custodial.test.mjs +6 -5
  83. package/dist/resources/wallets/offramp.d.mts +2 -2
  84. package/dist/resources/wallets/offramp.d.ts +2 -2
  85. package/dist/resources/wallets/offramp.test.js +20 -2
  86. package/dist/resources/wallets/offramp.test.mjs +6 -5
  87. package/dist/resources/webhooks/index.d.mts +2 -2
  88. package/dist/resources/webhooks/index.d.ts +2 -2
  89. package/dist/resources/webhooks/webhooks.test.js +20 -2
  90. package/dist/resources/webhooks/webhooks.test.mjs +6 -5
  91. package/package.json +2 -2
@@ -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.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type FeeOptions = {
5
5
  payin_flat: number;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type FeeOptions = {
5
5
  payin_flat: number;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
5
5
  type GetInstanceMembersResponse = Array<{
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
5
5
  type GetInstanceMembersResponse = 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.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type ListPartnerFeesResponse = Array<{
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.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.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type BlindpayBankDetails = {
5
5
  routing_number: string;
@@ -23,6 +23,17 @@ type BlindpayBankDetails = {
23
23
  address_line_1: string;
24
24
  address_line_2: string;
25
25
  };
26
+ receiving_bank: {
27
+ name: string;
28
+ address_line_1: string;
29
+ address_line_2: string;
30
+ };
31
+ swift_account_number?: string | null;
32
+ swift_receiving_bank?: {
33
+ name: string | null;
34
+ address_line_1: string | null;
35
+ address_line_2: string | null;
36
+ } | null;
26
37
  };
27
38
  type Payin = {
28
39
  id: string;
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type BlindpayBankDetails = {
5
5
  routing_number: string;
@@ -23,6 +23,17 @@ type BlindpayBankDetails = {
23
23
  address_line_1: string;
24
24
  address_line_2: string;
25
25
  };
26
+ receiving_bank: {
27
+ name: string;
28
+ address_line_1: string;
29
+ address_line_2: string;
30
+ };
31
+ swift_account_number?: string | null;
32
+ swift_receiving_bank?: {
33
+ name: string | null;
34
+ address_line_1: string | null;
35
+ address_line_2: string | null;
36
+ } | null;
26
37
  };
27
38
  type Payin = {
28
39
  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.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -19540,8 +19558,8 @@ describe("Payin quotes", () => {
19540
19558
  });
19541
19559
  const { data, error } = yield blindpay.payins.quotes.getFxRate({
19542
19560
  currency_type: "sender",
19543
- from: "USD",
19544
- to: "BRL",
19561
+ from: "BRL",
19562
+ to: "USDC",
19545
19563
  request_amount: 1e3
19546
19564
  });
19547
19565
  globalExpect(error).toBeNull();
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -85,8 +86,8 @@ var require_payins_quotes_test = __commonJS({
85
86
  });
86
87
  const { data, error } = yield blindpay.payins.quotes.getFxRate({
87
88
  currency_type: "sender",
88
- from: "USD",
89
- to: "BRL",
89
+ from: "BRL",
90
+ to: "USDC",
90
91
  request_amount: 1e3
91
92
  });
92
93
  globalExpect(error).toBeNull();
@@ -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.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -19592,6 +19610,11 @@ describe("Payins", () => {
19592
19610
  name: "BlindPay, Inc.",
19593
19611
  address_line_1: "8 The Green, #19364",
19594
19612
  address_line_2: "Dover, DE 19901"
19613
+ },
19614
+ receiving_bank: {
19615
+ name: "CFSB",
19616
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19617
+ address_line_2: "San Francisco, CA 94129"
19595
19618
  }
19596
19619
  }
19597
19620
  }
@@ -19705,6 +19728,11 @@ describe("Payins", () => {
19705
19728
  name: "BlindPay, Inc.",
19706
19729
  address_line_1: "8 The Green, #19364",
19707
19730
  address_line_2: "Dover, DE 19901"
19731
+ },
19732
+ receiving_bank: {
19733
+ name: "CFSB",
19734
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19735
+ address_line_2: "San Francisco, CA 94129"
19708
19736
  }
19709
19737
  }
19710
19738
  };
@@ -19811,6 +19839,11 @@ describe("Payins", () => {
19811
19839
  name: "BlindPay, Inc.",
19812
19840
  address_line_1: "8 The Green, #19364",
19813
19841
  address_line_2: "Dover, DE 19901"
19842
+ },
19843
+ receiving_bank: {
19844
+ name: "CFSB",
19845
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19846
+ address_line_2: "San Francisco, CA 94129"
19814
19847
  }
19815
19848
  }
19816
19849
  };
@@ -19894,6 +19927,11 @@ describe("Payins", () => {
19894
19927
  name: "BlindPay, Inc.",
19895
19928
  address_line_1: "8 The Green, #19364",
19896
19929
  address_line_2: "Dover, DE 19901"
19930
+ },
19931
+ receiving_bank: {
19932
+ name: "CFSB",
19933
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
19934
+ address_line_2: "San Francisco, CA 94129"
19897
19935
  }
19898
19936
  },
19899
19937
  receiver_id: "re_000000000000",
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -137,6 +138,11 @@ var require_payins_test = __commonJS({
137
138
  name: "BlindPay, Inc.",
138
139
  address_line_1: "8 The Green, #19364",
139
140
  address_line_2: "Dover, DE 19901"
141
+ },
142
+ receiving_bank: {
143
+ name: "CFSB",
144
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
145
+ address_line_2: "San Francisco, CA 94129"
140
146
  }
141
147
  }
142
148
  }
@@ -250,6 +256,11 @@ var require_payins_test = __commonJS({
250
256
  name: "BlindPay, Inc.",
251
257
  address_line_1: "8 The Green, #19364",
252
258
  address_line_2: "Dover, DE 19901"
259
+ },
260
+ receiving_bank: {
261
+ name: "CFSB",
262
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
263
+ address_line_2: "San Francisco, CA 94129"
253
264
  }
254
265
  }
255
266
  };
@@ -356,6 +367,11 @@ var require_payins_test = __commonJS({
356
367
  name: "BlindPay, Inc.",
357
368
  address_line_1: "8 The Green, #19364",
358
369
  address_line_2: "Dover, DE 19901"
370
+ },
371
+ receiving_bank: {
372
+ name: "CFSB",
373
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
374
+ address_line_2: "San Francisco, CA 94129"
359
375
  }
360
376
  }
361
377
  };
@@ -439,6 +455,11 @@ var require_payins_test = __commonJS({
439
455
  name: "BlindPay, Inc.",
440
456
  address_line_1: "8 The Green, #19364",
441
457
  address_line_2: "Dover, DE 19901"
458
+ },
459
+ receiving_bank: {
460
+ name: "CFSB",
461
+ address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
462
+ address_line_2: "San Francisco, CA 94129"
442
463
  }
443
464
  },
444
465
  receiver_id: "re_000000000000",
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type CreatePayinQuoteInput = {
5
5
  blockchain_wallet_id: string;
@@ -26,8 +26,8 @@ type CreatePayinQuoteResponse = {
26
26
  };
27
27
  type GetPayinFxRateInput = {
28
28
  currency_type: CurrencyType;
29
- from: Currency;
30
- to: Currency;
29
+ from: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
30
+ to: Extract<Currency, "USDC" | "USDT" | "USDB">;
31
31
  request_amount: number;
32
32
  };
33
33
  type GetPayinFxRateResponse = {
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type CreatePayinQuoteInput = {
5
5
  blockchain_wallet_id: string;
@@ -26,8 +26,8 @@ type CreatePayinQuoteResponse = {
26
26
  };
27
27
  type GetPayinFxRateInput = {
28
28
  currency_type: CurrencyType;
29
- from: Currency;
30
- to: Currency;
29
+ from: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
30
+ to: Extract<Currency, "USDC" | "USDT" | "USDB">;
31
31
  request_amount: number;
32
32
  };
33
33
  type GetPayinFxRateResponse = {
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
5
5
  type Payout = {
@@ -31,7 +31,7 @@ type Payout = {
31
31
  blindpay_quotation: number;
32
32
  total_fee_amount: number;
33
33
  receiver_local_amount: number;
34
- currency: Exclude<Currency, "USDT" | "USDB">;
34
+ currency: Exclude<Currency, "USDB" | "USDC" | "USDT">;
35
35
  transaction_document_file: string;
36
36
  transaction_document_type: TransactionDocumentType;
37
37
  transaction_document_id: string;