@blindpay/node 2.0.4 → 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-KJM53ZD6.mjs → chunk-YP536RWJ.mjs} +6 -6
- 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/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-YP536RWJ.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,
|
|
@@ -472,6 +472,62 @@ var require_receivers_test = __commonJS({
|
|
|
472
472
|
globalExpect(data).toEqual(mockedReceiverLimits);
|
|
473
473
|
}));
|
|
474
474
|
});
|
|
475
|
+
describe("Get limit increase requests", () => {
|
|
476
|
+
it("should get limit increase requests for a receiver", () => __async(null, null, function* () {
|
|
477
|
+
const mockedLimitIncreaseRequests = [
|
|
478
|
+
{
|
|
479
|
+
id: "rl_000000000000",
|
|
480
|
+
receiver_id: "re_YuaMcI2B8zbQ",
|
|
481
|
+
status: "in_review",
|
|
482
|
+
daily: 5e4,
|
|
483
|
+
monthly: 25e4,
|
|
484
|
+
per_transaction: 25e3,
|
|
485
|
+
supporting_document_file: "https://example.com/bank-statement.pdf",
|
|
486
|
+
supporting_document_type: "individual_bank_statement",
|
|
487
|
+
created_at: "2025-01-15T10:30:00.000Z",
|
|
488
|
+
updated_at: "2025-01-15T10:30:00.000Z"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
id: "rl_000000000000",
|
|
492
|
+
receiver_id: "re_YuaMcI2B8zbQ",
|
|
493
|
+
status: "approved",
|
|
494
|
+
daily: 3e4,
|
|
495
|
+
monthly: 15e4,
|
|
496
|
+
per_transaction: 15e3,
|
|
497
|
+
supporting_document_file: "https://example.com/proof-of-income.pdf",
|
|
498
|
+
supporting_document_type: "individual_proof_of_income",
|
|
499
|
+
created_at: "2024-12-10T14:20:00.000Z",
|
|
500
|
+
updated_at: "2024-12-12T09:45:00.000Z"
|
|
501
|
+
}
|
|
502
|
+
];
|
|
503
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedLimitIncreaseRequests), {
|
|
504
|
+
headers: { "Content-Type": "application/json" }
|
|
505
|
+
});
|
|
506
|
+
const { data, error } = yield blindpay.receivers.getLimitIncreaseRequests("re_YuaMcI2B8zbQ");
|
|
507
|
+
globalExpect(error).toBeNull();
|
|
508
|
+
globalExpect(data).toEqual(mockedLimitIncreaseRequests);
|
|
509
|
+
}));
|
|
510
|
+
});
|
|
511
|
+
describe("Request limit increase", () => {
|
|
512
|
+
it("should request a limit increase for a receiver", () => __async(null, null, function* () {
|
|
513
|
+
const mockedResponse = {
|
|
514
|
+
id: "rl_000000000000"
|
|
515
|
+
};
|
|
516
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedResponse), {
|
|
517
|
+
headers: { "Content-Type": "application/json" }
|
|
518
|
+
});
|
|
519
|
+
const { data, error } = yield blindpay.receivers.requestLimitIncrease({
|
|
520
|
+
receiver_id: "re_YuaMcI2B8zbQ",
|
|
521
|
+
daily: 1e5,
|
|
522
|
+
monthly: 5e5,
|
|
523
|
+
per_transaction: 5e4,
|
|
524
|
+
supporting_document_file: "https://example.com/tax-return.pdf",
|
|
525
|
+
supporting_document_type: "individual_tax_return"
|
|
526
|
+
});
|
|
527
|
+
globalExpect(error).toBeNull();
|
|
528
|
+
globalExpect(data).toEqual(mockedResponse);
|
|
529
|
+
}));
|
|
530
|
+
});
|
|
475
531
|
});
|
|
476
532
|
}
|
|
477
533
|
});
|