tradly 1.1.50 → 1.1.51
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 +22 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -2396,6 +2396,28 @@ class App {
|
|
|
2396
2396
|
return error;
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
|
+
async getSendCloudShipmentLabel(param = { authKey, bodyParam }) {
|
|
2400
|
+
let url =
|
|
2401
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
2402
|
+
? ""
|
|
2403
|
+
: `?${serialization(param.bodyParam)}`;
|
|
2404
|
+
try {
|
|
2405
|
+
const [error, responseJson] = await network.networkCall({
|
|
2406
|
+
path: `${SHIPMENTS}sendcloud/shipping_label${url}`,
|
|
2407
|
+
method: Method.GET,
|
|
2408
|
+
authKey: param.authKey,
|
|
2409
|
+
currency: param.currency,
|
|
2410
|
+
language: param.language,
|
|
2411
|
+
});
|
|
2412
|
+
if (error) {
|
|
2413
|
+
return error;
|
|
2414
|
+
} else {
|
|
2415
|
+
return responseJson;
|
|
2416
|
+
}
|
|
2417
|
+
} catch (error) {
|
|
2418
|
+
return error;
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2399
2421
|
//MARK:- Currency
|
|
2400
2422
|
async getCurrency(param = { authKey }) {
|
|
2401
2423
|
try {
|