@blindpay/node 3.2.0 → 3.4.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/README.md +1 -1
- package/dist/api-client-Cu0yYexQ.d.ts +16 -0
- package/dist/api-client-DV5jG52T.d.mts +16 -0
- package/dist/{chunk-AFXWEXL6.mjs → chunk-3I7S2HKM.mjs} +47 -23
- package/dist/chunk-ALHMJWQN.mjs +21 -0
- package/dist/{chunk-VOB7TMKL.mjs → chunk-F5Z45GCA.mjs} +8 -0
- package/dist/chunk-ISHZTBAN.mjs +39 -0
- package/dist/chunk-KMU6V4LW.mjs +50 -0
- package/dist/chunk-UDRMLZWT.mjs +53 -0
- package/dist/{chunk-CPOSU35L.mjs → chunk-UOAM7SX3.mjs} +43 -25
- package/dist/{chunk-U7CKUUO7.mjs → chunk-WE73MTQL.mjs} +3 -0
- package/dist/{chunk-67XECGMJ.mjs → chunk-YIZJM2GU.mjs} +4 -3
- package/dist/{api-client-CIPV5zmo.d.mts → index.d-yOiKSwHO.d.mts} +6 -19
- package/dist/{api-client-CIPV5zmo.d.ts → index.d-yOiKSwHO.d.ts} +6 -19
- package/dist/index.d.mts +21 -8
- package/dist/index.d.ts +21 -8
- package/dist/index.js +183 -30
- package/dist/index.mjs +46 -22
- package/dist/resources/api-keys/api-keys.test.js +175 -30
- package/dist/resources/api-keys/api-keys.test.mjs +13 -9
- package/dist/resources/api-keys/index.d.mts +2 -1
- package/dist/resources/api-keys/index.d.ts +2 -1
- package/dist/resources/available/available.test.js +199 -30
- package/dist/resources/available/available.test.mjs +37 -9
- package/dist/resources/available/index.d.mts +8 -2
- package/dist/resources/available/index.d.ts +8 -2
- package/dist/resources/available/index.js +3 -0
- package/dist/resources/available/index.mjs +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +230 -32
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +68 -11
- package/dist/resources/bank-accounts/index.d.mts +90 -9
- package/dist/resources/bank-accounts/index.d.ts +90 -9
- package/dist/resources/bank-accounts/index.js +43 -25
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/fees/fees.test.d.mts +2 -0
- package/dist/resources/fees/fees.test.d.ts +2 -0
- package/dist/resources/fees/fees.test.js +19845 -0
- package/dist/resources/fees/fees.test.mjs +85 -0
- package/dist/resources/fees/index.d.mts +36 -0
- package/dist/resources/fees/index.d.ts +36 -0
- package/dist/resources/fees/index.js +36 -0
- package/dist/resources/fees/index.mjs +9 -0
- package/dist/resources/instances/index.d.mts +2 -1
- package/dist/resources/instances/index.d.ts +2 -1
- package/dist/resources/instances/instances.test.js +175 -30
- package/dist/resources/instances/instances.test.mjs +13 -9
- package/dist/resources/partner-fees/index.d.mts +2 -1
- package/dist/resources/partner-fees/index.d.ts +2 -1
- package/dist/resources/partner-fees/partner-fees.test.js +175 -30
- package/dist/resources/partner-fees/partner-fees.test.mjs +13 -9
- package/dist/resources/payins/index.d.mts +2 -1
- package/dist/resources/payins/index.d.ts +2 -1
- package/dist/resources/payins/payins-quotes.test.js +175 -30
- package/dist/resources/payins/payins-quotes.test.mjs +13 -9
- package/dist/resources/payins/payins.test.js +175 -30
- package/dist/resources/payins/payins.test.mjs +13 -9
- package/dist/resources/payins/quotes.d.mts +2 -1
- package/dist/resources/payins/quotes.d.ts +2 -1
- package/dist/resources/payouts/index.d.mts +15 -3
- package/dist/resources/payouts/index.d.ts +15 -3
- package/dist/resources/payouts/index.js +8 -0
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +194 -30
- package/dist/resources/payouts/payouts.test.mjs +32 -9
- package/dist/resources/quotes/index.d.mts +2 -1
- package/dist/resources/quotes/index.d.ts +2 -1
- package/dist/resources/quotes/quotes.test.js +175 -30
- package/dist/resources/quotes/quotes.test.mjs +13 -9
- package/dist/resources/receivers/index.d.mts +90 -5
- package/dist/resources/receivers/index.d.ts +90 -5
- package/dist/resources/receivers/index.js +4 -3
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +423 -179
- package/dist/resources/receivers/receivers.test.mjs +261 -158
- package/dist/resources/terms-of-service/index.d.mts +2 -1
- package/dist/resources/terms-of-service/index.d.ts +2 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +175 -30
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +13 -9
- package/dist/resources/transfers/index.d.mts +94 -0
- package/dist/resources/transfers/index.d.ts +94 -0
- package/dist/resources/transfers/index.js +67 -0
- package/dist/resources/transfers/index.mjs +9 -0
- package/dist/resources/transfers/transfers.test.d.mts +2 -0
- package/dist/resources/transfers/transfers.test.d.ts +2 -0
- package/dist/resources/transfers/transfers.test.js +19931 -0
- package/dist/resources/transfers/transfers.test.mjs +171 -0
- package/dist/resources/upload/index.d.mts +16 -0
- package/dist/resources/upload/index.d.ts +16 -0
- package/dist/resources/upload/index.js +100 -0
- package/dist/resources/upload/index.mjs +9 -0
- package/dist/resources/upload/upload.test.d.mts +2 -0
- package/dist/resources/upload/upload.test.d.ts +2 -0
- package/dist/resources/upload/upload.test.js +19840 -0
- package/dist/resources/upload/upload.test.mjs +80 -0
- package/dist/resources/virtual-accounts/index.d.mts +13 -3
- package/dist/resources/virtual-accounts/index.d.ts +13 -3
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +235 -30
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +73 -9
- package/dist/resources/wallets/blockchain.d.mts +2 -1
- package/dist/resources/wallets/blockchain.d.ts +2 -1
- package/dist/resources/wallets/blockchain.test.js +175 -30
- package/dist/resources/wallets/blockchain.test.mjs +13 -9
- package/dist/resources/wallets/custodial.d.mts +55 -0
- package/dist/resources/wallets/custodial.d.ts +55 -0
- package/dist/resources/wallets/custodial.js +78 -0
- package/dist/resources/wallets/custodial.mjs +9 -0
- package/dist/resources/wallets/custodial.test.d.mts +2 -0
- package/dist/resources/wallets/custodial.test.d.ts +2 -0
- package/dist/resources/wallets/custodial.test.js +19901 -0
- package/dist/resources/wallets/custodial.test.mjs +141 -0
- package/dist/resources/wallets/offramp.d.mts +11 -7
- package/dist/resources/wallets/offramp.d.ts +11 -7
- package/dist/resources/wallets/offramp.test.js +195 -30
- package/dist/resources/wallets/offramp.test.mjs +33 -9
- package/dist/resources/webhooks/index.d.mts +3 -2
- package/dist/resources/webhooks/index.d.ts +3 -2
- package/dist/resources/webhooks/webhooks.test.js +175 -30
- package/dist/resources/webhooks/webhooks.test.mjs +13 -9
- package/package.json +2 -2
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "3.
|
|
18705
|
+
var version = "3.4.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18740,6 +18740,9 @@ function createAvailableResource(client) {
|
|
|
18740
18740
|
getRails() {
|
|
18741
18741
|
return client.get("/available/rails");
|
|
18742
18742
|
},
|
|
18743
|
+
getNaicsCodes() {
|
|
18744
|
+
return client.get("/available/naics");
|
|
18745
|
+
},
|
|
18743
18746
|
getSwiftCodeBankDetails(swift) {
|
|
18744
18747
|
return client.get(`/available/swift/${swift}`);
|
|
18745
18748
|
}
|
|
@@ -18749,8 +18752,16 @@ function createAvailableResource(client) {
|
|
|
18749
18752
|
// src/resources/bank-accounts/index.ts
|
|
18750
18753
|
function createBankAccountsResource(instanceId, client) {
|
|
18751
18754
|
return {
|
|
18752
|
-
list(
|
|
18753
|
-
|
|
18755
|
+
list(_a3) {
|
|
18756
|
+
var _b = _a3, {
|
|
18757
|
+
receiver_id
|
|
18758
|
+
} = _b, params = __objRest(_b, [
|
|
18759
|
+
"receiver_id"
|
|
18760
|
+
]);
|
|
18761
|
+
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
18762
|
+
return client.get(
|
|
18763
|
+
`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts${queryParams}`
|
|
18764
|
+
);
|
|
18754
18765
|
},
|
|
18755
18766
|
get({
|
|
18756
18767
|
receiver_id,
|
|
@@ -18765,82 +18776,92 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
18765
18776
|
`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
|
|
18766
18777
|
);
|
|
18767
18778
|
},
|
|
18768
|
-
createPix(
|
|
18769
|
-
var _b = _a3, {
|
|
18770
|
-
receiver_id
|
|
18771
|
-
} = _b, data = __objRest(_b, [
|
|
18772
|
-
"receiver_id"
|
|
18773
|
-
]);
|
|
18774
|
-
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18775
|
-
type: "pix"
|
|
18776
|
-
}, data));
|
|
18777
|
-
},
|
|
18778
|
-
createArgentinaTransfers(_c) {
|
|
18779
|
+
createPix(_c) {
|
|
18779
18780
|
var _d = _c, {
|
|
18780
18781
|
receiver_id
|
|
18781
18782
|
} = _d, data = __objRest(_d, [
|
|
18782
18783
|
"receiver_id"
|
|
18783
18784
|
]);
|
|
18784
18785
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18785
|
-
type: "
|
|
18786
|
+
type: "pix"
|
|
18786
18787
|
}, data));
|
|
18787
18788
|
},
|
|
18788
|
-
|
|
18789
|
+
createPixSafe(_e) {
|
|
18789
18790
|
var _f = _e, {
|
|
18790
18791
|
receiver_id
|
|
18791
18792
|
} = _f, data = __objRest(_f, [
|
|
18792
18793
|
"receiver_id"
|
|
18793
18794
|
]);
|
|
18794
18795
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18795
|
-
type: "
|
|
18796
|
+
type: "pix_safe"
|
|
18796
18797
|
}, data));
|
|
18797
18798
|
},
|
|
18798
|
-
|
|
18799
|
+
createArgentinaTransfers(_g) {
|
|
18799
18800
|
var _h = _g, {
|
|
18800
18801
|
receiver_id
|
|
18801
18802
|
} = _h, data = __objRest(_h, [
|
|
18802
18803
|
"receiver_id"
|
|
18803
18804
|
]);
|
|
18804
18805
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18805
|
-
type: "
|
|
18806
|
+
type: "transfers_bitso"
|
|
18806
18807
|
}, data));
|
|
18807
18808
|
},
|
|
18808
|
-
|
|
18809
|
+
createSpei(_i) {
|
|
18809
18810
|
var _j = _i, {
|
|
18810
18811
|
receiver_id
|
|
18811
18812
|
} = _j, data = __objRest(_j, [
|
|
18812
18813
|
"receiver_id"
|
|
18813
18814
|
]);
|
|
18814
18815
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18815
|
-
type: "
|
|
18816
|
+
type: "spei_bitso"
|
|
18816
18817
|
}, data));
|
|
18817
18818
|
},
|
|
18818
|
-
|
|
18819
|
+
createColombiaAch(_k) {
|
|
18819
18820
|
var _l = _k, {
|
|
18820
18821
|
receiver_id
|
|
18821
18822
|
} = _l, data = __objRest(_l, [
|
|
18822
18823
|
"receiver_id"
|
|
18823
18824
|
]);
|
|
18824
18825
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18825
|
-
type: "
|
|
18826
|
+
type: "ach_cop_bitso"
|
|
18826
18827
|
}, data));
|
|
18827
18828
|
},
|
|
18828
|
-
|
|
18829
|
+
createAch(_m) {
|
|
18829
18830
|
var _n = _m, {
|
|
18830
18831
|
receiver_id
|
|
18831
18832
|
} = _n, data = __objRest(_n, [
|
|
18832
18833
|
"receiver_id"
|
|
18833
18834
|
]);
|
|
18834
18835
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18835
|
-
type: "
|
|
18836
|
+
type: "ach"
|
|
18836
18837
|
}, data));
|
|
18837
18838
|
},
|
|
18838
|
-
|
|
18839
|
+
createWire(_o) {
|
|
18839
18840
|
var _p = _o, {
|
|
18840
18841
|
receiver_id
|
|
18841
18842
|
} = _p, data = __objRest(_p, [
|
|
18842
18843
|
"receiver_id"
|
|
18843
18844
|
]);
|
|
18845
|
+
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18846
|
+
type: "wire"
|
|
18847
|
+
}, data));
|
|
18848
|
+
},
|
|
18849
|
+
createInternationalSwift(_q) {
|
|
18850
|
+
var _r = _q, {
|
|
18851
|
+
receiver_id
|
|
18852
|
+
} = _r, data = __objRest(_r, [
|
|
18853
|
+
"receiver_id"
|
|
18854
|
+
]);
|
|
18855
|
+
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18856
|
+
type: "international_swift"
|
|
18857
|
+
}, data));
|
|
18858
|
+
},
|
|
18859
|
+
createRtp(_s) {
|
|
18860
|
+
var _t = _s, {
|
|
18861
|
+
receiver_id
|
|
18862
|
+
} = _t, data = __objRest(_t, [
|
|
18863
|
+
"receiver_id"
|
|
18864
|
+
]);
|
|
18844
18865
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
18845
18866
|
type: "rtp"
|
|
18846
18867
|
}, data));
|
|
@@ -18848,6 +18869,15 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
18848
18869
|
};
|
|
18849
18870
|
}
|
|
18850
18871
|
|
|
18872
|
+
// src/resources/fees/index.ts
|
|
18873
|
+
function createFeesResource(instanceId, client) {
|
|
18874
|
+
return {
|
|
18875
|
+
get() {
|
|
18876
|
+
return client.get(`/instances/${instanceId}/billing/fees`);
|
|
18877
|
+
}
|
|
18878
|
+
};
|
|
18879
|
+
}
|
|
18880
|
+
|
|
18851
18881
|
// src/resources/instances/index.ts
|
|
18852
18882
|
function createInstancesResource(instanceId, client) {
|
|
18853
18883
|
return {
|
|
@@ -18955,6 +18985,14 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18955
18985
|
createSolana(_d) {
|
|
18956
18986
|
var data = __objRest(_d, []);
|
|
18957
18987
|
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
18988
|
+
},
|
|
18989
|
+
submitDocuments(_e) {
|
|
18990
|
+
var _f = _e, {
|
|
18991
|
+
payout_id
|
|
18992
|
+
} = _f, data = __objRest(_f, [
|
|
18993
|
+
"payout_id"
|
|
18994
|
+
]);
|
|
18995
|
+
return client.post(`/instances/${instanceId}/payouts/${payout_id}/documents`, data);
|
|
18958
18996
|
}
|
|
18959
18997
|
};
|
|
18960
18998
|
}
|
|
@@ -18976,8 +19014,9 @@ function createQuotesResource(instanceId, client) {
|
|
|
18976
19014
|
// src/resources/receivers/index.ts
|
|
18977
19015
|
function createReceiversResource(instanceId, client) {
|
|
18978
19016
|
return {
|
|
18979
|
-
list() {
|
|
18980
|
-
|
|
19017
|
+
list(params) {
|
|
19018
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
19019
|
+
return client.get(`/instances/${instanceId}/receivers${queryParams}`);
|
|
18981
19020
|
},
|
|
18982
19021
|
createIndividualWithStandardKYC(data) {
|
|
18983
19022
|
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
@@ -19002,7 +19041,7 @@ function createReceiversResource(instanceId, client) {
|
|
|
19002
19041
|
},
|
|
19003
19042
|
update(_a3) {
|
|
19004
19043
|
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
|
-
return client.
|
|
19044
|
+
return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19045
|
},
|
|
19007
19046
|
delete(receiver_id) {
|
|
19008
19047
|
return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -19044,6 +19083,71 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
19044
19083
|
};
|
|
19045
19084
|
}
|
|
19046
19085
|
|
|
19086
|
+
// src/resources/transfers/index.ts
|
|
19087
|
+
function createTransfersResource(instanceId, client) {
|
|
19088
|
+
return {
|
|
19089
|
+
quotes: {
|
|
19090
|
+
create(_a3) {
|
|
19091
|
+
var data = __objRest(_a3, []);
|
|
19092
|
+
return client.post(`/instances/${instanceId}/transfer-quotes`, data);
|
|
19093
|
+
}
|
|
19094
|
+
},
|
|
19095
|
+
create(_b) {
|
|
19096
|
+
var data = __objRest(_b, []);
|
|
19097
|
+
return client.post(`/instances/${instanceId}/transfers`, data);
|
|
19098
|
+
},
|
|
19099
|
+
list(params) {
|
|
19100
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
19101
|
+
return client.get(`/instances/${instanceId}/transfers${queryParams}`);
|
|
19102
|
+
},
|
|
19103
|
+
get(transferId) {
|
|
19104
|
+
return client.get(`/instances/${instanceId}/transfers/${transferId}`);
|
|
19105
|
+
},
|
|
19106
|
+
getTrack(transferId) {
|
|
19107
|
+
return client.get(`/e/transfers/${transferId}`);
|
|
19108
|
+
}
|
|
19109
|
+
};
|
|
19110
|
+
}
|
|
19111
|
+
|
|
19112
|
+
// src/resources/upload/index.ts
|
|
19113
|
+
function createUploadResource(baseUrl, headers) {
|
|
19114
|
+
return {
|
|
19115
|
+
upload(_0) {
|
|
19116
|
+
return __async(this, arguments, function* ({
|
|
19117
|
+
file,
|
|
19118
|
+
bucket,
|
|
19119
|
+
instance_id
|
|
19120
|
+
}) {
|
|
19121
|
+
var _b;
|
|
19122
|
+
const formData = new FormData();
|
|
19123
|
+
formData.append("file", file);
|
|
19124
|
+
formData.append("bucket", bucket);
|
|
19125
|
+
const queryParams = instance_id ? `?instance_id=${instance_id}` : "";
|
|
19126
|
+
const _a4 = headers, { "Content-Type": _ } = _a4, headersWithoutContentType = __objRest(_a4, ["Content-Type"]);
|
|
19127
|
+
const response = yield fetch(`${baseUrl}/upload${queryParams}`, {
|
|
19128
|
+
method: "POST",
|
|
19129
|
+
headers: headersWithoutContentType,
|
|
19130
|
+
body: formData
|
|
19131
|
+
});
|
|
19132
|
+
if (!response.ok) {
|
|
19133
|
+
const error = yield response.json();
|
|
19134
|
+
return {
|
|
19135
|
+
data: null,
|
|
19136
|
+
error: {
|
|
19137
|
+
message: (_b = error == null ? void 0 : error.message) != null ? _b : "Unknown error"
|
|
19138
|
+
}
|
|
19139
|
+
};
|
|
19140
|
+
}
|
|
19141
|
+
const data = yield response.json();
|
|
19142
|
+
return {
|
|
19143
|
+
data,
|
|
19144
|
+
error: null
|
|
19145
|
+
};
|
|
19146
|
+
});
|
|
19147
|
+
}
|
|
19148
|
+
};
|
|
19149
|
+
}
|
|
19150
|
+
|
|
19047
19151
|
// src/resources/virtual-accounts/index.ts
|
|
19048
19152
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19049
19153
|
return {
|
|
@@ -19160,6 +19264,43 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
19160
19264
|
};
|
|
19161
19265
|
}
|
|
19162
19266
|
|
|
19267
|
+
// src/resources/wallets/custodial.ts
|
|
19268
|
+
function createCustodialWalletsResource(instanceId, client) {
|
|
19269
|
+
return {
|
|
19270
|
+
list(receiver_id) {
|
|
19271
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets`);
|
|
19272
|
+
},
|
|
19273
|
+
get({
|
|
19274
|
+
receiver_id,
|
|
19275
|
+
id
|
|
19276
|
+
}) {
|
|
19277
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
|
|
19278
|
+
},
|
|
19279
|
+
create(_a3) {
|
|
19280
|
+
var _b = _a3, {
|
|
19281
|
+
receiver_id
|
|
19282
|
+
} = _b, data = __objRest(_b, [
|
|
19283
|
+
"receiver_id"
|
|
19284
|
+
]);
|
|
19285
|
+
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/wallets`, data);
|
|
19286
|
+
},
|
|
19287
|
+
getBalance({
|
|
19288
|
+
receiver_id,
|
|
19289
|
+
id
|
|
19290
|
+
}) {
|
|
19291
|
+
return client.get(
|
|
19292
|
+
`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}/balance`
|
|
19293
|
+
);
|
|
19294
|
+
},
|
|
19295
|
+
delete({
|
|
19296
|
+
receiver_id,
|
|
19297
|
+
id
|
|
19298
|
+
}) {
|
|
19299
|
+
return client.delete(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
|
|
19300
|
+
}
|
|
19301
|
+
};
|
|
19302
|
+
}
|
|
19303
|
+
|
|
19163
19304
|
// src/resources/wallets/offramp.ts
|
|
19164
19305
|
function createOfframpWalletsResource(instanceId, client) {
|
|
19165
19306
|
return {
|
|
@@ -19261,13 +19402,17 @@ var BlindPay = class {
|
|
|
19261
19402
|
});
|
|
19262
19403
|
this.quotes = createQuotesResource(this.instanceId, this.api);
|
|
19263
19404
|
this.payouts = createPayoutsResource(this.instanceId, this.api);
|
|
19405
|
+
this.transfers = createTransfersResource(this.instanceId, this.api);
|
|
19406
|
+
this.fees = createFeesResource(this.instanceId, this.api);
|
|
19407
|
+
this.upload = createUploadResource(this.baseUrl, this.headers);
|
|
19264
19408
|
this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
|
|
19265
19409
|
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
19266
19410
|
});
|
|
19267
19411
|
this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
|
|
19268
19412
|
this.wallets = {
|
|
19269
19413
|
blockchain: createBlockchainWalletsResource(this.instanceId, this.api),
|
|
19270
|
-
offramp: createOfframpWalletsResource(this.instanceId, this.api)
|
|
19414
|
+
offramp: createOfframpWalletsResource(this.instanceId, this.api),
|
|
19415
|
+
custodial: createCustodialWalletsResource(this.instanceId, this.api)
|
|
19271
19416
|
};
|
|
19272
19417
|
}
|
|
19273
19418
|
request(method, path, body) {
|
|
@@ -8,22 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-3I7S2HKM.mjs";
|
|
12
|
+
import "../../chunk-KMU6V4LW.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
14
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-UDRMLZWT.mjs";
|
|
15
17
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-FG25JHDX.mjs";
|
|
19
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-F5Z45GCA.mjs";
|
|
21
|
+
import "../../chunk-YIZJM2GU.mjs";
|
|
17
22
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
18
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
24
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
19
25
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
|
+
import "../../chunk-B5T7AQLH.mjs";
|
|
20
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
21
|
-
import "../../chunk-E7M4CJKR.mjs";
|
|
22
|
-
import "../../chunk-VOB7TMKL.mjs";
|
|
23
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-B5T7AQLH.mjs";
|
|
29
|
+
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
27
31
|
import {
|
|
28
32
|
__async,
|
|
29
33
|
__commonJS
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, k as PaginationMetadata } from '../../index.d-yOiKSwHO.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-DV5jG52T.mjs';
|
|
2
3
|
|
|
3
4
|
type StrictOmit<T, K extends keyof T> = Omit<T, K>;
|
|
4
5
|
|
|
@@ -6,11 +7,27 @@ type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEME
|
|
|
6
7
|
type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
|
|
7
8
|
type AccountPurpose = "charitable_donations" | "ecommerce_retail_payments" | "investment_purposes" | "business_expenses" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_goods_and_services" | "receive_payments_for_goods_and_services" | "tax_optimization" | "third_party_money_transmission" | "other" | "payroll" | "treasury_management";
|
|
8
9
|
type BusinessType = "corporation" | "llc" | "partnership" | "sole_proprietorship" | "trust" | "non_profit";
|
|
9
|
-
type BusinessIndustry = "
|
|
10
|
+
type BusinessIndustry = "111998" | "112120" | "113310" | "115114" | "211120" | "212114" | "213112" | "221310" | "236115" | "236220" | "237310" | "238210" | "311421" | "312130" | "313110" | "315990" | "322220" | "325412" | "334111" | "334118" | "334210" | "336110" | "336111" | "336390" | "337121" | "339112" | "339910" | "339920" | "339930" | "423110" | "423430" | "423510" | "423690" | "423830" | "423840" | "423940" | "424210" | "424410" | "424480" | "424690" | "424990" | "444110" | "445110" | "445320" | "449210" | "454110" | "455110" | "455219" | "456110" | "457110" | "458110" | "458210" | "458310" | "459120" | "459210" | "481111" | "483111" | "484121" | "485210" | "488510" | "493110" | "511210" | "512250" | "513130" | "516120" | "517110" | "517111" | "517112" | "517410" | "518210" | "519130" | "522110" | "522210" | "522320" | "523110" | "523150" | "523920" | "523940" | "523999" | "524113" | "531110" | "531120" | "531130" | "531190" | "531210" | "531311" | "531312" | "531320" | "531390" | "532111" | "541110" | "541211" | "541214" | "541330" | "541430" | "541511" | "541512" | "541519" | "541611" | "541618" | "541715" | "541810" | "541922" | "541930" | "541940" | "541990" | "551112" | "561311" | "561422" | "561499" | "561510" | "561612" | "561730" | "561740" | "562111" | "562920" | "611110" | "611310" | "611410" | "611710" | "621111" | "621210" | "621399" | "621511" | "621910" | "622110" | "623110" | "623220" | "624410" | "711110" | "711211" | "711410" | "711510" | "712110" | "713110" | "713210" | "721110" | "722511" | "722513" | "811111" | "811210" | "812111" | "812112" | "812199" | "813110" | "813211" | "813219";
|
|
10
11
|
type EstimatedAnnualRevenue = "0_99999" | "100000_999999" | "1000000_9999999" | "10000000_49999999" | "50000000_249999999" | "2500000000_plus";
|
|
11
12
|
type SourceOfWealth = "business_dividends_or_profits" | "investments" | "asset_sales" | "client_investor_contributions" | "gambling" | "charitable_contributions" | "inheritance" | "affiliate_or_royalty_income";
|
|
12
13
|
type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds" | "someone_else_funds";
|
|
13
14
|
type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
15
|
+
type ReceiverKycStatus = "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
|
|
16
|
+
type AmlStatus = "clear" | "hit" | "error";
|
|
17
|
+
type AmlHits = {
|
|
18
|
+
has_sanction_match: boolean;
|
|
19
|
+
has_pep_match: boolean;
|
|
20
|
+
has_watchlist_match: boolean;
|
|
21
|
+
has_crimelist_match: boolean;
|
|
22
|
+
has_adversemedia_match: boolean;
|
|
23
|
+
};
|
|
24
|
+
type FraudWarning = {
|
|
25
|
+
id: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
operation: string | null;
|
|
28
|
+
score: number | null;
|
|
29
|
+
};
|
|
30
|
+
type OwnerTaxType = "SSN" | "ITIN";
|
|
14
31
|
type KycType = "light" | "standard" | "enhanced";
|
|
15
32
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
16
33
|
type Owner = {
|
|
@@ -34,6 +51,9 @@ type Owner = {
|
|
|
34
51
|
proof_of_address_doc_file: string | null;
|
|
35
52
|
ownership_percentage: number | null;
|
|
36
53
|
title: string | null;
|
|
54
|
+
tax_type?: OwnerTaxType | null;
|
|
55
|
+
instance_id?: string;
|
|
56
|
+
receiver_id?: string;
|
|
37
57
|
};
|
|
38
58
|
type IndividualWithStandardKYC = {
|
|
39
59
|
id: string;
|
|
@@ -77,6 +97,22 @@ type IndividualWithStandardKYC = {
|
|
|
77
97
|
daily: number;
|
|
78
98
|
monthly: number;
|
|
79
99
|
};
|
|
100
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
101
|
+
aml_status?: AmlStatus | null;
|
|
102
|
+
aml_hits?: AmlHits | null;
|
|
103
|
+
account_purpose?: AccountPurpose | null;
|
|
104
|
+
account_purpose_other?: string | null;
|
|
105
|
+
occupation?: string | null;
|
|
106
|
+
external_id?: string | null;
|
|
107
|
+
is_fbo?: boolean | null;
|
|
108
|
+
selfie_file?: string | null;
|
|
109
|
+
source_of_funds_doc_type?: SourceOfFundsDocType | null;
|
|
110
|
+
source_of_funds_doc_file?: string | null;
|
|
111
|
+
business_description?: string | null;
|
|
112
|
+
business_industry?: BusinessIndustry | null;
|
|
113
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
114
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
115
|
+
publicly_traded?: boolean | null;
|
|
80
116
|
};
|
|
81
117
|
type IndividualWithEnhancedKYC = {
|
|
82
118
|
id: string;
|
|
@@ -125,6 +161,20 @@ type IndividualWithEnhancedKYC = {
|
|
|
125
161
|
daily: number;
|
|
126
162
|
monthly: number;
|
|
127
163
|
};
|
|
164
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
165
|
+
aml_status?: AmlStatus | null;
|
|
166
|
+
aml_hits?: AmlHits | null;
|
|
167
|
+
account_purpose?: AccountPurpose | null;
|
|
168
|
+
account_purpose_other?: string | null;
|
|
169
|
+
occupation?: string | null;
|
|
170
|
+
external_id?: string | null;
|
|
171
|
+
is_fbo?: boolean | null;
|
|
172
|
+
selfie_file?: string | null;
|
|
173
|
+
business_description?: string | null;
|
|
174
|
+
business_industry?: BusinessIndustry | null;
|
|
175
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
176
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
177
|
+
publicly_traded?: boolean | null;
|
|
128
178
|
};
|
|
129
179
|
type BusinessWithStandardKYB = {
|
|
130
180
|
id: string;
|
|
@@ -170,6 +220,19 @@ type BusinessWithStandardKYB = {
|
|
|
170
220
|
daily: number;
|
|
171
221
|
monthly: number;
|
|
172
222
|
};
|
|
223
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
224
|
+
aml_status?: AmlStatus | null;
|
|
225
|
+
aml_hits?: AmlHits | null;
|
|
226
|
+
account_purpose?: AccountPurpose | null;
|
|
227
|
+
account_purpose_other?: string | null;
|
|
228
|
+
occupation?: string | null;
|
|
229
|
+
selfie_file?: string | null;
|
|
230
|
+
source_of_funds_doc_type?: SourceOfFundsDocType | null;
|
|
231
|
+
source_of_funds_doc_file?: string | null;
|
|
232
|
+
business_description?: string | null;
|
|
233
|
+
business_industry?: BusinessIndustry | null;
|
|
234
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
235
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
173
236
|
};
|
|
174
237
|
type CreateIndividualWithStandardKYCInput = {
|
|
175
238
|
country: Country;
|
|
@@ -199,6 +262,8 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
199
262
|
state_province_region?: string | null;
|
|
200
263
|
tax_id?: string | null;
|
|
201
264
|
tos_id?: string | null;
|
|
265
|
+
account_purpose_other?: string | null;
|
|
266
|
+
occupation?: string | null;
|
|
202
267
|
};
|
|
203
268
|
type CreateIndividualWithStandardKYCResponse = {
|
|
204
269
|
id: string;
|
|
@@ -233,6 +298,8 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
233
298
|
state_province_region?: string | null;
|
|
234
299
|
tax_id?: string | null;
|
|
235
300
|
tos_id?: string | null;
|
|
301
|
+
account_purpose_other?: string | null;
|
|
302
|
+
occupation?: string | null;
|
|
236
303
|
};
|
|
237
304
|
type CreateIndividualWithEnhancedKYCResponse = {
|
|
238
305
|
id: string;
|
|
@@ -269,11 +336,24 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
269
336
|
tax_id?: string | null;
|
|
270
337
|
tos_id?: string | null;
|
|
271
338
|
website?: string | null;
|
|
339
|
+
account_purpose_other?: string | null;
|
|
340
|
+
occupation?: string | null;
|
|
272
341
|
};
|
|
273
342
|
type CreateBusinessWithStandardKYBResponse = {
|
|
274
343
|
id: string;
|
|
275
344
|
};
|
|
276
|
-
type
|
|
345
|
+
type ListReceiversInput = PaginationParams & {
|
|
346
|
+
full_name?: string;
|
|
347
|
+
receiver_name?: string;
|
|
348
|
+
status?: string;
|
|
349
|
+
receiver_id?: string;
|
|
350
|
+
bank_account_id?: string;
|
|
351
|
+
country?: Country;
|
|
352
|
+
};
|
|
353
|
+
type ListReceiversResponse = {
|
|
354
|
+
data: Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
355
|
+
pagination: PaginationMetadata;
|
|
356
|
+
};
|
|
277
357
|
type GetReceiverInput = string;
|
|
278
358
|
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
279
359
|
type UpdateReceiverInput = {
|
|
@@ -319,6 +399,8 @@ type UpdateReceiverInput = {
|
|
|
319
399
|
tax_id?: string;
|
|
320
400
|
tos_id?: string;
|
|
321
401
|
website?: string;
|
|
402
|
+
account_purpose_other?: string | null;
|
|
403
|
+
occupation?: string | null;
|
|
322
404
|
};
|
|
323
405
|
type DeleteReceiverInput = string;
|
|
324
406
|
type GetReceiverLimitsInput = string;
|
|
@@ -348,6 +430,9 @@ type GetLimitIncreaseRequestsResponse = Array<{
|
|
|
348
430
|
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
349
431
|
created_at: string;
|
|
350
432
|
updated_at: string;
|
|
433
|
+
approved_per_transaction?: number | null;
|
|
434
|
+
approved_daily?: number | null;
|
|
435
|
+
approved_monthly?: number | null;
|
|
351
436
|
}>;
|
|
352
437
|
type RequestLimitIncreaseInput = {
|
|
353
438
|
receiver_id: string;
|
|
@@ -361,7 +446,7 @@ type RequestLimitIncreaseResponse = {
|
|
|
361
446
|
id: string;
|
|
362
447
|
};
|
|
363
448
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
364
|
-
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
449
|
+
list(params?: ListReceiversInput): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
365
450
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
366
451
|
createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
|
|
367
452
|
createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
|
|
@@ -373,4 +458,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
373
458
|
requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
|
|
374
459
|
};
|
|
375
460
|
|
|
376
|
-
export { type AccountPurpose, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
|
|
461
|
+
export { type AccountPurpose, type AmlHits, type AmlStatus, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type PurposeOfTransactions, type ReceiverKycStatus, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
|