public interface CheckoutFacade
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorizePayment(java.lang.String securityCode)
Authorize payment for the order.
|
boolean |
containsTaxValues()
Checks that cart or any of cart entries has TaxValues
|
CCPaymentInfoData |
createPaymentSubscription(CCPaymentInfoData paymentInfoData)
Create new payment subscription.
|
AddressData |
getAddressDataForId(java.lang.String addressId,
boolean visibleAddressesOnly)
Looks up addresses in the customer address book
|
java.util.List<CountryData> |
getBillingCountries()
Deprecated.
since 1808. Please use
getCountries(CountryType) instead. |
CartData |
getCheckoutCart()
Method gets checkout cart, if any exist.
|
java.util.List<CountryData> |
getCountries(CountryType countryType)
Get countries.
|
AddressData |
getDeliveryAddressForCode(java.lang.String code)
Get the delivery address with the specified code
|
java.util.List<CountryData> |
getDeliveryCountries()
Deprecated.
since 1808. Please use
getCountries(CountryType) instead. |
java.util.List<CardTypeData> |
getSupportedCardTypes()
Get supported payment card types
|
java.util.List<? extends AddressData> |
getSupportedDeliveryAddresses(boolean visibleAddressesOnly)
Get the list of supported delivery addresses.
|
java.util.List<? extends DeliveryModeData> |
getSupportedDeliveryModes()
Get the supported delivery modes for the cart.
|
boolean |
hasCheckoutCart()
Check if checkout cart exist.
|
boolean |
hasPickUpItems()
Checks if at least one entry in the cart is a pickup entry
|
boolean |
hasShippingItems()
Checks if at least one entry in the cart is for shipping
|
OrderData |
placeOrder()
Place order
|
void |
prepareCartForCheckout()
Prepares cart for checkout
|
boolean |
removeDeliveryAddress()
Removes delivery address from session cart.
|
boolean |
removeDeliveryMode()
Removes the delivery mode on the cart
|
boolean |
setCheapestDeliveryModeForCheckout()
Sets the cheapest delivery mode in the cart when called
|
boolean |
setDefaultDeliveryAddressForCheckout()
Sets the defaultAddress info on the cart with if current user has a default address info
|
boolean |
setDefaultPaymentInfoForCheckout()
Sets the defaultPayment info on the cart if the current user has a default payment info
|
boolean |
setDeliveryAddress(AddressData address)
Set the delivery address on the cart.
|
boolean |
setDeliveryAddressIfAvailable()
Set delivery address if customer has a default delivery address and is valid for the cart
|
boolean |
setDeliveryMode(java.lang.String deliveryModeCode)
Set the delivery mode on the cart Checks if the deliveryMode code is supported.
|
boolean |
setDeliveryModeIfAvailable()
Set cheapest delivery mode if the cart has one or more supported delivery modes
|
boolean |
setPaymentDetails(java.lang.String paymentInfoId)
Set Payment Details on the cart
|
boolean |
setPaymentInfoIfAvailable()
Set payment details if the customer has a default payment details
|
boolean hasCheckoutCart()
CartData getCheckoutCart()
java.util.List<? extends AddressData> getSupportedDeliveryAddresses(boolean visibleAddressesOnly)
visibleAddressesOnly - include only the visible addressesAddressData getDeliveryAddressForCode(java.lang.String code)
code - the codeboolean setDeliveryAddress(AddressData address)
address - the address, If null the delivery address is removed from the session cart.boolean removeDeliveryAddress()
java.util.List<? extends DeliveryModeData> getSupportedDeliveryModes()
boolean setDeliveryAddressIfAvailable()
boolean setDeliveryModeIfAvailable()
boolean setPaymentInfoIfAvailable()
boolean setDeliveryMode(java.lang.String deliveryModeCode)
deliveryModeCode - the delivery modeboolean removeDeliveryMode()
@Deprecated java.util.List<CountryData> getDeliveryCountries()
getCountries(CountryType) instead.@Deprecated java.util.List<CountryData> getBillingCountries()
getCountries(CountryType) instead.java.util.List<CountryData> 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. The
list is sorted alphabetically.boolean setPaymentDetails(java.lang.String paymentInfoId)
paymentInfoId - the ID of the payment info to set as the default paymentjava.util.List<CardTypeData> getSupportedCardTypes()
CCPaymentInfoData createPaymentSubscription(CCPaymentInfoData paymentInfoData)
paymentInfoData - the data instance containing the customers cart detailsboolean authorizePayment(java.lang.String securityCode)
securityCode - the 3 or 4 number CV2 or CVV security codeOrderData placeOrder() throws InvalidCartException
InvalidCartException - is thrown by underlying CartValidatorboolean containsTaxValues()
AddressData getAddressDataForId(java.lang.String addressId, boolean visibleAddressesOnly)
addressId - The PK of an addressvisibleAddressesOnly - If true checks visible addresses in the address bookvoid prepareCartForCheckout()
boolean setDefaultPaymentInfoForCheckout()
boolean setDefaultDeliveryAddressForCheckout()
boolean setCheapestDeliveryModeForCheckout()
boolean hasShippingItems()
boolean hasPickUpItems()
Copyright © 2018 SAP SE. All Rights Reserved.