Class CartStateServiceImpl
java.lang.Object
org.broadleafcommerce.core.web.order.service.CartStateServiceImpl
- All Implemented Interfaces:
CartStateService
@Service("blCartStateService")
public class CartStateServiceImpl
extends Object
implements CartStateService
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA helper method used to determine whether or not theCartState.getCart()is using a payment of typePaymentType.CREDIT_CARDbooleancartHasCreditCardPaymentWithSameToken(String paymentToken) booleanA helper method used to determine the validity of the payments on theCartState.getCart()booleanA helper method used to determine the validity of theCartState.getCart()'s order infobooleanA helper method used to determine the validity of theCartState.getCart()'s fulfillment groupsbooleanA helper method used to determine whether or not theCartState.getCart()contains a temporary credit card.booleanA helper method used to determine whether or not theCartState.getCart()is using a payment of typePaymentType.THIRD_PARTY_ACCOUNTbooleanA helper method used to determine whether or not theCartState.getCart()contains an unconfirmed credit cardprotected OrderPayment
-
Field Details
-
fulfillmentGroupService
-
orderPaymentService
-
-
Constructor Details
-
CartStateServiceImpl
public CartStateServiceImpl()
-
-
Method Details
-
cartHasPopulatedOrderInfo
public boolean cartHasPopulatedOrderInfo()Description copied from interface:CartStateServiceA helper method used to determine the validity of theCartState.getCart()'s order info- Specified by:
cartHasPopulatedOrderInfoin interfaceCartStateService- Returns:
- boolean indicating whether or not the order has valid info
-
cartHasPopulatedBillingAddress
public boolean cartHasPopulatedBillingAddress()Description copied from interface:CartStateServiceA helper method used to determine the validity of the payments on theCartState.getCart()- Specified by:
cartHasPopulatedBillingAddressin interfaceCartStateService- Returns:
- boolean indicating whether or not the CREDIT_CARD order payment on the order has an address
-
cartHasPopulatedShippingAddress
public boolean cartHasPopulatedShippingAddress()Description copied from interface:CartStateServiceA helper method used to determine the validity of theCartState.getCart()'s fulfillment groups- Specified by:
cartHasPopulatedShippingAddressin interfaceCartStateService- Returns:
- boolean indicating whether or not the fulfillment groups on the cart have addresses.
-
cartHasCreditCardPaymentWithSameToken
- Specified by:
cartHasCreditCardPaymentWithSameTokenin interfaceCartStateService
-
cartHasTemporaryCreditCard
public boolean cartHasTemporaryCreditCard()Description copied from interface:CartStateServiceA helper method used to determine whether or not theCartState.getCart()contains a temporary credit card.Note: Temporary credit card
OrderPayments are created to store the payment's billing address prior to submitting the checkout if aCustomerPaymentis not used.- Specified by:
cartHasTemporaryCreditCardin interfaceCartStateService- Returns:
- boolean
-
cartHasCreditCardPayment
public boolean cartHasCreditCardPayment()Description copied from interface:CartStateServiceA helper method used to determine whether or not theCartState.getCart()is using a payment of typePaymentType.CREDIT_CARD- Specified by:
cartHasCreditCardPaymentin interfaceCartStateService- Returns:
- boolean
-
cartHasThirdPartyPayment
public boolean cartHasThirdPartyPayment()Description copied from interface:CartStateServiceA helper method used to determine whether or not theCartState.getCart()is using a payment of typePaymentType.THIRD_PARTY_ACCOUNT- Specified by:
cartHasThirdPartyPaymentin interfaceCartStateService- Returns:
- boolean
-
cartHasUnconfirmedCreditCard
public boolean cartHasUnconfirmedCreditCard()Description copied from interface:CartStateServiceA helper method used to determine whether or not theCartState.getCart()contains an unconfirmed credit card- Specified by:
cartHasUnconfirmedCreditCardin interfaceCartStateService- Returns:
- boolean
-
getUnconfirmedCCFromCart
-