@blindpay/node 3.11.0 → 4.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/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
- package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
- package/dist/{chunk-IM2L5L4B.mjs → chunk-IJSACZHV.mjs} +16 -24
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- 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-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
- package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
- package/dist/index.d.mts +4 -16
- package/dist/index.d.ts +4 -16
- package/dist/index.js +83 -153
- package/dist/index.mjs +14 -20
- package/dist/resources/api-keys/api-keys.test.js +83 -151
- package/dist/resources/api-keys/api-keys.test.mjs +9 -10
- package/dist/resources/api-keys/index.d.mts +2 -2
- package/dist/resources/api-keys/index.d.ts +2 -2
- package/dist/resources/available/available.test.js +83 -151
- package/dist/resources/available/available.test.mjs +9 -10
- package/dist/resources/available/index.d.mts +2 -2
- package/dist/resources/available/index.d.ts +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +171 -241
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
- package/dist/resources/bank-accounts/index.d.mts +100 -102
- package/dist/resources/bank-accounts/index.d.ts +100 -102
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/customers/customers.test.js +83 -151
- package/dist/resources/customers/customers.test.mjs +9 -10
- package/dist/resources/customers/index.d.mts +70 -69
- package/dist/resources/customers/index.d.ts +70 -69
- package/dist/resources/fees/fees.test.js +83 -151
- package/dist/resources/fees/fees.test.mjs +9 -10
- package/dist/resources/fees/index.d.mts +2 -2
- package/dist/resources/fees/index.d.ts +2 -2
- package/dist/resources/instances/index.d.mts +2 -2
- package/dist/resources/instances/index.d.ts +2 -2
- package/dist/resources/instances/instances.test.js +83 -151
- package/dist/resources/instances/instances.test.mjs +9 -10
- package/dist/resources/partner-fees/index.d.mts +2 -2
- package/dist/resources/partner-fees/index.d.ts +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +83 -151
- package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
- package/dist/resources/payins/index.d.mts +2 -2
- package/dist/resources/payins/index.d.ts +2 -2
- package/dist/resources/payins/payins-quotes.test.js +83 -151
- package/dist/resources/payins/payins-quotes.test.mjs +9 -10
- package/dist/resources/payins/payins.test.js +83 -151
- package/dist/resources/payins/payins.test.mjs +9 -10
- package/dist/resources/payins/quotes.d.mts +2 -2
- package/dist/resources/payins/quotes.d.ts +2 -2
- package/dist/resources/payouts/index.d.mts +2 -2
- package/dist/resources/payouts/index.d.ts +2 -2
- package/dist/resources/payouts/payouts.test.js +83 -151
- package/dist/resources/payouts/payouts.test.mjs +9 -10
- package/dist/resources/quotes/index.d.mts +2 -2
- package/dist/resources/quotes/index.d.ts +2 -2
- package/dist/resources/quotes/quotes.test.js +83 -151
- package/dist/resources/quotes/quotes.test.mjs +9 -10
- package/dist/resources/terms-of-service/index.d.mts +2 -2
- package/dist/resources/terms-of-service/index.d.ts +2 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
- package/dist/resources/transfers/index.d.mts +2 -2
- package/dist/resources/transfers/index.d.ts +2 -2
- package/dist/resources/transfers/transfers.test.js +83 -151
- package/dist/resources/transfers/transfers.test.mjs +9 -10
- package/dist/resources/upload/index.d.mts +1 -1
- package/dist/resources/upload/index.d.ts +1 -1
- package/dist/resources/upload/upload.test.js +83 -151
- package/dist/resources/upload/upload.test.mjs +9 -10
- package/dist/resources/virtual-accounts/index.d.mts +9 -9
- package/dist/resources/virtual-accounts/index.d.ts +9 -9
- 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 +87 -155
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
- package/dist/resources/wallets/blockchain.d.mts +15 -15
- package/dist/resources/wallets/blockchain.d.ts +15 -15
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +91 -159
- package/dist/resources/wallets/blockchain.test.mjs +17 -18
- package/dist/resources/wallets/custodial.d.mts +11 -11
- package/dist/resources/wallets/custodial.d.ts +11 -11
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +87 -155
- package/dist/resources/wallets/custodial.test.mjs +13 -14
- package/dist/resources/wallets/offramp.d.mts +9 -9
- package/dist/resources/wallets/offramp.d.ts +9 -9
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +89 -157
- package/dist/resources/wallets/offramp.test.mjs +15 -16
- package/dist/resources/webhooks/index.d.mts +2 -2
- package/dist/resources/webhooks/index.d.ts +2 -2
- package/dist/resources/webhooks/webhooks.test.js +83 -151
- package/dist/resources/webhooks/webhooks.test.mjs +9 -10
- package/package.json +1 -1
- package/dist/chunk-NAGY6BLL.mjs +0 -79
- package/dist/resources/receivers/index.d.mts +0 -513
- package/dist/resources/receivers/index.d.ts +0 -513
- package/dist/resources/receivers/index.js +0 -118
- package/dist/resources/receivers/index.mjs +0 -9
- package/dist/resources/receivers/receivers.test.d.mts +0 -2
- package/dist/resources/receivers/receivers.test.d.ts +0 -2
- package/dist/resources/receivers/receivers.test.js +0 -20510
- package/dist/resources/receivers/receivers.test.mjs +0 -652
- package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
- package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
|
@@ -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 = "
|
|
18705
|
+
var version = "4.0.1";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18754,135 +18754,135 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
18754
18754
|
return {
|
|
18755
18755
|
list(_a3) {
|
|
18756
18756
|
var _b = _a3, {
|
|
18757
|
-
|
|
18757
|
+
customer_id
|
|
18758
18758
|
} = _b, params = __objRest(_b, [
|
|
18759
|
-
"
|
|
18759
|
+
"customer_id"
|
|
18760
18760
|
]);
|
|
18761
18761
|
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
18762
18762
|
return client.get(
|
|
18763
|
-
`/instances/${instanceId}/
|
|
18763
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
|
|
18764
18764
|
);
|
|
18765
18765
|
},
|
|
18766
18766
|
get({
|
|
18767
|
-
|
|
18767
|
+
customer_id,
|
|
18768
18768
|
id
|
|
18769
18769
|
}) {
|
|
18770
18770
|
return client.get(
|
|
18771
|
-
`/instances/${instanceId}/
|
|
18771
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
18772
18772
|
);
|
|
18773
18773
|
},
|
|
18774
|
-
delete({
|
|
18774
|
+
delete({ customer_id, id }) {
|
|
18775
18775
|
return client.delete(
|
|
18776
|
-
`/instances/${instanceId}/
|
|
18776
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
18777
18777
|
);
|
|
18778
18778
|
},
|
|
18779
18779
|
createPix(_c) {
|
|
18780
18780
|
var _d = _c, {
|
|
18781
|
-
|
|
18781
|
+
customer_id
|
|
18782
18782
|
} = _d, data = __objRest(_d, [
|
|
18783
|
-
"
|
|
18783
|
+
"customer_id"
|
|
18784
18784
|
]);
|
|
18785
|
-
return client.post(`/instances/${instanceId}/
|
|
18785
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18786
18786
|
type: "pix"
|
|
18787
18787
|
}, data));
|
|
18788
18788
|
},
|
|
18789
18789
|
createPixSafe(_e) {
|
|
18790
18790
|
var _f = _e, {
|
|
18791
|
-
|
|
18791
|
+
customer_id
|
|
18792
18792
|
} = _f, data = __objRest(_f, [
|
|
18793
|
-
"
|
|
18793
|
+
"customer_id"
|
|
18794
18794
|
]);
|
|
18795
|
-
return client.post(`/instances/${instanceId}/
|
|
18795
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18796
18796
|
type: "pix_safe"
|
|
18797
18797
|
}, data));
|
|
18798
18798
|
},
|
|
18799
18799
|
createArgentinaTransfers(_g) {
|
|
18800
18800
|
var _h = _g, {
|
|
18801
|
-
|
|
18801
|
+
customer_id
|
|
18802
18802
|
} = _h, data = __objRest(_h, [
|
|
18803
|
-
"
|
|
18803
|
+
"customer_id"
|
|
18804
18804
|
]);
|
|
18805
|
-
return client.post(`/instances/${instanceId}/
|
|
18805
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18806
18806
|
type: "transfers_bitso"
|
|
18807
18807
|
}, data));
|
|
18808
18808
|
},
|
|
18809
18809
|
createSpei(_i) {
|
|
18810
18810
|
var _j = _i, {
|
|
18811
|
-
|
|
18811
|
+
customer_id
|
|
18812
18812
|
} = _j, data = __objRest(_j, [
|
|
18813
|
-
"
|
|
18813
|
+
"customer_id"
|
|
18814
18814
|
]);
|
|
18815
|
-
return client.post(`/instances/${instanceId}/
|
|
18815
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18816
18816
|
type: "spei_bitso"
|
|
18817
18817
|
}, data));
|
|
18818
18818
|
},
|
|
18819
18819
|
createColombiaAch(_k) {
|
|
18820
18820
|
var _l = _k, {
|
|
18821
|
-
|
|
18821
|
+
customer_id
|
|
18822
18822
|
} = _l, data = __objRest(_l, [
|
|
18823
|
-
"
|
|
18823
|
+
"customer_id"
|
|
18824
18824
|
]);
|
|
18825
|
-
return client.post(`/instances/${instanceId}/
|
|
18825
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18826
18826
|
type: "ach_cop_bitso"
|
|
18827
18827
|
}, data));
|
|
18828
18828
|
},
|
|
18829
18829
|
createAch(_m) {
|
|
18830
18830
|
var _n = _m, {
|
|
18831
|
-
|
|
18831
|
+
customer_id
|
|
18832
18832
|
} = _n, data = __objRest(_n, [
|
|
18833
|
-
"
|
|
18833
|
+
"customer_id"
|
|
18834
18834
|
]);
|
|
18835
|
-
return client.post(`/instances/${instanceId}/
|
|
18835
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18836
18836
|
type: "ach"
|
|
18837
18837
|
}, data));
|
|
18838
18838
|
},
|
|
18839
18839
|
createWire(_o) {
|
|
18840
18840
|
var _p = _o, {
|
|
18841
|
-
|
|
18841
|
+
customer_id
|
|
18842
18842
|
} = _p, data = __objRest(_p, [
|
|
18843
|
-
"
|
|
18843
|
+
"customer_id"
|
|
18844
18844
|
]);
|
|
18845
|
-
return client.post(`/instances/${instanceId}/
|
|
18845
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18846
18846
|
type: "wire"
|
|
18847
18847
|
}, data));
|
|
18848
18848
|
},
|
|
18849
18849
|
createInternationalSwift(_q) {
|
|
18850
18850
|
var _r = _q, {
|
|
18851
|
-
|
|
18851
|
+
customer_id
|
|
18852
18852
|
} = _r, data = __objRest(_r, [
|
|
18853
|
-
"
|
|
18853
|
+
"customer_id"
|
|
18854
18854
|
]);
|
|
18855
|
-
return client.post(`/instances/${instanceId}/
|
|
18855
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18856
18856
|
type: "international_swift"
|
|
18857
18857
|
}, data));
|
|
18858
18858
|
},
|
|
18859
18859
|
createRtp(_s) {
|
|
18860
18860
|
var _t = _s, {
|
|
18861
|
-
|
|
18861
|
+
customer_id
|
|
18862
18862
|
} = _t, data = __objRest(_t, [
|
|
18863
|
-
"
|
|
18863
|
+
"customer_id"
|
|
18864
18864
|
]);
|
|
18865
|
-
return client.post(`/instances/${instanceId}/
|
|
18865
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18866
18866
|
type: "rtp"
|
|
18867
18867
|
}, data));
|
|
18868
18868
|
},
|
|
18869
18869
|
createTed(_u) {
|
|
18870
18870
|
var _v = _u, {
|
|
18871
|
-
|
|
18871
|
+
customer_id
|
|
18872
18872
|
} = _v, data = __objRest(_v, [
|
|
18873
|
-
"
|
|
18873
|
+
"customer_id"
|
|
18874
18874
|
]);
|
|
18875
|
-
return client.post(`/instances/${instanceId}/
|
|
18875
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18876
18876
|
type: "ted"
|
|
18877
18877
|
}, data));
|
|
18878
18878
|
},
|
|
18879
18879
|
createSepa(_w) {
|
|
18880
18880
|
var _x = _w, {
|
|
18881
|
-
|
|
18881
|
+
customer_id
|
|
18882
18882
|
} = _x, data = __objRest(_x, [
|
|
18883
|
-
"
|
|
18883
|
+
"customer_id"
|
|
18884
18884
|
]);
|
|
18885
|
-
return client.post(`/instances/${instanceId}/
|
|
18885
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
18886
18886
|
type: "sepa"
|
|
18887
18887
|
}, data));
|
|
18888
18888
|
}
|
|
@@ -19097,71 +19097,6 @@ function createQuotesResource(instanceId, client) {
|
|
|
19097
19097
|
};
|
|
19098
19098
|
}
|
|
19099
19099
|
|
|
19100
|
-
// src/resources/receivers/index.ts
|
|
19101
|
-
function createReceiversResource(instanceId, client) {
|
|
19102
|
-
return {
|
|
19103
|
-
/** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19104
|
-
list(params) {
|
|
19105
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
19106
|
-
return client.get(`/instances/${instanceId}/receivers${queryParams}`);
|
|
19107
|
-
},
|
|
19108
|
-
/** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19109
|
-
createIndividualWithStandardKYC(data) {
|
|
19110
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19111
|
-
kyc_type: "standard",
|
|
19112
|
-
type: "individual"
|
|
19113
|
-
}, data));
|
|
19114
|
-
},
|
|
19115
|
-
/** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19116
|
-
createIndividualWithEnhancedKYC(data) {
|
|
19117
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19118
|
-
kyc_type: "enhanced",
|
|
19119
|
-
type: "individual"
|
|
19120
|
-
}, data));
|
|
19121
|
-
},
|
|
19122
|
-
/** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19123
|
-
createBusinessWithStandardKYB(data) {
|
|
19124
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19125
|
-
kyc_type: "standard",
|
|
19126
|
-
type: "business"
|
|
19127
|
-
}, data));
|
|
19128
|
-
},
|
|
19129
|
-
/** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19130
|
-
get(receiver_id) {
|
|
19131
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19132
|
-
},
|
|
19133
|
-
/** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19134
|
-
update(_a3) {
|
|
19135
|
-
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19136
|
-
return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19137
|
-
},
|
|
19138
|
-
/** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19139
|
-
delete(receiver_id) {
|
|
19140
|
-
return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19141
|
-
},
|
|
19142
|
-
/** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19143
|
-
getLimits(receiver_id) {
|
|
19144
|
-
return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
|
|
19145
|
-
},
|
|
19146
|
-
/** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19147
|
-
getLimitIncreaseRequests(receiver_id) {
|
|
19148
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
|
|
19149
|
-
},
|
|
19150
|
-
/** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
|
|
19151
|
-
requestLimitIncrease(_c) {
|
|
19152
|
-
var _d = _c, {
|
|
19153
|
-
receiver_id
|
|
19154
|
-
} = _d, data = __objRest(_d, [
|
|
19155
|
-
"receiver_id"
|
|
19156
|
-
]);
|
|
19157
|
-
return client.post(
|
|
19158
|
-
`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`,
|
|
19159
|
-
data
|
|
19160
|
-
);
|
|
19161
|
-
}
|
|
19162
|
-
};
|
|
19163
|
-
}
|
|
19164
|
-
|
|
19165
19100
|
// src/resources/terms-of-service/index.ts
|
|
19166
19101
|
function createTermsOfServiceResource(instanceId, client) {
|
|
19167
19102
|
return {
|
|
@@ -19247,38 +19182,38 @@ function createUploadResource(baseUrl, headers) {
|
|
|
19247
19182
|
// src/resources/virtual-accounts/index.ts
|
|
19248
19183
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19249
19184
|
return {
|
|
19250
|
-
list(
|
|
19251
|
-
return client.get(`/instances/${instanceId}/
|
|
19185
|
+
list(customer_id) {
|
|
19186
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`);
|
|
19252
19187
|
},
|
|
19253
19188
|
get({
|
|
19254
|
-
|
|
19189
|
+
customer_id,
|
|
19255
19190
|
id
|
|
19256
19191
|
}) {
|
|
19257
19192
|
return client.get(
|
|
19258
|
-
`/instances/${instanceId}/
|
|
19193
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`
|
|
19259
19194
|
);
|
|
19260
19195
|
},
|
|
19261
19196
|
create(_a3) {
|
|
19262
19197
|
var _b = _a3, {
|
|
19263
|
-
|
|
19198
|
+
customer_id
|
|
19264
19199
|
} = _b, data = __objRest(_b, [
|
|
19265
|
-
"
|
|
19200
|
+
"customer_id"
|
|
19266
19201
|
]);
|
|
19267
19202
|
return client.post(
|
|
19268
|
-
`/instances/${instanceId}/
|
|
19203
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`,
|
|
19269
19204
|
data
|
|
19270
19205
|
);
|
|
19271
19206
|
},
|
|
19272
19207
|
update(_c) {
|
|
19273
19208
|
var _d = _c, {
|
|
19274
|
-
|
|
19209
|
+
customer_id,
|
|
19275
19210
|
id
|
|
19276
19211
|
} = _d, data = __objRest(_d, [
|
|
19277
|
-
"
|
|
19212
|
+
"customer_id",
|
|
19278
19213
|
"id"
|
|
19279
19214
|
]);
|
|
19280
19215
|
return client.put(
|
|
19281
|
-
`/instances/${instanceId}/
|
|
19216
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`,
|
|
19282
19217
|
data
|
|
19283
19218
|
);
|
|
19284
19219
|
}
|
|
@@ -19288,19 +19223,19 @@ function createVirtualAccountsResource(instanceId, client) {
|
|
|
19288
19223
|
// src/resources/wallets/blockchain.ts
|
|
19289
19224
|
function createBlockchainWalletsResource(instanceId, client) {
|
|
19290
19225
|
return {
|
|
19291
|
-
list(
|
|
19226
|
+
list(customer_id) {
|
|
19292
19227
|
return client.get(
|
|
19293
|
-
`/instances/${instanceId}/
|
|
19228
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
|
|
19294
19229
|
);
|
|
19295
19230
|
},
|
|
19296
19231
|
createWithAddress(_a3) {
|
|
19297
19232
|
var _b = _a3, {
|
|
19298
|
-
|
|
19233
|
+
customer_id
|
|
19299
19234
|
} = _b, data = __objRest(_b, [
|
|
19300
|
-
"
|
|
19235
|
+
"customer_id"
|
|
19301
19236
|
]);
|
|
19302
19237
|
return client.post(
|
|
19303
|
-
`/instances/${instanceId}/
|
|
19238
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
19304
19239
|
__spreadProps(__spreadValues({}, data), {
|
|
19305
19240
|
is_account_abstraction: true
|
|
19306
19241
|
})
|
|
@@ -19308,36 +19243,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
19308
19243
|
},
|
|
19309
19244
|
createWithHash(_c) {
|
|
19310
19245
|
var _d = _c, {
|
|
19311
|
-
|
|
19246
|
+
customer_id
|
|
19312
19247
|
} = _d, data = __objRest(_d, [
|
|
19313
|
-
"
|
|
19248
|
+
"customer_id"
|
|
19314
19249
|
]);
|
|
19315
19250
|
return client.post(
|
|
19316
|
-
`/instances/${instanceId}/
|
|
19251
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
19317
19252
|
__spreadProps(__spreadValues({}, data), {
|
|
19318
19253
|
is_account_abstraction: false
|
|
19319
19254
|
})
|
|
19320
19255
|
);
|
|
19321
19256
|
},
|
|
19322
|
-
getWalletMessage(
|
|
19257
|
+
getWalletMessage(customer_id) {
|
|
19323
19258
|
return client.get(
|
|
19324
|
-
`/instances/${instanceId}/
|
|
19259
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
|
|
19325
19260
|
);
|
|
19326
19261
|
},
|
|
19327
19262
|
get({
|
|
19328
|
-
|
|
19263
|
+
customer_id,
|
|
19329
19264
|
id
|
|
19330
19265
|
}) {
|
|
19331
19266
|
return client.get(
|
|
19332
|
-
`/instances/${instanceId}/
|
|
19267
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
19333
19268
|
);
|
|
19334
19269
|
},
|
|
19335
19270
|
delete({
|
|
19336
|
-
|
|
19271
|
+
customer_id,
|
|
19337
19272
|
id
|
|
19338
19273
|
}) {
|
|
19339
19274
|
return client.delete(
|
|
19340
|
-
`/instances/${instanceId}/
|
|
19275
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
19341
19276
|
);
|
|
19342
19277
|
},
|
|
19343
19278
|
createAssetTrustline(address) {
|
|
@@ -19363,36 +19298,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
19363
19298
|
// src/resources/wallets/custodial.ts
|
|
19364
19299
|
function createCustodialWalletsResource(instanceId, client) {
|
|
19365
19300
|
return {
|
|
19366
|
-
list(
|
|
19367
|
-
return client.get(`/instances/${instanceId}/
|
|
19301
|
+
list(customer_id) {
|
|
19302
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
|
|
19368
19303
|
},
|
|
19369
19304
|
get({
|
|
19370
|
-
|
|
19305
|
+
customer_id,
|
|
19371
19306
|
id
|
|
19372
19307
|
}) {
|
|
19373
|
-
return client.get(`/instances/${instanceId}/
|
|
19308
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
19374
19309
|
},
|
|
19375
19310
|
create(_a3) {
|
|
19376
19311
|
var _b = _a3, {
|
|
19377
|
-
|
|
19312
|
+
customer_id
|
|
19378
19313
|
} = _b, data = __objRest(_b, [
|
|
19379
|
-
"
|
|
19314
|
+
"customer_id"
|
|
19380
19315
|
]);
|
|
19381
|
-
return client.post(`/instances/${instanceId}/
|
|
19316
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
|
|
19382
19317
|
},
|
|
19383
19318
|
getBalance({
|
|
19384
|
-
|
|
19319
|
+
customer_id,
|
|
19385
19320
|
id
|
|
19386
19321
|
}) {
|
|
19387
19322
|
return client.get(
|
|
19388
|
-
`/instances/${instanceId}/
|
|
19323
|
+
`/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
|
|
19389
19324
|
);
|
|
19390
19325
|
},
|
|
19391
19326
|
delete({
|
|
19392
|
-
|
|
19327
|
+
customer_id,
|
|
19393
19328
|
id
|
|
19394
19329
|
}) {
|
|
19395
|
-
return client.delete(`/instances/${instanceId}/
|
|
19330
|
+
return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
19396
19331
|
}
|
|
19397
19332
|
};
|
|
19398
19333
|
}
|
|
@@ -19402,32 +19337,32 @@ function createOfframpWalletsResource(instanceId, client) {
|
|
|
19402
19337
|
return {
|
|
19403
19338
|
list({
|
|
19404
19339
|
bank_account_id,
|
|
19405
|
-
|
|
19340
|
+
customer_id
|
|
19406
19341
|
}) {
|
|
19407
19342
|
return client.get(
|
|
19408
|
-
`/instances/${instanceId}/
|
|
19343
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
|
|
19409
19344
|
);
|
|
19410
19345
|
},
|
|
19411
19346
|
create(_a3) {
|
|
19412
19347
|
var _b = _a3, {
|
|
19413
|
-
|
|
19348
|
+
customer_id,
|
|
19414
19349
|
bank_account_id
|
|
19415
19350
|
} = _b, data = __objRest(_b, [
|
|
19416
|
-
"
|
|
19351
|
+
"customer_id",
|
|
19417
19352
|
"bank_account_id"
|
|
19418
19353
|
]);
|
|
19419
19354
|
return client.post(
|
|
19420
|
-
`/instances/${instanceId}/
|
|
19355
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
|
|
19421
19356
|
data
|
|
19422
19357
|
);
|
|
19423
19358
|
},
|
|
19424
19359
|
get({
|
|
19425
|
-
|
|
19360
|
+
customer_id,
|
|
19426
19361
|
bank_account_id,
|
|
19427
19362
|
id
|
|
19428
19363
|
}) {
|
|
19429
19364
|
return client.get(
|
|
19430
|
-
`/instances/${instanceId}/
|
|
19365
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
|
|
19431
19366
|
);
|
|
19432
19367
|
}
|
|
19433
19368
|
};
|
|
@@ -19504,9 +19439,6 @@ var BlindPay = class {
|
|
|
19504
19439
|
this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
|
|
19505
19440
|
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
19506
19441
|
});
|
|
19507
|
-
this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
|
|
19508
|
-
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
19509
|
-
});
|
|
19510
19442
|
this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
|
|
19511
19443
|
this.wallets = {
|
|
19512
19444
|
blockchain: createBlockchainWalletsResource(this.instanceId, this.api),
|
|
@@ -8,27 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-IJSACZHV.mjs";
|
|
12
|
+
import "../../chunk-VAVDEV6P.mjs";
|
|
13
|
+
import "../../chunk-TVOMVVOO.mjs";
|
|
14
|
+
import "../../chunk-YHI3J2CL.mjs";
|
|
15
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
-
import "../../chunk-Z6EYX4D3.mjs";
|
|
17
16
|
import "../../chunk-ISHZTBAN.mjs";
|
|
18
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-VGU72ZNI.mjs";
|
|
18
|
+
import "../../chunk-SWTOSLUI.mjs";
|
|
21
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-F5Z45GCA.mjs";
|
|
22
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
23
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
23
|
import "../../chunk-SLKVEQUY.mjs";
|
|
25
24
|
import "../../chunk-ALHMJWQN.mjs";
|
|
26
25
|
import "../../chunk-KYOUR4KX.mjs";
|
|
27
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
28
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
29
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
30
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
31
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-L23IOSI3.mjs";
|
|
32
31
|
import {
|
|
33
32
|
__async,
|
|
34
33
|
__commonJS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
|
|
3
3
|
|
|
4
4
|
type CreatePayinQuoteInput = {
|
|
5
5
|
blockchain_wallet_id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
|
|
3
3
|
|
|
4
4
|
type CreatePayinQuoteInput = {
|
|
5
5
|
blockchain_wallet_id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus,
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-DK8eD9f3.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
|
|
3
3
|
|
|
4
4
|
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
5
5
|
type Payout = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus,
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-DK8eD9f3.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
|
|
3
3
|
|
|
4
4
|
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
5
5
|
type Payout = {
|