public interface CommerceCheckoutService
| Modifier and Type | Method and Description |
|---|---|
PaymentTransactionEntryModel |
authorizePayment(CartModel cartModel,
java.lang.String securityCode,
java.lang.String paymentProvider)
Deprecated.
Since 5.2. Use
authorizePayment(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
Authorizes the total amount of the cart |
PaymentTransactionEntryModel |
authorizePayment(CartModel cartModel,
java.lang.String securityCode,
java.lang.String paymentProvider,
java.math.BigDecimal amount)
Deprecated.
Since 5.2. Use
authorizePayment(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
Authorizes specified amount |
PaymentTransactionEntryModel |
authorizePayment(CommerceCheckoutParameter parameter)
Authorizes the total amount of the cart if
CommerceCheckoutParameter.authorizationAmount is null
otherwise the passed in amout is authorized |
void |
calculateCart(CartModel cartModel)
Deprecated.
Since 5.2. Use
calculateCart(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead.
Calculates the cartModel if the calculated flag is false. |
void |
calculateCart(CommerceCheckoutParameter parameter)
Calculates the cartModel if the calculated flag is false.
|
java.util.List<CountryModel> |
getCountries(CountryType countryType)
Get countries.
|
java.lang.String |
getPaymentProvider()
Get the payment provider name
|
OrderModel |
placeOrder(CartModel cartModel)
Deprecated.
Since 5.2. Use
placeOrder(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Creates an order for the given cart |
OrderModel |
placeOrder(CartModel cartModel,
SalesApplication salesApplication)
Deprecated.
Since 5.2. Creates an order for the given cart
|
CommerceOrderResult |
placeOrder(CommerceCheckoutParameter parameter)
Creates an order for the given cart
|
boolean |
removeDeliveryMode(CartModel cartModel)
Deprecated.
Since 5.2. Use
removeDeliveryMode(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Removes delivery mode from cart. the cart is then calculated via
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel) |
boolean |
removeDeliveryMode(CommerceCheckoutParameter parameter)
Removes delivery mode from cart.
|
boolean |
setDeliveryAddress(CartModel cartModel,
AddressModel addressModel)
Deprecated.
|
boolean |
setDeliveryAddress(CartModel cartModel,
AddressModel addressModel,
boolean flagAsDeliveryAddress)
Deprecated.
Since 5.2. Use
setDeliveryAddress(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Sets the given address as delivery address on the cart and also marks the address as delivery
address. A null address will cause removal of deliveryAddress from the cart. |
boolean |
setDeliveryAddress(CommerceCheckoutParameter parameter)
Sets the given address as delivery address on the cart and also marks the address as delivery address.
|
boolean |
setDeliveryMode(CartModel cartModel,
DeliveryModeModel deliveryModeModel)
Deprecated.
Since 5.2. Use
setDeliveryAddress(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead. Sets the given delivery mode on the cart |
boolean |
setDeliveryMode(CommerceCheckoutParameter parameter)
Sets the given delivery mode on the cart
|
boolean |
setPaymentInfo(CartModel cartModel,
PaymentInfoModel paymentInfoModel)
Deprecated.
Since 5.2. Use
setPaymentInfo(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead. Sets the given payment info on the cart |
boolean |
setPaymentInfo(CommerceCheckoutParameter parameter)
Sets the given payment info on the cart
|
void |
validateDeliveryMode(CartModel cartModel)
Deprecated.
Since 5.2. Use
validateDeliveryMode(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Validates the current delivery mode on the cart and clears if not valid the cart is then
calculated via
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel) |
void |
validateDeliveryMode(CommerceCheckoutParameter parameter)
Validates the current delivery mode on the cart and clears if not valid the cart is then calculated via
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel) |
@Deprecated boolean setDeliveryAddress(CartModel cartModel, AddressModel addressModel)
setDeliveryAddress(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
insteadcartModel - the cartaddressModel - the address, a null address will cause the delivery address to be removed from the cart.@Deprecated boolean setDeliveryAddress(CartModel cartModel, AddressModel addressModel, boolean flagAsDeliveryAddress)
setDeliveryAddress(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Sets the given address as delivery address on the cart and also marks the address as delivery
address. A null address will cause removal of deliveryAddress from the cart.cartModel - 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 addressboolean setDeliveryAddress(CommerceCheckoutParameter parameter)
parameter - A parameter object@Deprecated boolean setDeliveryMode(CartModel cartModel, DeliveryModeModel deliveryModeModel)
setDeliveryAddress(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead. Sets the given delivery mode on the cartcartModel - the cartdeliveryModeModel - the delivery modeboolean setDeliveryMode(CommerceCheckoutParameter parameter)
parameter - A parameter object for cart and deliverymode@Deprecated void validateDeliveryMode(CartModel cartModel)
validateDeliveryMode(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Validates the current delivery mode on the cart and clears if not valid the cart is then
calculated via
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)cartModel - the cartvoid validateDeliveryMode(CommerceCheckoutParameter parameter)
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)parameter - The parameter object holding the cart@Deprecated boolean setPaymentInfo(CartModel cartModel, PaymentInfoModel paymentInfoModel)
setPaymentInfo(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead. Sets the given payment info on the cartcartModel - the cartpaymentInfoModel - the payment detailsboolean setPaymentInfo(CommerceCheckoutParameter parameter)
parameter - A parameter object for cart and payment details@Deprecated PaymentTransactionEntryModel authorizePayment(CartModel cartModel, java.lang.String securityCode, java.lang.String paymentProvider)
authorizePayment(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
Authorizes the total amount of the cartcartModel - the cartsecurityCode - the cv2 numberpaymentProvider - the payment provider that will be used to authorize@Deprecated PaymentTransactionEntryModel authorizePayment(CartModel cartModel, java.lang.String securityCode, java.lang.String paymentProvider, java.math.BigDecimal amount)
authorizePayment(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
Authorizes specified amountcartModel - the cartsecurityCode - the cv2 numberpaymentProvider - the payment provider that will be used to authorizeamount - the amount to authorizePaymentTransactionEntryModel authorizePayment(CommerceCheckoutParameter parameter)
CommerceCheckoutParameter.authorizationAmount is null
otherwise the passed in amout is authorizedparameter - A parameter object holding the cart, security code, payment provider and optionaly authorization amount.@Deprecated OrderModel placeOrder(CartModel cartModel) throws InvalidCartException
placeOrder(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Creates an order for the given cartcartModel - the cartInvalidCartException - if the order cannot be placed@Deprecated OrderModel placeOrder(CartModel cartModel, SalesApplication salesApplication) throws InvalidCartException
cartModel - the cartsalesApplication - the sales application that placed the orderInvalidCartException - if the order cannot be placedCommerceOrderResult placeOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
parameter - InvalidCartException - if the order cannot be placedjava.lang.String getPaymentProvider()
@Deprecated boolean removeDeliveryMode(CartModel cartModel)
removeDeliveryMode(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead Removes delivery mode from cart. the cart is then calculated via
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)cartModel - the cartboolean removeDeliveryMode(CommerceCheckoutParameter parameter)
CommerceCartCalculationStrategy.calculateCart(de.hybris.platform.core.model.order.CartModel)parameter - A parameter object holding the cart@Deprecated void calculateCart(CartModel cartModel)
calculateCart(de.hybris.platform.commerceservices.service.data.CommerceCheckoutParameter)
instead.
Calculates the cartModel if the calculated flag is false.cartModel - The current user's cartModelvoid calculateCart(CommerceCheckoutParameter parameter)
parameter - The parameter object for the current user's cartModeljava.util.List<CountryModel> getCountries(CountryType countryType)
countryType - 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.Copyright © 2018 SAP SE. All Rights Reserved.