Class DefaultCentralOrderServiceV2
java.lang.Object
com.sap.sapcentralorderservices.services.impl.DefaultCentralOrderServiceV2
- All Implemented Interfaces:
CentralOrderService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.util.UriComponentsbuildCentralOrderDetailsURI(String centralOrderId) protected org.springframework.web.util.UriComponentsbuildCentralOrderLineItemsURI(String centralOrderId) protected <T> org.springframework.http.ResponseEntitycallApi(org.springframework.web.util.UriComponents uriComponents, String url, org.springframework.web.client.RestOperations restOperations, Class<T> clazz) org.springframework.http.ResponseEntity<CentralOrderDetailsResponse>getCentalOrderDetailsForCode(CustomerModel currentCustomer, String centralOrderId, 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.de.hybris.platform.apiregistryservices.services.DestinationServicede.hybris.platform.outboundservices.client.IntegrationRestTemplateFactorySends a central order request to the Central Order System and retrieves the response.voidsetCentralOrderApiClient(CentralOrderApiClient centralOrderApiClient) voidsetDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService destinationService) voidsetIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
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:CentralOrderServicegets the list of orders from centralorder.- Specified by:
getCentalOrderListin interfaceCentralOrderService- 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
public org.springframework.http.ResponseEntity<CentralOrderDetailsResponse> getCentalOrderDetailsForCode(CustomerModel currentCustomer, String centralOrderId, String sourceSystemId) Description copied from interface:CentralOrderServicegets order detail from centralorder.- Specified by:
getCentalOrderDetailsForCodein interfaceCentralOrderService- Parameters:
currentCustomer- contains the customer detailscentralOrderId- order CodesourceSystemId- 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
-
sendOrderToCentralOrderSystem
public CentralOrderResponse sendOrderToCentralOrderSystem(CentralOrderRequest request) throws SapCentralOrderException Description copied from interface:CentralOrderServiceSends a central order request to the Central Order System and retrieves the response.- Specified by:
sendOrderToCentralOrderSystemin interfaceCentralOrderService- 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:CentralOrderServicegets order detail from centralorder.- Specified by:
getCentalOrderDetailsForGuidin interfaceCentralOrderService- Parameters:
customerModel- contains the customer detailsguid- unique guidsourceSystemId- 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
-
setCentralOrderApiClient
-