tradly 1.1.46 → 1.1.48

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 +27 -3
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -2004,7 +2004,7 @@ class App {
2004
2004
  }
2005
2005
  }
2006
2006
  //
2007
- async PayINMangoPay(param = { authKey, data }) {
2007
+ async PayINMangoPayByCards(param = { authKey, data }) {
2008
2008
  try {
2009
2009
  const [error, responseJson] = await network.networkCall({
2010
2010
  path: MANGO_PAY + "/pay_in",
@@ -2023,6 +2023,26 @@ class App {
2023
2023
  return error;
2024
2024
  }
2025
2025
  }
2026
+ //
2027
+ async PayINMangoPayByBank(param = { authKey, data }) {
2028
+ try {
2029
+ const [error, responseJson] = await network.networkCall({
2030
+ path: MANGO_PAY + "/bankwire_pay_in",
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
+ }
2026
2046
 
2027
2047
  //
2028
2048
  async mangoPayWithdrawCalc(param = { authKey, data }) {
@@ -2355,11 +2375,15 @@ class App {
2355
2375
 
2356
2376
  //
2357
2377
  async getSendCloudShipmentsMethods(
2358
- param = { authKey, type, account_id }
2378
+ param = { authKey, type, bodyParam }
2359
2379
  ) {
2380
+ let url =
2381
+ param.bodyParam == undefined || param.bodyParam == ""
2382
+ ? ""
2383
+ : `?${serialization(param.bodyParam)}`;
2360
2384
  try {
2361
2385
  const [error, responseJson] = await network.networkCall({
2362
- path: `${SHIPMENTS}/sendcloud/shipping_methods`,
2386
+ path: `${SHIPMENTS}/sendcloud/shipping_methods${url}`,
2363
2387
  method: Method.GET,
2364
2388
  authKey: param.authKey,
2365
2389
  currency: param.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.46",
3
+ "version": "1.1.48",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",