Class SavedPaymentMethodSummary

java.lang.Object
com.broadleafcommerce.cartoperation.domain.payment.SavedPaymentMethodSummary
All Implemented Interfaces:
Serializable

public class SavedPaymentMethodSummary extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
    A subset of Tracking information to expose the context state for this object.
    The gateway used to process this saved payment method.
    The id of this saved payment method.
    The name of this saved payment method.
    The status of this saved payment method.
    The type of this saved payment method like Credit Card or Gift Card.
    int
     
    boolean
    Whether this saved payment is the default payment method for the owning user.
    void
    setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
    A subset of Tracking information to expose the context state for this object.
    void
    setDefaultForOwner(boolean defaultForOwner)
    Whether this saved payment is the default payment method for the owning user.
    void
    setGatewayType(String gatewayType)
    The gateway used to process this saved payment method.
    void
    The id of this saved payment method.
    void
    The name of this saved payment method.
    void
    setStatus(String status)
    The status of this saved payment method.
    void
    The type of this saved payment method like Credit Card or Gift Card.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SavedPaymentMethodSummary

      public SavedPaymentMethodSummary()
  • Method Details

    • getId

      public String getId()
      The id of this saved payment method.
      Returns:
      The id of this saved payment method.
    • getName

      public String 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

      public String 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

      public String 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

      public String 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 of Tracking information to expose the context state for this object.
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The id of this saved payment method.
      Parameters:
      id - The id of this saved payment method.
    • setName

      public void setName(String name)
      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

      public void setStatus(String status)
      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

      public void setType(String type)
      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

      public void setGatewayType(String gatewayType)
      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 of Tracking information to expose the context state for this object.
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object