@longvansoftware/storefront-js-client 3.3.0 → 3.3.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.
|
@@ -41,5 +41,18 @@ class DeepLinkVietQrService extends serviceSDK_1.Service {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
getBank() {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const endpoint = `/banks`;
|
|
47
|
+
const method = "GET";
|
|
48
|
+
try {
|
|
49
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
|
50
|
+
return response;
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
44
57
|
}
|
|
45
58
|
exports.DeepLinkVietQrService = DeepLinkVietQrService;
|
|
@@ -529,4 +529,5 @@ export declare class OrderService extends Service {
|
|
|
529
529
|
*/
|
|
530
530
|
updateCustomerInfoFront(orderId: string, customerInfo: CustomerInfo): Promise<any>;
|
|
531
531
|
removeGiftQuantity(orderId: string, orderItemId: string): Promise<any>;
|
|
532
|
+
removeGiftInOrder(orderId: string, orderItemId: string): Promise<any>;
|
|
532
533
|
}
|
|
@@ -1604,5 +1604,18 @@ class OrderService extends serviceSDK_1.Service {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
|
+
removeGiftInOrder(orderId, orderItemId) {
|
|
1608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1609
|
+
const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/${orderItemId}/deleteOrderLineItem`;
|
|
1610
|
+
const method = 'DELETE';
|
|
1611
|
+
try {
|
|
1612
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
|
1613
|
+
return response;
|
|
1614
|
+
}
|
|
1615
|
+
catch (error) {
|
|
1616
|
+
throw error;
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1607
1620
|
}
|
|
1608
1621
|
exports.OrderService = OrderService;
|