Class SavedPaymentMethodSummary
java.lang.Object
com.broadleafcommerce.cartoperation.domain.payment.SavedPaymentMethodSummary
- All Implemented Interfaces:
Serializable
The domain that summarizes the current state of the saved payment method.
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.The gateway used to process this saved payment method.getId()The id of this saved payment method.getName()The name of this saved payment method.The status of this saved payment method.getType()The type of this saved payment method like Credit Card or Gift Card.inthashCode()booleanWhether this saved payment is the default payment method for the owning user.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDefaultForOwner(boolean defaultForOwner) Whether this saved payment is the default payment method for the owning user.voidsetGatewayType(String gatewayType) The gateway used to process this saved payment method.voidThe id of this saved payment method.voidThe name of this saved payment method.voidThe status of this saved payment method.voidThe type of this saved payment method like Credit Card or Gift Card.toString()
-
Constructor Details
-
SavedPaymentMethodSummary
public SavedPaymentMethodSummary()
-
-
Method Details
-
getId
The id of this saved payment method.- Returns:
- The id of this saved payment method.
-
getName
The name of this saved payment method. This name is typically something like "Visa ending in 1234".- Returns:
- The name of this saved payment method.
-
getStatus
The status of this saved payment method.- Returns:
- The name of this saved payment method.
-
isDefaultForOwner
public boolean isDefaultForOwner()Whether this saved payment is the default payment method for the owning user.- Returns:
- True if this saved payment is the default payment method for the owning user, otherwise false.
-
getType
The type of this saved payment method like Credit Card or Gift Card.- Returns:
- The type of this saved payment method like Credit Card or Gift Card.
-
getGatewayType
The gateway used to process this saved payment method. Only a SINGLE payment gateway can be used for a payment.- Returns:
- The gateway used to process this saved payment method.
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
The id of this saved payment method.- Parameters:
id- The id of this saved payment method.
-
setName
The name of this saved payment method. This name is typically something like "Visa ending in 1234".- Parameters:
name- The name of this saved payment method.
-
setStatus
The status of this saved payment method.- Parameters:
name- The name of this saved payment method.
-
setDefaultForOwner
public void setDefaultForOwner(boolean defaultForOwner) Whether this saved payment is the default payment method for the owning user.- Parameters:
defaultForOwner- Whether this saved payment is the default payment method for the owning user.
-
setType
The type of this saved payment method like Credit Card or Gift Card.- Parameters:
type- The type of this saved payment method like Credit Card or Gift Card.
-
setGatewayType
The gateway used to process this saved payment method. Only a SINGLE payment gateway can be used for a payment.- Parameters:
gatewayType- The gateway used to process this saved payment method.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-