@blindpay/node 1.2.0 → 2.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/{chunk-E4S6NTNE.mjs → chunk-4CYRFSJ7.mjs} +2 -2
- package/dist/{chunk-BONN6PYB.mjs → chunk-E6ALTWR5.mjs} +21 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -6
- package/dist/index.mjs +2 -2
- package/dist/resources/api-keys/api-keys.test.js +20 -6
- package/dist/resources/api-keys/api-keys.test.mjs +2 -2
- package/dist/resources/available/available.test.js +20 -6
- package/dist/resources/available/available.test.mjs +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +20 -6
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +2 -2
- package/dist/resources/instances/instances.test.js +20 -6
- package/dist/resources/instances/instances.test.mjs +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +20 -6
- package/dist/resources/partner-fees/partner-fees.test.mjs +2 -2
- package/dist/resources/payins/payins-quotes.test.js +20 -6
- package/dist/resources/payins/payins-quotes.test.mjs +2 -2
- package/dist/resources/payins/payins.test.js +20 -6
- package/dist/resources/payins/payins.test.mjs +2 -2
- package/dist/resources/payouts/payouts.test.js +20 -6
- package/dist/resources/payouts/payouts.test.mjs +2 -2
- package/dist/resources/quotes/quotes.test.js +20 -6
- package/dist/resources/quotes/quotes.test.mjs +2 -2
- package/dist/resources/receivers/index.d.mts +163 -53
- package/dist/resources/receivers/index.d.ts +163 -53
- package/dist/resources/receivers/index.js +31 -5
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +284 -174
- package/dist/resources/receivers/receivers.test.mjs +266 -170
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -6
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +2 -2
- package/dist/resources/wallets/blockchain.test.js +20 -6
- package/dist/resources/wallets/blockchain.test.mjs +2 -2
- package/dist/resources/wallets/offramp.test.js +20 -6
- package/dist/resources/wallets/offramp.test.mjs +2 -2
- package/dist/resources/webhooks/webhooks.test.js +20 -6
- package/dist/resources/webhooks/webhooks.test.mjs +2 -2
- 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.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|