@longvansoftware/storefront-js-client 2.8.3 → 2.8.4

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.
@@ -509,4 +509,5 @@ export declare class OrderService extends Service {
509
509
  updateExchangeOrder(exchangeOrder: string, returnOrder: string, sellOrder: string): Promise<any>;
510
510
  removeShippingAddress(orderId: string, updateBy: string): Promise<any>;
511
511
  removeShippingInfo(orderId: string, updateBy: string): Promise<any>;
512
+ updateVatInorder(orderId: string, orderItemId: string, vatRate: string): Promise<any>;
512
513
  }
@@ -1497,5 +1497,18 @@ class OrderService extends serviceSDK_1.Service {
1497
1497
  }
1498
1498
  });
1499
1499
  }
1500
+ updateVatInorder(orderId, orderItemId, vatRate) {
1501
+ return __awaiter(this, void 0, void 0, function* () {
1502
+ const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/${orderItemId}/${vatRate}/vatProduct`;
1503
+ const method = 'PUT';
1504
+ try {
1505
+ const response = yield this.restApiCallWithToken(endpoint, method);
1506
+ return response;
1507
+ }
1508
+ catch (error) {
1509
+ throw error;
1510
+ }
1511
+ });
1512
+ }
1500
1513
  }
1501
1514
  exports.OrderService = OrderService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [