@blindpay/node 3.1.1 → 3.2.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 (41) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-I4KOWV46.mjs → chunk-AFXWEXL6.mjs} +1 -1
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/dist/resources/api-keys/api-keys.test.js +1 -1
  8. package/dist/resources/api-keys/api-keys.test.mjs +1 -1
  9. package/dist/resources/available/available.test.js +1 -1
  10. package/dist/resources/available/available.test.mjs +1 -1
  11. package/dist/resources/bank-accounts/bank-accounts.test.js +1 -1
  12. package/dist/resources/bank-accounts/bank-accounts.test.mjs +1 -1
  13. package/dist/resources/instances/instances.test.js +1 -1
  14. package/dist/resources/instances/instances.test.mjs +1 -1
  15. package/dist/resources/partner-fees/partner-fees.test.js +1 -1
  16. package/dist/resources/partner-fees/partner-fees.test.mjs +1 -1
  17. package/dist/resources/payins/payins-quotes.test.js +1 -1
  18. package/dist/resources/payins/payins-quotes.test.mjs +1 -1
  19. package/dist/resources/payins/payins.test.js +1 -1
  20. package/dist/resources/payins/payins.test.mjs +1 -1
  21. package/dist/resources/payouts/payouts.test.js +1 -1
  22. package/dist/resources/payouts/payouts.test.mjs +1 -1
  23. package/dist/resources/quotes/quotes.test.js +1 -1
  24. package/dist/resources/quotes/quotes.test.mjs +1 -1
  25. package/dist/resources/receivers/index.d.mts +119 -82
  26. package/dist/resources/receivers/index.d.ts +119 -82
  27. package/dist/resources/receivers/receivers.test.js +22 -8
  28. package/dist/resources/receivers/receivers.test.mjs +22 -8
  29. package/dist/resources/terms-of-service/terms-of-service.test.js +1 -1
  30. package/dist/resources/terms-of-service/terms-of-service.test.mjs +1 -1
  31. package/dist/resources/virtual-accounts/index.d.mts +2 -1
  32. package/dist/resources/virtual-accounts/index.d.ts +2 -1
  33. package/dist/resources/virtual-accounts/virtual-accounts.test.js +3 -2
  34. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +3 -2
  35. package/dist/resources/wallets/blockchain.test.js +1 -1
  36. package/dist/resources/wallets/blockchain.test.mjs +1 -1
  37. package/dist/resources/wallets/offramp.test.js +1 -1
  38. package/dist/resources/wallets/offramp.test.mjs +1 -1
  39. package/dist/resources/webhooks/webhooks.test.js +1 -1
  40. package/dist/resources/webhooks/webhooks.test.mjs +1 -1
  41. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BlindPay Node.js SDK
2
2
 
3
- The official Node.js SDK for [BlindPay](https://blindpay.com) - Global payments infrastructure made simple.
3
+ The official Node.js SDK for [BlindPay](https://blindpay.com) - Stablecoin API for global payments.
4
4
 
5
5
  ## Installation
6
6
 
@@ -69,7 +69,7 @@ import {
69
69
  var version;
70
70
  var init_package = __esm({
71
71
  "package.json"() {
72
- version = "3.1.1";
72
+ version = "3.2.0";
73
73
  }
74
74
  });
75
75
 
package/dist/index.d.mts CHANGED
@@ -17,7 +17,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
17
17
  import { createQuotesResource } from './resources/quotes/index.mjs';
18
18
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
19
19
  import { createReceiversResource } from './resources/receivers/index.mjs';
20
- export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.mjs';
20
+ export { AccountPurpose, BusinessIndustry, BusinessType, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, EstimatedAnnualRevenue, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, SourceOfWealth, UpdateReceiverInput } from './resources/receivers/index.mjs';
21
21
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
22
22
  import { createVirtualAccountsResource } from './resources/virtual-accounts/index.mjs';
23
23
  export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
17
17
  import { createQuotesResource } from './resources/quotes/index.js';
18
18
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
19
19
  import { createReceiversResource } from './resources/receivers/index.js';
20
- export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.js';
20
+ export { AccountPurpose, BusinessIndustry, BusinessType, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, EstimatedAnnualRevenue, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, SourceOfWealth, UpdateReceiverInput } from './resources/receivers/index.js';
21
21
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
22
22
  import { createVirtualAccountsResource } from './resources/virtual-accounts/index.js';
23
23
  export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
91
91
  var import_svix = require("svix");
92
92
 
93
93
  // package.json
94
- var version = "3.1.1";
94
+ var version = "3.2.0";
95
95
 
96
96
  // src/internal/blindpay-error.ts
97
97
  var BlindPayError = class extends Error {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-I4KOWV46.mjs";
4
+ } from "./chunk-AFXWEXL6.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -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.1.1";
18700
+ var version = "3.2.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-I4KOWV46.mjs";
10
+ } from "../../chunk-AFXWEXL6.mjs";
11
11
  import "../../chunk-FG25JHDX.mjs";
12
12
  import "../../chunk-QGNLMN6Z.mjs";
13
13
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -4,6 +4,11 @@ type StrictOmit<T, K extends keyof T> = Omit<T, K>;
4
4
 
5
5
  type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
6
6
  type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
7
+ type AccountPurpose = "charitable_donations" | "ecommerce_retail_payments" | "investment_purposes" | "business_expenses" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_goods_and_services" | "receive_payments_for_goods_and_services" | "tax_optimization" | "third_party_money_transmission" | "other" | "payroll" | "treasury_management";
8
+ type BusinessType = "corporation" | "llc" | "partnership" | "sole_proprietorship" | "trust" | "non_profit";
9
+ type BusinessIndustry = "541511" | "541512" | "541519" | "518210" | "511210" | "541611" | "541618" | "541330" | "541990" | "522110" | "523110" | "523920" | "423430" | "423690" | "423110" | "423830" | "423840" | "423510" | "424210" | "424690" | "424990" | "454110" | "334111" | "334118" | "325412" | "339112" | "336111" | "336390" | "551112" | "561499" | "488510" | "484121" | "493110" | "424410" | "424480" | "315990" | "313110" | "213112" | "517110" | "541214";
10
+ type EstimatedAnnualRevenue = "0_99999" | "100000_999999" | "1000000_9999999" | "10000000_49999999" | "50000000_249999999" | "2500000000_plus";
11
+ type SourceOfWealth = "business_dividends_or_profits" | "investments" | "asset_sales" | "client_investor_contributions" | "gambling" | "charitable_contributions" | "inheritance" | "affiliate_or_royalty_income";
7
12
  type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds" | "someone_else_funds";
8
13
  type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
9
14
  type KycType = "light" | "standard" | "enhanced";
@@ -26,7 +31,9 @@ type Owner = {
26
31
  id_doc_front_file: string;
27
32
  id_doc_back_file: string | null;
28
33
  proof_of_address_doc_type: ProofOfAddressDocType;
29
- proof_of_address_doc_file: string;
34
+ proof_of_address_doc_file: string | null;
35
+ ownership_percentage: number | null;
36
+ title: string | null;
30
37
  };
31
38
  type IndividualWithStandardKYC = {
32
39
  id: string;
@@ -165,80 +172,103 @@ type BusinessWithStandardKYB = {
165
172
  };
166
173
  };
167
174
  type CreateIndividualWithStandardKYCInput = {
168
- external_id?: string;
169
- address_line_1: string;
170
- address_line_2?: string;
171
- city: string;
172
175
  country: Country;
173
- date_of_birth: string;
174
176
  email: string;
175
- first_name: string;
176
- phone_number: string | null;
177
- id_doc_country: Country;
178
- id_doc_front_file: string;
179
- id_doc_type: IdentificationDocument;
180
- id_doc_back_file: string | null;
181
- last_name: string;
182
- postal_code: string;
183
- proof_of_address_doc_file: string;
184
- proof_of_address_doc_type: ProofOfAddressDocType;
185
- state_province_region: string;
186
- tax_id: string;
187
- tos_id: string;
177
+ account_purpose?: AccountPurpose | null;
178
+ address_line_1?: string | null;
179
+ address_line_2?: string | null;
180
+ city?: string | null;
181
+ date_of_birth?: string | null;
182
+ external_id?: string | null;
183
+ first_name?: string | null;
184
+ id_doc_back_file?: string | null;
185
+ id_doc_country?: Country | null;
186
+ id_doc_front_file?: string | null;
187
+ id_doc_type?: IdentificationDocument | null;
188
+ image_url?: string | null;
189
+ ip_address?: string | null;
190
+ last_name?: string | null;
191
+ phone_number?: string | null;
192
+ postal_code?: string | null;
193
+ proof_of_address_doc_file?: string | null;
194
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
195
+ selfie_file?: string | null;
196
+ source_of_funds_doc_file?: string | null;
197
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
198
+ source_of_wealth?: SourceOfWealth | null;
199
+ state_province_region?: string | null;
200
+ tax_id?: string | null;
201
+ tos_id?: string | null;
188
202
  };
189
203
  type CreateIndividualWithStandardKYCResponse = {
190
204
  id: string;
191
205
  };
192
206
  type CreateIndividualWithEnhancedKYCInput = {
193
- external_id?: string;
194
- address_line_1: string;
195
- address_line_2?: string;
196
- city: string;
197
207
  country: Country;
198
- date_of_birth: string;
199
208
  email: string;
200
- first_name: string;
201
- id_doc_country: Country;
202
- id_doc_front_file: string;
203
- id_doc_type: IdentificationDocument;
204
- id_doc_back_file: string | null;
205
- individual_holding_doc_front_file: string;
206
- last_name: string;
207
- postal_code: string;
208
- phone_number: string | null;
209
- proof_of_address_doc_file: string;
210
- proof_of_address_doc_type: ProofOfAddressDocType;
211
- purpose_of_transactions: PurposeOfTransactions;
212
- source_of_funds_doc_file: string;
213
- source_of_funds_doc_type: SourceOfFundsDocType;
214
- purpose_of_transactions_explanation: string | null;
215
- state_province_region: string;
216
- tax_id: string;
217
- tos_id: string;
209
+ account_purpose?: AccountPurpose | null;
210
+ address_line_1?: string | null;
211
+ address_line_2?: string | null;
212
+ city?: string | null;
213
+ date_of_birth?: string | null;
214
+ external_id?: string | null;
215
+ first_name?: string | null;
216
+ id_doc_back_file?: string | null;
217
+ id_doc_country?: Country | null;
218
+ id_doc_front_file?: string | null;
219
+ id_doc_type?: IdentificationDocument | null;
220
+ image_url?: string | null;
221
+ ip_address?: string | null;
222
+ last_name?: string | null;
223
+ phone_number?: string | null;
224
+ postal_code?: string | null;
225
+ proof_of_address_doc_file?: string | null;
226
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
227
+ purpose_of_transactions?: PurposeOfTransactions | null;
228
+ purpose_of_transactions_explanation?: string | null;
229
+ selfie_file?: string | null;
230
+ source_of_funds_doc_file?: string | null;
231
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
232
+ source_of_wealth?: SourceOfWealth | null;
233
+ state_province_region?: string | null;
234
+ tax_id?: string | null;
235
+ tos_id?: string | null;
218
236
  };
219
237
  type CreateIndividualWithEnhancedKYCResponse = {
220
238
  id: string;
221
239
  };
222
240
  type CreateBusinessWithStandardKYBInput = {
223
- external_id?: string;
224
- address_line_1: string;
225
- address_line_2?: string;
226
- alternate_name: string;
227
- city: string;
228
241
  country: Country;
229
242
  email: string;
230
- formation_date: string;
231
- incorporation_doc_file: string;
232
- legal_name: string;
233
- owners: Array<StrictOmit<Owner, "id">>;
234
- postal_code: string;
235
- proof_of_address_doc_file: string;
236
- proof_of_address_doc_type: ProofOfAddressDocType;
237
- proof_of_ownership_doc_file: string;
238
- state_province_region: string;
239
- tax_id: string;
240
- tos_id: string;
241
- website: string | null;
243
+ account_purpose?: AccountPurpose | null;
244
+ address_line_1?: string | null;
245
+ address_line_2?: string | null;
246
+ alternate_name?: string | null;
247
+ business_description?: string | null;
248
+ business_industry?: BusinessIndustry | null;
249
+ business_type?: BusinessType | null;
250
+ city?: string | null;
251
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
252
+ external_id?: string | null;
253
+ formation_date?: string | null;
254
+ image_url?: string | null;
255
+ incorporation_doc_file?: string | null;
256
+ ip_address?: string | null;
257
+ legal_name?: string | null;
258
+ owners?: Array<StrictOmit<Owner, "id">> | null;
259
+ phone_number?: string | null;
260
+ postal_code?: string | null;
261
+ proof_of_address_doc_file?: string | null;
262
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
263
+ proof_of_ownership_doc_file?: string | null;
264
+ publicly_traded?: boolean | null;
265
+ source_of_funds_doc_file?: string | null;
266
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
267
+ source_of_wealth?: SourceOfWealth | null;
268
+ state_province_region?: string | null;
269
+ tax_id?: string | null;
270
+ tos_id?: string | null;
271
+ website?: string | null;
242
272
  };
243
273
  type CreateBusinessWithStandardKYBResponse = {
244
274
  id: string;
@@ -248,40 +278,47 @@ type GetReceiverInput = string;
248
278
  type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
249
279
  type UpdateReceiverInput = {
250
280
  receiver_id: string;
251
- email?: string;
252
- tax_id?: string;
281
+ account_purpose?: AccountPurpose | null;
253
282
  address_line_1?: string;
254
283
  address_line_2?: string;
284
+ alternate_name?: string;
285
+ business_description?: string;
286
+ business_industry?: BusinessIndustry | null;
287
+ business_type?: BusinessType | null;
255
288
  city?: string;
256
- state_province_region?: string;
257
289
  country?: Country;
258
- postal_code?: string;
259
- ip_address?: string;
260
- image_url?: string;
261
- phone_number?: string;
262
- proof_of_address_doc_type?: ProofOfAddressDocType;
263
- proof_of_address_doc_file?: string;
264
- first_name?: string;
265
- last_name?: string;
266
290
  date_of_birth?: string;
291
+ email?: string;
292
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
293
+ external_id?: string;
294
+ first_name?: string;
295
+ formation_date?: string;
296
+ id_doc_back_file?: string;
267
297
  id_doc_country?: Country;
268
- id_doc_type?: IdentificationDocument;
269
298
  id_doc_front_file?: string;
270
- id_doc_back_file?: string;
271
- legal_name?: string;
272
- alternate_name?: string;
273
- formation_date?: string;
274
- website?: string;
275
- owners?: Array<Pick<Owner, "first_name" | "last_name" | "role" | "date_of_birth" | "tax_id" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "id_doc_country" | "id_doc_type" | "id_doc_front_file" | "id_doc_back_file">>;
299
+ id_doc_type?: IdentificationDocument;
300
+ image_url?: string;
276
301
  incorporation_doc_file?: string;
302
+ ip_address?: string;
303
+ last_name?: string;
304
+ legal_name?: string;
305
+ owners?: Array<StrictOmit<Owner, "id">>;
306
+ phone_number?: string;
307
+ postal_code?: string;
308
+ proof_of_address_doc_file?: string;
309
+ proof_of_address_doc_type?: ProofOfAddressDocType;
277
310
  proof_of_ownership_doc_file?: string;
278
- source_of_funds_doc_type?: SourceOfFundsDocType;
279
- source_of_funds_doc_file?: string;
280
- individual_holding_doc_front_file?: string;
311
+ publicly_traded?: boolean | null;
281
312
  purpose_of_transactions?: PurposeOfTransactions;
282
313
  purpose_of_transactions_explanation?: string;
283
- external_id?: string;
314
+ selfie_file?: string;
315
+ source_of_funds_doc_file?: string;
316
+ source_of_funds_doc_type?: SourceOfFundsDocType;
317
+ source_of_wealth?: SourceOfWealth | null;
318
+ state_province_region?: string;
319
+ tax_id?: string;
284
320
  tos_id?: string;
321
+ website?: string;
285
322
  };
286
323
  type DeleteReceiverInput = string;
287
324
  type GetReceiverLimitsInput = string;
@@ -336,4 +373,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
336
373
  requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
337
374
  };
338
375
 
339
- export { type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type UpdateReceiverInput, createReceiversResource };
376
+ export { type AccountPurpose, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
@@ -4,6 +4,11 @@ type StrictOmit<T, K extends keyof T> = Omit<T, K>;
4
4
 
5
5
  type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
6
6
  type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
7
+ type AccountPurpose = "charitable_donations" | "ecommerce_retail_payments" | "investment_purposes" | "business_expenses" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_goods_and_services" | "receive_payments_for_goods_and_services" | "tax_optimization" | "third_party_money_transmission" | "other" | "payroll" | "treasury_management";
8
+ type BusinessType = "corporation" | "llc" | "partnership" | "sole_proprietorship" | "trust" | "non_profit";
9
+ type BusinessIndustry = "541511" | "541512" | "541519" | "518210" | "511210" | "541611" | "541618" | "541330" | "541990" | "522110" | "523110" | "523920" | "423430" | "423690" | "423110" | "423830" | "423840" | "423510" | "424210" | "424690" | "424990" | "454110" | "334111" | "334118" | "325412" | "339112" | "336111" | "336390" | "551112" | "561499" | "488510" | "484121" | "493110" | "424410" | "424480" | "315990" | "313110" | "213112" | "517110" | "541214";
10
+ type EstimatedAnnualRevenue = "0_99999" | "100000_999999" | "1000000_9999999" | "10000000_49999999" | "50000000_249999999" | "2500000000_plus";
11
+ type SourceOfWealth = "business_dividends_or_profits" | "investments" | "asset_sales" | "client_investor_contributions" | "gambling" | "charitable_contributions" | "inheritance" | "affiliate_or_royalty_income";
7
12
  type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds" | "someone_else_funds";
8
13
  type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
9
14
  type KycType = "light" | "standard" | "enhanced";
@@ -26,7 +31,9 @@ type Owner = {
26
31
  id_doc_front_file: string;
27
32
  id_doc_back_file: string | null;
28
33
  proof_of_address_doc_type: ProofOfAddressDocType;
29
- proof_of_address_doc_file: string;
34
+ proof_of_address_doc_file: string | null;
35
+ ownership_percentage: number | null;
36
+ title: string | null;
30
37
  };
31
38
  type IndividualWithStandardKYC = {
32
39
  id: string;
@@ -165,80 +172,103 @@ type BusinessWithStandardKYB = {
165
172
  };
166
173
  };
167
174
  type CreateIndividualWithStandardKYCInput = {
168
- external_id?: string;
169
- address_line_1: string;
170
- address_line_2?: string;
171
- city: string;
172
175
  country: Country;
173
- date_of_birth: string;
174
176
  email: string;
175
- first_name: string;
176
- phone_number: string | null;
177
- id_doc_country: Country;
178
- id_doc_front_file: string;
179
- id_doc_type: IdentificationDocument;
180
- id_doc_back_file: string | null;
181
- last_name: string;
182
- postal_code: string;
183
- proof_of_address_doc_file: string;
184
- proof_of_address_doc_type: ProofOfAddressDocType;
185
- state_province_region: string;
186
- tax_id: string;
187
- tos_id: string;
177
+ account_purpose?: AccountPurpose | null;
178
+ address_line_1?: string | null;
179
+ address_line_2?: string | null;
180
+ city?: string | null;
181
+ date_of_birth?: string | null;
182
+ external_id?: string | null;
183
+ first_name?: string | null;
184
+ id_doc_back_file?: string | null;
185
+ id_doc_country?: Country | null;
186
+ id_doc_front_file?: string | null;
187
+ id_doc_type?: IdentificationDocument | null;
188
+ image_url?: string | null;
189
+ ip_address?: string | null;
190
+ last_name?: string | null;
191
+ phone_number?: string | null;
192
+ postal_code?: string | null;
193
+ proof_of_address_doc_file?: string | null;
194
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
195
+ selfie_file?: string | null;
196
+ source_of_funds_doc_file?: string | null;
197
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
198
+ source_of_wealth?: SourceOfWealth | null;
199
+ state_province_region?: string | null;
200
+ tax_id?: string | null;
201
+ tos_id?: string | null;
188
202
  };
189
203
  type CreateIndividualWithStandardKYCResponse = {
190
204
  id: string;
191
205
  };
192
206
  type CreateIndividualWithEnhancedKYCInput = {
193
- external_id?: string;
194
- address_line_1: string;
195
- address_line_2?: string;
196
- city: string;
197
207
  country: Country;
198
- date_of_birth: string;
199
208
  email: string;
200
- first_name: string;
201
- id_doc_country: Country;
202
- id_doc_front_file: string;
203
- id_doc_type: IdentificationDocument;
204
- id_doc_back_file: string | null;
205
- individual_holding_doc_front_file: string;
206
- last_name: string;
207
- postal_code: string;
208
- phone_number: string | null;
209
- proof_of_address_doc_file: string;
210
- proof_of_address_doc_type: ProofOfAddressDocType;
211
- purpose_of_transactions: PurposeOfTransactions;
212
- source_of_funds_doc_file: string;
213
- source_of_funds_doc_type: SourceOfFundsDocType;
214
- purpose_of_transactions_explanation: string | null;
215
- state_province_region: string;
216
- tax_id: string;
217
- tos_id: string;
209
+ account_purpose?: AccountPurpose | null;
210
+ address_line_1?: string | null;
211
+ address_line_2?: string | null;
212
+ city?: string | null;
213
+ date_of_birth?: string | null;
214
+ external_id?: string | null;
215
+ first_name?: string | null;
216
+ id_doc_back_file?: string | null;
217
+ id_doc_country?: Country | null;
218
+ id_doc_front_file?: string | null;
219
+ id_doc_type?: IdentificationDocument | null;
220
+ image_url?: string | null;
221
+ ip_address?: string | null;
222
+ last_name?: string | null;
223
+ phone_number?: string | null;
224
+ postal_code?: string | null;
225
+ proof_of_address_doc_file?: string | null;
226
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
227
+ purpose_of_transactions?: PurposeOfTransactions | null;
228
+ purpose_of_transactions_explanation?: string | null;
229
+ selfie_file?: string | null;
230
+ source_of_funds_doc_file?: string | null;
231
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
232
+ source_of_wealth?: SourceOfWealth | null;
233
+ state_province_region?: string | null;
234
+ tax_id?: string | null;
235
+ tos_id?: string | null;
218
236
  };
219
237
  type CreateIndividualWithEnhancedKYCResponse = {
220
238
  id: string;
221
239
  };
222
240
  type CreateBusinessWithStandardKYBInput = {
223
- external_id?: string;
224
- address_line_1: string;
225
- address_line_2?: string;
226
- alternate_name: string;
227
- city: string;
228
241
  country: Country;
229
242
  email: string;
230
- formation_date: string;
231
- incorporation_doc_file: string;
232
- legal_name: string;
233
- owners: Array<StrictOmit<Owner, "id">>;
234
- postal_code: string;
235
- proof_of_address_doc_file: string;
236
- proof_of_address_doc_type: ProofOfAddressDocType;
237
- proof_of_ownership_doc_file: string;
238
- state_province_region: string;
239
- tax_id: string;
240
- tos_id: string;
241
- website: string | null;
243
+ account_purpose?: AccountPurpose | null;
244
+ address_line_1?: string | null;
245
+ address_line_2?: string | null;
246
+ alternate_name?: string | null;
247
+ business_description?: string | null;
248
+ business_industry?: BusinessIndustry | null;
249
+ business_type?: BusinessType | null;
250
+ city?: string | null;
251
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
252
+ external_id?: string | null;
253
+ formation_date?: string | null;
254
+ image_url?: string | null;
255
+ incorporation_doc_file?: string | null;
256
+ ip_address?: string | null;
257
+ legal_name?: string | null;
258
+ owners?: Array<StrictOmit<Owner, "id">> | null;
259
+ phone_number?: string | null;
260
+ postal_code?: string | null;
261
+ proof_of_address_doc_file?: string | null;
262
+ proof_of_address_doc_type?: ProofOfAddressDocType | null;
263
+ proof_of_ownership_doc_file?: string | null;
264
+ publicly_traded?: boolean | null;
265
+ source_of_funds_doc_file?: string | null;
266
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
267
+ source_of_wealth?: SourceOfWealth | null;
268
+ state_province_region?: string | null;
269
+ tax_id?: string | null;
270
+ tos_id?: string | null;
271
+ website?: string | null;
242
272
  };
243
273
  type CreateBusinessWithStandardKYBResponse = {
244
274
  id: string;
@@ -248,40 +278,47 @@ type GetReceiverInput = string;
248
278
  type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
249
279
  type UpdateReceiverInput = {
250
280
  receiver_id: string;
251
- email?: string;
252
- tax_id?: string;
281
+ account_purpose?: AccountPurpose | null;
253
282
  address_line_1?: string;
254
283
  address_line_2?: string;
284
+ alternate_name?: string;
285
+ business_description?: string;
286
+ business_industry?: BusinessIndustry | null;
287
+ business_type?: BusinessType | null;
255
288
  city?: string;
256
- state_province_region?: string;
257
289
  country?: Country;
258
- postal_code?: string;
259
- ip_address?: string;
260
- image_url?: string;
261
- phone_number?: string;
262
- proof_of_address_doc_type?: ProofOfAddressDocType;
263
- proof_of_address_doc_file?: string;
264
- first_name?: string;
265
- last_name?: string;
266
290
  date_of_birth?: string;
291
+ email?: string;
292
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
293
+ external_id?: string;
294
+ first_name?: string;
295
+ formation_date?: string;
296
+ id_doc_back_file?: string;
267
297
  id_doc_country?: Country;
268
- id_doc_type?: IdentificationDocument;
269
298
  id_doc_front_file?: string;
270
- id_doc_back_file?: string;
271
- legal_name?: string;
272
- alternate_name?: string;
273
- formation_date?: string;
274
- website?: string;
275
- owners?: Array<Pick<Owner, "first_name" | "last_name" | "role" | "date_of_birth" | "tax_id" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "id_doc_country" | "id_doc_type" | "id_doc_front_file" | "id_doc_back_file">>;
299
+ id_doc_type?: IdentificationDocument;
300
+ image_url?: string;
276
301
  incorporation_doc_file?: string;
302
+ ip_address?: string;
303
+ last_name?: string;
304
+ legal_name?: string;
305
+ owners?: Array<StrictOmit<Owner, "id">>;
306
+ phone_number?: string;
307
+ postal_code?: string;
308
+ proof_of_address_doc_file?: string;
309
+ proof_of_address_doc_type?: ProofOfAddressDocType;
277
310
  proof_of_ownership_doc_file?: string;
278
- source_of_funds_doc_type?: SourceOfFundsDocType;
279
- source_of_funds_doc_file?: string;
280
- individual_holding_doc_front_file?: string;
311
+ publicly_traded?: boolean | null;
281
312
  purpose_of_transactions?: PurposeOfTransactions;
282
313
  purpose_of_transactions_explanation?: string;
283
- external_id?: string;
314
+ selfie_file?: string;
315
+ source_of_funds_doc_file?: string;
316
+ source_of_funds_doc_type?: SourceOfFundsDocType;
317
+ source_of_wealth?: SourceOfWealth | null;
318
+ state_province_region?: string;
319
+ tax_id?: string;
284
320
  tos_id?: string;
321
+ website?: string;
285
322
  };
286
323
  type DeleteReceiverInput = string;
287
324
  type GetReceiverLimitsInput = string;
@@ -336,4 +373,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
336
373
  requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
337
374
  };
338
375
 
339
- export { type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type UpdateReceiverInput, createReceiversResource };
376
+ export { type AccountPurpose, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19503,6 +19503,8 @@ describe("Receivers", () => {
19503
19503
  id_doc_back_file: "https://example.com/image.png",
19504
19504
  proof_of_address_doc_type: "UTILITY_BILL",
19505
19505
  proof_of_address_doc_file: "https://example.com/image.png",
19506
+ ownership_percentage: 25,
19507
+ title: "CEO",
19506
19508
  id: "ub_000000000000"
19507
19509
  }
19508
19510
  ],
@@ -19539,12 +19541,12 @@ describe("Receivers", () => {
19539
19541
  });
19540
19542
  const { data, error } = yield blindpay.receivers.createIndividualWithStandardKYC({
19541
19543
  email: "bernardo.simonassi@gmail.com",
19544
+ country: "BR",
19542
19545
  tax_id: "12345678900",
19543
19546
  address_line_1: "Av. Paulista, 1000",
19544
19547
  address_line_2: "Apto 101",
19545
19548
  city: "S\xE3o Paulo",
19546
19549
  state_province_region: "SP",
19547
- country: "BR",
19548
19550
  postal_code: "01310-100",
19549
19551
  phone_number: "+5511987654321",
19550
19552
  first_name: "Bernardo",
@@ -19570,12 +19572,12 @@ describe("Receivers", () => {
19570
19572
  });
19571
19573
  const { data, error } = yield blindpay.receivers.createIndividualWithEnhancedKYC({
19572
19574
  email: "bernardo.simonassi@gmail.com",
19575
+ country: "BR",
19573
19576
  tax_id: "12345678900",
19574
19577
  address_line_1: "Av. Paulista, 1000",
19575
19578
  address_line_2: "Apto 101",
19576
19579
  city: "S\xE3o Paulo",
19577
19580
  state_province_region: "SP",
19578
- country: "BR",
19579
19581
  postal_code: "01310-100",
19580
19582
  first_name: "Bernardo",
19581
19583
  last_name: "Simonassi",
@@ -19587,11 +19589,11 @@ describe("Receivers", () => {
19587
19589
  id_doc_back_file: "https://example.com/image.png",
19588
19590
  proof_of_address_doc_type: "UTILITY_BILL",
19589
19591
  proof_of_address_doc_file: "https://example.com/image.png",
19590
- individual_holding_doc_front_file: "https://example.com/image.png",
19591
19592
  purpose_of_transactions: "personal_or_living_expenses",
19592
19593
  source_of_funds_doc_type: "savings",
19593
19594
  purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
19594
19595
  source_of_funds_doc_file: "https://example.com/image.png",
19596
+ selfie_file: "https://example.com/image.png",
19595
19597
  tos_id: "to_3ZZhllJkvo5Z"
19596
19598
  });
19597
19599
  globalExpect(error).toBeNull();
@@ -19606,12 +19608,12 @@ describe("Receivers", () => {
19606
19608
  });
19607
19609
  const { data, error } = yield blindpay.receivers.createBusinessWithStandardKYB({
19608
19610
  email: "contato@empresa.com.br",
19611
+ country: "BR",
19609
19612
  tax_id: "20096178000195",
19610
19613
  address_line_1: "Av. Brigadeiro Faria Lima, 400",
19611
19614
  address_line_2: "Sala 1201",
19612
19615
  city: "S\xE3o Paulo",
19613
19616
  state_province_region: "SP",
19614
- country: "BR",
19615
19617
  postal_code: "04538-132",
19616
19618
  legal_name: "Empresa Exemplo Ltda",
19617
19619
  alternate_name: "Exemplo",
@@ -19622,6 +19624,13 @@ describe("Receivers", () => {
19622
19624
  proof_of_ownership_doc_file: "https://example.com/image.png",
19623
19625
  tos_id: "to_nppX66ntvtHs",
19624
19626
  website: "https://site.com/",
19627
+ business_type: "llc",
19628
+ business_description: "Software development company",
19629
+ business_industry: "541511",
19630
+ estimated_annual_revenue: "1000000_9999999",
19631
+ source_of_wealth: "affiliate_or_royalty_income",
19632
+ publicly_traded: false,
19633
+ account_purpose: "treasury_management",
19625
19634
  owners: [
19626
19635
  {
19627
19636
  role: "beneficial_owner",
@@ -19640,7 +19649,9 @@ describe("Receivers", () => {
19640
19649
  id_doc_front_file: "https://example.com/image.png",
19641
19650
  id_doc_back_file: "https://example.com/image.png",
19642
19651
  proof_of_address_doc_type: "UTILITY_BILL",
19643
- proof_of_address_doc_file: "https://example.com/image.png"
19652
+ proof_of_address_doc_file: "https://example.com/image.png",
19653
+ ownership_percentage: 25,
19654
+ title: "CEO"
19644
19655
  }
19645
19656
  ]
19646
19657
  });
@@ -19754,14 +19765,17 @@ describe("Receivers", () => {
19754
19765
  id_doc_country: "BR",
19755
19766
  id_doc_type: "PASSPORT",
19756
19767
  id_doc_front_file: "https://example.com/image.png",
19757
- id_doc_back_file: "https://example.com/image.png"
19768
+ id_doc_back_file: "https://example.com/image.png",
19769
+ proof_of_address_doc_type: "UTILITY_BILL",
19770
+ proof_of_address_doc_file: "https://example.com/image.png",
19771
+ ownership_percentage: 25,
19772
+ title: "CEO"
19758
19773
  }
19759
19774
  ],
19760
19775
  incorporation_doc_file: "https://example.com/image.png",
19761
19776
  proof_of_ownership_doc_file: "https://example.com/image.png",
19762
19777
  source_of_funds_doc_type: "savings",
19763
19778
  source_of_funds_doc_file: "https://example.com/image.png",
19764
- individual_holding_doc_front_file: "https://example.com/image.png",
19765
19779
  purpose_of_transactions: "personal_or_living_expenses",
19766
19780
  purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
19767
19781
  external_id: "some-external-id",
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -172,6 +172,8 @@ var require_receivers_test = __commonJS({
172
172
  id_doc_back_file: "https://example.com/image.png",
173
173
  proof_of_address_doc_type: "UTILITY_BILL",
174
174
  proof_of_address_doc_file: "https://example.com/image.png",
175
+ ownership_percentage: 25,
176
+ title: "CEO",
175
177
  id: "ub_000000000000"
176
178
  }
177
179
  ],
@@ -208,12 +210,12 @@ var require_receivers_test = __commonJS({
208
210
  });
209
211
  const { data, error } = yield blindpay.receivers.createIndividualWithStandardKYC({
210
212
  email: "bernardo.simonassi@gmail.com",
213
+ country: "BR",
211
214
  tax_id: "12345678900",
212
215
  address_line_1: "Av. Paulista, 1000",
213
216
  address_line_2: "Apto 101",
214
217
  city: "S\xE3o Paulo",
215
218
  state_province_region: "SP",
216
- country: "BR",
217
219
  postal_code: "01310-100",
218
220
  phone_number: "+5511987654321",
219
221
  first_name: "Bernardo",
@@ -239,12 +241,12 @@ var require_receivers_test = __commonJS({
239
241
  });
240
242
  const { data, error } = yield blindpay.receivers.createIndividualWithEnhancedKYC({
241
243
  email: "bernardo.simonassi@gmail.com",
244
+ country: "BR",
242
245
  tax_id: "12345678900",
243
246
  address_line_1: "Av. Paulista, 1000",
244
247
  address_line_2: "Apto 101",
245
248
  city: "S\xE3o Paulo",
246
249
  state_province_region: "SP",
247
- country: "BR",
248
250
  postal_code: "01310-100",
249
251
  first_name: "Bernardo",
250
252
  last_name: "Simonassi",
@@ -256,11 +258,11 @@ var require_receivers_test = __commonJS({
256
258
  id_doc_back_file: "https://example.com/image.png",
257
259
  proof_of_address_doc_type: "UTILITY_BILL",
258
260
  proof_of_address_doc_file: "https://example.com/image.png",
259
- individual_holding_doc_front_file: "https://example.com/image.png",
260
261
  purpose_of_transactions: "personal_or_living_expenses",
261
262
  source_of_funds_doc_type: "savings",
262
263
  purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
263
264
  source_of_funds_doc_file: "https://example.com/image.png",
265
+ selfie_file: "https://example.com/image.png",
264
266
  tos_id: "to_3ZZhllJkvo5Z"
265
267
  });
266
268
  globalExpect(error).toBeNull();
@@ -275,12 +277,12 @@ var require_receivers_test = __commonJS({
275
277
  });
276
278
  const { data, error } = yield blindpay.receivers.createBusinessWithStandardKYB({
277
279
  email: "contato@empresa.com.br",
280
+ country: "BR",
278
281
  tax_id: "20096178000195",
279
282
  address_line_1: "Av. Brigadeiro Faria Lima, 400",
280
283
  address_line_2: "Sala 1201",
281
284
  city: "S\xE3o Paulo",
282
285
  state_province_region: "SP",
283
- country: "BR",
284
286
  postal_code: "04538-132",
285
287
  legal_name: "Empresa Exemplo Ltda",
286
288
  alternate_name: "Exemplo",
@@ -291,6 +293,13 @@ var require_receivers_test = __commonJS({
291
293
  proof_of_ownership_doc_file: "https://example.com/image.png",
292
294
  tos_id: "to_nppX66ntvtHs",
293
295
  website: "https://site.com/",
296
+ business_type: "llc",
297
+ business_description: "Software development company",
298
+ business_industry: "541511",
299
+ estimated_annual_revenue: "1000000_9999999",
300
+ source_of_wealth: "affiliate_or_royalty_income",
301
+ publicly_traded: false,
302
+ account_purpose: "treasury_management",
294
303
  owners: [
295
304
  {
296
305
  role: "beneficial_owner",
@@ -309,7 +318,9 @@ var require_receivers_test = __commonJS({
309
318
  id_doc_front_file: "https://example.com/image.png",
310
319
  id_doc_back_file: "https://example.com/image.png",
311
320
  proof_of_address_doc_type: "UTILITY_BILL",
312
- proof_of_address_doc_file: "https://example.com/image.png"
321
+ proof_of_address_doc_file: "https://example.com/image.png",
322
+ ownership_percentage: 25,
323
+ title: "CEO"
313
324
  }
314
325
  ]
315
326
  });
@@ -423,14 +434,17 @@ var require_receivers_test = __commonJS({
423
434
  id_doc_country: "BR",
424
435
  id_doc_type: "PASSPORT",
425
436
  id_doc_front_file: "https://example.com/image.png",
426
- id_doc_back_file: "https://example.com/image.png"
437
+ id_doc_back_file: "https://example.com/image.png",
438
+ proof_of_address_doc_type: "UTILITY_BILL",
439
+ proof_of_address_doc_file: "https://example.com/image.png",
440
+ ownership_percentage: 25,
441
+ title: "CEO"
427
442
  }
428
443
  ],
429
444
  incorporation_doc_file: "https://example.com/image.png",
430
445
  proof_of_ownership_doc_file: "https://example.com/image.png",
431
446
  source_of_funds_doc_type: "savings",
432
447
  source_of_funds_doc_file: "https://example.com/image.png",
433
- individual_holding_doc_front_file: "https://example.com/image.png",
434
448
  purpose_of_transactions: "personal_or_living_expenses",
435
449
  purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
436
450
  external_id: "some-external-id",
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -1,6 +1,6 @@
1
1
  import { I as InternalApiClient, B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../api-client-CIPV5zmo.mjs';
2
2
 
3
- type BankingPartner = "jpmorgan" | "citi";
3
+ type BankingPartner = "jpmorgan" | "citi" | "hsbc";
4
4
  type VirtualAccount = {
5
5
  id: string;
6
6
  banking_partner: BankingPartner;
@@ -45,6 +45,7 @@ type CreateVirtualAccountInput = {
45
45
  banking_partner: BankingPartner;
46
46
  token: StablecoinToken;
47
47
  blockchain_wallet_id: string;
48
+ signed_agreement_id?: string | null;
48
49
  };
49
50
  type CreateVirtualAccountResponse = VirtualAccount;
50
51
  type GetVirtualAccountInput = {
@@ -1,6 +1,6 @@
1
1
  import { I as InternalApiClient, B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../api-client-CIPV5zmo.js';
2
2
 
3
- type BankingPartner = "jpmorgan" | "citi";
3
+ type BankingPartner = "jpmorgan" | "citi" | "hsbc";
4
4
  type VirtualAccount = {
5
5
  id: string;
6
6
  banking_partner: BankingPartner;
@@ -45,6 +45,7 @@ type CreateVirtualAccountInput = {
45
45
  banking_partner: BankingPartner;
46
46
  token: StablecoinToken;
47
47
  blockchain_wallet_id: string;
48
+ signed_agreement_id?: string | null;
48
49
  };
49
50
  type CreateVirtualAccountResponse = VirtualAccount;
50
51
  type GetVirtualAccountInput = {
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19547,7 +19547,8 @@ describe("Virtual accounts", () => {
19547
19547
  receiver_id: "re_000000000000",
19548
19548
  banking_partner: "jpmorgan",
19549
19549
  blockchain_wallet_id: "bw_000000000000",
19550
- token: "USDC"
19550
+ token: "USDC",
19551
+ signed_agreement_id: "123e4567-e89b-12d3-a456-426614174000"
19551
19552
  });
19552
19553
  globalExpect(error).toBeNull();
19553
19554
  globalExpect(data).toEqual(mockedVirtualAccount);
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -216,7 +216,8 @@ var require_virtual_accounts_test = __commonJS({
216
216
  receiver_id: "re_000000000000",
217
217
  banking_partner: "jpmorgan",
218
218
  blockchain_wallet_id: "bw_000000000000",
219
- token: "USDC"
219
+ token: "USDC",
220
+ signed_agreement_id: "123e4567-e89b-12d3-a456-426614174000"
220
221
  });
221
222
  globalExpect(error).toBeNull();
222
223
  globalExpect(data).toEqual(mockedVirtualAccount);
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -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.1.1";
18705
+ var version = "3.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-I4KOWV46.mjs";
11
+ } from "../../chunk-AFXWEXL6.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "3.1.1",
4
- "description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
3
+ "version": "3.2.0",
4
+ "description": "Official Node.js SDK for Blindpay API - Stablecoin API for global payments",
5
5
  "keywords": [
6
6
  "blindpay",
7
7
  "payments",