@blindpay/node 2.0.3 → 2.1.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-E6ALTWR5.mjs → chunk-67XECGMJ.mjs} +14 -0
- package/dist/{chunk-GCCHFONX.mjs → chunk-D6N3USMR.mjs} +752 -764
- package/dist/{chunk-2QAVOGLK.mjs → chunk-YP536RWJ.mjs} +10 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/dist/index.mjs +10 -10
- package/dist/resources/api-keys/api-keys.test.js +785 -783
- package/dist/resources/api-keys/api-keys.test.mjs +5 -5
- package/dist/resources/available/available.test.js +785 -783
- package/dist/resources/available/available.test.mjs +5 -5
- package/dist/resources/bank-accounts/bank-accounts.test.js +785 -783
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -5
- package/dist/resources/instances/instances.test.js +785 -783
- package/dist/resources/instances/instances.test.mjs +5 -5
- package/dist/resources/partner-fees/partner-fees.test.js +785 -783
- package/dist/resources/partner-fees/partner-fees.test.mjs +5 -5
- package/dist/resources/payins/payins-quotes.test.js +785 -783
- package/dist/resources/payins/payins-quotes.test.mjs +5 -5
- package/dist/resources/payins/payins.test.js +785 -783
- package/dist/resources/payins/payins.test.mjs +5 -5
- package/dist/resources/payouts/payouts.test.js +785 -783
- package/dist/resources/payouts/payouts.test.mjs +5 -5
- package/dist/resources/quotes/quotes.test.js +785 -783
- package/dist/resources/quotes/quotes.test.mjs +5 -5
- package/dist/resources/receivers/index.d.mts +33 -2
- package/dist/resources/receivers/index.d.ts +33 -2
- package/dist/resources/receivers/index.js +14 -0
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +844 -783
- package/dist/resources/receivers/receivers.test.mjs +64 -5
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +785 -783
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +5 -5
- package/dist/resources/wallets/blockchain.test.js +785 -783
- package/dist/resources/wallets/blockchain.test.mjs +5 -5
- package/dist/resources/wallets/offramp.test.js +785 -783
- package/dist/resources/wallets/offramp.test.mjs +5 -5
- package/dist/resources/webhooks/webhooks.test.js +785 -783
- package/dist/resources/webhooks/webhooks.test.mjs +5 -5
- package/package.json +1 -1
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
globalExpect,
|
|
5
5
|
init_dist,
|
|
6
6
|
it
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-D6N3USMR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-YP536RWJ.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
14
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
15
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-67XECGMJ.mjs";
|
|
16
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
20
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
21
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
22
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
23
|
-
import "../../chunk-QHMIK7U3.mjs";
|
|
24
23
|
import "../../chunk-CPOSU35L.mjs";
|
|
24
|
+
import "../../chunk-QHMIK7U3.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -24,7 +24,7 @@ type Owner = {
|
|
|
24
24
|
id_doc_country: Country;
|
|
25
25
|
id_doc_type: IdentificationDocument;
|
|
26
26
|
id_doc_front_file: string;
|
|
27
|
-
id_doc_back_file: string;
|
|
27
|
+
id_doc_back_file: string | null;
|
|
28
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
29
|
proof_of_address_doc_file: string;
|
|
30
30
|
};
|
|
@@ -173,6 +173,7 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
173
173
|
id_doc_country: Country;
|
|
174
174
|
id_doc_front_file: string;
|
|
175
175
|
id_doc_type: IdentificationDocument;
|
|
176
|
+
id_doc_back_file: string | null;
|
|
176
177
|
last_name: string;
|
|
177
178
|
postal_code: string;
|
|
178
179
|
proof_of_address_doc_file: string;
|
|
@@ -196,6 +197,7 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
196
197
|
id_doc_country: Country;
|
|
197
198
|
id_doc_front_file: string;
|
|
198
199
|
id_doc_type: IdentificationDocument;
|
|
200
|
+
id_doc_back_file: string | null;
|
|
199
201
|
individual_holding_doc_front_file: string;
|
|
200
202
|
last_name: string;
|
|
201
203
|
postal_code: string;
|
|
@@ -205,6 +207,7 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
205
207
|
purpose_of_transactions: PurposeOfTransactions;
|
|
206
208
|
source_of_funds_doc_file: string;
|
|
207
209
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
210
|
+
purpose_of_transactions_explanation: string | null;
|
|
208
211
|
state_province_region: string;
|
|
209
212
|
tax_id: string;
|
|
210
213
|
tos_id: string;
|
|
@@ -292,6 +295,32 @@ type GetReceiverLimitsResponse = {
|
|
|
292
295
|
};
|
|
293
296
|
};
|
|
294
297
|
};
|
|
298
|
+
type GetLimitIncreaseRequestsInput = string;
|
|
299
|
+
type LimitIncreaseRequestStatus = "in_review" | "approved" | "rejected";
|
|
300
|
+
type LimitIncreaseRequestSupportingDocumentType = "individual_bank_statement" | "individual_tax_return" | "individual_proof_of_income" | "business_bank_statement" | "business_financial_statements" | "business_tax_return";
|
|
301
|
+
type GetLimitIncreaseRequestsResponse = Array<{
|
|
302
|
+
id: string;
|
|
303
|
+
receiver_id: string;
|
|
304
|
+
status: LimitIncreaseRequestStatus;
|
|
305
|
+
daily: number;
|
|
306
|
+
monthly: number;
|
|
307
|
+
per_transaction: number;
|
|
308
|
+
supporting_document_file: string;
|
|
309
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
310
|
+
created_at: string;
|
|
311
|
+
updated_at: string;
|
|
312
|
+
}>;
|
|
313
|
+
type RequestLimitIncreaseInput = {
|
|
314
|
+
receiver_id: string;
|
|
315
|
+
daily: number;
|
|
316
|
+
monthly: number;
|
|
317
|
+
per_transaction: number;
|
|
318
|
+
supporting_document_file: string;
|
|
319
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
320
|
+
};
|
|
321
|
+
type RequestLimitIncreaseResponse = {
|
|
322
|
+
id: string;
|
|
323
|
+
};
|
|
295
324
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
296
325
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
297
326
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
@@ -301,6 +330,8 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
301
330
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
302
331
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
303
332
|
getLimits(receiver_id: GetReceiverLimitsInput): Promise<BlindpayApiResponse<GetReceiverLimitsResponse>>;
|
|
333
|
+
getLimitIncreaseRequests(receiver_id: GetLimitIncreaseRequestsInput): Promise<BlindpayApiResponse<GetLimitIncreaseRequestsResponse>>;
|
|
334
|
+
requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
|
|
304
335
|
};
|
|
305
336
|
|
|
306
|
-
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 };
|
|
337
|
+
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 };
|
|
@@ -24,7 +24,7 @@ type Owner = {
|
|
|
24
24
|
id_doc_country: Country;
|
|
25
25
|
id_doc_type: IdentificationDocument;
|
|
26
26
|
id_doc_front_file: string;
|
|
27
|
-
id_doc_back_file: string;
|
|
27
|
+
id_doc_back_file: string | null;
|
|
28
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
29
|
proof_of_address_doc_file: string;
|
|
30
30
|
};
|
|
@@ -173,6 +173,7 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
173
173
|
id_doc_country: Country;
|
|
174
174
|
id_doc_front_file: string;
|
|
175
175
|
id_doc_type: IdentificationDocument;
|
|
176
|
+
id_doc_back_file: string | null;
|
|
176
177
|
last_name: string;
|
|
177
178
|
postal_code: string;
|
|
178
179
|
proof_of_address_doc_file: string;
|
|
@@ -196,6 +197,7 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
196
197
|
id_doc_country: Country;
|
|
197
198
|
id_doc_front_file: string;
|
|
198
199
|
id_doc_type: IdentificationDocument;
|
|
200
|
+
id_doc_back_file: string | null;
|
|
199
201
|
individual_holding_doc_front_file: string;
|
|
200
202
|
last_name: string;
|
|
201
203
|
postal_code: string;
|
|
@@ -205,6 +207,7 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
205
207
|
purpose_of_transactions: PurposeOfTransactions;
|
|
206
208
|
source_of_funds_doc_file: string;
|
|
207
209
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
210
|
+
purpose_of_transactions_explanation: string | null;
|
|
208
211
|
state_province_region: string;
|
|
209
212
|
tax_id: string;
|
|
210
213
|
tos_id: string;
|
|
@@ -292,6 +295,32 @@ type GetReceiverLimitsResponse = {
|
|
|
292
295
|
};
|
|
293
296
|
};
|
|
294
297
|
};
|
|
298
|
+
type GetLimitIncreaseRequestsInput = string;
|
|
299
|
+
type LimitIncreaseRequestStatus = "in_review" | "approved" | "rejected";
|
|
300
|
+
type LimitIncreaseRequestSupportingDocumentType = "individual_bank_statement" | "individual_tax_return" | "individual_proof_of_income" | "business_bank_statement" | "business_financial_statements" | "business_tax_return";
|
|
301
|
+
type GetLimitIncreaseRequestsResponse = Array<{
|
|
302
|
+
id: string;
|
|
303
|
+
receiver_id: string;
|
|
304
|
+
status: LimitIncreaseRequestStatus;
|
|
305
|
+
daily: number;
|
|
306
|
+
monthly: number;
|
|
307
|
+
per_transaction: number;
|
|
308
|
+
supporting_document_file: string;
|
|
309
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
310
|
+
created_at: string;
|
|
311
|
+
updated_at: string;
|
|
312
|
+
}>;
|
|
313
|
+
type RequestLimitIncreaseInput = {
|
|
314
|
+
receiver_id: string;
|
|
315
|
+
daily: number;
|
|
316
|
+
monthly: number;
|
|
317
|
+
per_transaction: number;
|
|
318
|
+
supporting_document_file: string;
|
|
319
|
+
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
320
|
+
};
|
|
321
|
+
type RequestLimitIncreaseResponse = {
|
|
322
|
+
id: string;
|
|
323
|
+
};
|
|
295
324
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
296
325
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
297
326
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
@@ -301,6 +330,8 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
301
330
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
302
331
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
303
332
|
getLimits(receiver_id: GetReceiverLimitsInput): Promise<BlindpayApiResponse<GetReceiverLimitsResponse>>;
|
|
333
|
+
getLimitIncreaseRequests(receiver_id: GetLimitIncreaseRequestsInput): Promise<BlindpayApiResponse<GetLimitIncreaseRequestsResponse>>;
|
|
334
|
+
requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
|
|
304
335
|
};
|
|
305
336
|
|
|
306
|
-
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 };
|
|
337
|
+
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 };
|
|
@@ -84,6 +84,20 @@ function createReceiversResource(instanceId, client) {
|
|
|
84
84
|
},
|
|
85
85
|
getLimits(receiver_id) {
|
|
86
86
|
return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
|
|
87
|
+
},
|
|
88
|
+
getLimitIncreaseRequests(receiver_id) {
|
|
89
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
|
|
90
|
+
},
|
|
91
|
+
requestLimitIncrease(_c) {
|
|
92
|
+
var _d = _c, {
|
|
93
|
+
receiver_id
|
|
94
|
+
} = _d, data = __objRest(_d, [
|
|
95
|
+
"receiver_id"
|
|
96
|
+
]);
|
|
97
|
+
return client.post(
|
|
98
|
+
`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`,
|
|
99
|
+
data
|
|
100
|
+
);
|
|
87
101
|
}
|
|
88
102
|
};
|
|
89
103
|
}
|