Class DefaultSubscriptionBillingApiClient
- java.lang.Object
-
- de.hybris.platform.sap.saprevenuecloudorder.clients.impl.DefaultSubscriptionBillingApiClient
-
- All Implemented Interfaces:
SubscriptionBillingApiClient
public class DefaultSubscriptionBillingApiClient extends java.lang.Object implements SubscriptionBillingApiClient
-
-
Constructor Summary
Constructors Constructor Description DefaultSubscriptionBillingApiClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Class<T> clazz)Calls API and returns parsed response<T> org.springframework.http.ResponseEntity<T>getRawEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Class<T> clazz)Calls API And returns Raw ResponsevoidpostEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Object entity)Calls Api with post method<T> TpostEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Object entity, java.lang.Class<T> response)Calls Api with post methodvoidsetDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)voidsetIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
-
-
Method Detail
-
postEntity
public void postEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Object entity)Description copied from interface:SubscriptionBillingApiClientCalls Api with post method- Specified by:
postEntityin interfaceSubscriptionBillingApiClient- Parameters:
uriComponents- uri that need to be calledentity- entity that needs to be posted
-
postEntity
public <T> T postEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Object entity, java.lang.Class<T> response)Description copied from interface:SubscriptionBillingApiClientCalls Api with post method- Specified by:
postEntityin interfaceSubscriptionBillingApiClient- Parameters:
uriComponents- uri that need to be calledentity- entity that needs to be posted- Returns:
- Expected response Type
-
getEntity
public <T> T getEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Class<T> clazz)Description copied from interface:SubscriptionBillingApiClientCalls API and returns parsed response- Specified by:
getEntityin interfaceSubscriptionBillingApiClient- Type Parameters:
T- Expected Response- Parameters:
uriComponents- uri that need to be calledclazz- Class of Expected response- Returns:
- Result from API
-
getRawEntity
public <T> org.springframework.http.ResponseEntity<T> getRawEntity(org.springframework.web.util.UriComponents uriComponents, java.lang.Class<T> clazz)Description copied from interface:SubscriptionBillingApiClientCalls API And returns Raw Response- Specified by:
getRawEntityin interfaceSubscriptionBillingApiClient- Type Parameters:
T- Expected Response Class- Parameters:
uriComponents- uri component that needs to be calledclazz- Expected Response Class- Returns:
ResponseEntityRaw response
-
setDestinationService
public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)
-
setIntegrationRestTemplateFactory
public void setIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
-