Class PaymentAccount

java.lang.Object
com.broadleafcommerce.billing.job.domain.PaymentAccount
All Implemented Interfaces:
Serializable

public class PaymentAccount extends Object implements Serializable
This contains details of a single payment account that can be used for payment transactions
See Also:
  • Constructor Details

    • PaymentAccount

      public PaymentAccount()
    • PaymentAccount

      public PaymentAccount(String id, String displayName, String accountType, String maskedAccountNumber, String nameOnAccount, String cardType, Integer expirationMonth, Integer expirationYear, String paymentToken, String paymentNetworkTransactionId, String paymentTokenGateway, String lastTransactionResult, Date lastTransactionDateTime, @Nullable Address billingAddress, String walletUserId)
  • Method Details

    • convert

      public Object convert(org.modelmapper.spi.MappingContext<?,?> context)
    • getId

      public String getId()
    • getDisplayName

      public String getDisplayName()
      A display name for this account
    • getAccountType

      public String getAccountType()
      Type of the account
    • getMaskedAccountNumber

      public String getMaskedAccountNumber()
      A masked account number. For example, a credit card number
    • getNameOnAccount

      public String getNameOnAccount()
      Name of the account owner
    • getCardType

      public String getCardType()
      Type of card that this account represents
    • getExpirationMonth

      public Integer getExpirationMonth()
      Expiration month of this account
    • getExpirationYear

      public Integer getExpirationYear()
      Expiration year of this account
    • getPaymentToken

      @Deprecated public String getPaymentToken()
      Deprecated.
      in favor of not exposing payment method data in BillingServices.
    • getPaymentNetworkTransactionId

      @Deprecated public String getPaymentNetworkTransactionId()
      Deprecated.
      since payment transactions are no longer executed within BillingServices. Therefore, there's no need to pass this value throughout BillingServices.
    • getPaymentTokenGateway

      public String getPaymentTokenGateway()
      The payment gateway where this account should be used
    • getLastTransactionResult

      public String getLastTransactionResult()
      Result of the most recent transaction with this account
    • getLastTransactionDateTime

      public Date getLastTransactionDateTime()
      The date of the most recent transaction with this account
    • getBillingAddress

      @Nullable public Address getBillingAddress()
      The Address object tied to this account
    • getWalletUserId

      public String getWalletUserId()
      Reference to the user owning the walled which this account is part of
    • setId

      public void setId(String id)
    • setDisplayName

      public void setDisplayName(String displayName)
      A display name for this account
    • setAccountType

      public void setAccountType(String accountType)
      Type of the account
    • setMaskedAccountNumber

      public void setMaskedAccountNumber(String maskedAccountNumber)
      A masked account number. For example, a credit card number
    • setNameOnAccount

      public void setNameOnAccount(String nameOnAccount)
      Name of the account owner
    • setCardType

      public void setCardType(String cardType)
      Type of card that this account represents
    • setExpirationMonth

      public void setExpirationMonth(Integer expirationMonth)
      Expiration month of this account
    • setExpirationYear

      public void setExpirationYear(Integer expirationYear)
      Expiration year of this account
    • setPaymentToken

      @Deprecated public void setPaymentToken(String paymentToken)
      Deprecated.
      in favor of not exposing payment method data in BillingServices.
    • setPaymentNetworkTransactionId

      @Deprecated public void setPaymentNetworkTransactionId(String paymentNetworkTransactionId)
      Deprecated.
      since payment transactions are no longer executed within BillingServices. Therefore, there's no need to pass this value throughout BillingServices.
    • setPaymentTokenGateway

      public void setPaymentTokenGateway(String paymentTokenGateway)
      The payment gateway where this account should be used
    • setLastTransactionResult

      public void setLastTransactionResult(String lastTransactionResult)
      Result of the most recent transaction with this account
    • setLastTransactionDateTime

      public void setLastTransactionDateTime(Date lastTransactionDateTime)
      The date of the most recent transaction with this account
    • setBillingAddress

      public void setBillingAddress(@Nullable Address billingAddress)
      The Address object tied to this account
    • setWalletUserId

      public void setWalletUserId(String walletUserId)
      Reference to the user owning the walled which this account is part of
    • 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