tradly 1.1.47 → 1.1.49

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