Package org.salespointframework.payment
Class DebitCard
- java.lang.Object
-
- org.salespointframework.payment.PaymentMethod
-
- org.salespointframework.payment.PaymentCard
-
- org.salespointframework.payment.DebitCard
-
- All Implemented Interfaces:
Serializable
public final class DebitCard extends PaymentCard
A debit card provides the holder with electronic access to his or her bank account. A payment made with such a card is represented by an instance of the classDebitCard
.- Author:
- Hannes Weisbach, Oliver Gierke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DebitCard(String cardName, String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
Instantiates a specific type of debit card.DebitCard(String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
Instantiates a generic debit card.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
javax.money.MonetaryAmount
getDailyWithdrawalLimit()
Amount of money, the card holder can dispose of within a day.int
hashCode()
String
toString()
-
Methods inherited from class org.salespointframework.payment.PaymentCard
getBillingAddress, getCardAssociationName, getCardNumber, getCardVerificationCode, getExpiryDate, getNameOnCard, getValidFrom
-
-
-
-
Constructor Detail
-
DebitCard
public DebitCard(String cardName, String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
Instantiates a specific type of debit card.- Parameters:
cardName
- The name of this card, e.g. Maestro or MasterCard.cardAssociationName
- the name of the association which issued the cardcardNumber
- the number of this cardnameOnCard
- name of the card ownerbillingAddress
- the address to which account statements are sentvalidFrom
- date from which the card is validexpiryDate
- date on which the card expirescardVerificationCode
- verification code printed on the card or a PINdailyWithdrawalLimit
-Money
representing the line of credit extended by the issuing association to the card owner
-
DebitCard
public DebitCard(String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
Instantiates a generic debit card.- Parameters:
cardAssociationName
- the name of the association which issued the cardcardNumber
- the number of this cardnameOnCard
- name of the card ownerbillingAddress
- the address to which account statements are sentvalidFrom
- date from which the card is validexpiryDate
- date on which the card expirescardVerificationCode
- verification code printed on the card or a PINdailyWithdrawalLimit
-Money
representing the line of credit extended by the issuing association to the card owner
-
-
Method Detail
-
getDailyWithdrawalLimit
public javax.money.MonetaryAmount getDailyWithdrawalLimit()
Amount of money, the card holder can dispose of within a day.
-
toString
public String toString()
- Overrides:
toString
in classPaymentCard
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classPaymentCard
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classPaymentCard
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPaymentCard
-
-