@longvansoftware/service-js-client 1.5.1 → 1.5.3
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.
@@ -168,11 +168,11 @@ class OrderService extends serviceSDK_1.Service {
|
|
168
168
|
*/
|
169
169
|
updateCustomerAndShippingAddress(orderId, customerData, shippingAddress) {
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
171
|
-
const endpoint = `/orders
|
171
|
+
const endpoint = `/orders/${this.orgId}/${orderId}/customer`;
|
172
172
|
const method = "PUT";
|
173
173
|
const requestData = {
|
174
|
-
|
175
|
-
|
174
|
+
customerId: customerData,
|
175
|
+
shippingAddressId: shippingAddress,
|
176
176
|
};
|
177
177
|
try {
|
178
178
|
const response = yield this.restApiCallWithToken(endpoint, method, requestData);
|