@blindpay/node 1.2.0 → 2.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-BONN6PYB.mjs → chunk-MPJKYFDD.mjs} +9 -4
- package/dist/{chunk-E4S6NTNE.mjs → chunk-URXUVGMC.mjs} +6 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -5
- package/dist/index.mjs +6 -6
- package/dist/resources/api-keys/api-keys.test.js +10 -5
- package/dist/resources/api-keys/api-keys.test.mjs +3 -3
- package/dist/resources/available/available.test.js +10 -5
- package/dist/resources/available/available.test.mjs +3 -3
- package/dist/resources/bank-accounts/bank-accounts.test.js +10 -5
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +3 -3
- package/dist/resources/instances/instances.test.js +10 -5
- package/dist/resources/instances/instances.test.mjs +3 -3
- package/dist/resources/partner-fees/partner-fees.test.js +10 -5
- package/dist/resources/partner-fees/partner-fees.test.mjs +3 -3
- package/dist/resources/payins/payins-quotes.test.js +10 -5
- package/dist/resources/payins/payins-quotes.test.mjs +3 -3
- package/dist/resources/payins/payins.test.js +10 -5
- package/dist/resources/payins/payins.test.mjs +3 -3
- package/dist/resources/payouts/payouts.test.js +10 -5
- package/dist/resources/payouts/payouts.test.mjs +3 -3
- package/dist/resources/quotes/quotes.test.js +10 -5
- package/dist/resources/quotes/quotes.test.mjs +3 -3
- package/dist/resources/receivers/index.d.mts +169 -53
- package/dist/resources/receivers/index.d.ts +169 -53
- package/dist/resources/receivers/index.js +9 -4
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +278 -171
- package/dist/resources/receivers/receivers.test.mjs +271 -169
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +10 -5
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +3 -3
- package/dist/resources/wallets/blockchain.test.js +10 -5
- package/dist/resources/wallets/blockchain.test.mjs +3 -3
- package/dist/resources/wallets/offramp.test.js +10 -5
- package/dist/resources/wallets/offramp.test.mjs +3 -3
- package/dist/resources/webhooks/webhooks.test.js +10 -5
- package/dist/resources/webhooks/webhooks.test.mjs +3 -3
- package/package.json +1 -1
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "
|
|
18717
|
+
var version = "2.0.0";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,20 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18998
|
+
},
|
|
18999
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
19001
|
+
},
|
|
19002
|
+
createBusinessWithStandardKYB(data) {
|
|
18998
19003
|
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18999
19004
|
},
|
|
19000
19005
|
get(receiver_id) {
|
|
19001
19006
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19007
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19008
|
+
update(_a3) {
|
|
19009
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19010
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19011
|
},
|
|
19007
19012
|
delete(receiver_id) {
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-URXUVGMC.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-MPJKYFDD.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
18
19
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
20
|
import "../../chunk-W7NJUABI.mjs";
|
|
20
21
|
import "../../chunk-E7M4CJKR.mjs";
|
|
21
22
|
import "../../chunk-3QQCDR3E.mjs";
|
|
22
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
23
24
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "
|
|
18717
|
+
var version = "2.0.0";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,20 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18998
|
+
},
|
|
18999
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
19001
|
+
},
|
|
19002
|
+
createBusinessWithStandardKYB(data) {
|
|
18998
19003
|
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18999
19004
|
},
|
|
19000
19005
|
get(receiver_id) {
|
|
19001
19006
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19007
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19008
|
+
update(_a3) {
|
|
19009
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19010
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19011
|
},
|
|
19007
19012
|
delete(receiver_id) {
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-URXUVGMC.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-MPJKYFDD.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
18
19
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
20
|
import "../../chunk-W7NJUABI.mjs";
|
|
20
21
|
import "../../chunk-E7M4CJKR.mjs";
|
|
21
22
|
import "../../chunk-3QQCDR3E.mjs";
|
|
22
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
23
24
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "
|
|
18717
|
+
var version = "2.0.0";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,20 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18998
|
+
},
|
|
18999
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
+
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
19001
|
+
},
|
|
19002
|
+
createBusinessWithStandardKYB(data) {
|
|
18998
19003
|
return client.post(`/instances/${instanceId}/receivers`, data);
|
|
18999
19004
|
},
|
|
19000
19005
|
get(receiver_id) {
|
|
19001
19006
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19007
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19008
|
+
update(_a3) {
|
|
19009
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19010
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19011
|
},
|
|
19007
19012
|
delete(receiver_id) {
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-URXUVGMC.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-MPJKYFDD.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
18
19
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
20
|
import "../../chunk-W7NJUABI.mjs";
|
|
20
21
|
import "../../chunk-E7M4CJKR.mjs";
|
|
21
22
|
import "../../chunk-3QQCDR3E.mjs";
|
|
22
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
23
24
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|