@blindpay/node 3.5.0 → 3.8.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/{api-client-Bklw4zQi.d.ts → api-client-B9lW57MD.d.ts} +1 -1
- package/dist/{api-client-BlkRiojB.d.mts → api-client-Ct0AsDO5.d.mts} +1 -1
- package/dist/{chunk-IHFM6NYO.mjs → chunk-57QRKKXM.mjs} +22 -16
- package/dist/chunk-Z6EYX4D3.mjs +29 -0
- package/dist/{index.d-Gvol1faW.d.ts → index.d-CxmQ6ci9.d.mts} +2 -2
- package/dist/{index.d-Gvol1faW.d.mts → index.d-CxmQ6ci9.d.ts} +2 -2
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +20 -2
- package/dist/index.mjs +17 -16
- package/dist/resources/api-keys/api-keys.test.js +20 -2
- package/dist/resources/api-keys/api-keys.test.mjs +6 -5
- package/dist/resources/api-keys/index.d.mts +2 -2
- package/dist/resources/api-keys/index.d.ts +2 -2
- package/dist/resources/available/available.test.js +20 -2
- package/dist/resources/available/available.test.mjs +6 -5
- package/dist/resources/available/index.d.mts +2 -2
- package/dist/resources/available/index.d.ts +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +20 -2
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +6 -5
- package/dist/resources/bank-accounts/index.d.mts +2 -2
- package/dist/resources/bank-accounts/index.d.ts +2 -2
- package/dist/resources/fees/fees.test.js +20 -2
- package/dist/resources/fees/fees.test.mjs +6 -5
- package/dist/resources/fees/index.d.mts +2 -2
- package/dist/resources/fees/index.d.ts +2 -2
- package/dist/resources/instances/index.d.mts +2 -2
- package/dist/resources/instances/index.d.ts +2 -2
- package/dist/resources/instances/instances.test.js +20 -2
- package/dist/resources/instances/instances.test.mjs +6 -5
- package/dist/resources/partner-fees/index.d.mts +2 -2
- package/dist/resources/partner-fees/index.d.ts +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +20 -2
- package/dist/resources/partner-fees/partner-fees.test.mjs +6 -5
- package/dist/resources/payins/index.d.mts +13 -2
- package/dist/resources/payins/index.d.ts +13 -2
- package/dist/resources/payins/payins-quotes.test.js +22 -4
- package/dist/resources/payins/payins-quotes.test.mjs +8 -7
- package/dist/resources/payins/payins.test.js +40 -2
- package/dist/resources/payins/payins.test.mjs +26 -5
- package/dist/resources/payins/quotes.d.mts +4 -4
- package/dist/resources/payins/quotes.d.ts +4 -4
- package/dist/resources/payouts/index.d.mts +3 -3
- package/dist/resources/payouts/index.d.ts +3 -3
- package/dist/resources/payouts/payouts.test.js +20 -2
- package/dist/resources/payouts/payouts.test.mjs +6 -5
- package/dist/resources/quotes/index.d.mts +2 -2
- package/dist/resources/quotes/index.d.ts +2 -2
- package/dist/resources/quotes/quotes.test.js +20 -2
- package/dist/resources/quotes/quotes.test.mjs +6 -5
- package/dist/resources/receivers/index.d.mts +2 -2
- package/dist/resources/receivers/index.d.ts +2 -2
- package/dist/resources/receivers/receivers.test.js +20 -2
- package/dist/resources/receivers/receivers.test.mjs +6 -5
- package/dist/resources/terms-of-service/index.d.mts +16 -0
- package/dist/resources/terms-of-service/index.d.ts +16 -0
- package/dist/resources/terms-of-service/index.js +44 -0
- package/dist/resources/terms-of-service/index.mjs +9 -0
- package/dist/resources/terms-of-service/terms-of-service.test.d.mts +2 -0
- package/dist/resources/terms-of-service/terms-of-service.test.d.ts +2 -0
- package/dist/resources/terms-of-service/terms-of-service.test.js +19824 -0
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +64 -0
- package/dist/resources/transfers/index.d.mts +2 -2
- package/dist/resources/transfers/index.d.ts +2 -2
- package/dist/resources/transfers/transfers.test.js +20 -2
- package/dist/resources/transfers/transfers.test.mjs +6 -5
- package/dist/resources/upload/index.d.mts +1 -1
- package/dist/resources/upload/index.d.ts +1 -1
- package/dist/resources/upload/upload.test.js +20 -2
- package/dist/resources/upload/upload.test.mjs +6 -5
- package/dist/resources/virtual-accounts/index.d.mts +2 -2
- package/dist/resources/virtual-accounts/index.d.ts +2 -2
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -2
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +6 -5
- package/dist/resources/wallets/blockchain.d.mts +2 -2
- package/dist/resources/wallets/blockchain.d.ts +2 -2
- package/dist/resources/wallets/blockchain.test.js +20 -2
- package/dist/resources/wallets/blockchain.test.mjs +6 -5
- package/dist/resources/wallets/custodial.d.mts +2 -2
- package/dist/resources/wallets/custodial.d.ts +2 -2
- package/dist/resources/wallets/custodial.test.js +20 -2
- package/dist/resources/wallets/custodial.test.mjs +6 -5
- package/dist/resources/wallets/offramp.d.mts +2 -2
- package/dist/resources/wallets/offramp.d.ts +2 -2
- package/dist/resources/wallets/offramp.test.js +20 -2
- package/dist/resources/wallets/offramp.test.mjs +6 -5
- package/dist/resources/webhooks/index.d.mts +2 -2
- package/dist/resources/webhooks/index.d.ts +2 -2
- package/dist/resources/webhooks/webhooks.test.js +20 -2
- package/dist/resources/webhooks/webhooks.test.mjs +6 -5
- package/package.json +2 -2
|
@@ -0,0 +1,64 @@
|
|
|
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-57QRKKXM.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-UOAM7SX3.mjs";
|
|
25
|
+
import "../../chunk-BGXC2F73.mjs";
|
|
26
|
+
import "../../chunk-RC5NN5UF.mjs";
|
|
27
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
28
|
+
import "../../chunk-LRHWT4JU.mjs";
|
|
29
|
+
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.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();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StablecoinToken, N as Network, B as BlindpayApiResponse, T as TransactionStatus, t as TrackingStatus, P as PaginationParams, l as PaginationMetadata } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { S as StablecoinToken, N as Network, B as BlindpayApiResponse, T as TransactionStatus, t as TrackingStatus, P as PaginationParams, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type TransferTrackingStep = {
|
|
5
5
|
step: TrackingStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StablecoinToken, N as Network, B as BlindpayApiResponse, T as TransactionStatus, t as TrackingStatus, P as PaginationParams, l as PaginationMetadata } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { S as StablecoinToken, N as Network, B as BlindpayApiResponse, T as TransactionStatus, t as TrackingStatus, P as PaginationParams, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type TransferTrackingStep = {
|
|
5
5
|
step: TrackingStatus;
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type BankingPartner = "jpmorgan" | "citi" | "hsbc" | "cfsb";
|
|
5
5
|
type SoleProprietorDocType = "master_service_agreement" | "salary_slip" | "bank_statement";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, S as StablecoinToken, N as Network } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type BankingPartner = "jpmorgan" | "citi" | "hsbc" | "cfsb";
|
|
5
5
|
type SoleProprietorDocType = "master_service_agreement" | "salary_slip" | "bank_statement";
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type GetBlockchainWalletMessage = string;
|
|
5
5
|
type GetBlockchainWalletMessageResponse = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type GetBlockchainWalletMessage = string;
|
|
5
5
|
type GetBlockchainWalletMessageResponse = {
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type CustodialWallet = {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type CustodialWallet = {
|
|
5
5
|
id: string;
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type OfframpWalletNetwork = "tron" | "solana";
|
|
5
5
|
type OfframpWallet = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type OfframpWalletNetwork = "tron" | "solana";
|
|
5
5
|
type OfframpWallet = {
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.8.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
|
|
|
19066
19066
|
};
|
|
19067
19067
|
}
|
|
19068
19068
|
|
|
19069
|
+
// src/resources/terms-of-service/index.ts
|
|
19070
|
+
function createTermsOfServiceResource(instanceId, client) {
|
|
19071
|
+
return {
|
|
19072
|
+
initiate({
|
|
19073
|
+
idempotency_key,
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
redirect_url
|
|
19076
|
+
}) {
|
|
19077
|
+
return client.post(`/e/instances/${instanceId}/tos`, {
|
|
19078
|
+
idempotency_key,
|
|
19079
|
+
receiver_id,
|
|
19080
|
+
redirect_url
|
|
19081
|
+
});
|
|
19082
|
+
}
|
|
19083
|
+
};
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19069
19086
|
// src/resources/transfers/index.ts
|
|
19070
19087
|
function createTransfersResource(instanceId, client) {
|
|
19071
19088
|
return {
|
|
@@ -19376,7 +19393,8 @@ var BlindPay = class {
|
|
|
19376
19393
|
this.available = createAvailableResource(this.api);
|
|
19377
19394
|
this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
|
|
19378
19395
|
apiKeys: createApiKeysResource(this.instanceId, this.api),
|
|
19379
|
-
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
|
|
19396
|
+
webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
|
|
19397
|
+
tos: createTermsOfServiceResource(this.instanceId, this.api)
|
|
19380
19398
|
});
|
|
19381
19399
|
this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
|
|
19382
19400
|
this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
|
|
@@ -8,25 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-57QRKKXM.mjs";
|
|
12
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
13
|
import "../../chunk-KMU6V4LW.mjs";
|
|
14
14
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
15
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
15
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
16
18
|
import "../../chunk-LEPGLH7Q.mjs";
|
|
17
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
18
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
19
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
20
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
21
22
|
import "../../chunk-YIZJM2GU.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
24
25
|
import "../../chunk-BGXC2F73.mjs";
|
|
25
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
27
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
28
|
-
import "../../chunk-UOAM7SX3.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
30
31
|
import {
|
|
31
32
|
__async,
|
|
32
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
|
|
3
3
|
|
|
4
4
|
type WebhookEvents = "receiver.new" | "receiver.update" | "bankAccount.new" | "payout.new" | "payout.update" | "payout.complete" | "payout.partnerFee" | "blockchainWallet.new" | "payin.new" | "payin.update" | "payin.complete" | "payin.partnerFee" | "tos.accept" | "limitIncrease.new" | "limitIncrease.update" | "virtualAccount.new" | "virtualAccount.complete" | "transfer.new" | "transfer.update" | "transfer.complete" | "wallet.new" | "wallet.inbound";
|
|
5
5
|
type CreateWebhookEndpointInput = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
|
|
3
3
|
|
|
4
4
|
type WebhookEvents = "receiver.new" | "receiver.update" | "bankAccount.new" | "payout.new" | "payout.update" | "payout.complete" | "payout.partnerFee" | "blockchainWallet.new" | "payin.new" | "payin.update" | "payin.complete" | "payin.partnerFee" | "tos.accept" | "limitIncrease.new" | "limitIncrease.update" | "virtualAccount.new" | "virtualAccount.complete" | "transfer.new" | "transfer.update" | "transfer.complete" | "wallet.new" | "wallet.inbound";
|
|
5
5
|
type CreateWebhookEndpointInput = {
|