@blindpay/node 1.1.2 → 2.0.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/dist/{chunk-64EFLUS3.mjs → chunk-CPOSU35L.mjs} +10 -0
- package/dist/{chunk-BONN6PYB.mjs → chunk-MPJKYFDD.mjs} +9 -4
- package/dist/{chunk-YSH4QGAQ.mjs → chunk-URXUVGMC.mjs} +6 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -5
- package/dist/index.mjs +6 -6
- package/dist/resources/api-keys/api-keys.test.js +20 -5
- package/dist/resources/api-keys/api-keys.test.mjs +3 -3
- package/dist/resources/available/available.test.js +20 -5
- package/dist/resources/available/available.test.mjs +3 -3
- package/dist/resources/bank-accounts/bank-accounts.test.js +56 -5
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +39 -3
- package/dist/resources/bank-accounts/index.d.mts +30 -1
- package/dist/resources/bank-accounts/index.d.ts +30 -1
- package/dist/resources/bank-accounts/index.js +10 -0
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/instances/instances.test.js +20 -5
- package/dist/resources/instances/instances.test.mjs +3 -3
- package/dist/resources/partner-fees/partner-fees.test.js +20 -5
- package/dist/resources/partner-fees/partner-fees.test.mjs +3 -3
- package/dist/resources/payins/payins-quotes.test.js +20 -5
- package/dist/resources/payins/payins-quotes.test.mjs +3 -3
- package/dist/resources/payins/payins.test.js +20 -5
- package/dist/resources/payins/payins.test.mjs +3 -3
- package/dist/resources/payouts/payouts.test.js +20 -5
- package/dist/resources/payouts/payouts.test.mjs +3 -3
- package/dist/resources/quotes/quotes.test.js +20 -5
- package/dist/resources/quotes/quotes.test.mjs +3 -3
- package/dist/resources/receivers/index.d.mts +169 -53
- package/dist/resources/receivers/index.d.ts +169 -53
- package/dist/resources/receivers/index.js +9 -4
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +288 -171
- package/dist/resources/receivers/receivers.test.mjs +271 -169
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -5
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +3 -3
- package/dist/resources/wallets/blockchain.test.js +20 -5
- package/dist/resources/wallets/blockchain.test.mjs +3 -3
- package/dist/resources/wallets/offramp.test.js +20 -5
- package/dist/resources/wallets/offramp.test.mjs +3 -3
- package/dist/resources/webhooks/webhooks.test.js +20 -5
- package/dist/resources/webhooks/webhooks.test.mjs +3 -3
- package/package.json +1 -1
|
@@ -7,45 +7,48 @@ type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
|
7
7
|
type KycType = "light" | "standard" | "enhanced";
|
|
8
8
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
9
9
|
type Owner = {
|
|
10
|
+
id: string;
|
|
11
|
+
instance_id: string;
|
|
12
|
+
receiver_id: string;
|
|
13
|
+
role: OwnerRole;
|
|
14
|
+
first_name: string;
|
|
15
|
+
last_name: string;
|
|
16
|
+
date_of_birth: string;
|
|
17
|
+
tax_id: string;
|
|
10
18
|
address_line_1: string;
|
|
11
|
-
address_line_2: string;
|
|
19
|
+
address_line_2: string | null;
|
|
12
20
|
city: string;
|
|
21
|
+
state_province_region: string;
|
|
13
22
|
country: Country;
|
|
14
|
-
|
|
15
|
-
first_name: string;
|
|
23
|
+
postal_code: string;
|
|
16
24
|
id_doc_country: Country;
|
|
17
|
-
id_doc_front_file: string;
|
|
18
25
|
id_doc_type: IdentificationDocument;
|
|
19
|
-
|
|
20
|
-
postal_code: string;
|
|
21
|
-
role: OwnerRole;
|
|
22
|
-
state_province_region: string;
|
|
23
|
-
tax_id: string;
|
|
26
|
+
id_doc_front_file: string;
|
|
24
27
|
id_doc_back_file: string;
|
|
25
|
-
proof_of_address_doc_file: string;
|
|
26
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
|
+
proof_of_address_doc_file: string;
|
|
27
30
|
};
|
|
28
|
-
type
|
|
31
|
+
type IndividualWithStandardKYC = {
|
|
29
32
|
id: string;
|
|
30
|
-
type: AccountClass
|
|
31
|
-
kyc_type: KycType
|
|
33
|
+
type: Extract<AccountClass, "individual">;
|
|
34
|
+
kyc_type: Extract<KycType, "standard">;
|
|
32
35
|
kyc_status: string;
|
|
33
36
|
kyc_warnings: Array<{
|
|
34
37
|
code: string | null;
|
|
35
38
|
message: string | null;
|
|
36
39
|
resolution_status: string | null;
|
|
37
40
|
warning_id: string | null;
|
|
38
|
-
}
|
|
41
|
+
}> | null;
|
|
39
42
|
email: string;
|
|
40
43
|
tax_id: string;
|
|
41
44
|
address_line_1: string;
|
|
42
|
-
address_line_2?: string;
|
|
45
|
+
address_line_2?: string | null;
|
|
43
46
|
city: string;
|
|
44
47
|
state_province_region: string;
|
|
45
48
|
country: Country;
|
|
46
49
|
postal_code: string;
|
|
47
|
-
ip_address: string;
|
|
48
|
-
image_url: string;
|
|
50
|
+
ip_address: string | null;
|
|
51
|
+
image_url: string | null;
|
|
49
52
|
phone_number: string;
|
|
50
53
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
51
54
|
proof_of_address_doc_file: string;
|
|
@@ -56,23 +59,98 @@ type Receiver = {
|
|
|
56
59
|
id_doc_type: IdentificationDocument;
|
|
57
60
|
id_doc_front_file: string;
|
|
58
61
|
id_doc_back_file: string;
|
|
62
|
+
aiprise_validation_key: string;
|
|
63
|
+
instance_id: string;
|
|
64
|
+
tos_id: string | null;
|
|
65
|
+
created_at: string;
|
|
66
|
+
updated_at: string;
|
|
67
|
+
limit: {
|
|
68
|
+
per_transaction: number;
|
|
69
|
+
daily: number;
|
|
70
|
+
monthly: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type IndividualWithEnhancedKYC = {
|
|
74
|
+
id: string;
|
|
75
|
+
type: Extract<AccountClass, "individual">;
|
|
76
|
+
kyc_type: Extract<KycType, "enhanced">;
|
|
77
|
+
kyc_status: string;
|
|
78
|
+
kyc_warnings: Array<{
|
|
79
|
+
code: string | null;
|
|
80
|
+
message: string | null;
|
|
81
|
+
resolution_status: string | null;
|
|
82
|
+
warning_id: string | null;
|
|
83
|
+
}> | null;
|
|
84
|
+
email: string;
|
|
85
|
+
tax_id: string;
|
|
86
|
+
address_line_1: string;
|
|
87
|
+
address_line_2?: string | null;
|
|
88
|
+
city: string;
|
|
89
|
+
state_province_region: string;
|
|
90
|
+
country: Country;
|
|
91
|
+
postal_code: string;
|
|
92
|
+
ip_address: string | null;
|
|
93
|
+
image_url: string | null;
|
|
94
|
+
phone_number: string | null;
|
|
95
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
96
|
+
proof_of_address_doc_file: string;
|
|
97
|
+
first_name: string;
|
|
98
|
+
last_name: string;
|
|
99
|
+
date_of_birth: string;
|
|
100
|
+
id_doc_country: Country;
|
|
101
|
+
id_doc_type: IdentificationDocument;
|
|
102
|
+
id_doc_front_file: string;
|
|
103
|
+
id_doc_back_file: string | null;
|
|
104
|
+
aiprise_validation_key: string;
|
|
105
|
+
instance_id: string;
|
|
106
|
+
source_of_funds_doc_type: string;
|
|
107
|
+
source_of_funds_doc_file: string;
|
|
108
|
+
individual_holding_doc_front_file: string;
|
|
109
|
+
purpose_of_transactions: PurposeOfTransactions;
|
|
110
|
+
purpose_of_transactions_explanation: string | null;
|
|
111
|
+
tos_id: string | null;
|
|
112
|
+
created_at: string;
|
|
113
|
+
updated_at: string;
|
|
114
|
+
limit: {
|
|
115
|
+
per_transaction: number;
|
|
116
|
+
daily: number;
|
|
117
|
+
monthly: number;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
type BusinessWithStandardKYB = {
|
|
121
|
+
id: string;
|
|
122
|
+
type: Extract<AccountClass, "business">;
|
|
123
|
+
kyc_type: Extract<KycType, "standard">;
|
|
124
|
+
kyc_status: string;
|
|
125
|
+
kyc_warnings: Array<{
|
|
126
|
+
code: string | null;
|
|
127
|
+
message: string | null;
|
|
128
|
+
resolution_status: string | null;
|
|
129
|
+
warning_id: string | null;
|
|
130
|
+
}> | null;
|
|
131
|
+
email: string;
|
|
132
|
+
tax_id: string;
|
|
133
|
+
address_line_1: string;
|
|
134
|
+
address_line_2?: string | null;
|
|
135
|
+
city: string;
|
|
136
|
+
state_province_region: string;
|
|
137
|
+
country: Country;
|
|
138
|
+
postal_code: string;
|
|
139
|
+
ip_address: string | null;
|
|
140
|
+
image_url: string | null;
|
|
141
|
+
phone_number: string;
|
|
142
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
143
|
+
proof_of_address_doc_file: string;
|
|
59
144
|
legal_name: string;
|
|
60
|
-
alternate_name: string;
|
|
145
|
+
alternate_name: string | null;
|
|
61
146
|
formation_date: string;
|
|
62
|
-
website: string;
|
|
63
|
-
owners:
|
|
64
|
-
id: string;
|
|
65
|
-
} & Pick<Owner, "first_name" | "last_name" | "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">>;
|
|
147
|
+
website: string | null;
|
|
148
|
+
owners: Owner[];
|
|
66
149
|
incorporation_doc_file: string;
|
|
67
150
|
proof_of_ownership_doc_file: string;
|
|
68
|
-
|
|
69
|
-
source_of_funds_doc_file: string;
|
|
70
|
-
individual_holding_doc_front_file: string;
|
|
71
|
-
purpose_of_transactions: PurposeOfTransactions;
|
|
72
|
-
purpose_of_transactions_explanation: string;
|
|
73
|
-
external_id: string;
|
|
151
|
+
external_id: string | null;
|
|
74
152
|
instance_id: string;
|
|
75
|
-
tos_id: string;
|
|
153
|
+
tos_id: string | null;
|
|
76
154
|
aiprise_validation_key: string;
|
|
77
155
|
created_at: string;
|
|
78
156
|
updated_at: string;
|
|
@@ -82,50 +160,86 @@ type Receiver = {
|
|
|
82
160
|
monthly: number;
|
|
83
161
|
};
|
|
84
162
|
};
|
|
85
|
-
type ListReceiversResponse =
|
|
86
|
-
type
|
|
87
|
-
country: Country;
|
|
88
|
-
kyc_type: KycType;
|
|
89
|
-
type: AccountClass;
|
|
163
|
+
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
164
|
+
type CreateIndividualWithStandardKYCInput = {
|
|
90
165
|
address_line_1: string;
|
|
91
166
|
address_line_2?: string;
|
|
92
167
|
city: string;
|
|
93
|
-
|
|
94
|
-
|
|
168
|
+
country: Country;
|
|
169
|
+
date_of_birth: string;
|
|
170
|
+
email: string;
|
|
171
|
+
first_name: string;
|
|
172
|
+
id_doc_country: Country;
|
|
173
|
+
id_doc_front_file: string;
|
|
174
|
+
id_doc_type: IdentificationDocument;
|
|
175
|
+
kyc_type: "standard";
|
|
176
|
+
last_name: string;
|
|
95
177
|
postal_code: string;
|
|
178
|
+
proof_of_address_doc_file: string;
|
|
179
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
96
180
|
state_province_region: string;
|
|
97
181
|
tax_id: string;
|
|
98
|
-
|
|
182
|
+
tos_id: string;
|
|
183
|
+
type: "individual";
|
|
184
|
+
};
|
|
185
|
+
type CreateIndividualWithStandardKYCResponse = {
|
|
186
|
+
id: string;
|
|
187
|
+
};
|
|
188
|
+
type CreateIndividualWithEnhancedKYCInput = {
|
|
189
|
+
address_line_1: string;
|
|
190
|
+
address_line_2?: string;
|
|
191
|
+
city: string;
|
|
192
|
+
country: Country;
|
|
99
193
|
date_of_birth: string;
|
|
100
|
-
|
|
194
|
+
email: string;
|
|
101
195
|
first_name: string;
|
|
102
|
-
|
|
103
|
-
id_doc_back_file: string;
|
|
196
|
+
id_doc_country: Country;
|
|
104
197
|
id_doc_front_file: string;
|
|
105
198
|
id_doc_type: IdentificationDocument;
|
|
106
|
-
id_doc_country: Country;
|
|
107
|
-
email: string;
|
|
108
|
-
incorporation_doc_file: string;
|
|
109
199
|
individual_holding_doc_front_file: string;
|
|
200
|
+
kyc_type: "enhanced";
|
|
110
201
|
last_name: string;
|
|
111
|
-
|
|
112
|
-
owners: Owner[];
|
|
113
|
-
phone_number: string;
|
|
202
|
+
postal_code: string;
|
|
114
203
|
proof_of_address_doc_file: string;
|
|
115
204
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
116
|
-
proof_of_ownership_doc_file: string;
|
|
117
205
|
purpose_of_transactions: PurposeOfTransactions;
|
|
118
|
-
purpose_of_transactions_explanation: string;
|
|
119
206
|
source_of_funds_doc_file: string;
|
|
120
207
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
208
|
+
state_province_region: string;
|
|
209
|
+
tax_id: string;
|
|
210
|
+
tos_id: string;
|
|
211
|
+
type: "individual";
|
|
212
|
+
};
|
|
213
|
+
type CreateIndividualWithEnhancedKYCResponse = {
|
|
214
|
+
id: string;
|
|
215
|
+
};
|
|
216
|
+
type CreateBusinessWithStandardKYBInput = {
|
|
217
|
+
address_line_1: string;
|
|
218
|
+
address_line_2?: string;
|
|
219
|
+
alternate_name: string;
|
|
220
|
+
city: string;
|
|
221
|
+
country: Country;
|
|
222
|
+
email: string;
|
|
223
|
+
formation_date: string;
|
|
224
|
+
incorporation_doc_file: string;
|
|
225
|
+
kyc_type: "standard";
|
|
226
|
+
legal_name: string;
|
|
227
|
+
owners: Owner[];
|
|
228
|
+
postal_code: string;
|
|
229
|
+
proof_of_address_doc_file: string;
|
|
230
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
231
|
+
proof_of_ownership_doc_file: string;
|
|
232
|
+
state_province_region: string;
|
|
233
|
+
tax_id: string;
|
|
121
234
|
tos_id: string;
|
|
122
|
-
|
|
235
|
+
type: "business";
|
|
236
|
+
website: string | null;
|
|
123
237
|
};
|
|
124
|
-
type
|
|
238
|
+
type CreateBusinessWithStandardKYBResponse = {
|
|
125
239
|
id: string;
|
|
126
240
|
};
|
|
127
241
|
type GetReceiverInput = string;
|
|
128
|
-
type GetReceiverResponse =
|
|
242
|
+
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
129
243
|
type UpdateReceiverInput = {
|
|
130
244
|
receiver_id: string;
|
|
131
245
|
email?: string;
|
|
@@ -181,11 +295,13 @@ type GetReceiverLimitsResponse = {
|
|
|
181
295
|
};
|
|
182
296
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
183
297
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
184
|
-
|
|
298
|
+
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
299
|
+
createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
|
|
300
|
+
createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
|
|
185
301
|
get(receiver_id: GetReceiverInput): Promise<BlindpayApiResponse<GetReceiverResponse>>;
|
|
186
302
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
187
303
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
188
304
|
getLimits(receiver_id: GetReceiverLimitsInput): Promise<BlindpayApiResponse<GetReceiverLimitsResponse>>;
|
|
189
305
|
};
|
|
190
306
|
|
|
191
|
-
export { type
|
|
307
|
+
export { type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type SourceOfFundsDocType, type UpdateReceiverInput, createReceiversResource };
|
|
@@ -7,45 +7,48 @@ type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
|
7
7
|
type KycType = "light" | "standard" | "enhanced";
|
|
8
8
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
9
9
|
type Owner = {
|
|
10
|
+
id: string;
|
|
11
|
+
instance_id: string;
|
|
12
|
+
receiver_id: string;
|
|
13
|
+
role: OwnerRole;
|
|
14
|
+
first_name: string;
|
|
15
|
+
last_name: string;
|
|
16
|
+
date_of_birth: string;
|
|
17
|
+
tax_id: string;
|
|
10
18
|
address_line_1: string;
|
|
11
|
-
address_line_2: string;
|
|
19
|
+
address_line_2: string | null;
|
|
12
20
|
city: string;
|
|
21
|
+
state_province_region: string;
|
|
13
22
|
country: Country;
|
|
14
|
-
|
|
15
|
-
first_name: string;
|
|
23
|
+
postal_code: string;
|
|
16
24
|
id_doc_country: Country;
|
|
17
|
-
id_doc_front_file: string;
|
|
18
25
|
id_doc_type: IdentificationDocument;
|
|
19
|
-
|
|
20
|
-
postal_code: string;
|
|
21
|
-
role: OwnerRole;
|
|
22
|
-
state_province_region: string;
|
|
23
|
-
tax_id: string;
|
|
26
|
+
id_doc_front_file: string;
|
|
24
27
|
id_doc_back_file: string;
|
|
25
|
-
proof_of_address_doc_file: string;
|
|
26
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
|
+
proof_of_address_doc_file: string;
|
|
27
30
|
};
|
|
28
|
-
type
|
|
31
|
+
type IndividualWithStandardKYC = {
|
|
29
32
|
id: string;
|
|
30
|
-
type: AccountClass
|
|
31
|
-
kyc_type: KycType
|
|
33
|
+
type: Extract<AccountClass, "individual">;
|
|
34
|
+
kyc_type: Extract<KycType, "standard">;
|
|
32
35
|
kyc_status: string;
|
|
33
36
|
kyc_warnings: Array<{
|
|
34
37
|
code: string | null;
|
|
35
38
|
message: string | null;
|
|
36
39
|
resolution_status: string | null;
|
|
37
40
|
warning_id: string | null;
|
|
38
|
-
}
|
|
41
|
+
}> | null;
|
|
39
42
|
email: string;
|
|
40
43
|
tax_id: string;
|
|
41
44
|
address_line_1: string;
|
|
42
|
-
address_line_2?: string;
|
|
45
|
+
address_line_2?: string | null;
|
|
43
46
|
city: string;
|
|
44
47
|
state_province_region: string;
|
|
45
48
|
country: Country;
|
|
46
49
|
postal_code: string;
|
|
47
|
-
ip_address: string;
|
|
48
|
-
image_url: string;
|
|
50
|
+
ip_address: string | null;
|
|
51
|
+
image_url: string | null;
|
|
49
52
|
phone_number: string;
|
|
50
53
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
51
54
|
proof_of_address_doc_file: string;
|
|
@@ -56,23 +59,98 @@ type Receiver = {
|
|
|
56
59
|
id_doc_type: IdentificationDocument;
|
|
57
60
|
id_doc_front_file: string;
|
|
58
61
|
id_doc_back_file: string;
|
|
62
|
+
aiprise_validation_key: string;
|
|
63
|
+
instance_id: string;
|
|
64
|
+
tos_id: string | null;
|
|
65
|
+
created_at: string;
|
|
66
|
+
updated_at: string;
|
|
67
|
+
limit: {
|
|
68
|
+
per_transaction: number;
|
|
69
|
+
daily: number;
|
|
70
|
+
monthly: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type IndividualWithEnhancedKYC = {
|
|
74
|
+
id: string;
|
|
75
|
+
type: Extract<AccountClass, "individual">;
|
|
76
|
+
kyc_type: Extract<KycType, "enhanced">;
|
|
77
|
+
kyc_status: string;
|
|
78
|
+
kyc_warnings: Array<{
|
|
79
|
+
code: string | null;
|
|
80
|
+
message: string | null;
|
|
81
|
+
resolution_status: string | null;
|
|
82
|
+
warning_id: string | null;
|
|
83
|
+
}> | null;
|
|
84
|
+
email: string;
|
|
85
|
+
tax_id: string;
|
|
86
|
+
address_line_1: string;
|
|
87
|
+
address_line_2?: string | null;
|
|
88
|
+
city: string;
|
|
89
|
+
state_province_region: string;
|
|
90
|
+
country: Country;
|
|
91
|
+
postal_code: string;
|
|
92
|
+
ip_address: string | null;
|
|
93
|
+
image_url: string | null;
|
|
94
|
+
phone_number: string | null;
|
|
95
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
96
|
+
proof_of_address_doc_file: string;
|
|
97
|
+
first_name: string;
|
|
98
|
+
last_name: string;
|
|
99
|
+
date_of_birth: string;
|
|
100
|
+
id_doc_country: Country;
|
|
101
|
+
id_doc_type: IdentificationDocument;
|
|
102
|
+
id_doc_front_file: string;
|
|
103
|
+
id_doc_back_file: string | null;
|
|
104
|
+
aiprise_validation_key: string;
|
|
105
|
+
instance_id: string;
|
|
106
|
+
source_of_funds_doc_type: string;
|
|
107
|
+
source_of_funds_doc_file: string;
|
|
108
|
+
individual_holding_doc_front_file: string;
|
|
109
|
+
purpose_of_transactions: PurposeOfTransactions;
|
|
110
|
+
purpose_of_transactions_explanation: string | null;
|
|
111
|
+
tos_id: string | null;
|
|
112
|
+
created_at: string;
|
|
113
|
+
updated_at: string;
|
|
114
|
+
limit: {
|
|
115
|
+
per_transaction: number;
|
|
116
|
+
daily: number;
|
|
117
|
+
monthly: number;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
type BusinessWithStandardKYB = {
|
|
121
|
+
id: string;
|
|
122
|
+
type: Extract<AccountClass, "business">;
|
|
123
|
+
kyc_type: Extract<KycType, "standard">;
|
|
124
|
+
kyc_status: string;
|
|
125
|
+
kyc_warnings: Array<{
|
|
126
|
+
code: string | null;
|
|
127
|
+
message: string | null;
|
|
128
|
+
resolution_status: string | null;
|
|
129
|
+
warning_id: string | null;
|
|
130
|
+
}> | null;
|
|
131
|
+
email: string;
|
|
132
|
+
tax_id: string;
|
|
133
|
+
address_line_1: string;
|
|
134
|
+
address_line_2?: string | null;
|
|
135
|
+
city: string;
|
|
136
|
+
state_province_region: string;
|
|
137
|
+
country: Country;
|
|
138
|
+
postal_code: string;
|
|
139
|
+
ip_address: string | null;
|
|
140
|
+
image_url: string | null;
|
|
141
|
+
phone_number: string;
|
|
142
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
143
|
+
proof_of_address_doc_file: string;
|
|
59
144
|
legal_name: string;
|
|
60
|
-
alternate_name: string;
|
|
145
|
+
alternate_name: string | null;
|
|
61
146
|
formation_date: string;
|
|
62
|
-
website: string;
|
|
63
|
-
owners:
|
|
64
|
-
id: string;
|
|
65
|
-
} & Pick<Owner, "first_name" | "last_name" | "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">>;
|
|
147
|
+
website: string | null;
|
|
148
|
+
owners: Owner[];
|
|
66
149
|
incorporation_doc_file: string;
|
|
67
150
|
proof_of_ownership_doc_file: string;
|
|
68
|
-
|
|
69
|
-
source_of_funds_doc_file: string;
|
|
70
|
-
individual_holding_doc_front_file: string;
|
|
71
|
-
purpose_of_transactions: PurposeOfTransactions;
|
|
72
|
-
purpose_of_transactions_explanation: string;
|
|
73
|
-
external_id: string;
|
|
151
|
+
external_id: string | null;
|
|
74
152
|
instance_id: string;
|
|
75
|
-
tos_id: string;
|
|
153
|
+
tos_id: string | null;
|
|
76
154
|
aiprise_validation_key: string;
|
|
77
155
|
created_at: string;
|
|
78
156
|
updated_at: string;
|
|
@@ -82,50 +160,86 @@ type Receiver = {
|
|
|
82
160
|
monthly: number;
|
|
83
161
|
};
|
|
84
162
|
};
|
|
85
|
-
type ListReceiversResponse =
|
|
86
|
-
type
|
|
87
|
-
country: Country;
|
|
88
|
-
kyc_type: KycType;
|
|
89
|
-
type: AccountClass;
|
|
163
|
+
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
164
|
+
type CreateIndividualWithStandardKYCInput = {
|
|
90
165
|
address_line_1: string;
|
|
91
166
|
address_line_2?: string;
|
|
92
167
|
city: string;
|
|
93
|
-
|
|
94
|
-
|
|
168
|
+
country: Country;
|
|
169
|
+
date_of_birth: string;
|
|
170
|
+
email: string;
|
|
171
|
+
first_name: string;
|
|
172
|
+
id_doc_country: Country;
|
|
173
|
+
id_doc_front_file: string;
|
|
174
|
+
id_doc_type: IdentificationDocument;
|
|
175
|
+
kyc_type: "standard";
|
|
176
|
+
last_name: string;
|
|
95
177
|
postal_code: string;
|
|
178
|
+
proof_of_address_doc_file: string;
|
|
179
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
96
180
|
state_province_region: string;
|
|
97
181
|
tax_id: string;
|
|
98
|
-
|
|
182
|
+
tos_id: string;
|
|
183
|
+
type: "individual";
|
|
184
|
+
};
|
|
185
|
+
type CreateIndividualWithStandardKYCResponse = {
|
|
186
|
+
id: string;
|
|
187
|
+
};
|
|
188
|
+
type CreateIndividualWithEnhancedKYCInput = {
|
|
189
|
+
address_line_1: string;
|
|
190
|
+
address_line_2?: string;
|
|
191
|
+
city: string;
|
|
192
|
+
country: Country;
|
|
99
193
|
date_of_birth: string;
|
|
100
|
-
|
|
194
|
+
email: string;
|
|
101
195
|
first_name: string;
|
|
102
|
-
|
|
103
|
-
id_doc_back_file: string;
|
|
196
|
+
id_doc_country: Country;
|
|
104
197
|
id_doc_front_file: string;
|
|
105
198
|
id_doc_type: IdentificationDocument;
|
|
106
|
-
id_doc_country: Country;
|
|
107
|
-
email: string;
|
|
108
|
-
incorporation_doc_file: string;
|
|
109
199
|
individual_holding_doc_front_file: string;
|
|
200
|
+
kyc_type: "enhanced";
|
|
110
201
|
last_name: string;
|
|
111
|
-
|
|
112
|
-
owners: Owner[];
|
|
113
|
-
phone_number: string;
|
|
202
|
+
postal_code: string;
|
|
114
203
|
proof_of_address_doc_file: string;
|
|
115
204
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
116
|
-
proof_of_ownership_doc_file: string;
|
|
117
205
|
purpose_of_transactions: PurposeOfTransactions;
|
|
118
|
-
purpose_of_transactions_explanation: string;
|
|
119
206
|
source_of_funds_doc_file: string;
|
|
120
207
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
208
|
+
state_province_region: string;
|
|
209
|
+
tax_id: string;
|
|
210
|
+
tos_id: string;
|
|
211
|
+
type: "individual";
|
|
212
|
+
};
|
|
213
|
+
type CreateIndividualWithEnhancedKYCResponse = {
|
|
214
|
+
id: string;
|
|
215
|
+
};
|
|
216
|
+
type CreateBusinessWithStandardKYBInput = {
|
|
217
|
+
address_line_1: string;
|
|
218
|
+
address_line_2?: string;
|
|
219
|
+
alternate_name: string;
|
|
220
|
+
city: string;
|
|
221
|
+
country: Country;
|
|
222
|
+
email: string;
|
|
223
|
+
formation_date: string;
|
|
224
|
+
incorporation_doc_file: string;
|
|
225
|
+
kyc_type: "standard";
|
|
226
|
+
legal_name: string;
|
|
227
|
+
owners: Owner[];
|
|
228
|
+
postal_code: string;
|
|
229
|
+
proof_of_address_doc_file: string;
|
|
230
|
+
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
231
|
+
proof_of_ownership_doc_file: string;
|
|
232
|
+
state_province_region: string;
|
|
233
|
+
tax_id: string;
|
|
121
234
|
tos_id: string;
|
|
122
|
-
|
|
235
|
+
type: "business";
|
|
236
|
+
website: string | null;
|
|
123
237
|
};
|
|
124
|
-
type
|
|
238
|
+
type CreateBusinessWithStandardKYBResponse = {
|
|
125
239
|
id: string;
|
|
126
240
|
};
|
|
127
241
|
type GetReceiverInput = string;
|
|
128
|
-
type GetReceiverResponse =
|
|
242
|
+
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
129
243
|
type UpdateReceiverInput = {
|
|
130
244
|
receiver_id: string;
|
|
131
245
|
email?: string;
|
|
@@ -181,11 +295,13 @@ type GetReceiverLimitsResponse = {
|
|
|
181
295
|
};
|
|
182
296
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
183
297
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
184
|
-
|
|
298
|
+
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
299
|
+
createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
|
|
300
|
+
createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
|
|
185
301
|
get(receiver_id: GetReceiverInput): Promise<BlindpayApiResponse<GetReceiverResponse>>;
|
|
186
302
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
187
303
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
188
304
|
getLimits(receiver_id: GetReceiverLimitsInput): Promise<BlindpayApiResponse<GetReceiverLimitsResponse>>;
|
|
189
305
|
};
|
|
190
306
|
|
|
191
|
-
export { type
|
|
307
|
+
export { type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type SourceOfFundsDocType, type UpdateReceiverInput, createReceiversResource };
|
|
@@ -42,15 +42,20 @@ function createReceiversResource(instanceId, client) {
|
|
|
42
42
|
list() {
|
|
43
43
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
44
44
|
},
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
createIndividualWithStandardKYC(data) {
|
|
46
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
47
|
+
},
|
|
48
|
+
createIndividualWithEnhancedKYC(data) {
|
|
49
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
50
|
+
},
|
|
51
|
+
createBusinessWithStandardKYB(data) {
|
|
47
52
|
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
48
53
|
},
|
|
49
54
|
get(receiver_id) {
|
|
50
55
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
51
56
|
},
|
|
52
|
-
update(
|
|
53
|
-
var
|
|
57
|
+
update(_a) {
|
|
58
|
+
var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
54
59
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
55
60
|
},
|
|
56
61
|
delete(receiver_id) {
|