public class DefaultCommerceCheckoutService extends java.lang.Object implements CommerceCheckoutService
CommerceCheckoutService| Constructor and Description |
|---|
DefaultCommerceCheckoutService() |
@Deprecated public boolean setDeliveryAddress(CartModel cartModel, AddressModel addressModel)
setDeliveryAddress in interface CommerceCheckoutServicecartModel - the cartaddressModel - the address, a null address will cause the delivery address to be removed from the cart.@Deprecated public boolean setDeliveryAddress(CartModel cartModel, AddressModel addressModel, boolean flagAsDeliveryAddress)
setDeliveryAddress in interface CommerceCheckoutServicecartModel - the cartaddressModel - the address a null address will cause the delivery address to be removed from the cart.flagAsDeliveryAddress - true to mark the given address as delivery addresspublic boolean setDeliveryAddress(CommerceCheckoutParameter parameter)
CommerceCheckoutServicesetDeliveryAddress in interface CommerceCheckoutServiceparameter - A parameter objectpublic boolean setDeliveryMode(CommerceCheckoutParameter parameter)
CommerceCheckoutServicesetDeliveryMode in interface CommerceCheckoutServiceparameter - A parameter object for cart and deliverymode@Deprecated public boolean setDeliveryMode(CartModel cartModel, DeliveryModeModel deliveryModeModel)
setDeliveryMode in interface CommerceCheckoutServicecartModel - the cartdeliveryModeModel - the delivery modepublic boolean removeDeliveryMode(CommerceCheckoutParameter parameter)
CommerceCheckoutServiceCommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)removeDeliveryMode in interface CommerceCheckoutServiceparameter - A parameter object holding the cart@Deprecated public boolean removeDeliveryMode(CartModel cartModel)
removeDeliveryMode in interface CommerceCheckoutServicecartModel - the cartpublic void calculateCart(CommerceCheckoutParameter parameter)
CommerceCheckoutServicecalculateCart in interface CommerceCheckoutServiceparameter - The parameter object for the current user's cartModel@Deprecated public void calculateCart(CartModel cartModel)
calculateCart in interface CommerceCheckoutServicecartModel - The current user's cartModelpublic void validateDeliveryMode(CommerceCheckoutParameter parameter)
CommerceCheckoutServiceCommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)validateDeliveryMode in interface CommerceCheckoutServiceparameter - The parameter object holding the cart@Deprecated public void validateDeliveryMode(CartModel cartModel)
validateDeliveryMode in interface CommerceCheckoutServicecartModel - the cartpublic boolean setPaymentInfo(CommerceCheckoutParameter parameter)
CommerceCheckoutServicesetPaymentInfo in interface CommerceCheckoutServiceparameter - A parameter object for cart and payment details@Deprecated public boolean setPaymentInfo(CartModel cartModel, PaymentInfoModel paymentInfoModel)
setPaymentInfo in interface CommerceCheckoutServicecartModel - the cartpaymentInfoModel - the payment detailspublic PaymentTransactionEntryModel authorizePayment(CommerceCheckoutParameter parameter)
CommerceCheckoutServiceCommerceCheckoutParameter.authorizationAmount is null
otherwise the passed in amout is authorizedauthorizePayment in interface CommerceCheckoutServiceparameter - A parameter object holding the cart, security code, payment provider and optionaly authorization amount.protected java.math.BigDecimal calculateAuthAmount(CartModel cartModel)
cartModel - the cart model@Deprecated public PaymentTransactionEntryModel authorizePayment(CartModel cartModel, java.lang.String securityCode, java.lang.String paymentProvider)
authorizePayment in interface CommerceCheckoutServicecartModel - the cartsecurityCode - the cv2 numberpaymentProvider - the payment provider that will be used to authorize@Deprecated public PaymentTransactionEntryModel authorizePayment(CartModel cartModel, java.lang.String securityCode, java.lang.String paymentProvider, java.math.BigDecimal amount)
authorizePayment in interface CommerceCheckoutServicecartModel - the cartsecurityCode - the cv2 numberpaymentProvider - the payment provider that will be used to authorizeamount - the amount to authorize@Deprecated public OrderModel placeOrder(CartModel cartModel, SalesApplication salesApplication) throws InvalidCartException
placeOrder in interface CommerceCheckoutServicecartModel - the cartsalesApplication - the sales application that placed the orderInvalidCartException - if the order cannot be placed@Deprecated public OrderModel placeOrder(CartModel cartModel) throws InvalidCartException
placeOrder in interface CommerceCheckoutServicecartModel - the cartInvalidCartException - if the order cannot be placedpublic CommerceOrderResult placeOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
CommerceCheckoutServiceplaceOrder in interface CommerceCheckoutServiceInvalidCartException - if the order cannot be placedpublic java.lang.String getPaymentProvider()
CommerceCheckoutServicegetPaymentProvider in interface CommerceCheckoutServicepublic java.util.List<CountryModel> getCountries(CountryType countryType)
CommerceCheckoutServicegetCountries in interface CommerceCheckoutServicecountryType - If the value of type equals to shipping, then return shipping countries. If the value of type equals to
billing, then return billing countries. If the value of type is not given, return all countries.protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected DeliveryService getDeliveryService()
public void setDeliveryService(DeliveryService deliveryService)
protected I18NService getI18nService()
public void setI18nService(I18NService i18nService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected PaymentService getPaymentService()
public void setPaymentService(PaymentService paymentService)
protected OrderService getOrderService()
public void setOrderService(OrderService orderService)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService siteService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService service)
protected PromotionsService getPromotionsService()
public void setPromotionsService(PromotionsService promotionsService)
protected CalculationService getCalculationService()
public void setCalculationService(CalculationService calculationService)
public ExternalTaxesService getExternalTaxesService()
public void setExternalTaxesService(ExternalTaxesService externalTaxesService)
protected CommerceCartCalculationStrategy getCommerceCartCalculationStrategy()
public void setCommerceCartCalculationStrategy(CommerceCartCalculationStrategy commerceCartCalculationStrategy)
protected CommercePlaceOrderStrategy getCommercePlaceOrderStrategy()
public void setCommercePlaceOrderStrategy(CommercePlaceOrderStrategy commercePlaceOrderStrategy)
protected CommercePaymentAuthorizationStrategy getCommercePaymentAuthorizationStrategy()
public void setCommercePaymentAuthorizationStrategy(CommercePaymentAuthorizationStrategy commercePaymentAuthorizationStrategy)
protected CommercePaymentInfoStrategy getCommercePaymentInfoStrategy()
public void setCommercePaymentInfoStrategy(CommercePaymentInfoStrategy commercePaymentInfoStrategy)
protected CommerceDeliveryModeValidationStrategy getCommerceDeliveryModeValidationStrategy()
public void setCommerceDeliveryModeValidationStrategy(CommerceDeliveryModeValidationStrategy commerceDeliveryModeValidationStrategy)
protected CommercePaymentProviderStrategy getCommercePaymentProviderStrategy()
public void setCommercePaymentProviderStrategy(CommercePaymentProviderStrategy commercePaymentProviderStrategy)
protected CommerceDeliveryAddressStrategy getCommerceDeliveryAddressStrategy()
public void setCommerceDeliveryAddressStrategy(CommerceDeliveryAddressStrategy commerceDeliveryAddressStrategy)
protected CommerceDeliveryModeStrategy getCommerceDeliveryModeStrategy()
public void setCommerceDeliveryModeStrategy(CommerceDeliveryModeStrategy commerceDeliveryModeStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.