tradly 1.1.54 → 1.1.56

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.
Files changed (2) hide show
  1. package/Roots/App.js +42 -1
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -2154,7 +2154,25 @@ class App {
2154
2154
  }
2155
2155
  }
2156
2156
 
2157
- //
2157
+ // Get Saved Cards
2158
+ async deleteSavedCard(param = { authKey, card_id }) {
2159
+ try {
2160
+ const [error, responseJson] = await network.networkCall({
2161
+ path: `${SAVED_CARD}/${param?.card_id}`,
2162
+ method: Method.DELETE,
2163
+ authKey: param.authKey,
2164
+ currency: param.currency,
2165
+ language: param.language,
2166
+ });
2167
+ if (error) {
2168
+ return error;
2169
+ } else {
2170
+ return responseJson;
2171
+ }
2172
+ } catch (error) {
2173
+ return error;
2174
+ }
2175
+ }
2158
2176
  async getSavedCards(param = { authKey }) {
2159
2177
  try {
2160
2178
  const [error, responseJson] = await network.networkCall({
@@ -2173,6 +2191,29 @@ class App {
2173
2191
  return error;
2174
2192
  }
2175
2193
  }
2194
+ //MARK:-  Donations list API 
2195
+ async getDonationsList(param = { authKey, listing_id, bodyParam }) {
2196
+ let url =
2197
+ param.bodyParam == undefined || param.bodyParam == ""
2198
+ ? ""
2199
+ : `?${serialization(param.bodyParam)}`;
2200
+ try {
2201
+ const [error, responseJson] = await network.networkCall({
2202
+ path: ORDERS + `/listings/donations` + url,
2203
+ method: Method.GET,
2204
+ authKey: param.authKey,
2205
+ currency: param.currency,
2206
+ language: param.language,
2207
+ });
2208
+ if (error) {
2209
+ return error;
2210
+ } else {
2211
+ return responseJson;
2212
+ }
2213
+ } catch (error) {
2214
+ return error;
2215
+ }
2216
+ }
2176
2217
  //MARK:-  ORDERS API 
2177
2218
  async getOrders(param = { authKey, bodyParam }) {
2178
2219
  let url =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.54",
3
+ "version": "1.1.56",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",