tradly 1.1.77 → 1.1.79

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 +41 -0
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -179,6 +179,28 @@ class App {
179
179
  return error;
180
180
  }
181
181
  }
182
+ async getGroupedSecureConfigList(
183
+ param = { paramBody, authKey, domain_id, barrow_access_key }
184
+ ) {
185
+ let url = `${GROUPCONFIGLIST}${param.paramBody}&domain_id=${APPCONSTANT.DOMAIN_ID}`;
186
+ try {
187
+ const [error, responseJson] = await network.networkCall({
188
+ path: url,
189
+ method: Method.GET,
190
+ authKey: param.authKey,
191
+ currency: param.currency,
192
+ language: param.language,
193
+ barrow_access_key: param.access_key,
194
+ });
195
+ if (error) {
196
+ return error;
197
+ } else {
198
+ return responseJson;
199
+ }
200
+ } catch (error) {
201
+ return error;
202
+ }
203
+ }
182
204
  async updateDeviceInfo(param = { data, authKey }) {
183
205
  try {
184
206
  const [error, responseJson] = await network.networkCall({
@@ -2680,6 +2702,25 @@ class App {
2680
2702
  }
2681
2703
  }
2682
2704
 
2705
+ async getOrderInvoice(param = { authKey, bodyParam, order_id }) {
2706
+ try {
2707
+ const [error, responseJson] = await network.networkCall({
2708
+ path: `${ORDERS}/${param.order_id}/invoice`,
2709
+ method: Method.GET,
2710
+ authKey: param.authKey,
2711
+ currency: param.currency,
2712
+ language: param.language,
2713
+ });
2714
+ if (error) {
2715
+ return error;
2716
+ } else {
2717
+ return responseJson;
2718
+ }
2719
+ } catch (error) {
2720
+ return error;
2721
+ }
2722
+ }
2723
+
2683
2724
  //
2684
2725
  async getSendCloudShipmentsMethods(param = { authKey, bodyParam }) {
2685
2726
  let url =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.77",
3
+ "version": "1.1.79",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",