@Service(value="blCartStateService") public class CartStateServiceImpl extends Object implements CartStateService
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OrderPaymentService |
orderPaymentService |
| Constructor and Description |
|---|
CartStateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cartHasCreditCardPayment()
A helper method used to determine whether or not the
CartState.getCart() is using a payment of type PaymentType.CREDIT_CARD |
boolean |
cartHasCreditCardPaymentWithSameToken(String paymentToken) |
boolean |
cartHasPopulatedBillingAddress()
A helper method used to determine the validity of the payments on the
CartState.getCart() |
boolean |
cartHasPopulatedOrderInfo()
A helper method used to determine the validity of the
CartState.getCart()'s order info |
boolean |
cartHasPopulatedShippingAddress()
A helper method used to determine the validity of the
CartState.getCart()'s fulfillment groups |
boolean |
cartHasTemporaryCreditCard()
A helper method used to determine whether or not the
CartState.getCart() contains a temporary credit card. |
boolean |
cartHasThirdPartyPayment()
A helper method used to determine whether or not the
CartState.getCart() is using a payment of type PaymentType.THIRD_PARTY_ACCOUNT |
boolean |
cartHasUnconfirmedCreditCard()
A helper method used to determine whether or not the
CartState.getCart() contains an unconfirmed credit card |
protected OrderPayment |
getUnconfirmedCCFromCart() |
protected FulfillmentGroupService fulfillmentGroupService
protected OrderPaymentService orderPaymentService
public boolean cartHasPopulatedOrderInfo()
CartStateServiceCartState.getCart()'s order infocartHasPopulatedOrderInfo in interface CartStateServicepublic boolean cartHasPopulatedBillingAddress()
CartStateServiceCartState.getCart()cartHasPopulatedBillingAddress in interface CartStateServicepublic boolean cartHasPopulatedShippingAddress()
CartStateServiceCartState.getCart()'s fulfillment groupscartHasPopulatedShippingAddress in interface CartStateServicepublic boolean cartHasCreditCardPaymentWithSameToken(String paymentToken)
cartHasCreditCardPaymentWithSameToken in interface CartStateServicepublic boolean cartHasTemporaryCreditCard()
CartStateServiceCartState.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 a CustomerPayment is not used.cartHasTemporaryCreditCard in interface CartStateServicepublic boolean cartHasCreditCardPayment()
CartStateServiceCartState.getCart() is using a payment of type PaymentType.CREDIT_CARDcartHasCreditCardPayment in interface CartStateServicepublic boolean cartHasThirdPartyPayment()
CartStateServiceCartState.getCart() is using a payment of type PaymentType.THIRD_PARTY_ACCOUNTcartHasThirdPartyPayment in interface CartStateServicepublic boolean cartHasUnconfirmedCreditCard()
CartStateServiceCartState.getCart() contains an unconfirmed credit cardcartHasUnconfirmedCreditCard in interface CartStateServiceprotected OrderPayment getUnconfirmedCCFromCart()
Copyright © 2017. All rights reserved.