@longvansoftware/storefront-js-client 3.9.0 → 3.9.1

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.
@@ -538,4 +538,5 @@ export declare class OrderService extends Service {
538
538
  removeGiftInOrder(orderId: string, orderItemId: string): Promise<any>;
539
539
  tooglePaymentMethod(methodCode: string, status: boolean): Promise<any>;
540
540
  choosePaymentGatewayForPaymentMethod(methodCode: string, gatewayId: string): Promise<any>;
541
+ addCustomerToOder(orderId: string, customerData: any): Promise<any>;
541
542
  }
@@ -1695,5 +1695,19 @@ class OrderService extends serviceSDK_1.Service {
1695
1695
  }
1696
1696
  });
1697
1697
  }
1698
+ addCustomerToOder(orderId, customerData) {
1699
+ return __awaiter(this, void 0, void 0, function* () {
1700
+ const endpoint = `/front/orders/${this.orgId}/${orderId}/customerInfo`;
1701
+ const method = "PUT";
1702
+ const requestData = Object.assign({}, customerData);
1703
+ try {
1704
+ const response = yield this.restApiCallWithNoToken(endpoint, method, requestData);
1705
+ return response;
1706
+ }
1707
+ catch (error) {
1708
+ throw error;
1709
+ }
1710
+ });
1711
+ }
1698
1712
  }
1699
1713
  exports.OrderService = OrderService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [