@blindpay/node 3.11.0 → 4.0.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/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
- package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
- package/dist/{chunk-IM2L5L4B.mjs → chunk-IJSACZHV.mjs} +16 -24
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
- package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
- package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
- package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
- package/dist/{index.d-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
- package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
- package/dist/index.d.mts +4 -16
- package/dist/index.d.ts +4 -16
- package/dist/index.js +83 -153
- package/dist/index.mjs +14 -20
- package/dist/resources/api-keys/api-keys.test.js +83 -151
- package/dist/resources/api-keys/api-keys.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/available/available.test.mjs +9 -10
- 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 +171 -241
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
- package/dist/resources/bank-accounts/index.d.mts +100 -102
- package/dist/resources/bank-accounts/index.d.ts +100 -102
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/customers/customers.test.js +83 -151
- package/dist/resources/customers/customers.test.mjs +9 -10
- package/dist/resources/customers/index.d.mts +70 -69
- package/dist/resources/customers/index.d.ts +70 -69
- package/dist/resources/fees/fees.test.js +83 -151
- package/dist/resources/fees/fees.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/instances/instances.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
- package/dist/resources/payins/index.d.mts +2 -2
- package/dist/resources/payins/index.d.ts +2 -2
- package/dist/resources/payins/payins-quotes.test.js +83 -151
- package/dist/resources/payins/payins-quotes.test.mjs +9 -10
- package/dist/resources/payins/payins.test.js +83 -151
- package/dist/resources/payins/payins.test.mjs +9 -10
- package/dist/resources/payins/quotes.d.mts +2 -2
- package/dist/resources/payins/quotes.d.ts +2 -2
- package/dist/resources/payouts/index.d.mts +2 -2
- package/dist/resources/payouts/index.d.ts +2 -2
- package/dist/resources/payouts/payouts.test.js +83 -151
- package/dist/resources/payouts/payouts.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/quotes/quotes.test.mjs +9 -10
- package/dist/resources/terms-of-service/index.d.mts +2 -2
- package/dist/resources/terms-of-service/index.d.ts +2 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/transfers/transfers.test.mjs +9 -10
- 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 +83 -151
- package/dist/resources/upload/upload.test.mjs +9 -10
- package/dist/resources/virtual-accounts/index.d.mts +9 -9
- package/dist/resources/virtual-accounts/index.d.ts +9 -9
- package/dist/resources/virtual-accounts/index.js +10 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +87 -155
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
- package/dist/resources/wallets/blockchain.d.mts +15 -15
- package/dist/resources/wallets/blockchain.d.ts +15 -15
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +91 -159
- package/dist/resources/wallets/blockchain.test.mjs +17 -18
- package/dist/resources/wallets/custodial.d.mts +11 -11
- package/dist/resources/wallets/custodial.d.ts +11 -11
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +87 -155
- package/dist/resources/wallets/custodial.test.mjs +13 -14
- package/dist/resources/wallets/offramp.d.mts +9 -9
- package/dist/resources/wallets/offramp.d.ts +9 -9
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +89 -157
- package/dist/resources/wallets/offramp.test.mjs +15 -16
- 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 +83 -151
- package/dist/resources/webhooks/webhooks.test.mjs +9 -10
- package/package.json +1 -1
- package/dist/chunk-NAGY6BLL.mjs +0 -79
- package/dist/resources/receivers/index.d.mts +0 -513
- package/dist/resources/receivers/index.d.ts +0 -513
- package/dist/resources/receivers/index.js +0 -118
- package/dist/resources/receivers/index.mjs +0 -9
- package/dist/resources/receivers/receivers.test.d.mts +0 -2
- package/dist/resources/receivers/receivers.test.d.ts +0 -2
- package/dist/resources/receivers/receivers.test.js +0 -20510
- package/dist/resources/receivers/receivers.test.mjs +0 -652
- package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
- package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network,
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-DK8eD9f3.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
|
|
3
3
|
|
|
4
4
|
type CustodialWallet = {
|
|
5
5
|
id: string;
|
|
@@ -10,7 +10,7 @@ type CustodialWallet = {
|
|
|
10
10
|
created_at: string;
|
|
11
11
|
};
|
|
12
12
|
type CreateCustodialWalletInput = {
|
|
13
|
-
|
|
13
|
+
customer_id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
network: Network;
|
|
16
16
|
external_id?: string | null;
|
|
@@ -19,7 +19,7 @@ type CreateCustodialWalletResponse = CustodialWallet;
|
|
|
19
19
|
type ListCustodialWalletsInput = string;
|
|
20
20
|
type ListCustodialWalletsResponse = CustodialWallet[];
|
|
21
21
|
type GetCustodialWalletInput = {
|
|
22
|
-
|
|
22
|
+
customer_id: string;
|
|
23
23
|
id: string;
|
|
24
24
|
};
|
|
25
25
|
type GetCustodialWalletResponse = CustodialWallet;
|
|
@@ -30,7 +30,7 @@ type WalletTokenBalance = {
|
|
|
30
30
|
amount: number;
|
|
31
31
|
};
|
|
32
32
|
type GetCustodialWalletBalanceInput = {
|
|
33
|
-
|
|
33
|
+
customer_id: string;
|
|
34
34
|
id: string;
|
|
35
35
|
};
|
|
36
36
|
type GetCustodialWalletBalanceResponse = {
|
|
@@ -39,15 +39,15 @@ type GetCustodialWalletBalanceResponse = {
|
|
|
39
39
|
USDB: WalletTokenBalance;
|
|
40
40
|
};
|
|
41
41
|
type DeleteCustodialWalletInput = {
|
|
42
|
-
|
|
42
|
+
customer_id: string;
|
|
43
43
|
id: string;
|
|
44
44
|
};
|
|
45
45
|
declare function createCustodialWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
46
|
-
list(
|
|
47
|
-
get({
|
|
48
|
-
create({
|
|
49
|
-
getBalance({
|
|
50
|
-
delete({
|
|
46
|
+
list(customer_id: ListCustodialWalletsInput): Promise<BlindpayApiResponse<ListCustodialWalletsResponse>>;
|
|
47
|
+
get({ customer_id, id, }: GetCustodialWalletInput): Promise<BlindpayApiResponse<GetCustodialWalletResponse>>;
|
|
48
|
+
create({ customer_id, ...data }: CreateCustodialWalletInput): Promise<BlindpayApiResponse<CreateCustodialWalletResponse>>;
|
|
49
|
+
getBalance({ customer_id, id, }: GetCustodialWalletBalanceInput): Promise<BlindpayApiResponse<GetCustodialWalletBalanceResponse>>;
|
|
50
|
+
delete({ customer_id, id, }: DeleteCustodialWalletInput): Promise<BlindpayApiResponse<{
|
|
51
51
|
success: boolean;
|
|
52
52
|
}>>;
|
|
53
53
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BlindpayApiResponse, N as Network,
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { B as BlindpayApiResponse, N as Network, S as StablecoinToken } from '../../index.d-DK8eD9f3.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
|
|
3
3
|
|
|
4
4
|
type CustodialWallet = {
|
|
5
5
|
id: string;
|
|
@@ -10,7 +10,7 @@ type CustodialWallet = {
|
|
|
10
10
|
created_at: string;
|
|
11
11
|
};
|
|
12
12
|
type CreateCustodialWalletInput = {
|
|
13
|
-
|
|
13
|
+
customer_id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
network: Network;
|
|
16
16
|
external_id?: string | null;
|
|
@@ -19,7 +19,7 @@ type CreateCustodialWalletResponse = CustodialWallet;
|
|
|
19
19
|
type ListCustodialWalletsInput = string;
|
|
20
20
|
type ListCustodialWalletsResponse = CustodialWallet[];
|
|
21
21
|
type GetCustodialWalletInput = {
|
|
22
|
-
|
|
22
|
+
customer_id: string;
|
|
23
23
|
id: string;
|
|
24
24
|
};
|
|
25
25
|
type GetCustodialWalletResponse = CustodialWallet;
|
|
@@ -30,7 +30,7 @@ type WalletTokenBalance = {
|
|
|
30
30
|
amount: number;
|
|
31
31
|
};
|
|
32
32
|
type GetCustodialWalletBalanceInput = {
|
|
33
|
-
|
|
33
|
+
customer_id: string;
|
|
34
34
|
id: string;
|
|
35
35
|
};
|
|
36
36
|
type GetCustodialWalletBalanceResponse = {
|
|
@@ -39,15 +39,15 @@ type GetCustodialWalletBalanceResponse = {
|
|
|
39
39
|
USDB: WalletTokenBalance;
|
|
40
40
|
};
|
|
41
41
|
type DeleteCustodialWalletInput = {
|
|
42
|
-
|
|
42
|
+
customer_id: string;
|
|
43
43
|
id: string;
|
|
44
44
|
};
|
|
45
45
|
declare function createCustodialWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
46
|
-
list(
|
|
47
|
-
get({
|
|
48
|
-
create({
|
|
49
|
-
getBalance({
|
|
50
|
-
delete({
|
|
46
|
+
list(customer_id: ListCustodialWalletsInput): Promise<BlindpayApiResponse<ListCustodialWalletsResponse>>;
|
|
47
|
+
get({ customer_id, id, }: GetCustodialWalletInput): Promise<BlindpayApiResponse<GetCustodialWalletResponse>>;
|
|
48
|
+
create({ customer_id, ...data }: CreateCustodialWalletInput): Promise<BlindpayApiResponse<CreateCustodialWalletResponse>>;
|
|
49
|
+
getBalance({ customer_id, id, }: GetCustodialWalletBalanceInput): Promise<BlindpayApiResponse<GetCustodialWalletBalanceResponse>>;
|
|
50
|
+
delete({ customer_id, id, }: DeleteCustodialWalletInput): Promise<BlindpayApiResponse<{
|
|
51
51
|
success: boolean;
|
|
52
52
|
}>>;
|
|
53
53
|
};
|
|
@@ -39,36 +39,36 @@ __export(custodial_exports, {
|
|
|
39
39
|
module.exports = __toCommonJS(custodial_exports);
|
|
40
40
|
function createCustodialWalletsResource(instanceId, client) {
|
|
41
41
|
return {
|
|
42
|
-
list(
|
|
43
|
-
return client.get(`/instances/${instanceId}/
|
|
42
|
+
list(customer_id) {
|
|
43
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
|
|
44
44
|
},
|
|
45
45
|
get({
|
|
46
|
-
|
|
46
|
+
customer_id,
|
|
47
47
|
id
|
|
48
48
|
}) {
|
|
49
|
-
return client.get(`/instances/${instanceId}/
|
|
49
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
50
50
|
},
|
|
51
51
|
create(_a) {
|
|
52
52
|
var _b = _a, {
|
|
53
|
-
|
|
53
|
+
customer_id
|
|
54
54
|
} = _b, data = __objRest(_b, [
|
|
55
|
-
"
|
|
55
|
+
"customer_id"
|
|
56
56
|
]);
|
|
57
|
-
return client.post(`/instances/${instanceId}/
|
|
57
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
|
|
58
58
|
},
|
|
59
59
|
getBalance({
|
|
60
|
-
|
|
60
|
+
customer_id,
|
|
61
61
|
id
|
|
62
62
|
}) {
|
|
63
63
|
return client.get(
|
|
64
|
-
`/instances/${instanceId}/
|
|
64
|
+
`/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
|
|
65
65
|
);
|
|
66
66
|
},
|
|
67
67
|
delete({
|
|
68
|
-
|
|
68
|
+
customer_id,
|
|
69
69
|
id
|
|
70
70
|
}) {
|
|
71
|
-
return client.delete(`/instances/${instanceId}/
|
|
71
|
+
return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
}
|