@longvansoftware/storefront-js-client 2.2.7-beta.6 → 2.2.7-beta.9

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.
@@ -459,5 +459,5 @@ export declare class OrderService extends Service {
459
459
  enableProductDiary(orderId: string, orderItemId: string): Promise<any>;
460
460
  removeMemberDiscount(orderId: string): Promise<any>;
461
461
  getInfoChatApp(attributesName: string): Promise<any>;
462
- getCustomerInfo(orderId: string): Promise<any>;
462
+ updateCustomerInOrder(orderId: string, dataRequest: any): Promise<any>;
463
463
  }
@@ -1343,12 +1343,12 @@ class OrderService extends serviceSDK_1.Service {
1343
1343
  }
1344
1344
  });
1345
1345
  }
1346
- getCustomerInfo(orderId) {
1346
+ updateCustomerInOrder(orderId, dataRequest) {
1347
1347
  return __awaiter(this, void 0, void 0, function* () {
1348
- const endpoint = `/front/orders/${this.orgId}/${this.storeId}/${orderId}/customerInfo`;
1349
- const method = "GET";
1348
+ const endpoint = `/front/orders/${this.orgId}/${orderId}/customerInfo`;
1349
+ const method = "PUT";
1350
1350
  try {
1351
- const response = yield this.restApiCallWithToken(endpoint, method);
1351
+ const response = yield this.restApiCallWithNoToken(endpoint, method, dataRequest);
1352
1352
  return response;
1353
1353
  }
1354
1354
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.2.7-beta.6",
3
+ "version": "2.2.7-beta.9",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [