Class PaymentAccount
java.lang.Object
com.broadleafcommerce.billing.job.domain.PaymentAccount
- All Implemented Interfaces:
Serializable
This contains details of a single payment account that can be used for payment transactions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPaymentAccount(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, Address billingAddress, String walletUserId) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconvert(org.modelmapper.spi.MappingContext<?, ?> context) booleanType of the accountThe Address object tied to this accountType of card that this account representsA display name for this accountExpiration month of this accountExpiration year of this accountgetId()The date of the most recent transaction with this accountResult of the most recent transaction with this accountA masked account number.Name of the account ownerDeprecated.since payment transactions are no longer executed within BillingServices.Deprecated.in favor of not exposing payment method data in BillingServices.The payment gateway where this account should be usedReference to the user owning the walled which this account is part ofinthashCode()voidsetAccountType(String accountType) Type of the accountvoidsetBillingAddress(Address billingAddress) The Address object tied to this accountvoidsetCardType(String cardType) Type of card that this account representsvoidsetDisplayName(String displayName) A display name for this accountvoidsetExpirationMonth(Integer expirationMonth) Expiration month of this accountvoidsetExpirationYear(Integer expirationYear) Expiration year of this accountvoidvoidsetLastTransactionDateTime(Date lastTransactionDateTime) The date of the most recent transaction with this accountvoidsetLastTransactionResult(String lastTransactionResult) Result of the most recent transaction with this accountvoidsetMaskedAccountNumber(String maskedAccountNumber) A masked account number.voidsetNameOnAccount(String nameOnAccount) Name of the account ownervoidsetPaymentNetworkTransactionId(String paymentNetworkTransactionId) Deprecated.since payment transactions are no longer executed within BillingServices.voidsetPaymentToken(String paymentToken) Deprecated.in favor of not exposing payment method data in BillingServices.voidsetPaymentTokenGateway(String paymentTokenGateway) The payment gateway where this account should be usedvoidsetWalletUserId(String walletUserId) Reference to the user owning the walled which this account is part oftoString()
-
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
-
getId
-
getDisplayName
A display name for this account -
getAccountType
Type of the account -
getMaskedAccountNumber
A masked account number. For example, a credit card number -
getNameOnAccount
Name of the account owner -
getCardType
Type of card that this account represents -
getExpirationMonth
Expiration month of this account -
getExpirationYear
Expiration year of this account -
getPaymentToken
Deprecated.in favor of not exposing payment method data in BillingServices. -
getPaymentNetworkTransactionId
Deprecated.since payment transactions are no longer executed within BillingServices. Therefore, there's no need to pass this value throughout BillingServices. -
getPaymentTokenGateway
The payment gateway where this account should be used -
getLastTransactionResult
Result of the most recent transaction with this account -
getLastTransactionDateTime
The date of the most recent transaction with this account -
getBillingAddress
The Address object tied to this account -
getWalletUserId
Reference to the user owning the walled which this account is part of -
setId
-
setDisplayName
A display name for this account -
setAccountType
Type of the account -
setMaskedAccountNumber
A masked account number. For example, a credit card number -
setNameOnAccount
Name of the account owner -
setCardType
Type of card that this account represents -
setExpirationMonth
Expiration month of this account -
setExpirationYear
Expiration year of this account -
setPaymentToken
Deprecated.in favor of not exposing payment method data in BillingServices. -
setPaymentNetworkTransactionId
Deprecated.since payment transactions are no longer executed within BillingServices. Therefore, there's no need to pass this value throughout BillingServices. -
setPaymentTokenGateway
The payment gateway where this account should be used -
setLastTransactionResult
Result of the most recent transaction with this account -
setLastTransactionDateTime
The date of the most recent transaction with this account -
setBillingAddress
The Address object tied to this account -
setWalletUserId
Reference to the user owning the walled which this account is part of -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-