@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.
@@ -11,6 +11,7 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
11
11
  ownerName
12
12
  ownerEmail
13
13
  ownerPhone
14
+ ownerPartyId
14
15
  orderId
15
16
  id
16
17
  createdAt
@@ -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/FOX/${orderId}/customer`;
171
+ const endpoint = `/orders/${this.orgId}/${orderId}/customer`;
172
172
  const method = "PUT";
173
173
  const requestData = {
174
- customer: customerData,
175
- shipping_address: shippingAddress,
174
+ customerId: customerData,
175
+ shippingAddressId: shippingAddress,
176
176
  };
177
177
  try {
178
178
  const response = yield this.restApiCallWithToken(endpoint, method, requestData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [