tradly 1.1.43 → 1.1.44
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 +86 -1
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -2023,6 +2023,68 @@ class App {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
+
//
|
|
2027
|
+
async mangoPayWithdrawCalc(param = { authKey, data }) {
|
|
2028
|
+
try {
|
|
2029
|
+
const [error, responseJson] = await network.networkCall({
|
|
2030
|
+
path: MANGO_PAY + "/withdraw/calculation",
|
|
2031
|
+
method: Method.POST,
|
|
2032
|
+
authKey: param.authKey,
|
|
2033
|
+
currency: param.currency,
|
|
2034
|
+
language: param.language,
|
|
2035
|
+
param: param.data,
|
|
2036
|
+
});
|
|
2037
|
+
if (error) {
|
|
2038
|
+
return error;
|
|
2039
|
+
} else {
|
|
2040
|
+
return responseJson;
|
|
2041
|
+
}
|
|
2042
|
+
} catch (error) {
|
|
2043
|
+
return error;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
//
|
|
2048
|
+
async mangoPayWithdrawInit(param = { authKey, data }) {
|
|
2049
|
+
try {
|
|
2050
|
+
const [error, responseJson] = await network.networkCall({
|
|
2051
|
+
path: MANGO_PAY + "/withdraw/init",
|
|
2052
|
+
method: Method.POST,
|
|
2053
|
+
authKey: param.authKey,
|
|
2054
|
+
currency: param.currency,
|
|
2055
|
+
language: param.language,
|
|
2056
|
+
param: param.data,
|
|
2057
|
+
});
|
|
2058
|
+
if (error) {
|
|
2059
|
+
return error;
|
|
2060
|
+
} else {
|
|
2061
|
+
return responseJson;
|
|
2062
|
+
}
|
|
2063
|
+
} catch (error) {
|
|
2064
|
+
return error;
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
//
|
|
2068
|
+
async mangoPayWithdrawConfirm(param = { authKey, data }) {
|
|
2069
|
+
try {
|
|
2070
|
+
const [error, responseJson] = await network.networkCall({
|
|
2071
|
+
path: MANGO_PAY + "/withdraw/confirm",
|
|
2072
|
+
method: Method.POST,
|
|
2073
|
+
authKey: param.authKey,
|
|
2074
|
+
currency: param.currency,
|
|
2075
|
+
language: param.language,
|
|
2076
|
+
param: param.data,
|
|
2077
|
+
});
|
|
2078
|
+
if (error) {
|
|
2079
|
+
return error;
|
|
2080
|
+
} else {
|
|
2081
|
+
return responseJson;
|
|
2082
|
+
}
|
|
2083
|
+
} catch (error) {
|
|
2084
|
+
return error;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2026
2088
|
//
|
|
2027
2089
|
async getSavedCards(param = { authKey }) {
|
|
2028
2090
|
try {
|
|
@@ -3066,7 +3128,7 @@ class App {
|
|
|
3066
3128
|
async storeBankDetails(param = { authKey, data, id }) {
|
|
3067
3129
|
try {
|
|
3068
3130
|
const [error, responseJson] = await network.networkCall({
|
|
3069
|
-
path: MANGO_PAY + `/bank_details
|
|
3131
|
+
path: MANGO_PAY + `/bank_details`,
|
|
3070
3132
|
method: Method.POST,
|
|
3071
3133
|
authKey: param.authKey,
|
|
3072
3134
|
currency: param.currency,
|
|
@@ -3102,6 +3164,29 @@ class App {
|
|
|
3102
3164
|
}
|
|
3103
3165
|
}
|
|
3104
3166
|
|
|
3167
|
+
async getMangopayWalletTransactions(param = { authKey, bodyParam }) {
|
|
3168
|
+
let url =
|
|
3169
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
3170
|
+
? ""
|
|
3171
|
+
: `?${serialization(param.bodyParam)}`;
|
|
3172
|
+
try {
|
|
3173
|
+
const [error, responseJson] = await network.networkCall({
|
|
3174
|
+
path: MANGO_PAY + "wallet/transactions" + url,
|
|
3175
|
+
method: Method.GET,
|
|
3176
|
+
authKey: param.authKey,
|
|
3177
|
+
currency: param.currency,
|
|
3178
|
+
language: param.language,
|
|
3179
|
+
});
|
|
3180
|
+
if (error) {
|
|
3181
|
+
return error;
|
|
3182
|
+
} else {
|
|
3183
|
+
return responseJson;
|
|
3184
|
+
}
|
|
3185
|
+
} catch (error) {
|
|
3186
|
+
return error;
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3105
3190
|
// TIMESLOT
|
|
3106
3191
|
async getTimeSlots(param = { authKey, bodyParam }) {
|
|
3107
3192
|
let url =
|