java.lang.Object
com.broadleafcommerce.billing.job.domain.Wallet

public class Wallet extends Object
This is a basic wallet representation of a given user's payment accounts. It keeps an updated list of PaymentAccount ids that can be billed for a given user.
  • Constructor Details

    • Wallet

      public Wallet()
    • Wallet

      public Wallet(String userId, String defaultAccountId, List<@Size(max=255) String> activePaymentAccountIds)
  • Method Details

    • getUserId

      public String getUserId()
      Reference to the user for whom this wallet is used
    • getDefaultAccountId

      public String getDefaultAccountId()
      The identifier of the default payment account for this user, according to the external system that provided payment accounts
    • getActivePaymentAccountIds

      public List<@Size(max=255) String> getActivePaymentAccountIds()
      List of active payment account ids
    • setUserId

      public void setUserId(String userId)
      Reference to the user for whom this wallet is used
    • setDefaultAccountId

      public void setDefaultAccountId(String defaultAccountId)
      The identifier of the default payment account for this user, according to the external system that provided payment accounts
    • setActivePaymentAccountIds

      public void setActivePaymentAccountIds(List<@Size(max=255) String> activePaymentAccountIds)
      List of active payment account ids
    • 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