tradly 1.1.39 → 1.1.40
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/Roots/App.js +20 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -3263,7 +3263,27 @@ class App {
|
|
|
3263
3263
|
return error;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
|
+
//
|
|
3267
|
+
async getMangoPayWalletBalance(param = { authKey }) {
|
|
3268
|
+
try {
|
|
3269
|
+
const [error, responseJson] = await network.networkCall({
|
|
3270
|
+
path: `${MANGO_PAY}/wallet/balance`,
|
|
3271
|
+
method: Method.GET,
|
|
3272
|
+
authKey: param.authKey,
|
|
3273
|
+
currency: param.currency,
|
|
3274
|
+
language: param.language,
|
|
3275
|
+
});
|
|
3276
|
+
if (error) {
|
|
3277
|
+
return error;
|
|
3278
|
+
} else {
|
|
3279
|
+
return responseJson;
|
|
3280
|
+
}
|
|
3281
|
+
} catch (error) {
|
|
3282
|
+
return error;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3266
3285
|
|
|
3286
|
+
//
|
|
3267
3287
|
async getWalletTransactions(param = { bodyParam, authKey }) {
|
|
3268
3288
|
let url =
|
|
3269
3289
|
param.bodyParam == undefined || param.bodyParam == ""
|