tradly 1.1.44 → 1.1.46

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.
@@ -62,6 +62,7 @@ export const VARIANTS = "/variants";
62
62
  export const PAYMENTSMETHODS = "/v1/tenants/payment_methods";
63
63
  export const TENANTSHIPPINGMETHOD = "/v1/tenants/shipping_methods";
64
64
  export const SHIPPINGMETHOD = "/v1/shipping_methods";
65
+ export const SHIPMENTS = "/v1/shipments/";
65
66
 
66
67
  export const S3SIGNEDURL = "/v1/utils/S3signedUploadURL";
67
68
  export const S3SIGNEDGETURL = "/v1/utils/S3signedGetURL";
package/Roots/App.js CHANGED
@@ -78,6 +78,7 @@ import {
78
78
  TRANSLATIONS,
79
79
  WALLET,
80
80
  SAVED_CARD,
81
+ SHIPMENTS,
81
82
  } from "./../Constants/PathConstant.js";
82
83
  import serialization from "../Helper/Serialization.js";
83
84
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -2351,6 +2352,28 @@ class App {
2351
2352
  return error;
2352
2353
  }
2353
2354
  }
2355
+
2356
+ //
2357
+ async getSendCloudShipmentsMethods(
2358
+ param = { authKey, type, account_id }
2359
+ ) {
2360
+ try {
2361
+ const [error, responseJson] = await network.networkCall({
2362
+ path: `${SHIPMENTS}/sendcloud/shipping_methods`,
2363
+ method: Method.GET,
2364
+ authKey: param.authKey,
2365
+ currency: param.currency,
2366
+ language: param.language,
2367
+ });
2368
+ if (error) {
2369
+ return error;
2370
+ } else {
2371
+ return responseJson;
2372
+ }
2373
+ } catch (error) {
2374
+ return error;
2375
+ }
2376
+ }
2354
2377
  //MARK:-  Currency 
2355
2378
  async getCurrency(param = { authKey }) {
2356
2379
  try {
@@ -3171,7 +3194,7 @@ class App {
3171
3194
  : `?${serialization(param.bodyParam)}`;
3172
3195
  try {
3173
3196
  const [error, responseJson] = await network.networkCall({
3174
- path: MANGO_PAY + "wallet/transactions" + url,
3197
+ path: MANGO_PAY + "/wallet/transactions" + url,
3175
3198
  method: Method.GET,
3176
3199
  authKey: param.authKey,
3177
3200
  currency: param.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.44",
3
+ "version": "1.1.46",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",