@longvansoftware/storefront-js-client 2.2.7-beta.6 → 2.2.7-beta.7
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
|
-
|
|
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
|
-
|
|
1346
|
+
updateCustomerInOrder(orderId, dataRequest) {
|
|
1347
1347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1348
1348
|
const endpoint = `/front/orders/${this.orgId}/${this.storeId}/${orderId}/customerInfo`;
|
|
1349
|
-
const method = "
|
|
1349
|
+
const method = "PUT";
|
|
1350
1350
|
try {
|
|
1351
|
-
const response = yield this.
|
|
1351
|
+
const response = yield this.restApiCallWithNoToken(endpoint, method, dataRequest);
|
|
1352
1352
|
return response;
|
|
1353
1353
|
}
|
|
1354
1354
|
catch (error) {
|