@blindpay/node 3.1.0 → 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.
- package/README.md +1 -1
- package/dist/{api-client-DhY5DFpq.d.mts → api-client-CIPV5zmo.d.mts} +1 -1
- package/dist/{api-client-DhY5DFpq.d.ts → api-client-CIPV5zmo.d.ts} +1 -1
- package/dist/{chunk-V4V47AUC.mjs → chunk-AFXWEXL6.mjs} +5 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +5 -5
- package/dist/resources/api-keys/api-keys.test.js +1 -1
- package/dist/resources/api-keys/api-keys.test.mjs +2 -2
- package/dist/resources/api-keys/index.d.mts +1 -1
- package/dist/resources/api-keys/index.d.ts +1 -1
- package/dist/resources/available/available.test.js +1 -1
- package/dist/resources/available/available.test.mjs +2 -2
- package/dist/resources/available/index.d.mts +1 -1
- package/dist/resources/available/index.d.ts +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +2 -2
- package/dist/resources/bank-accounts/index.d.mts +1 -1
- package/dist/resources/bank-accounts/index.d.ts +1 -1
- package/dist/resources/instances/index.d.mts +1 -1
- package/dist/resources/instances/index.d.ts +1 -1
- package/dist/resources/instances/instances.test.js +1 -1
- package/dist/resources/instances/instances.test.mjs +2 -2
- package/dist/resources/partner-fees/index.d.mts +1 -1
- package/dist/resources/partner-fees/index.d.ts +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +1 -1
- package/dist/resources/partner-fees/partner-fees.test.mjs +2 -2
- package/dist/resources/payins/index.d.mts +1 -1
- package/dist/resources/payins/index.d.ts +1 -1
- package/dist/resources/payins/payins-quotes.test.js +1 -1
- package/dist/resources/payins/payins-quotes.test.mjs +2 -2
- package/dist/resources/payins/payins.test.js +1 -1
- package/dist/resources/payins/payins.test.mjs +2 -2
- package/dist/resources/payins/quotes.d.mts +1 -1
- package/dist/resources/payins/quotes.d.ts +1 -1
- package/dist/resources/payouts/index.d.mts +1 -1
- package/dist/resources/payouts/index.d.ts +1 -1
- package/dist/resources/payouts/payouts.test.js +1 -1
- package/dist/resources/payouts/payouts.test.mjs +2 -2
- package/dist/resources/quotes/index.d.mts +1 -1
- package/dist/resources/quotes/index.d.ts +1 -1
- package/dist/resources/quotes/quotes.test.js +1 -1
- package/dist/resources/quotes/quotes.test.mjs +2 -2
- package/dist/resources/receivers/index.d.mts +120 -83
- package/dist/resources/receivers/index.d.ts +120 -83
- package/dist/resources/receivers/receivers.test.js +22 -8
- package/dist/resources/receivers/receivers.test.mjs +23 -9
- package/dist/resources/terms-of-service/index.d.mts +1 -1
- package/dist/resources/terms-of-service/index.d.ts +1 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +1 -1
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +2 -2
- package/dist/resources/virtual-accounts/index.d.mts +3 -2
- package/dist/resources/virtual-accounts/index.d.ts +3 -2
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +3 -2
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +4 -3
- package/dist/resources/wallets/blockchain.d.mts +1 -1
- package/dist/resources/wallets/blockchain.d.ts +1 -1
- package/dist/resources/wallets/blockchain.test.js +1 -1
- package/dist/resources/wallets/blockchain.test.mjs +2 -2
- package/dist/resources/wallets/offramp.d.mts +1 -1
- package/dist/resources/wallets/offramp.d.ts +1 -1
- package/dist/resources/wallets/offramp.test.js +1 -1
- package/dist/resources/wallets/offramp.test.mjs +2 -2
- package/dist/resources/webhooks/index.d.mts +1 -1
- package/dist/resources/webhooks/index.d.ts +1 -1
- package/dist/resources/webhooks/webhooks.test.js +1 -1
- package/dist/resources/webhooks/webhooks.test.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-CIPV5zmo.mjs';
|
|
2
2
|
|
|
3
3
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
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
|
-
|
|
271
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-CIPV5zmo.js';
|
|
2
2
|
|
|
3
3
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
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
|
-
|
|
271
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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",
|