public final class CreditCard extends PaymentCard
Constructor and Description |
---|
CreditCard(String cardAssociationName,
String cardNumber,
String nameOnCard,
String billingAddress,
LocalDateTime validFrom,
LocalDateTime expiryDate,
String cardVerificationCode,
org.joda.money.Money dailyWithdrawalLimit,
org.joda.money.Money creditLimit)
Instantiates a generic credit card.
|
CreditCard(String cardName,
String cardAssociationName,
String cardNumber,
String nameOnCard,
String billingAddress,
LocalDateTime validFrom,
LocalDateTime expiryDate,
String cardVerificationCode,
org.joda.money.Money dailyWithdrawalLimit,
org.joda.money.Money creditLimit)
Instantiates a specific credit card.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.joda.money.Money |
getCreditLimit()
Line of credit extended by the issuing association to the card holder.
|
org.joda.money.Money |
getDailyWithdrawalLimit()
The maximum amount of money, the card holder can dispose of within a day.
|
int |
hashCode() |
getBillingAddress, getCardAssociationName, getCardNumber, getCardVerificationCode, getExpiryDate, getNameOnCard, getValidFrom, toString
public CreditCard(String cardName, String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, org.joda.money.Money dailyWithdrawalLimit, org.joda.money.Money creditLimit)
cardName
- The name of the card.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
- maximum amount of Money
which can be withdrawn on a daycreditLimit
- Money
representing the line of credit extended by the issuing association to the card
ownerpublic CreditCard(String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, org.joda.money.Money dailyWithdrawalLimit, org.joda.money.Money creditLimit)
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
- maximum amount of Money
which can be withdrawn on a daycreditLimit
- Money
representing the line of credit extended by the issuing association to the card
ownerpublic org.joda.money.Money getDailyWithdrawalLimit()
Money
object representing the the daily withdrawal limitpublic org.joda.money.Money getCreditLimit()
Money
object representing the credit limit.public boolean equals(Object obj)
equals
in class PaymentCard
public int hashCode()
hashCode
in class PaymentCard
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.