@blindpay/node 3.11.0 → 4.0.1
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/dist/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
- package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
- package/dist/{chunk-IM2L5L4B.mjs → chunk-IJSACZHV.mjs} +16 -24
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
- package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
- package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
- package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
- package/dist/{index.d-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
- package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
- package/dist/index.d.mts +4 -16
- package/dist/index.d.ts +4 -16
- package/dist/index.js +83 -153
- package/dist/index.mjs +14 -20
- package/dist/resources/api-keys/api-keys.test.js +83 -151
- package/dist/resources/api-keys/api-keys.test.mjs +9 -10
- package/dist/resources/api-keys/index.d.mts +2 -2
- package/dist/resources/api-keys/index.d.ts +2 -2
- package/dist/resources/available/available.test.js +83 -151
- package/dist/resources/available/available.test.mjs +9 -10
- package/dist/resources/available/index.d.mts +2 -2
- package/dist/resources/available/index.d.ts +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +171 -241
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
- package/dist/resources/bank-accounts/index.d.mts +100 -102
- package/dist/resources/bank-accounts/index.d.ts +100 -102
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/customers/customers.test.js +83 -151
- package/dist/resources/customers/customers.test.mjs +9 -10
- package/dist/resources/customers/index.d.mts +70 -69
- package/dist/resources/customers/index.d.ts +70 -69
- package/dist/resources/fees/fees.test.js +83 -151
- package/dist/resources/fees/fees.test.mjs +9 -10
- package/dist/resources/fees/index.d.mts +2 -2
- package/dist/resources/fees/index.d.ts +2 -2
- package/dist/resources/instances/index.d.mts +2 -2
- package/dist/resources/instances/index.d.ts +2 -2
- package/dist/resources/instances/instances.test.js +83 -151
- package/dist/resources/instances/instances.test.mjs +9 -10
- package/dist/resources/partner-fees/index.d.mts +2 -2
- package/dist/resources/partner-fees/index.d.ts +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +83 -151
- package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
- package/dist/resources/payins/index.d.mts +2 -2
- package/dist/resources/payins/index.d.ts +2 -2
- package/dist/resources/payins/payins-quotes.test.js +83 -151
- package/dist/resources/payins/payins-quotes.test.mjs +9 -10
- package/dist/resources/payins/payins.test.js +83 -151
- package/dist/resources/payins/payins.test.mjs +9 -10
- package/dist/resources/payins/quotes.d.mts +2 -2
- package/dist/resources/payins/quotes.d.ts +2 -2
- package/dist/resources/payouts/index.d.mts +2 -2
- package/dist/resources/payouts/index.d.ts +2 -2
- package/dist/resources/payouts/payouts.test.js +83 -151
- package/dist/resources/payouts/payouts.test.mjs +9 -10
- package/dist/resources/quotes/index.d.mts +2 -2
- package/dist/resources/quotes/index.d.ts +2 -2
- package/dist/resources/quotes/quotes.test.js +83 -151
- package/dist/resources/quotes/quotes.test.mjs +9 -10
- package/dist/resources/terms-of-service/index.d.mts +2 -2
- package/dist/resources/terms-of-service/index.d.ts +2 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
- package/dist/resources/transfers/index.d.mts +2 -2
- package/dist/resources/transfers/index.d.ts +2 -2
- package/dist/resources/transfers/transfers.test.js +83 -151
- package/dist/resources/transfers/transfers.test.mjs +9 -10
- package/dist/resources/upload/index.d.mts +1 -1
- package/dist/resources/upload/index.d.ts +1 -1
- package/dist/resources/upload/upload.test.js +83 -151
- package/dist/resources/upload/upload.test.mjs +9 -10
- package/dist/resources/virtual-accounts/index.d.mts +9 -9
- package/dist/resources/virtual-accounts/index.d.ts +9 -9
- package/dist/resources/virtual-accounts/index.js +10 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +87 -155
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
- package/dist/resources/wallets/blockchain.d.mts +15 -15
- package/dist/resources/wallets/blockchain.d.ts +15 -15
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +91 -159
- package/dist/resources/wallets/blockchain.test.mjs +17 -18
- package/dist/resources/wallets/custodial.d.mts +11 -11
- package/dist/resources/wallets/custodial.d.ts +11 -11
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +87 -155
- package/dist/resources/wallets/custodial.test.mjs +13 -14
- package/dist/resources/wallets/offramp.d.mts +9 -9
- package/dist/resources/wallets/offramp.d.ts +9 -9
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +89 -157
- package/dist/resources/wallets/offramp.test.mjs +15 -16
- package/dist/resources/webhooks/index.d.mts +2 -2
- package/dist/resources/webhooks/index.d.ts +2 -2
- package/dist/resources/webhooks/webhooks.test.js +83 -151
- package/dist/resources/webhooks/webhooks.test.mjs +9 -10
- package/package.json +1 -1
- package/dist/chunk-NAGY6BLL.mjs +0 -79
- package/dist/resources/receivers/index.d.mts +0 -513
- package/dist/resources/receivers/index.d.ts +0 -513
- package/dist/resources/receivers/index.js +0 -118
- package/dist/resources/receivers/index.mjs +0 -9
- package/dist/resources/receivers/receivers.test.d.mts +0 -2
- package/dist/resources/receivers/receivers.test.d.ts +0 -2
- package/dist/resources/receivers/receivers.test.js +0 -20510
- package/dist/resources/receivers/receivers.test.mjs +0 -652
- package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
- package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, K as KycStatus,
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
3
|
-
import { S as StrictOmit } from '../../strict-omit-ByJhzKNC.js';
|
|
1
|
+
import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, K as KycStatus, u as AccountPurpose, v as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, w as SourceOfWealth, x as RecipientRelationship, y as SoleProprietorDocType, z as PurposeOfTransactions, l as PaginationMetadata, D as BusinessType } from '../../index.d-DK8eD9f3.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
|
|
4
3
|
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
type
|
|
4
|
+
type StrictOmit<T, K extends keyof T> = Omit<T, K>;
|
|
5
|
+
|
|
6
|
+
type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
|
|
7
|
+
type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
8
|
+
type AmlStatus = "clear" | "hit" | "error";
|
|
9
|
+
type AmlHits = {
|
|
9
10
|
has_sanction_match: boolean;
|
|
10
11
|
has_pep_match: boolean;
|
|
11
12
|
has_watchlist_match: boolean;
|
|
12
13
|
has_crimelist_match: boolean;
|
|
13
14
|
has_adversemedia_match: boolean;
|
|
14
15
|
};
|
|
15
|
-
type
|
|
16
|
+
type FraudWarning = {
|
|
16
17
|
id: string | null;
|
|
17
18
|
name: string | null;
|
|
18
19
|
operation: string | null;
|
|
19
20
|
score: number | null;
|
|
20
21
|
};
|
|
21
|
-
type
|
|
22
|
-
type
|
|
23
|
-
type
|
|
24
|
-
type
|
|
22
|
+
type OwnerTaxType = "SSN" | "ITIN";
|
|
23
|
+
type KycType = "light" | "standard" | "enhanced";
|
|
24
|
+
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
25
|
+
type Owner = {
|
|
25
26
|
id: string;
|
|
26
|
-
role:
|
|
27
|
+
role: OwnerRole;
|
|
27
28
|
first_name: string;
|
|
28
29
|
last_name: string;
|
|
29
30
|
date_of_birth: string;
|
|
@@ -35,22 +36,22 @@ type CustomerOwner = {
|
|
|
35
36
|
country: Country;
|
|
36
37
|
postal_code: string;
|
|
37
38
|
id_doc_country: Country;
|
|
38
|
-
id_doc_type:
|
|
39
|
+
id_doc_type: IdentificationDocument;
|
|
39
40
|
id_doc_front_file: string;
|
|
40
41
|
id_doc_back_file: string | null;
|
|
41
|
-
proof_of_address_doc_type:
|
|
42
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
42
43
|
proof_of_address_doc_file: string | null;
|
|
43
44
|
ownership_percentage: number | null;
|
|
44
45
|
title: string | null;
|
|
45
|
-
tax_type?:
|
|
46
|
+
tax_type?: OwnerTaxType | null;
|
|
46
47
|
instance_id?: string;
|
|
47
48
|
customer_id?: string;
|
|
48
49
|
};
|
|
49
|
-
type
|
|
50
|
+
type IndividualWithStandardKYC = {
|
|
50
51
|
id: string;
|
|
51
52
|
is_tos_accepted: boolean;
|
|
52
53
|
type: Extract<AccountClass, "individual">;
|
|
53
|
-
kyc_type: Extract<
|
|
54
|
+
kyc_type: Extract<KycType, "standard">;
|
|
54
55
|
kyc_status: KycStatus;
|
|
55
56
|
kyc_warnings: Array<{
|
|
56
57
|
code: string | null;
|
|
@@ -69,13 +70,13 @@ type CustomerIndividualWithStandardKYC = {
|
|
|
69
70
|
ip_address: string | null;
|
|
70
71
|
image_url: string | null;
|
|
71
72
|
phone_number: string;
|
|
72
|
-
proof_of_address_doc_type:
|
|
73
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
73
74
|
proof_of_address_doc_file: string;
|
|
74
75
|
first_name: string;
|
|
75
76
|
last_name: string;
|
|
76
77
|
date_of_birth: string;
|
|
77
78
|
id_doc_country: Country;
|
|
78
|
-
id_doc_type:
|
|
79
|
+
id_doc_type: IdentificationDocument;
|
|
79
80
|
id_doc_front_file: string;
|
|
80
81
|
id_doc_back_file: string;
|
|
81
82
|
aiprise_validation_key: string;
|
|
@@ -88,9 +89,9 @@ type CustomerIndividualWithStandardKYC = {
|
|
|
88
89
|
daily: number;
|
|
89
90
|
monthly: number;
|
|
90
91
|
};
|
|
91
|
-
fraud_warnings?:
|
|
92
|
-
aml_status?:
|
|
93
|
-
aml_hits?:
|
|
92
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
93
|
+
aml_status?: AmlStatus | null;
|
|
94
|
+
aml_hits?: AmlHits | null;
|
|
94
95
|
account_purpose?: AccountPurpose | null;
|
|
95
96
|
account_purpose_other?: string | null;
|
|
96
97
|
occupation?: string | null;
|
|
@@ -107,11 +108,11 @@ type CustomerIndividualWithStandardKYC = {
|
|
|
107
108
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
108
109
|
publicly_traded?: boolean | null;
|
|
109
110
|
};
|
|
110
|
-
type
|
|
111
|
+
type IndividualWithEnhancedKYC = {
|
|
111
112
|
id: string;
|
|
112
113
|
is_tos_accepted: boolean;
|
|
113
114
|
type: Extract<AccountClass, "individual">;
|
|
114
|
-
kyc_type: Extract<
|
|
115
|
+
kyc_type: Extract<KycType, "enhanced">;
|
|
115
116
|
kyc_status: KycStatus;
|
|
116
117
|
kyc_warnings: Array<{
|
|
117
118
|
code: string | null;
|
|
@@ -130,13 +131,13 @@ type CustomerIndividualWithEnhancedKYC = {
|
|
|
130
131
|
ip_address: string | null;
|
|
131
132
|
image_url: string | null;
|
|
132
133
|
phone_number: string | null;
|
|
133
|
-
proof_of_address_doc_type:
|
|
134
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
134
135
|
proof_of_address_doc_file: string;
|
|
135
136
|
first_name: string;
|
|
136
137
|
last_name: string;
|
|
137
138
|
date_of_birth: string;
|
|
138
139
|
id_doc_country: Country;
|
|
139
|
-
id_doc_type:
|
|
140
|
+
id_doc_type: IdentificationDocument;
|
|
140
141
|
id_doc_front_file: string;
|
|
141
142
|
id_doc_back_file: string | null;
|
|
142
143
|
aiprise_validation_key: string;
|
|
@@ -154,9 +155,9 @@ type CustomerIndividualWithEnhancedKYC = {
|
|
|
154
155
|
daily: number;
|
|
155
156
|
monthly: number;
|
|
156
157
|
};
|
|
157
|
-
fraud_warnings?:
|
|
158
|
-
aml_status?:
|
|
159
|
-
aml_hits?:
|
|
158
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
159
|
+
aml_status?: AmlStatus | null;
|
|
160
|
+
aml_hits?: AmlHits | null;
|
|
160
161
|
account_purpose?: AccountPurpose | null;
|
|
161
162
|
account_purpose_other?: string | null;
|
|
162
163
|
occupation?: string | null;
|
|
@@ -171,12 +172,12 @@ type CustomerIndividualWithEnhancedKYC = {
|
|
|
171
172
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
172
173
|
publicly_traded?: boolean | null;
|
|
173
174
|
};
|
|
174
|
-
type
|
|
175
|
+
type BusinessWithStandardKYB = {
|
|
175
176
|
id: string;
|
|
176
177
|
is_tos_accepted: boolean;
|
|
177
178
|
is_fbo: boolean;
|
|
178
179
|
type: Extract<AccountClass, "business">;
|
|
179
|
-
kyc_type: Extract<
|
|
180
|
+
kyc_type: Extract<KycType, "standard">;
|
|
180
181
|
kyc_status: KycStatus;
|
|
181
182
|
kyc_warnings: Array<{
|
|
182
183
|
code: string | null;
|
|
@@ -195,13 +196,13 @@ type CustomerBusinessWithStandardKYB = {
|
|
|
195
196
|
ip_address: string | null;
|
|
196
197
|
image_url: string | null;
|
|
197
198
|
phone_number: string | null;
|
|
198
|
-
proof_of_address_doc_type:
|
|
199
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
199
200
|
proof_of_address_doc_file: string;
|
|
200
201
|
legal_name: string;
|
|
201
202
|
alternate_name: string | null;
|
|
202
203
|
formation_date: string;
|
|
203
204
|
website: string | null;
|
|
204
|
-
owners:
|
|
205
|
+
owners: Owner[];
|
|
205
206
|
incorporation_doc_file: string;
|
|
206
207
|
proof_of_ownership_doc_file: string;
|
|
207
208
|
external_id: string | null;
|
|
@@ -215,9 +216,9 @@ type CustomerBusinessWithStandardKYB = {
|
|
|
215
216
|
daily: number;
|
|
216
217
|
monthly: number;
|
|
217
218
|
};
|
|
218
|
-
fraud_warnings?:
|
|
219
|
-
aml_status?:
|
|
220
|
-
aml_hits?:
|
|
219
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
220
|
+
aml_status?: AmlStatus | null;
|
|
221
|
+
aml_hits?: AmlHits | null;
|
|
221
222
|
account_purpose?: AccountPurpose | null;
|
|
222
223
|
account_purpose_other?: string | null;
|
|
223
224
|
occupation?: string | null;
|
|
@@ -231,7 +232,7 @@ type CustomerBusinessWithStandardKYB = {
|
|
|
231
232
|
recipient_relationship?: RecipientRelationship | null;
|
|
232
233
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
233
234
|
};
|
|
234
|
-
type
|
|
235
|
+
type CreateIndividualWithStandardKYCInput = {
|
|
235
236
|
country: Country;
|
|
236
237
|
email: string;
|
|
237
238
|
account_purpose?: AccountPurpose | null;
|
|
@@ -244,14 +245,14 @@ type CreateCustomerIndividualWithStandardKYCInput = {
|
|
|
244
245
|
id_doc_back_file?: string | null;
|
|
245
246
|
id_doc_country?: Country | null;
|
|
246
247
|
id_doc_front_file?: string | null;
|
|
247
|
-
id_doc_type?:
|
|
248
|
+
id_doc_type?: IdentificationDocument | null;
|
|
248
249
|
image_url?: string | null;
|
|
249
250
|
ip_address?: string | null;
|
|
250
251
|
last_name?: string | null;
|
|
251
252
|
phone_number?: string | null;
|
|
252
253
|
postal_code?: string | null;
|
|
253
254
|
proof_of_address_doc_file?: string | null;
|
|
254
|
-
proof_of_address_doc_type?:
|
|
255
|
+
proof_of_address_doc_type?: ProofOfAddressDocType | null;
|
|
255
256
|
selfie_file?: string | null;
|
|
256
257
|
source_of_funds_doc_file?: string | null;
|
|
257
258
|
source_of_funds_doc_type?: SourceOfFundsDocType | null;
|
|
@@ -264,10 +265,10 @@ type CreateCustomerIndividualWithStandardKYCInput = {
|
|
|
264
265
|
recipient_relationship?: RecipientRelationship | null;
|
|
265
266
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
266
267
|
};
|
|
267
|
-
type
|
|
268
|
+
type CreateIndividualWithStandardKYCResponse = {
|
|
268
269
|
id: string;
|
|
269
270
|
};
|
|
270
|
-
type
|
|
271
|
+
type CreateIndividualWithEnhancedKYCInput = {
|
|
271
272
|
country: Country;
|
|
272
273
|
email: string;
|
|
273
274
|
account_purpose?: AccountPurpose | null;
|
|
@@ -280,14 +281,14 @@ type CreateCustomerIndividualWithEnhancedKYCInput = {
|
|
|
280
281
|
id_doc_back_file?: string | null;
|
|
281
282
|
id_doc_country?: Country | null;
|
|
282
283
|
id_doc_front_file?: string | null;
|
|
283
|
-
id_doc_type?:
|
|
284
|
+
id_doc_type?: IdentificationDocument | null;
|
|
284
285
|
image_url?: string | null;
|
|
285
286
|
ip_address?: string | null;
|
|
286
287
|
last_name?: string | null;
|
|
287
288
|
phone_number?: string | null;
|
|
288
289
|
postal_code?: string | null;
|
|
289
290
|
proof_of_address_doc_file?: string | null;
|
|
290
|
-
proof_of_address_doc_type?:
|
|
291
|
+
proof_of_address_doc_type?: ProofOfAddressDocType | null;
|
|
291
292
|
purpose_of_transactions?: PurposeOfTransactions | null;
|
|
292
293
|
purpose_of_transactions_explanation?: string | null;
|
|
293
294
|
selfie_file?: string | null;
|
|
@@ -302,10 +303,10 @@ type CreateCustomerIndividualWithEnhancedKYCInput = {
|
|
|
302
303
|
recipient_relationship?: RecipientRelationship | null;
|
|
303
304
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
304
305
|
};
|
|
305
|
-
type
|
|
306
|
+
type CreateIndividualWithEnhancedKYCResponse = {
|
|
306
307
|
id: string;
|
|
307
308
|
};
|
|
308
|
-
type
|
|
309
|
+
type CreateBusinessWithStandardKYBInput = {
|
|
309
310
|
country: Country;
|
|
310
311
|
email: string;
|
|
311
312
|
account_purpose?: AccountPurpose | null;
|
|
@@ -323,11 +324,11 @@ type CreateCustomerBusinessWithStandardKYBInput = {
|
|
|
323
324
|
incorporation_doc_file?: string | null;
|
|
324
325
|
ip_address?: string | null;
|
|
325
326
|
legal_name?: string | null;
|
|
326
|
-
owners?: Array<StrictOmit<
|
|
327
|
+
owners?: Array<StrictOmit<Owner, "id">> | null;
|
|
327
328
|
phone_number?: string | null;
|
|
328
329
|
postal_code?: string | null;
|
|
329
330
|
proof_of_address_doc_file?: string | null;
|
|
330
|
-
proof_of_address_doc_type?:
|
|
331
|
+
proof_of_address_doc_type?: ProofOfAddressDocType | null;
|
|
331
332
|
proof_of_ownership_doc_file?: string | null;
|
|
332
333
|
publicly_traded?: boolean | null;
|
|
333
334
|
source_of_funds_doc_file?: string | null;
|
|
@@ -342,7 +343,7 @@ type CreateCustomerBusinessWithStandardKYBInput = {
|
|
|
342
343
|
recipient_relationship?: RecipientRelationship | null;
|
|
343
344
|
sole_proprietor_doc_type?: SoleProprietorDocType | null;
|
|
344
345
|
};
|
|
345
|
-
type
|
|
346
|
+
type CreateBusinessWithStandardKYBResponse = {
|
|
346
347
|
id: string;
|
|
347
348
|
};
|
|
348
349
|
type ListCustomersInput = PaginationParams & {
|
|
@@ -354,11 +355,11 @@ type ListCustomersInput = PaginationParams & {
|
|
|
354
355
|
country?: Country;
|
|
355
356
|
};
|
|
356
357
|
type ListCustomersResponse = {
|
|
357
|
-
data: Array<
|
|
358
|
+
data: Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
358
359
|
pagination: PaginationMetadata;
|
|
359
360
|
};
|
|
360
361
|
type GetCustomerInput = string;
|
|
361
|
-
type GetCustomerResponse =
|
|
362
|
+
type GetCustomerResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
362
363
|
type UpdateCustomerInput = {
|
|
363
364
|
customer_id: string;
|
|
364
365
|
account_purpose?: AccountPurpose | null;
|
|
@@ -379,17 +380,17 @@ type UpdateCustomerInput = {
|
|
|
379
380
|
id_doc_back_file?: string;
|
|
380
381
|
id_doc_country?: Country;
|
|
381
382
|
id_doc_front_file?: string;
|
|
382
|
-
id_doc_type?:
|
|
383
|
+
id_doc_type?: IdentificationDocument;
|
|
383
384
|
image_url?: string;
|
|
384
385
|
incorporation_doc_file?: string;
|
|
385
386
|
ip_address?: string;
|
|
386
387
|
last_name?: string;
|
|
387
388
|
legal_name?: string;
|
|
388
|
-
owners?: Array<StrictOmit<
|
|
389
|
+
owners?: Array<StrictOmit<Owner, "id">>;
|
|
389
390
|
phone_number?: string;
|
|
390
391
|
postal_code?: string;
|
|
391
392
|
proof_of_address_doc_file?: string;
|
|
392
|
-
proof_of_address_doc_type?:
|
|
393
|
+
proof_of_address_doc_type?: ProofOfAddressDocType;
|
|
393
394
|
proof_of_ownership_doc_file?: string;
|
|
394
395
|
publicly_traded?: boolean | null;
|
|
395
396
|
purpose_of_transactions?: PurposeOfTransactions;
|
|
@@ -421,46 +422,46 @@ type GetCustomerLimitsResponse = {
|
|
|
421
422
|
};
|
|
422
423
|
};
|
|
423
424
|
};
|
|
424
|
-
type
|
|
425
|
-
type
|
|
426
|
-
type
|
|
427
|
-
type
|
|
425
|
+
type GetLimitIncreaseRequestsInput = string;
|
|
426
|
+
type LimitIncreaseRequestStatus = "in_review" | "approved" | "rejected";
|
|
427
|
+
type LimitIncreaseRequestSupportingDocumentType = "individual_bank_statement" | "individual_tax_return" | "individual_proof_of_income" | "business_bank_statement" | "business_financial_statements" | "business_tax_return";
|
|
428
|
+
type GetLimitIncreaseRequestsResponse = Array<{
|
|
428
429
|
id: string;
|
|
429
430
|
customer_id: string;
|
|
430
|
-
status:
|
|
431
|
+
status: LimitIncreaseRequestStatus;
|
|
431
432
|
daily: number;
|
|
432
433
|
monthly: number;
|
|
433
434
|
per_transaction: number;
|
|
434
435
|
supporting_document_file: string;
|
|
435
|
-
supporting_document_type:
|
|
436
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
436
437
|
created_at: string;
|
|
437
438
|
updated_at: string;
|
|
438
439
|
approved_per_transaction?: number | null;
|
|
439
440
|
approved_daily?: number | null;
|
|
440
441
|
approved_monthly?: number | null;
|
|
441
442
|
}>;
|
|
442
|
-
type
|
|
443
|
+
type RequestLimitIncreaseInput = {
|
|
443
444
|
customer_id: string;
|
|
444
445
|
daily: number;
|
|
445
446
|
monthly: number;
|
|
446
447
|
per_transaction: number;
|
|
447
448
|
supporting_document_file: string;
|
|
448
|
-
supporting_document_type:
|
|
449
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
449
450
|
};
|
|
450
|
-
type
|
|
451
|
+
type RequestLimitIncreaseResponse = {
|
|
451
452
|
id: string;
|
|
452
453
|
};
|
|
453
454
|
declare function createCustomersResource(instanceId: string, client: InternalApiClient): {
|
|
454
455
|
list(params?: ListCustomersInput): Promise<BlindpayApiResponse<ListCustomersResponse>>;
|
|
455
|
-
createIndividualWithStandardKYC(data:
|
|
456
|
-
createIndividualWithEnhancedKYC(data:
|
|
457
|
-
createBusinessWithStandardKYB(data:
|
|
456
|
+
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
457
|
+
createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
|
|
458
|
+
createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
|
|
458
459
|
get(customer_id: GetCustomerInput): Promise<BlindpayApiResponse<GetCustomerResponse>>;
|
|
459
460
|
update({ customer_id, ...data }: UpdateCustomerInput): Promise<BlindpayApiResponse<void>>;
|
|
460
461
|
delete(customer_id: DeleteCustomerInput): Promise<BlindpayApiResponse<void>>;
|
|
461
462
|
getLimits(customer_id: GetCustomerLimitsInput): Promise<BlindpayApiResponse<GetCustomerLimitsResponse>>;
|
|
462
|
-
getLimitIncreaseRequests(customer_id:
|
|
463
|
-
requestLimitIncrease({ customer_id, ...data }:
|
|
463
|
+
getLimitIncreaseRequests(customer_id: GetLimitIncreaseRequestsInput): Promise<BlindpayApiResponse<GetLimitIncreaseRequestsResponse>>;
|
|
464
|
+
requestLimitIncrease({ customer_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
|
|
464
465
|
};
|
|
465
466
|
|
|
466
|
-
export { type
|
|
467
|
+
export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteCustomerInput, type FraudWarning, type GetCustomerInput, type GetCustomerLimitsInput, type GetCustomerLimitsResponse, type GetCustomerResponse, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListCustomersInput, type ListCustomersResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateCustomerInput, createCustomersResource };
|