Interface CentralOrderService
- All Known Implementing Classes:
DefaultCentralOrderService,DefaultCentralOrderServiceV2
public interface CentralOrderService
Service for CentralOrder
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<CentralOrderDetailsResponse>getCentalOrderDetailsForCode(CustomerModel customerModel, String orderCode, String sourceSystemId) gets order detail from centralorder.org.springframework.http.ResponseEntity<CentralOrderDetailsResponse>getCentalOrderDetailsForGuid(CustomerModel customerModel, String guid, String sourceSystemId) gets order detail from centralorder.org.springframework.http.ResponseEntity<CentralOrderListResponse[]>getCentalOrderList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData, String sourceSystemId) gets the list of orders from centralorder.default CentralOrderResponsesendOrderToCentralOrderSystem(CentralOrderRequest centralOrderRequest) Sends a central order request to the Central Order System and retrieves the response.
-
Method Details
-
getCentalOrderList
org.springframework.http.ResponseEntity<CentralOrderListResponse[]> getCentalOrderList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData, String sourceSystemId) gets the list of orders from centralorder.- Parameters:
customerModel- contains the customer detailsstore- contains the store detailsstatus- order statuspageableData- the pageable datasourceSystemId- Commerce System Id- Returns:
org.springframework.http.ResponseEntity<CentralOrderListResponse[]>
-
getCentalOrderDetailsForCode
org.springframework.http.ResponseEntity<CentralOrderDetailsResponse> getCentalOrderDetailsForCode(CustomerModel customerModel, String orderCode, String sourceSystemId) gets order detail from centralorder.- Parameters:
customerModel- contains the customer detailsorderCode- order CodesourceSystemId- Commerce System Id- Returns:
org.springframework.http.ResponseEntity<CentralOrderDetailsResponse[]>
-
getCentalOrderDetailsForGuid
org.springframework.http.ResponseEntity<CentralOrderDetailsResponse> getCentalOrderDetailsForGuid(CustomerModel customerModel, String guid, String sourceSystemId) gets order detail from centralorder.- Parameters:
customerModel- contains the customer detailsguid- unique guidsourceSystemId- Commerce System Id- Returns:
org.springframework.http.ResponseEntity<CentralOrderDetailsResponse>
-
sendOrderToCentralOrderSystem
default CentralOrderResponse sendOrderToCentralOrderSystem(CentralOrderRequest centralOrderRequest) throws SapCentralOrderException Sends a central order request to the Central Order System and retrieves the response.- Parameters:
centralOrderRequest- The central order request to be sent to the Central Order System.- Returns:
- A CentralOrderResponse containing the response from the Central Order System.
- Throws:
SapCentralOrderException- If an error occurs while sending the request or processing the response.
-