tradly 1.1.54 → 1.1.55
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 +23 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -2173,6 +2173,29 @@ class App {
|
|
|
2173
2173
|
return error;
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
|
+
//MARK:- Donations list API
|
|
2177
|
+
async getDonationsList(param = { authKey, listing_id, bodyParam }) {
|
|
2178
|
+
let url =
|
|
2179
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
2180
|
+
? ""
|
|
2181
|
+
: `?${serialization(param.bodyParam)}`;
|
|
2182
|
+
try {
|
|
2183
|
+
const [error, responseJson] = await network.networkCall({
|
|
2184
|
+
path: ORDERS + `/listings/donations` + url,
|
|
2185
|
+
method: Method.GET,
|
|
2186
|
+
authKey: param.authKey,
|
|
2187
|
+
currency: param.currency,
|
|
2188
|
+
language: param.language,
|
|
2189
|
+
});
|
|
2190
|
+
if (error) {
|
|
2191
|
+
return error;
|
|
2192
|
+
} else {
|
|
2193
|
+
return responseJson;
|
|
2194
|
+
}
|
|
2195
|
+
} catch (error) {
|
|
2196
|
+
return error;
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2176
2199
|
//MARK:- ORDERS API
|
|
2177
2200
|
async getOrders(param = { authKey, bodyParam }) {
|
|
2178
2201
|
let url =
|