@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
|
@@ -5,6 +5,18 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
8
20
|
var __objRest = (source, exclude) => {
|
|
9
21
|
var target = {};
|
|
10
22
|
for (var prop in source)
|
|
@@ -42,15 +54,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
42
54
|
list() {
|
|
43
55
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
44
56
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
createIndividualWithStandardKYC(data) {
|
|
58
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
59
|
+
kyc_type: "standard",
|
|
60
|
+
type: "individual"
|
|
61
|
+
}, data));
|
|
62
|
+
},
|
|
63
|
+
createIndividualWithEnhancedKYC(data) {
|
|
64
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
65
|
+
kyc_type: "enhanced",
|
|
66
|
+
type: "individual"
|
|
67
|
+
}, data));
|
|
68
|
+
},
|
|
69
|
+
createBusinessWithStandardKYB(data) {
|
|
70
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
71
|
+
kyc_type: "standard",
|
|
72
|
+
type: "business"
|
|
73
|
+
}, data));
|
|
48
74
|
},
|
|
49
75
|
get(receiver_id) {
|
|
50
76
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
51
77
|
},
|
|
52
|
-
update(
|
|
53
|
-
var
|
|
78
|
+
update(_a) {
|
|
79
|
+
var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
54
80
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
55
81
|
},
|
|
56
82
|
delete(receiver_id) {
|