@blindpay/node 3.10.0 → 4.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-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/chunk-SLKVEQUY.mjs +76 -0
- 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.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +148 -141
- package/dist/index.mjs +12 -12
- package/dist/resources/api-keys/api-keys.test.js +146 -139
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/available/available.test.js +146 -139
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
- package/dist/resources/bank-accounts/index.d.mts +29 -29
- package/dist/resources/bank-accounts/index.d.ts +29 -29
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
- package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
- package/dist/resources/{receivers → customers}/index.d.mts +23 -23
- package/dist/resources/{receivers → customers}/index.d.ts +23 -23
- package/dist/resources/{receivers → customers}/index.js +32 -25
- package/dist/resources/customers/index.mjs +9 -0
- package/dist/resources/fees/fees.test.js +146 -139
- package/dist/resources/fees/fees.test.mjs +7 -7
- package/dist/resources/instances/instances.test.js +146 -139
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/partner-fees.test.js +146 -139
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/payins-quotes.test.js +146 -139
- package/dist/resources/payins/payins-quotes.test.mjs +7 -7
- package/dist/resources/payins/payins.test.js +146 -139
- package/dist/resources/payins/payins.test.mjs +7 -7
- package/dist/resources/payouts/payouts.test.js +146 -139
- package/dist/resources/payouts/payouts.test.mjs +7 -7
- package/dist/resources/quotes/quotes.test.js +146 -139
- package/dist/resources/quotes/quotes.test.mjs +7 -7
- package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/transfers/transfers.test.js +146 -139
- package/dist/resources/transfers/transfers.test.mjs +7 -7
- package/dist/resources/upload/upload.test.js +146 -139
- package/dist/resources/upload/upload.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +7 -7
- package/dist/resources/virtual-accounts/index.d.ts +7 -7
- 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 +150 -143
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
- package/dist/resources/wallets/blockchain.d.mts +13 -13
- package/dist/resources/wallets/blockchain.d.ts +13 -13
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +154 -147
- package/dist/resources/wallets/blockchain.test.mjs +15 -15
- package/dist/resources/wallets/custodial.d.mts +9 -9
- package/dist/resources/wallets/custodial.d.ts +9 -9
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +150 -143
- package/dist/resources/wallets/custodial.test.mjs +11 -11
- package/dist/resources/wallets/offramp.d.mts +7 -7
- package/dist/resources/wallets/offramp.d.ts +7 -7
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +152 -145
- package/dist/resources/wallets/offramp.test.mjs +13 -13
- package/dist/resources/webhooks/webhooks.test.js +146 -139
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-YIZJM2GU.mjs +0 -69
- package/dist/resources/receivers/index.mjs +0 -9
- /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
- /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
|
@@ -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.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18754,141 +18754,203 @@ 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
|
}
|
|
18889
18889
|
};
|
|
18890
18890
|
}
|
|
18891
18891
|
|
|
18892
|
+
// src/resources/customers/index.ts
|
|
18893
|
+
function createCustomersResource(instanceId, client) {
|
|
18894
|
+
return {
|
|
18895
|
+
list(params) {
|
|
18896
|
+
const wireParams = params ? Object.fromEntries(
|
|
18897
|
+
Object.entries(params).map(([k2, v2]) => {
|
|
18898
|
+
if (k2 === "customer_id") return ["receiver_id", v2];
|
|
18899
|
+
if (k2 === "customer_name") return ["receiver_name", v2];
|
|
18900
|
+
return [k2, v2];
|
|
18901
|
+
})
|
|
18902
|
+
) : void 0;
|
|
18903
|
+
const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
|
|
18904
|
+
return client.get(`/instances/${instanceId}/customers${queryParams}`);
|
|
18905
|
+
},
|
|
18906
|
+
createIndividualWithStandardKYC(data) {
|
|
18907
|
+
return client.post(`/instances/${instanceId}/customers`, __spreadValues({
|
|
18908
|
+
kyc_type: "standard",
|
|
18909
|
+
type: "individual"
|
|
18910
|
+
}, data));
|
|
18911
|
+
},
|
|
18912
|
+
createIndividualWithEnhancedKYC(data) {
|
|
18913
|
+
return client.post(`/instances/${instanceId}/customers`, __spreadValues({
|
|
18914
|
+
kyc_type: "enhanced",
|
|
18915
|
+
type: "individual"
|
|
18916
|
+
}, data));
|
|
18917
|
+
},
|
|
18918
|
+
createBusinessWithStandardKYB(data) {
|
|
18919
|
+
return client.post(`/instances/${instanceId}/customers`, __spreadValues({
|
|
18920
|
+
kyc_type: "standard",
|
|
18921
|
+
type: "business"
|
|
18922
|
+
}, data));
|
|
18923
|
+
},
|
|
18924
|
+
get(customer_id) {
|
|
18925
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}`);
|
|
18926
|
+
},
|
|
18927
|
+
update(_a3) {
|
|
18928
|
+
var _b = _a3, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
|
|
18929
|
+
return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
|
|
18930
|
+
},
|
|
18931
|
+
delete(customer_id) {
|
|
18932
|
+
return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
|
|
18933
|
+
},
|
|
18934
|
+
getLimits(customer_id) {
|
|
18935
|
+
return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
|
|
18936
|
+
},
|
|
18937
|
+
getLimitIncreaseRequests(customer_id) {
|
|
18938
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
|
|
18939
|
+
},
|
|
18940
|
+
requestLimitIncrease(_c) {
|
|
18941
|
+
var _d = _c, {
|
|
18942
|
+
customer_id
|
|
18943
|
+
} = _d, data = __objRest(_d, [
|
|
18944
|
+
"customer_id"
|
|
18945
|
+
]);
|
|
18946
|
+
return client.post(
|
|
18947
|
+
`/instances/${instanceId}/customers/${customer_id}/limit-increase`,
|
|
18948
|
+
data
|
|
18949
|
+
);
|
|
18950
|
+
}
|
|
18951
|
+
};
|
|
18952
|
+
}
|
|
18953
|
+
|
|
18892
18954
|
// src/resources/fees/index.ts
|
|
18893
18955
|
function createFeesResource(instanceId, client) {
|
|
18894
18956
|
return {
|
|
@@ -19035,61 +19097,6 @@ function createQuotesResource(instanceId, client) {
|
|
|
19035
19097
|
};
|
|
19036
19098
|
}
|
|
19037
19099
|
|
|
19038
|
-
// src/resources/receivers/index.ts
|
|
19039
|
-
function createReceiversResource(instanceId, client) {
|
|
19040
|
-
return {
|
|
19041
|
-
list(params) {
|
|
19042
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
19043
|
-
return client.get(`/instances/${instanceId}/receivers${queryParams}`);
|
|
19044
|
-
},
|
|
19045
|
-
createIndividualWithStandardKYC(data) {
|
|
19046
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19047
|
-
kyc_type: "standard",
|
|
19048
|
-
type: "individual"
|
|
19049
|
-
}, data));
|
|
19050
|
-
},
|
|
19051
|
-
createIndividualWithEnhancedKYC(data) {
|
|
19052
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19053
|
-
kyc_type: "enhanced",
|
|
19054
|
-
type: "individual"
|
|
19055
|
-
}, data));
|
|
19056
|
-
},
|
|
19057
|
-
createBusinessWithStandardKYB(data) {
|
|
19058
|
-
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19059
|
-
kyc_type: "standard",
|
|
19060
|
-
type: "business"
|
|
19061
|
-
}, data));
|
|
19062
|
-
},
|
|
19063
|
-
get(receiver_id) {
|
|
19064
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19065
|
-
},
|
|
19066
|
-
update(_a3) {
|
|
19067
|
-
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19068
|
-
return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19069
|
-
},
|
|
19070
|
-
delete(receiver_id) {
|
|
19071
|
-
return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19072
|
-
},
|
|
19073
|
-
getLimits(receiver_id) {
|
|
19074
|
-
return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
|
|
19075
|
-
},
|
|
19076
|
-
getLimitIncreaseRequests(receiver_id) {
|
|
19077
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
|
|
19078
|
-
},
|
|
19079
|
-
requestLimitIncrease(_c) {
|
|
19080
|
-
var _d = _c, {
|
|
19081
|
-
receiver_id
|
|
19082
|
-
} = _d, data = __objRest(_d, [
|
|
19083
|
-
"receiver_id"
|
|
19084
|
-
]);
|
|
19085
|
-
return client.post(
|
|
19086
|
-
`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`,
|
|
19087
|
-
data
|
|
19088
|
-
);
|
|
19089
|
-
}
|
|
19090
|
-
};
|
|
19091
|
-
}
|
|
19092
|
-
|
|
19093
19100
|
// src/resources/terms-of-service/index.ts
|
|
19094
19101
|
function createTermsOfServiceResource(instanceId, client) {
|
|
19095
19102
|
return {
|
|
@@ -19175,38 +19182,38 @@ function createUploadResource(baseUrl, headers) {
|
|
|
19175
19182
|
// src/resources/virtual-accounts/index.ts
|
|
19176
19183
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19177
19184
|
return {
|
|
19178
|
-
list(
|
|
19179
|
-
return client.get(`/instances/${instanceId}/
|
|
19185
|
+
list(customer_id) {
|
|
19186
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`);
|
|
19180
19187
|
},
|
|
19181
19188
|
get({
|
|
19182
|
-
|
|
19189
|
+
customer_id,
|
|
19183
19190
|
id
|
|
19184
19191
|
}) {
|
|
19185
19192
|
return client.get(
|
|
19186
|
-
`/instances/${instanceId}/
|
|
19193
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`
|
|
19187
19194
|
);
|
|
19188
19195
|
},
|
|
19189
19196
|
create(_a3) {
|
|
19190
19197
|
var _b = _a3, {
|
|
19191
|
-
|
|
19198
|
+
customer_id
|
|
19192
19199
|
} = _b, data = __objRest(_b, [
|
|
19193
|
-
"
|
|
19200
|
+
"customer_id"
|
|
19194
19201
|
]);
|
|
19195
19202
|
return client.post(
|
|
19196
|
-
`/instances/${instanceId}/
|
|
19203
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`,
|
|
19197
19204
|
data
|
|
19198
19205
|
);
|
|
19199
19206
|
},
|
|
19200
19207
|
update(_c) {
|
|
19201
19208
|
var _d = _c, {
|
|
19202
|
-
|
|
19209
|
+
customer_id,
|
|
19203
19210
|
id
|
|
19204
19211
|
} = _d, data = __objRest(_d, [
|
|
19205
|
-
"
|
|
19212
|
+
"customer_id",
|
|
19206
19213
|
"id"
|
|
19207
19214
|
]);
|
|
19208
19215
|
return client.put(
|
|
19209
|
-
`/instances/${instanceId}/
|
|
19216
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`,
|
|
19210
19217
|
data
|
|
19211
19218
|
);
|
|
19212
19219
|
}
|
|
@@ -19216,19 +19223,19 @@ function createVirtualAccountsResource(instanceId, client) {
|
|
|
19216
19223
|
// src/resources/wallets/blockchain.ts
|
|
19217
19224
|
function createBlockchainWalletsResource(instanceId, client) {
|
|
19218
19225
|
return {
|
|
19219
|
-
list(
|
|
19226
|
+
list(customer_id) {
|
|
19220
19227
|
return client.get(
|
|
19221
|
-
`/instances/${instanceId}/
|
|
19228
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
|
|
19222
19229
|
);
|
|
19223
19230
|
},
|
|
19224
19231
|
createWithAddress(_a3) {
|
|
19225
19232
|
var _b = _a3, {
|
|
19226
|
-
|
|
19233
|
+
customer_id
|
|
19227
19234
|
} = _b, data = __objRest(_b, [
|
|
19228
|
-
"
|
|
19235
|
+
"customer_id"
|
|
19229
19236
|
]);
|
|
19230
19237
|
return client.post(
|
|
19231
|
-
`/instances/${instanceId}/
|
|
19238
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
19232
19239
|
__spreadProps(__spreadValues({}, data), {
|
|
19233
19240
|
is_account_abstraction: true
|
|
19234
19241
|
})
|
|
@@ -19236,36 +19243,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
19236
19243
|
},
|
|
19237
19244
|
createWithHash(_c) {
|
|
19238
19245
|
var _d = _c, {
|
|
19239
|
-
|
|
19246
|
+
customer_id
|
|
19240
19247
|
} = _d, data = __objRest(_d, [
|
|
19241
|
-
"
|
|
19248
|
+
"customer_id"
|
|
19242
19249
|
]);
|
|
19243
19250
|
return client.post(
|
|
19244
|
-
`/instances/${instanceId}/
|
|
19251
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
19245
19252
|
__spreadProps(__spreadValues({}, data), {
|
|
19246
19253
|
is_account_abstraction: false
|
|
19247
19254
|
})
|
|
19248
19255
|
);
|
|
19249
19256
|
},
|
|
19250
|
-
getWalletMessage(
|
|
19257
|
+
getWalletMessage(customer_id) {
|
|
19251
19258
|
return client.get(
|
|
19252
|
-
`/instances/${instanceId}/
|
|
19259
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
|
|
19253
19260
|
);
|
|
19254
19261
|
},
|
|
19255
19262
|
get({
|
|
19256
|
-
|
|
19263
|
+
customer_id,
|
|
19257
19264
|
id
|
|
19258
19265
|
}) {
|
|
19259
19266
|
return client.get(
|
|
19260
|
-
`/instances/${instanceId}/
|
|
19267
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
19261
19268
|
);
|
|
19262
19269
|
},
|
|
19263
19270
|
delete({
|
|
19264
|
-
|
|
19271
|
+
customer_id,
|
|
19265
19272
|
id
|
|
19266
19273
|
}) {
|
|
19267
19274
|
return client.delete(
|
|
19268
|
-
`/instances/${instanceId}/
|
|
19275
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
19269
19276
|
);
|
|
19270
19277
|
},
|
|
19271
19278
|
createAssetTrustline(address) {
|
|
@@ -19291,36 +19298,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
19291
19298
|
// src/resources/wallets/custodial.ts
|
|
19292
19299
|
function createCustodialWalletsResource(instanceId, client) {
|
|
19293
19300
|
return {
|
|
19294
|
-
list(
|
|
19295
|
-
return client.get(`/instances/${instanceId}/
|
|
19301
|
+
list(customer_id) {
|
|
19302
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
|
|
19296
19303
|
},
|
|
19297
19304
|
get({
|
|
19298
|
-
|
|
19305
|
+
customer_id,
|
|
19299
19306
|
id
|
|
19300
19307
|
}) {
|
|
19301
|
-
return client.get(`/instances/${instanceId}/
|
|
19308
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
19302
19309
|
},
|
|
19303
19310
|
create(_a3) {
|
|
19304
19311
|
var _b = _a3, {
|
|
19305
|
-
|
|
19312
|
+
customer_id
|
|
19306
19313
|
} = _b, data = __objRest(_b, [
|
|
19307
|
-
"
|
|
19314
|
+
"customer_id"
|
|
19308
19315
|
]);
|
|
19309
|
-
return client.post(`/instances/${instanceId}/
|
|
19316
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
|
|
19310
19317
|
},
|
|
19311
19318
|
getBalance({
|
|
19312
|
-
|
|
19319
|
+
customer_id,
|
|
19313
19320
|
id
|
|
19314
19321
|
}) {
|
|
19315
19322
|
return client.get(
|
|
19316
|
-
`/instances/${instanceId}/
|
|
19323
|
+
`/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
|
|
19317
19324
|
);
|
|
19318
19325
|
},
|
|
19319
19326
|
delete({
|
|
19320
|
-
|
|
19327
|
+
customer_id,
|
|
19321
19328
|
id
|
|
19322
19329
|
}) {
|
|
19323
|
-
return client.delete(`/instances/${instanceId}/
|
|
19330
|
+
return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
19324
19331
|
}
|
|
19325
19332
|
};
|
|
19326
19333
|
}
|
|
@@ -19330,32 +19337,32 @@ function createOfframpWalletsResource(instanceId, client) {
|
|
|
19330
19337
|
return {
|
|
19331
19338
|
list({
|
|
19332
19339
|
bank_account_id,
|
|
19333
|
-
|
|
19340
|
+
customer_id
|
|
19334
19341
|
}) {
|
|
19335
19342
|
return client.get(
|
|
19336
|
-
`/instances/${instanceId}/
|
|
19343
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
|
|
19337
19344
|
);
|
|
19338
19345
|
},
|
|
19339
19346
|
create(_a3) {
|
|
19340
19347
|
var _b = _a3, {
|
|
19341
|
-
|
|
19348
|
+
customer_id,
|
|
19342
19349
|
bank_account_id
|
|
19343
19350
|
} = _b, data = __objRest(_b, [
|
|
19344
|
-
"
|
|
19351
|
+
"customer_id",
|
|
19345
19352
|
"bank_account_id"
|
|
19346
19353
|
]);
|
|
19347
19354
|
return client.post(
|
|
19348
|
-
`/instances/${instanceId}/
|
|
19355
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
|
|
19349
19356
|
data
|
|
19350
19357
|
);
|
|
19351
19358
|
},
|
|
19352
19359
|
get({
|
|
19353
|
-
|
|
19360
|
+
customer_id,
|
|
19354
19361
|
bank_account_id,
|
|
19355
19362
|
id
|
|
19356
19363
|
}) {
|
|
19357
19364
|
return client.get(
|
|
19358
|
-
`/instances/${instanceId}/
|
|
19365
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
|
|
19359
19366
|
);
|
|
19360
19367
|
}
|
|
19361
19368
|
};
|
|
@@ -19429,7 +19436,7 @@ var BlindPay = class {
|
|
|
19429
19436
|
this.transfers = createTransfersResource(this.instanceId, this.api);
|
|
19430
19437
|
this.fees = createFeesResource(this.instanceId, this.api);
|
|
19431
19438
|
this.upload = createUploadResource(this.baseUrl, this.headers);
|
|
19432
|
-
this.
|
|
19439
|
+
this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
|
|
19433
19440
|
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
19434
19441
|
});
|
|
19435
19442
|
this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
|
|
@@ -19533,13 +19540,13 @@ var BlindPay = class {
|
|
|
19533
19540
|
}
|
|
19534
19541
|
};
|
|
19535
19542
|
|
|
19536
|
-
// src/resources/
|
|
19537
|
-
describe("
|
|
19543
|
+
// src/resources/customers/customers.test.ts
|
|
19544
|
+
describe("Customers", () => {
|
|
19538
19545
|
afterEach(() => fetchMock.resetMocks());
|
|
19539
19546
|
const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
|
|
19540
|
-
describe("List
|
|
19541
|
-
it("should list
|
|
19542
|
-
const
|
|
19547
|
+
describe("List customers", () => {
|
|
19548
|
+
it("should list customers", () => __async(null, null, function* () {
|
|
19549
|
+
const mockedCustomers = {
|
|
19543
19550
|
data: [
|
|
19544
19551
|
{
|
|
19545
19552
|
id: "re_Euw7HN4OdxPn",
|
|
@@ -19699,23 +19706,23 @@ describe("Receivers", () => {
|
|
|
19699
19706
|
prev_page: ""
|
|
19700
19707
|
}
|
|
19701
19708
|
};
|
|
19702
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19709
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomers), {
|
|
19703
19710
|
headers: { "Content-Type": "application/json" }
|
|
19704
19711
|
});
|
|
19705
|
-
const { data, error } = yield blindpay.
|
|
19712
|
+
const { data, error } = yield blindpay.customers.list();
|
|
19706
19713
|
globalExpect(error).toBeNull();
|
|
19707
|
-
globalExpect(data).toEqual(
|
|
19714
|
+
globalExpect(data).toEqual(mockedCustomers);
|
|
19708
19715
|
}));
|
|
19709
19716
|
});
|
|
19710
|
-
describe("Create
|
|
19711
|
-
it("should create an individual
|
|
19712
|
-
const
|
|
19717
|
+
describe("Create customer", () => {
|
|
19718
|
+
it("should create an individual customer with standard KYC", () => __async(null, null, function* () {
|
|
19719
|
+
const mockedCustomer = {
|
|
19713
19720
|
id: "re_Euw7HN4OdxPn"
|
|
19714
19721
|
};
|
|
19715
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19722
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomer), {
|
|
19716
19723
|
headers: { "Content-Type": "application/json" }
|
|
19717
19724
|
});
|
|
19718
|
-
const { data, error } = yield blindpay.
|
|
19725
|
+
const { data, error } = yield blindpay.customers.createIndividualWithStandardKYC({
|
|
19719
19726
|
email: "bernardo.simonassi@gmail.com",
|
|
19720
19727
|
country: "BR",
|
|
19721
19728
|
tax_id: "12345678900",
|
|
@@ -19739,14 +19746,14 @@ describe("Receivers", () => {
|
|
|
19739
19746
|
globalExpect(error).toBeNull();
|
|
19740
19747
|
globalExpect(data).toEqual({ id: "re_Euw7HN4OdxPn" });
|
|
19741
19748
|
}));
|
|
19742
|
-
it("should create an individual
|
|
19743
|
-
const
|
|
19749
|
+
it("should create an individual customer with enhanced KYC", () => __async(null, null, function* () {
|
|
19750
|
+
const mockedCustomer = {
|
|
19744
19751
|
id: "re_YuaMcI2B8zbQ"
|
|
19745
19752
|
};
|
|
19746
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19753
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomer), {
|
|
19747
19754
|
headers: { "Content-Type": "application/json" }
|
|
19748
19755
|
});
|
|
19749
|
-
const { data, error } = yield blindpay.
|
|
19756
|
+
const { data, error } = yield blindpay.customers.createIndividualWithEnhancedKYC({
|
|
19750
19757
|
email: "bernardo.simonassi@gmail.com",
|
|
19751
19758
|
country: "BR",
|
|
19752
19759
|
tax_id: "12345678900",
|
|
@@ -19775,14 +19782,14 @@ describe("Receivers", () => {
|
|
|
19775
19782
|
globalExpect(error).toBeNull();
|
|
19776
19783
|
globalExpect(data).toEqual({ id: "re_YuaMcI2B8zbQ" });
|
|
19777
19784
|
}));
|
|
19778
|
-
it("should create a business
|
|
19779
|
-
const
|
|
19785
|
+
it("should create a business customer with standard KYB", () => __async(null, null, function* () {
|
|
19786
|
+
const mockedCustomer = {
|
|
19780
19787
|
id: "re_IOxAUL24LG7P"
|
|
19781
19788
|
};
|
|
19782
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19789
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomer), {
|
|
19783
19790
|
headers: { "Content-Type": "application/json" }
|
|
19784
19791
|
});
|
|
19785
|
-
const { data, error } = yield blindpay.
|
|
19792
|
+
const { data, error } = yield blindpay.customers.createBusinessWithStandardKYB({
|
|
19786
19793
|
email: "contato@empresa.com.br",
|
|
19787
19794
|
country: "BR",
|
|
19788
19795
|
tax_id: "20096178000195",
|
|
@@ -19835,9 +19842,9 @@ describe("Receivers", () => {
|
|
|
19835
19842
|
globalExpect(data).toEqual({ id: "re_IOxAUL24LG7P" });
|
|
19836
19843
|
}));
|
|
19837
19844
|
});
|
|
19838
|
-
describe("Get
|
|
19839
|
-
it("should get a
|
|
19840
|
-
const
|
|
19845
|
+
describe("Get customer", () => {
|
|
19846
|
+
it("should get a customer with new fields", () => __async(null, null, function* () {
|
|
19847
|
+
const mockedCustomer = {
|
|
19841
19848
|
id: "re_YuaMcI2B8zbQ",
|
|
19842
19849
|
is_tos_accepted: true,
|
|
19843
19850
|
type: "individual",
|
|
@@ -19894,15 +19901,15 @@ describe("Receivers", () => {
|
|
|
19894
19901
|
external_id: "ext_123",
|
|
19895
19902
|
is_fbo: false
|
|
19896
19903
|
};
|
|
19897
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19904
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomer), {
|
|
19898
19905
|
headers: { "Content-Type": "application/json" }
|
|
19899
19906
|
});
|
|
19900
|
-
const { data, error } = yield blindpay.
|
|
19907
|
+
const { data, error } = yield blindpay.customers.get("re_YuaMcI2B8zbQ");
|
|
19901
19908
|
globalExpect(error).toBeNull();
|
|
19902
|
-
globalExpect(data).toEqual(
|
|
19909
|
+
globalExpect(data).toEqual(mockedCustomer);
|
|
19903
19910
|
}));
|
|
19904
|
-
it("should get a
|
|
19905
|
-
const
|
|
19911
|
+
it("should get a customer", () => __async(null, null, function* () {
|
|
19912
|
+
const mockedCustomer = {
|
|
19906
19913
|
id: "re_YuaMcI2B8zbQ",
|
|
19907
19914
|
is_tos_accepted: true,
|
|
19908
19915
|
type: "individual",
|
|
@@ -19952,21 +19959,21 @@ describe("Receivers", () => {
|
|
|
19952
19959
|
monthly: 1e6
|
|
19953
19960
|
}
|
|
19954
19961
|
};
|
|
19955
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
19962
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomer), {
|
|
19956
19963
|
headers: { "Content-Type": "application/json" }
|
|
19957
19964
|
});
|
|
19958
|
-
const { data, error } = yield blindpay.
|
|
19965
|
+
const { data, error } = yield blindpay.customers.get("re_YuaMcI2B8zbQ");
|
|
19959
19966
|
globalExpect(error).toBeNull();
|
|
19960
|
-
globalExpect(data).toEqual(
|
|
19967
|
+
globalExpect(data).toEqual(mockedCustomer);
|
|
19961
19968
|
}));
|
|
19962
19969
|
});
|
|
19963
|
-
describe("Update
|
|
19964
|
-
it("should update a
|
|
19970
|
+
describe("Update customer", () => {
|
|
19971
|
+
it("should update a customer", () => __async(null, null, function* () {
|
|
19965
19972
|
fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
|
|
19966
19973
|
headers: { "Content-Type": "application/json" }
|
|
19967
19974
|
});
|
|
19968
|
-
const { data, error } = yield blindpay.
|
|
19969
|
-
|
|
19975
|
+
const { data, error } = yield blindpay.customers.update({
|
|
19976
|
+
customer_id: "re_YuaMcI2B8zbQ",
|
|
19970
19977
|
email: "bernardo.simonassi@gmail.com",
|
|
19971
19978
|
tax_id: "12345678900",
|
|
19972
19979
|
address_line_1: "Av. Paulista, 1000",
|
|
@@ -20026,19 +20033,19 @@ describe("Receivers", () => {
|
|
|
20026
20033
|
globalExpect(data).toEqual({ data: null });
|
|
20027
20034
|
}));
|
|
20028
20035
|
});
|
|
20029
|
-
describe("Delete
|
|
20030
|
-
it("should delete a
|
|
20036
|
+
describe("Delete customer", () => {
|
|
20037
|
+
it("should delete a customer", () => __async(null, null, function* () {
|
|
20031
20038
|
fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
|
|
20032
20039
|
headers: { "Content-Type": "application/json" }
|
|
20033
20040
|
});
|
|
20034
|
-
const { data, error } = yield blindpay.
|
|
20041
|
+
const { data, error } = yield blindpay.customers.delete("re_YuaMcI2B8zbQ");
|
|
20035
20042
|
globalExpect(error).toBeNull();
|
|
20036
20043
|
globalExpect(data).toEqual({ data: null });
|
|
20037
20044
|
}));
|
|
20038
20045
|
});
|
|
20039
|
-
describe("Get
|
|
20040
|
-
it("should get
|
|
20041
|
-
const
|
|
20046
|
+
describe("Get customer limits", () => {
|
|
20047
|
+
it("should get customer limits", () => __async(null, null, function* () {
|
|
20048
|
+
const mockedCustomerLimits = {
|
|
20042
20049
|
limits: {
|
|
20043
20050
|
payin: {
|
|
20044
20051
|
daily: 1e4,
|
|
@@ -20050,20 +20057,20 @@ describe("Receivers", () => {
|
|
|
20050
20057
|
}
|
|
20051
20058
|
}
|
|
20052
20059
|
};
|
|
20053
|
-
fetchMock.mockResponseOnce(JSON.stringify(
|
|
20060
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedCustomerLimits), {
|
|
20054
20061
|
headers: { "Content-Type": "application/json" }
|
|
20055
20062
|
});
|
|
20056
|
-
const { data, error } = yield blindpay.
|
|
20063
|
+
const { data, error } = yield blindpay.customers.getLimits("re_YuaMcI2B8zbQ");
|
|
20057
20064
|
globalExpect(error).toBeNull();
|
|
20058
|
-
globalExpect(data).toEqual(
|
|
20065
|
+
globalExpect(data).toEqual(mockedCustomerLimits);
|
|
20059
20066
|
}));
|
|
20060
20067
|
});
|
|
20061
20068
|
describe("Get limit increase requests", () => {
|
|
20062
|
-
it("should get limit increase requests for a
|
|
20069
|
+
it("should get limit increase requests for a customer", () => __async(null, null, function* () {
|
|
20063
20070
|
const mockedLimitIncreaseRequests = [
|
|
20064
20071
|
{
|
|
20065
20072
|
id: "rl_000000000000",
|
|
20066
|
-
|
|
20073
|
+
customer_id: "re_YuaMcI2B8zbQ",
|
|
20067
20074
|
status: "in_review",
|
|
20068
20075
|
daily: 5e4,
|
|
20069
20076
|
monthly: 25e4,
|
|
@@ -20075,7 +20082,7 @@ describe("Receivers", () => {
|
|
|
20075
20082
|
},
|
|
20076
20083
|
{
|
|
20077
20084
|
id: "rl_000000000000",
|
|
20078
|
-
|
|
20085
|
+
customer_id: "re_YuaMcI2B8zbQ",
|
|
20079
20086
|
status: "approved",
|
|
20080
20087
|
daily: 3e4,
|
|
20081
20088
|
monthly: 15e4,
|
|
@@ -20089,7 +20096,7 @@ describe("Receivers", () => {
|
|
|
20089
20096
|
fetchMock.mockResponseOnce(JSON.stringify(mockedLimitIncreaseRequests), {
|
|
20090
20097
|
headers: { "Content-Type": "application/json" }
|
|
20091
20098
|
});
|
|
20092
|
-
const { data, error } = yield blindpay.
|
|
20099
|
+
const { data, error } = yield blindpay.customers.getLimitIncreaseRequests("re_YuaMcI2B8zbQ");
|
|
20093
20100
|
globalExpect(error).toBeNull();
|
|
20094
20101
|
globalExpect(data).toEqual(mockedLimitIncreaseRequests);
|
|
20095
20102
|
}));
|
|
@@ -20099,7 +20106,7 @@ describe("Receivers", () => {
|
|
|
20099
20106
|
const mockedLimitIncreaseRequests = [
|
|
20100
20107
|
{
|
|
20101
20108
|
id: "rl_000000000000",
|
|
20102
|
-
|
|
20109
|
+
customer_id: "re_YuaMcI2B8zbQ",
|
|
20103
20110
|
status: "approved",
|
|
20104
20111
|
daily: 5e4,
|
|
20105
20112
|
monthly: 25e4,
|
|
@@ -20116,21 +20123,21 @@ describe("Receivers", () => {
|
|
|
20116
20123
|
fetchMock.mockResponseOnce(JSON.stringify(mockedLimitIncreaseRequests), {
|
|
20117
20124
|
headers: { "Content-Type": "application/json" }
|
|
20118
20125
|
});
|
|
20119
|
-
const { data, error } = yield blindpay.
|
|
20126
|
+
const { data, error } = yield blindpay.customers.getLimitIncreaseRequests("re_YuaMcI2B8zbQ");
|
|
20120
20127
|
globalExpect(error).toBeNull();
|
|
20121
20128
|
globalExpect(data).toEqual(mockedLimitIncreaseRequests);
|
|
20122
20129
|
}));
|
|
20123
20130
|
});
|
|
20124
20131
|
describe("Request limit increase", () => {
|
|
20125
|
-
it("should request a limit increase for a
|
|
20132
|
+
it("should request a limit increase for a customer", () => __async(null, null, function* () {
|
|
20126
20133
|
const mockedResponse = {
|
|
20127
20134
|
id: "rl_000000000000"
|
|
20128
20135
|
};
|
|
20129
20136
|
fetchMock.mockResponseOnce(JSON.stringify(mockedResponse), {
|
|
20130
20137
|
headers: { "Content-Type": "application/json" }
|
|
20131
20138
|
});
|
|
20132
|
-
const { data, error } = yield blindpay.
|
|
20133
|
-
|
|
20139
|
+
const { data, error } = yield blindpay.customers.requestLimitIncrease({
|
|
20140
|
+
customer_id: "re_YuaMcI2B8zbQ",
|
|
20134
20141
|
daily: 1e5,
|
|
20135
20142
|
monthly: 5e5,
|
|
20136
20143
|
per_transaction: 5e4,
|