tradly 1.1.82 → 1.1.83

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 +21 -0
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -2794,6 +2794,27 @@ class App {
2794
2794
  return error;
2795
2795
  }
2796
2796
  }
2797
+
2798
+ async getExternalShipmentLabel(
2799
+ param = { authKey, order_id, shipment_id }
2800
+ ) {
2801
+ try {
2802
+ const [error, responseJson] = await network.networkCall({
2803
+ path: `${ORDERS}/${param.order_id}/shipments/${param.shipment_id}/external_shipment_label`,
2804
+ method: Method.GET,
2805
+ authKey: param.authKey,
2806
+ currency: param.currency,
2807
+ language: param.language,
2808
+ });
2809
+ if (error) {
2810
+ return error;
2811
+ } else {
2812
+ return responseJson;
2813
+ }
2814
+ } catch (error) {
2815
+ return error;
2816
+ }
2817
+ }
2797
2818
  //MARK:-  Currency 
2798
2819
  async getCurrency(param = { authKey }) {
2799
2820
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",