public final class CreditCard extends PaymentCard
Constructor and Description |
---|
CreditCard(String cardAssociationName,
String cardNumber,
String nameOnCard,
String billingAddress,
LocalDateTime validFrom,
LocalDateTime expiryDate,
String cardVerificationCode,
javax.money.MonetaryAmount dailyWithdrawalLimit,
javax.money.MonetaryAmount creditLimit)
Instantiates a generic credit card.
|
CreditCard(String cardName,
String cardAssociationName,
String cardNumber,
String nameOnCard,
String billingAddress,
LocalDateTime validFrom,
LocalDateTime expiryDate,
String cardVerificationCode,
javax.money.MonetaryAmount dailyWithdrawalLimit,
javax.money.MonetaryAmount creditLimit)
Instantiates a specific credit card.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
javax.money.MonetaryAmount |
getCreditLimit()
Line of credit extended by the issuing association to the card holder.
|
javax.money.MonetaryAmount |
getDailyWithdrawalLimit()
The maximum amount of money, the card holder can dispose of within a day.
|
int |
hashCode() |
String |
toString() |
getBillingAddress, getCardAssociationName, getCardNumber, getCardVerificationCode, getExpiryDate, getNameOnCard, getValidFrom
public CreditCard(String cardName, String cardAssociationName, String cardNumber, String nameOnCard, String billingAddress, LocalDateTime validFrom, LocalDateTime expiryDate, String cardVerificationCode, javax.money.MonetaryAmount dailyWithdrawalLimit, javax.money.MonetaryAmount 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, javax.money.MonetaryAmount dailyWithdrawalLimit, javax.money.MonetaryAmount 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
owner@Generated(value="lombok") public javax.money.MonetaryAmount getDailyWithdrawalLimit()
@Generated(value="lombok") public javax.money.MonetaryAmount getCreditLimit()
@Generated(value="lombok") public String toString()
toString
in class PaymentCard
@Generated(value="lombok") public boolean equals(Object o)
equals
in class PaymentCard
@Generated(value="lombok") protected boolean canEqual(Object other)
canEqual
in class PaymentCard
@Generated(value="lombok") public int hashCode()
hashCode
in class PaymentCard
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.