tradly 1.1.71 → 1.1.73

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.
@@ -52,6 +52,12 @@ class NetworkManager {
52
52
  if (config.language != undefined || config.language == "") {
53
53
  header["X-Language"] = config.language;
54
54
  }
55
+ if (
56
+ config.barrow_access_key != undefined ||
57
+ config.barrow_access_key !== ""
58
+ ) {
59
+ header["barrow_access_key"] = config.barrow_access_key;
60
+ }
55
61
  if (Object.keys(APPCONSTANT.CUSTOM_HEADER).length > 0) {
56
62
  Object.keys(APPCONSTANT.CUSTOM_HEADER).forEach((key) => {
57
63
  header[key] = APPCONSTANT.CUSTOM_HEADER[key];
package/Roots/App.js CHANGED
@@ -2636,6 +2636,50 @@ class App {
2636
2636
  }
2637
2637
  }
2638
2638
 
2639
+ async verifyOrderDetails(param = { authKey, data, bodyParam }) {
2640
+ try {
2641
+ const [error, responseJson] = await network.networkCall({
2642
+ path:
2643
+ ORDERS +
2644
+ `/order_detail_item_attributes/validate`,
2645
+ method: Method.POST,
2646
+ authKey: param.authKey,
2647
+ currency: param.currency,
2648
+ language: param.language,
2649
+ param: param.data,
2650
+ });
2651
+ if (error) {
2652
+ return error;
2653
+ } else {
2654
+ return responseJson;
2655
+ }
2656
+ } catch (error) {
2657
+ return error;
2658
+ }
2659
+ }
2660
+ async confirmOrderByUser(
2661
+ param = { authKey, data, bodyParam, order_ref, access_key }
2662
+ ) {
2663
+ try {
2664
+ const [error, responseJson] = await network.networkCall({
2665
+ path: ORDERS + `/${param.order_ref}/confirm`,
2666
+ method: Method.PATCH,
2667
+ authKey: param.authKey,
2668
+ currency: param.currency,
2669
+ language: param.language,
2670
+ barrow_access_key: param.access_key,
2671
+ param: param.data,
2672
+ });
2673
+ if (error) {
2674
+ return error;
2675
+ } else {
2676
+ return responseJson;
2677
+ }
2678
+ } catch (error) {
2679
+ return error;
2680
+ }
2681
+ }
2682
+
2639
2683
  //
2640
2684
  async getSendCloudShipmentsMethods(param = { authKey, bodyParam }) {
2641
2685
  let url =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.71",
3
+ "version": "1.1.73",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",