tradly 1.1.47 → 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 +8 -2
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -2374,10 +2374,16 @@ class App {
2374
2374
  }
2375
2375
 
2376
2376
  //
2377
- async getSendCloudShipmentsMethods(param = { authKey, type }) {
2377
+ async getSendCloudShipmentsMethods(
2378
+ param = { authKey, type, bodyParam }
2379
+ ) {
2380
+ let url =
2381
+ param.bodyParam == undefined || param.bodyParam == ""
2382
+ ? ""
2383
+ : `?${serialization(param.bodyParam)}`;
2378
2384
  try {
2379
2385
  const [error, responseJson] = await network.networkCall({
2380
- path: `${SHIPMENTS}/sendcloud/shipping_methods`,
2386
+ path: `${SHIPMENTS}/sendcloud/shipping_methods${url}`,
2381
2387
  method: Method.GET,
2382
2388
  authKey: param.authKey,
2383
2389
  currency: param.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",