@longvansoftware/storefront-js-client 3.2.7 → 3.2.8

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.
@@ -528,4 +528,5 @@ export declare class OrderService extends Service {
528
528
  * @throws If an error occurs while updating the customer information
529
529
  */
530
530
  updateCustomerInfoFront(orderId: string, customerInfo: CustomerInfo): Promise<any>;
531
+ removeGiftQuantity(orderId: string, orderItemId: string): Promise<any>;
531
532
  }
@@ -1590,5 +1590,19 @@ class OrderService extends serviceSDK_1.Service {
1590
1590
  }
1591
1591
  });
1592
1592
  }
1593
+ removeGiftQuantity(orderId, orderItemId) {
1594
+ return __awaiter(this, void 0, void 0, function* () {
1595
+ const endpoint = `/orders/${this.orgId}/${orderId}/${orderItemId}/giftQuantity`;
1596
+ const method = "PUT";
1597
+ try {
1598
+ const response = yield this.restApiCallWithToken(endpoint, method);
1599
+ return response;
1600
+ }
1601
+ catch (error) {
1602
+ console.log(`Error in removeGiftQuantity: ${error}`);
1603
+ throw error;
1604
+ }
1605
+ });
1606
+ }
1593
1607
  }
1594
1608
  exports.OrderService = OrderService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [