Class DefaultCentralOrderServiceV2

java.lang.Object
com.sap.sapcentralorderservices.services.impl.DefaultCentralOrderServiceV2
All Implemented Interfaces:
CentralOrderService

public class DefaultCentralOrderServiceV2 extends Object implements CentralOrderService
  • Constructor Details

    • DefaultCentralOrderServiceV2

      public DefaultCentralOrderServiceV2()
  • Method Details

    • getCentalOrderList

      public org.springframework.http.ResponseEntity<CentralOrderListResponse[]> getCentalOrderList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData, String sourceSystemId)
      Description copied from interface: CentralOrderService
      gets the list of orders from centralorder.
      Specified by:
      getCentalOrderList in interface CentralOrderService
      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

      public org.springframework.http.ResponseEntity<CentralOrderDetailsResponse> getCentalOrderDetailsForCode(CustomerModel currentCustomer, String centralOrderId, String sourceSystemId)
      Description copied from interface: CentralOrderService
      gets order detail from centralorder.
      Specified by:
      getCentalOrderDetailsForCode in interface CentralOrderService
      Parameters:
      currentCustomer - contains the customer details
      centralOrderId - order Code
      sourceSystemId - Commerce System Id
      Returns:
      org.springframework.http.ResponseEntity<CentralOrderDetailsResponse[]>
    • buildCentralOrderDetailsURI

      protected org.springframework.web.util.UriComponents buildCentralOrderDetailsURI(String centralOrderId)
    • buildCentralOrderLineItemsURI

      protected org.springframework.web.util.UriComponents buildCentralOrderLineItemsURI(String centralOrderId)
    • callApi

      protected <T> org.springframework.http.ResponseEntity callApi(org.springframework.web.util.UriComponents uriComponents, String url, org.springframework.web.client.RestOperations restOperations, Class<T> clazz)
    • sendOrderToCentralOrderSystem

      public CentralOrderResponse sendOrderToCentralOrderSystem(CentralOrderRequest request) throws SapCentralOrderException
      Description copied from interface: CentralOrderService
      Sends a central order request to the Central Order System and retrieves the response.
      Specified by:
      sendOrderToCentralOrderSystem in interface CentralOrderService
      Parameters:
      request - 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.
    • getCentalOrderDetailsForGuid

      public org.springframework.http.ResponseEntity<CentralOrderDetailsResponse> getCentalOrderDetailsForGuid(CustomerModel customerModel, String guid, String sourceSystemId)
      Description copied from interface: CentralOrderService
      gets order detail from centralorder.
      Specified by:
      getCentalOrderDetailsForGuid in interface CentralOrderService
      Parameters:
      customerModel - contains the customer details
      guid - unique guid
      sourceSystemId - Commerce System Id
      Returns:
      org.springframework.http.ResponseEntity<CentralOrderDetailsResponse>
    • getDestinationService

      public de.hybris.platform.apiregistryservices.services.DestinationService getDestinationService()
    • setDestinationService

      public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService destinationService)
    • getIntegrationRestTemplateFactory

      public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
    • setIntegrationRestTemplateFactory

      public void setIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
    • getCentralOrderApiClient

      public CentralOrderApiClient getCentralOrderApiClient()
    • setCentralOrderApiClient

      public void setCentralOrderApiClient(CentralOrderApiClient centralOrderApiClient)