tradly 1.1.39 → 1.1.41
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/Constants/PathConstant.js +1 -1
- package/Roots/App.js +20 -0
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@ export const SUBSCRIPTION_MANAGE = "/v1/subscriptions/manage";
|
|
|
121
121
|
export const SUBSCRIPTION_EMAIL_TRIGGER = "/v1/subscriptions/email_trigger";
|
|
122
122
|
|
|
123
123
|
export const MANGO_PAY = "/v1/payments/mangopay";
|
|
124
|
-
export const SAVED_CARD = "/v1/
|
|
124
|
+
export const SAVED_CARD = "/v1/saved_cards";
|
|
125
125
|
|
|
126
126
|
export const OPP_MERCHANT = "/v1/payments/opp/merchant";
|
|
127
127
|
|
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 == ""
|