tradly 1.1.78 → 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.
- package/Roots/App.js +19 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -2702,6 +2702,25 @@ class App {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
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
|
+
|
|
2705
2724
|
//
|
|
2706
2725
|
async getSendCloudShipmentsMethods(param = { authKey, bodyParam }) {
|
|
2707
2726
|
let url =
|