Interface CentralOrderService

All Known Implementing Classes:
DefaultCentralOrderService, DefaultCentralOrderServiceV2

public interface CentralOrderService
Service for CentralOrder
  • 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 details
      store - contains the store details
      status - order status
      pageableData - the pageable data
      sourceSystemId - 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 details
      orderCode - order Code
      sourceSystemId - 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 details
      guid - unique guid
      sourceSystemId - 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.