Package com.dada.banking_project.dtos
Class CreditCardDTO
java.lang.Object
com.dada.banking_project.dtos.CreditCardDTO
This class represents a Credit Card Data Transfer Object (DTO).
-
Constructor Summary
ConstructorDescriptionCreditCardDTO
(Long id, BigDecimal balance, String primaryOwner, String secondaryOwner, String status, BigDecimal creditLimit, BigDecimal interestRate) Constructs a new CreditCardDTO object with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the balance of the credit card.Returns the credit limit of the credit card.getId()
Returns the id of the credit card.Returns the interest rate of the credit card.Returns the primary owner of the credit card.Returns the secondary owner of the credit card.Returns the status of the credit card.
-
Constructor Details
-
CreditCardDTO
public CreditCardDTO(Long id, BigDecimal balance, String primaryOwner, String secondaryOwner, String status, BigDecimal creditLimit, BigDecimal interestRate) Constructs a new CreditCardDTO object with the specified values.- Parameters:
id
- the id of the credit cardbalance
- the balance of the credit cardprimaryOwner
- the primary owner of the credit cardsecondaryOwner
- the secondary owner of the credit cardstatus
- the status of the credit cardcreditLimit
- the credit limit of the credit cardinterestRate
- the interest rate of the credit card
-
-
Method Details
-
getId
Returns the id of the credit card.- Returns:
- the id of the credit card
-
getBalance
Returns the balance of the credit card.- Returns:
- the balance of the credit card
-
getPrimaryOwner
Returns the primary owner of the credit card.- Returns:
- the primary owner of the credit card
-
getSecondaryOwner
Returns the secondary owner of the credit card.- Returns:
- the secondary owner of the credit card
-
getStatus
Returns the status of the credit card.- Returns:
- the status of the credit card
-
getCreditLimit
Returns the credit limit of the credit card.- Returns:
- the credit limit of the credit card
-
getInterestRate
Returns the interest rate of the credit card.- Returns:
- the interest rate of the credit card
-