public interface CartStateService
| 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 |
boolean cartHasPopulatedOrderInfo()
CartState.getCart()'s order infoboolean cartHasPopulatedBillingAddress()
CartState.getCart()boolean cartHasPopulatedShippingAddress()
CartState.getCart()'s fulfillment groupsboolean cartHasCreditCardPaymentWithSameToken(String paymentToken)
paymentToken - boolean cartHasCreditCardPayment()
CartState.getCart() is using a payment of type PaymentType.CREDIT_CARDboolean cartHasThirdPartyPayment()
CartState.getCart() is using a payment of type PaymentType.THIRD_PARTY_ACCOUNTboolean cartHasTemporaryCreditCard()
CartState.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.boolean cartHasUnconfirmedCreditCard()
CartState.getCart() contains an unconfirmed credit cardCopyright © 2025. All rights reserved.