Class CreditCardDTO

java.lang.Object
com.dada.banking_project.dtos.CreditCardDTO

public class CreditCardDTO extends Object
This class represents a Credit Card Data Transfer Object (DTO).
  • 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 card
      balance - the balance of the credit card
      primaryOwner - the primary owner of the credit card
      secondaryOwner - the secondary owner of the credit card
      status - the status of the credit card
      creditLimit - the credit limit of the credit card
      interestRate - the interest rate of the credit card
  • Method Details

    • getId

      public Long getId()
      Returns the id of the credit card.
      Returns:
      the id of the credit card
    • getBalance

      public BigDecimal getBalance()
      Returns the balance of the credit card.
      Returns:
      the balance of the credit card
    • getPrimaryOwner

      public String getPrimaryOwner()
      Returns the primary owner of the credit card.
      Returns:
      the primary owner of the credit card
    • getSecondaryOwner

      public String getSecondaryOwner()
      Returns the secondary owner of the credit card.
      Returns:
      the secondary owner of the credit card
    • getStatus

      public String getStatus()
      Returns the status of the credit card.
      Returns:
      the status of the credit card
    • getCreditLimit

      public BigDecimal getCreditLimit()
      Returns the credit limit of the credit card.
      Returns:
      the credit limit of the credit card
    • getInterestRate

      public BigDecimal getInterestRate()
      Returns the interest rate of the credit card.
      Returns:
      the interest rate of the credit card