public final class DebitCard extends PaymentCard
DebitCard
.Constructor and Description |
---|
DebitCard(String cardAssociationName,
String cardNumber,
String nameOnCard,
String billingAddress,
LocalDateTime validFrom,
LocalDateTime expiryDate,
String cardVerificationCode,
javax.money.MonetaryAmount dailyWithdrawalLimit)
Instantiates a generic debit card.
|
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.
|
Modifier and Type | Method and 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() |
getBillingAddress, getCardAssociationName, getCardNumber, getCardVerificationCode, getExpiryDate, getNameOnCard, getValidFrom
public DebitCard(String cardName, String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
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 ownerpublic DebitCard(String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit)
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 ownerpublic javax.money.MonetaryAmount getDailyWithdrawalLimit()
public String toString()
toString
in class PaymentCard
public boolean equals(Object o)
equals
in class PaymentCard
protected boolean canEqual(Object other)
canEqual
in class PaymentCard
public int hashCode()
hashCode
in class PaymentCard
Copyright © 2019. All rights reserved.