@longvansoftware/storefront-js-client 3.4.5 → 3.4.6
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.
|
@@ -15,7 +15,7 @@ export declare class PortalService extends Service {
|
|
|
15
15
|
handlePackage(orderId: string, byUser: string): Promise<any>;
|
|
16
16
|
packageBoxes(): Promise<any>;
|
|
17
17
|
shipmentParameter(orderId: string): Promise<any>;
|
|
18
|
-
connectShipment(orderId: string, byUser: string): Promise<any>;
|
|
18
|
+
connectShipment(orderId: string, byUser: string, pickupType: string, trackingCode: string): Promise<any>;
|
|
19
19
|
ffmStage(orderId: string): Promise<any>;
|
|
20
20
|
completeCancelFFMOrder(orderId: string, note: string, reason: string): Promise<any>;
|
|
21
21
|
saveTextEditor(saveTextEditor: any): Promise<any>;
|
|
@@ -178,12 +178,15 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
connectShipment(orderId, byUser) {
|
|
181
|
+
connectShipment(orderId, byUser, pickupType, trackingCode) {
|
|
182
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
-
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/connect-shipment/${byUser}`;
|
|
183
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/connect-shipment/${byUser}?pickupType=${pickupType}`;
|
|
184
184
|
const method = "POST";
|
|
185
|
+
const dataBody = {
|
|
186
|
+
trackingCode,
|
|
187
|
+
};
|
|
185
188
|
try {
|
|
186
|
-
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
189
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method, dataBody);
|
|
187
190
|
return response;
|
|
188
191
|
}
|
|
189
192
|
catch (error) {
|