@blindpay/node 3.10.0 → 4.0.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-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/chunk-SLKVEQUY.mjs +76 -0
- 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.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +148 -141
- package/dist/index.mjs +12 -12
- package/dist/resources/api-keys/api-keys.test.js +146 -139
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/available/available.test.js +146 -139
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
- package/dist/resources/bank-accounts/index.d.mts +29 -29
- package/dist/resources/bank-accounts/index.d.ts +29 -29
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
- package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
- package/dist/resources/{receivers → customers}/index.d.mts +23 -23
- package/dist/resources/{receivers → customers}/index.d.ts +23 -23
- package/dist/resources/{receivers → customers}/index.js +32 -25
- package/dist/resources/customers/index.mjs +9 -0
- package/dist/resources/fees/fees.test.js +146 -139
- package/dist/resources/fees/fees.test.mjs +7 -7
- package/dist/resources/instances/instances.test.js +146 -139
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/partner-fees.test.js +146 -139
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/payins-quotes.test.js +146 -139
- package/dist/resources/payins/payins-quotes.test.mjs +7 -7
- package/dist/resources/payins/payins.test.js +146 -139
- package/dist/resources/payins/payins.test.mjs +7 -7
- package/dist/resources/payouts/payouts.test.js +146 -139
- package/dist/resources/payouts/payouts.test.mjs +7 -7
- package/dist/resources/quotes/quotes.test.js +146 -139
- package/dist/resources/quotes/quotes.test.mjs +7 -7
- package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/transfers/transfers.test.js +146 -139
- package/dist/resources/transfers/transfers.test.mjs +7 -7
- package/dist/resources/upload/upload.test.js +146 -139
- package/dist/resources/upload/upload.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +7 -7
- package/dist/resources/virtual-accounts/index.d.ts +7 -7
- 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 +150 -143
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
- package/dist/resources/wallets/blockchain.d.mts +13 -13
- package/dist/resources/wallets/blockchain.d.ts +13 -13
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +154 -147
- package/dist/resources/wallets/blockchain.test.mjs +15 -15
- package/dist/resources/wallets/custodial.d.mts +9 -9
- package/dist/resources/wallets/custodial.d.ts +9 -9
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +150 -143
- package/dist/resources/wallets/custodial.test.mjs +11 -11
- package/dist/resources/wallets/offramp.d.mts +7 -7
- package/dist/resources/wallets/offramp.d.ts +7 -7
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +152 -145
- package/dist/resources/wallets/offramp.test.mjs +13 -13
- package/dist/resources/webhooks/webhooks.test.js +146 -139
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-YIZJM2GU.mjs +0 -69
- package/dist/resources/receivers/index.mjs +0 -9
- /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
- /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ type OfframpWallet = {
|
|
|
6
6
|
id: string;
|
|
7
7
|
external_id: string;
|
|
8
8
|
instance_id: string;
|
|
9
|
-
|
|
9
|
+
customer_id: string;
|
|
10
10
|
bank_account_id: string;
|
|
11
11
|
network: OfframpWalletNetwork;
|
|
12
12
|
address: string;
|
|
@@ -15,12 +15,12 @@ type OfframpWallet = {
|
|
|
15
15
|
circle_wallet_id?: string | null;
|
|
16
16
|
};
|
|
17
17
|
type ListOfframpWalletsInput = {
|
|
18
|
-
|
|
18
|
+
customer_id: string;
|
|
19
19
|
bank_account_id: string;
|
|
20
20
|
};
|
|
21
21
|
type ListOfframpWalletsResponse = OfframpWallet[];
|
|
22
22
|
type CreateOfframpWalletInput = {
|
|
23
|
-
|
|
23
|
+
customer_id: string;
|
|
24
24
|
bank_account_id: string;
|
|
25
25
|
external_id?: string | null;
|
|
26
26
|
network: OfframpWalletNetwork;
|
|
@@ -33,15 +33,15 @@ type CreateOfframpWalletResponse = {
|
|
|
33
33
|
address: string;
|
|
34
34
|
};
|
|
35
35
|
type GetOfframpWalletInput = {
|
|
36
|
-
|
|
36
|
+
customer_id: string;
|
|
37
37
|
bank_account_id: string;
|
|
38
38
|
id: string;
|
|
39
39
|
};
|
|
40
40
|
type GetOfframpWalletResponse = OfframpWallet;
|
|
41
41
|
declare function createOfframpWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
42
|
-
list({ bank_account_id,
|
|
43
|
-
create({
|
|
44
|
-
get({
|
|
42
|
+
list({ bank_account_id, customer_id, }: ListOfframpWalletsInput): Promise<BlindpayApiResponse<ListOfframpWalletsResponse>>;
|
|
43
|
+
create({ customer_id, bank_account_id, ...data }: CreateOfframpWalletInput): Promise<BlindpayApiResponse<CreateOfframpWalletResponse>>;
|
|
44
|
+
get({ customer_id, bank_account_id, id, }: GetOfframpWalletInput): Promise<BlindpayApiResponse<GetOfframpWalletResponse>>;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export { type CreateOfframpWalletInput, type CreateOfframpWalletResponse, type GetOfframpWalletInput, type GetOfframpWalletResponse, type ListOfframpWalletsInput, type ListOfframpWalletsResponse, type OfframpWallet, type OfframpWalletNetwork, createOfframpWalletsResource };
|
|
@@ -6,7 +6,7 @@ type OfframpWallet = {
|
|
|
6
6
|
id: string;
|
|
7
7
|
external_id: string;
|
|
8
8
|
instance_id: string;
|
|
9
|
-
|
|
9
|
+
customer_id: string;
|
|
10
10
|
bank_account_id: string;
|
|
11
11
|
network: OfframpWalletNetwork;
|
|
12
12
|
address: string;
|
|
@@ -15,12 +15,12 @@ type OfframpWallet = {
|
|
|
15
15
|
circle_wallet_id?: string | null;
|
|
16
16
|
};
|
|
17
17
|
type ListOfframpWalletsInput = {
|
|
18
|
-
|
|
18
|
+
customer_id: string;
|
|
19
19
|
bank_account_id: string;
|
|
20
20
|
};
|
|
21
21
|
type ListOfframpWalletsResponse = OfframpWallet[];
|
|
22
22
|
type CreateOfframpWalletInput = {
|
|
23
|
-
|
|
23
|
+
customer_id: string;
|
|
24
24
|
bank_account_id: string;
|
|
25
25
|
external_id?: string | null;
|
|
26
26
|
network: OfframpWalletNetwork;
|
|
@@ -33,15 +33,15 @@ type CreateOfframpWalletResponse = {
|
|
|
33
33
|
address: string;
|
|
34
34
|
};
|
|
35
35
|
type GetOfframpWalletInput = {
|
|
36
|
-
|
|
36
|
+
customer_id: string;
|
|
37
37
|
bank_account_id: string;
|
|
38
38
|
id: string;
|
|
39
39
|
};
|
|
40
40
|
type GetOfframpWalletResponse = OfframpWallet;
|
|
41
41
|
declare function createOfframpWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
42
|
-
list({ bank_account_id,
|
|
43
|
-
create({
|
|
44
|
-
get({
|
|
42
|
+
list({ bank_account_id, customer_id, }: ListOfframpWalletsInput): Promise<BlindpayApiResponse<ListOfframpWalletsResponse>>;
|
|
43
|
+
create({ customer_id, bank_account_id, ...data }: CreateOfframpWalletInput): Promise<BlindpayApiResponse<CreateOfframpWalletResponse>>;
|
|
44
|
+
get({ customer_id, bank_account_id, id, }: GetOfframpWalletInput): Promise<BlindpayApiResponse<GetOfframpWalletResponse>>;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export { type CreateOfframpWalletInput, type CreateOfframpWalletResponse, type GetOfframpWalletInput, type GetOfframpWalletResponse, type ListOfframpWalletsInput, type ListOfframpWalletsResponse, type OfframpWallet, type OfframpWalletNetwork, createOfframpWalletsResource };
|
|
@@ -41,32 +41,32 @@ function createOfframpWalletsResource(instanceId, client) {
|
|
|
41
41
|
return {
|
|
42
42
|
list({
|
|
43
43
|
bank_account_id,
|
|
44
|
-
|
|
44
|
+
customer_id
|
|
45
45
|
}) {
|
|
46
46
|
return client.get(
|
|
47
|
-
`/instances/${instanceId}/
|
|
47
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
|
|
48
48
|
);
|
|
49
49
|
},
|
|
50
50
|
create(_a) {
|
|
51
51
|
var _b = _a, {
|
|
52
|
-
|
|
52
|
+
customer_id,
|
|
53
53
|
bank_account_id
|
|
54
54
|
} = _b, data = __objRest(_b, [
|
|
55
|
-
"
|
|
55
|
+
"customer_id",
|
|
56
56
|
"bank_account_id"
|
|
57
57
|
]);
|
|
58
58
|
return client.post(
|
|
59
|
-
`/instances/${instanceId}/
|
|
59
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
|
|
60
60
|
data
|
|
61
61
|
);
|
|
62
62
|
},
|
|
63
63
|
get({
|
|
64
|
-
|
|
64
|
+
customer_id,
|
|
65
65
|
bank_account_id,
|
|
66
66
|
id
|
|
67
67
|
}) {
|
|
68
68
|
return client.get(
|
|
69
|
-
`/instances/${instanceId}/
|
|
69
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
};
|