@blindpay/node 3.4.3 → 3.5.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-B5T7AQLH.mjs → chunk-BGXC2F73.mjs} +1 -1
- package/dist/{chunk-HG5YLJC4.mjs → chunk-IHFM6NYO.mjs} +14 -20
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +3 -21
- package/dist/index.mjs +14 -15
- package/dist/resources/api-keys/api-keys.test.js +3 -21
- package/dist/resources/api-keys/api-keys.test.mjs +5 -6
- package/dist/resources/available/available.test.js +3 -21
- package/dist/resources/available/available.test.mjs +5 -6
- package/dist/resources/bank-accounts/bank-accounts.test.js +3 -21
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -6
- package/dist/resources/fees/fees.test.js +3 -21
- package/dist/resources/fees/fees.test.mjs +5 -6
- package/dist/resources/instances/index.js +1 -1
- package/dist/resources/instances/index.mjs +1 -1
- package/dist/resources/instances/instances.test.js +3 -21
- package/dist/resources/instances/instances.test.mjs +5 -6
- package/dist/resources/partner-fees/partner-fees.test.js +3 -21
- package/dist/resources/partner-fees/partner-fees.test.mjs +5 -6
- package/dist/resources/payins/payins-quotes.test.js +3 -21
- package/dist/resources/payins/payins-quotes.test.mjs +5 -6
- package/dist/resources/payins/payins.test.js +3 -21
- package/dist/resources/payins/payins.test.mjs +5 -6
- package/dist/resources/payouts/payouts.test.js +3 -21
- package/dist/resources/payouts/payouts.test.mjs +5 -6
- package/dist/resources/quotes/quotes.test.js +3 -21
- package/dist/resources/quotes/quotes.test.mjs +5 -6
- package/dist/resources/receivers/receivers.test.js +3 -21
- package/dist/resources/receivers/receivers.test.mjs +5 -6
- package/dist/resources/transfers/transfers.test.js +3 -21
- package/dist/resources/transfers/transfers.test.mjs +5 -6
- package/dist/resources/upload/upload.test.js +3 -21
- package/dist/resources/upload/upload.test.mjs +5 -6
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +3 -21
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +5 -6
- package/dist/resources/wallets/blockchain.test.js +3 -21
- package/dist/resources/wallets/blockchain.test.mjs +5 -6
- package/dist/resources/wallets/custodial.test.js +3 -21
- package/dist/resources/wallets/custodial.test.mjs +5 -6
- package/dist/resources/wallets/offramp.test.js +3 -21
- package/dist/resources/wallets/offramp.test.mjs +5 -6
- package/dist/resources/webhooks/webhooks.test.js +3 -21
- package/dist/resources/webhooks/webhooks.test.mjs +5 -6
- package/package.json +1 -1
- package/dist/chunk-Z6EYX4D3.mjs +0 -29
- package/dist/resources/terms-of-service/index.d.mts +0 -16
- package/dist/resources/terms-of-service/index.d.ts +0 -16
- package/dist/resources/terms-of-service/index.js +0 -44
- package/dist/resources/terms-of-service/index.mjs +0 -9
- package/dist/resources/terms-of-service/terms-of-service.test.d.mts +0 -2
- package/dist/resources/terms-of-service/terms-of-service.test.d.ts +0 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +0 -19824
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +0 -64
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
afterEach,
|
|
3
|
-
describe,
|
|
4
|
-
globalExpect,
|
|
5
|
-
init_dist,
|
|
6
|
-
it
|
|
7
|
-
} from "../../chunk-D6N3USMR.mjs";
|
|
8
|
-
import {
|
|
9
|
-
BlindPay,
|
|
10
|
-
init_client
|
|
11
|
-
} from "../../chunk-HG5YLJC4.mjs";
|
|
12
|
-
import "../../chunk-FG25JHDX.mjs";
|
|
13
|
-
import "../../chunk-KMU6V4LW.mjs";
|
|
14
|
-
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
-
import "../../chunk-ISHZTBAN.mjs";
|
|
17
|
-
import "../../chunk-UDRMLZWT.mjs";
|
|
18
|
-
import "../../chunk-LEPGLH7Q.mjs";
|
|
19
|
-
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
-
import "../../chunk-F5Z45GCA.mjs";
|
|
21
|
-
import "../../chunk-TBTA7A2P.mjs";
|
|
22
|
-
import "../../chunk-YIZJM2GU.mjs";
|
|
23
|
-
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
-
import "../../chunk-ALHMJWQN.mjs";
|
|
25
|
-
import "../../chunk-B5T7AQLH.mjs";
|
|
26
|
-
import "../../chunk-RC5NN5UF.mjs";
|
|
27
|
-
import "../../chunk-VGU72ZNI.mjs";
|
|
28
|
-
import "../../chunk-LRHWT4JU.mjs";
|
|
29
|
-
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
31
|
-
import {
|
|
32
|
-
__async,
|
|
33
|
-
__commonJS
|
|
34
|
-
} from "../../chunk-OBKEW4AQ.mjs";
|
|
35
|
-
|
|
36
|
-
// src/resources/terms-of-service/terms-of-service.test.ts
|
|
37
|
-
var require_terms_of_service_test = __commonJS({
|
|
38
|
-
"src/resources/terms-of-service/terms-of-service.test.ts"(exports) {
|
|
39
|
-
init_dist();
|
|
40
|
-
init_client();
|
|
41
|
-
describe("Terms of Service", () => {
|
|
42
|
-
afterEach(() => fetchMock.resetMocks());
|
|
43
|
-
const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
|
|
44
|
-
describe("Initiate Terms of Service", () => {
|
|
45
|
-
it("should initiate terms of service and return a URL", () => __async(null, null, function* () {
|
|
46
|
-
const mockedUrl = {
|
|
47
|
-
url: "https://app.blindpay.com/e/terms-of-service?session_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
|
48
|
-
};
|
|
49
|
-
fetchMock.mockResponseOnce(JSON.stringify(mockedUrl), {
|
|
50
|
-
headers: { "Content-Type": "application/json" }
|
|
51
|
-
});
|
|
52
|
-
const { data, error } = yield blindpay.instances.tos.initiate({
|
|
53
|
-
idempotency_key: "123e4567-e89b-12d3-a456-426614174000",
|
|
54
|
-
receiver_id: null,
|
|
55
|
-
redirect_url: null
|
|
56
|
-
});
|
|
57
|
-
globalExpect(error).toBeNull();
|
|
58
|
-
globalExpect(data).toEqual(mockedUrl);
|
|
59
|
-
}));
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export default require_terms_of_service_test();
|