@blindpay/node 2.0.4 → 2.1.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/{chunk-E6ALTWR5.mjs → chunk-67XECGMJ.mjs} +14 -0
- package/dist/{chunk-KJM53ZD6.mjs → chunk-CWR4B22L.mjs} +6 -6
- package/dist/{chunk-GCCHFONX.mjs → chunk-D6N3USMR.mjs} +752 -764
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/dist/index.mjs +6 -6
- package/dist/resources/api-keys/api-keys.test.js +785 -783
- package/dist/resources/api-keys/api-keys.test.mjs +4 -4
- package/dist/resources/available/available.test.js +785 -783
- package/dist/resources/available/available.test.mjs +4 -4
- package/dist/resources/bank-accounts/bank-accounts.test.js +785 -783
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +4 -4
- package/dist/resources/instances/instances.test.js +785 -783
- package/dist/resources/instances/instances.test.mjs +4 -4
- package/dist/resources/partner-fees/partner-fees.test.js +785 -783
- package/dist/resources/partner-fees/partner-fees.test.mjs +4 -4
- package/dist/resources/payins/payins-quotes.test.js +785 -783
- package/dist/resources/payins/payins-quotes.test.mjs +4 -4
- package/dist/resources/payins/payins.test.js +785 -783
- package/dist/resources/payins/payins.test.mjs +4 -4
- package/dist/resources/payouts/payouts.test.js +785 -783
- package/dist/resources/payouts/payouts.test.mjs +4 -4
- package/dist/resources/quotes/quotes.test.js +785 -783
- package/dist/resources/quotes/quotes.test.mjs +4 -4
- package/dist/resources/receivers/index.d.mts +29 -1
- package/dist/resources/receivers/index.d.ts +29 -1
- package/dist/resources/receivers/index.js +14 -0
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +841 -783
- package/dist/resources/receivers/receivers.test.mjs +60 -4
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +785 -783
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +4 -4
- package/dist/resources/wallets/blockchain.test.js +785 -783
- package/dist/resources/wallets/blockchain.test.mjs +4 -4
- package/dist/resources/wallets/offramp.test.js +785 -783
- package/dist/resources/wallets/offramp.test.mjs +4 -4
- 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 +785 -783
- package/dist/resources/webhooks/webhooks.test.mjs +4 -4
- 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-CWR4B22L.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-67XECGMJ.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.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,
|
|
@@ -295,6 +295,32 @@ type GetReceiverLimitsResponse = {
|
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
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
|
+
};
|
|
298
324
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
299
325
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
300
326
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
@@ -304,6 +330,8 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
304
330
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
305
331
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
306
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>>;
|
|
307
335
|
};
|
|
308
336
|
|
|
309
|
-
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 };
|
|
@@ -295,6 +295,32 @@ type GetReceiverLimitsResponse = {
|
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
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
|
+
};
|
|
298
324
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
299
325
|
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
300
326
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
@@ -304,6 +330,8 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
304
330
|
update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
305
331
|
delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
|
|
306
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>>;
|
|
307
335
|
};
|
|
308
336
|
|
|
309
|
-
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
|
}
|