tradly 1.1.42 → 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 +104 -1
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -1845,6 +1845,24 @@ class App {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
|
|
1847
1847
|
//MARK:- KYC
|
|
1848
|
+
async getKycDetails(param = { authKey, id }) {
|
|
1849
|
+
try {
|
|
1850
|
+
const [error, responseJson] = await network.networkCall({
|
|
1851
|
+
path: MANGO_PAY + `/kyc_details`,
|
|
1852
|
+
method: Method.GET,
|
|
1853
|
+
authKey: param.authKey,
|
|
1854
|
+
currency: param.currency,
|
|
1855
|
+
language: param.language,
|
|
1856
|
+
});
|
|
1857
|
+
if (error) {
|
|
1858
|
+
return error;
|
|
1859
|
+
} else {
|
|
1860
|
+
return responseJson;
|
|
1861
|
+
}
|
|
1862
|
+
} catch (error) {
|
|
1863
|
+
return error;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1848
1866
|
async getStripeConnectAccount(param = { authKey, id }) {
|
|
1849
1867
|
try {
|
|
1850
1868
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -2005,6 +2023,68 @@ class App {
|
|
|
2005
2023
|
}
|
|
2006
2024
|
}
|
|
2007
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
|
+
|
|
2008
2088
|
//
|
|
2009
2089
|
async getSavedCards(param = { authKey }) {
|
|
2010
2090
|
try {
|
|
@@ -3048,7 +3128,7 @@ class App {
|
|
|
3048
3128
|
async storeBankDetails(param = { authKey, data, id }) {
|
|
3049
3129
|
try {
|
|
3050
3130
|
const [error, responseJson] = await network.networkCall({
|
|
3051
|
-
path: MANGO_PAY + `/bank_details
|
|
3131
|
+
path: MANGO_PAY + `/bank_details`,
|
|
3052
3132
|
method: Method.POST,
|
|
3053
3133
|
authKey: param.authKey,
|
|
3054
3134
|
currency: param.currency,
|
|
@@ -3084,6 +3164,29 @@ class App {
|
|
|
3084
3164
|
}
|
|
3085
3165
|
}
|
|
3086
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
|
+
|
|
3087
3190
|
// TIMESLOT
|
|
3088
3191
|
async getTimeSlots(param = { authKey, bodyParam }) {
|
|
3089
3192
|
let url =
|