@longvansoftware/storefront-js-client 2.7.0 → 2.7.2

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.
@@ -17,7 +17,7 @@ class ComhubService extends serviceSDK_1.Service {
17
17
  }
18
18
  sendZns(dataTemplate, appId, messageType) {
19
19
  return __awaiter(this, void 0, void 0, function* () {
20
- const endpoint = `/web-hook/message/send/social/ZNS/app/${appId}/message-type/${messageType}`;
20
+ const endpoint = `/web-hook/message/v2/send/social/ZNS/app/${appId}/message-type/${messageType}`;
21
21
  const method = "POST";
22
22
  try {
23
23
  const response = yield this.restApiCallWithNoHeader(endpoint, method, dataTemplate);
@@ -17,5 +17,5 @@ export declare class PortalService extends Service {
17
17
  shipmentParameter(orderId: string): Promise<any>;
18
18
  connectShipment(orderId: string, byUser: string): Promise<any>;
19
19
  ffmStage(orderId: string): Promise<any>;
20
- completeCancelFFMOrder(orderId: string, note: string, updateBy: string): Promise<any>;
20
+ completeCancelFFMOrder(orderId: string, note: string, reason: string): Promise<any>;
21
21
  }
@@ -204,13 +204,13 @@ class PortalService extends serviceSDK_1.Service {
204
204
  }
205
205
  });
206
206
  }
207
- completeCancelFFMOrder(orderId, note, updateBy) {
207
+ completeCancelFFMOrder(orderId, note, reason) {
208
208
  return __awaiter(this, void 0, void 0, function* () {
209
209
  const endpoint = `/fulfillment-api/public/fulfillment/FOX/${orderId}/completeCancelOrder`;
210
210
  const method = "PUT";
211
211
  const reqData = {
212
212
  note: note,
213
- updateBy: updateBy,
213
+ reason: reason,
214
214
  };
215
215
  try {
216
216
  const response = yield this.restApiCallWithNoHeader(endpoint, method, reqData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [