Class Card


  • public final class Card
    extends java.lang.Object
    Record containing basic card details.
    • Constructor Summary

      Constructors 
      Constructor Description
      Card​(java.lang.String id, java.lang.String accountId, java.lang.String cardType, java.lang.String cardStatus, int limit, java.lang.String maskedPan, java.lang.String expiry, boolean sca)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAccountId()
      Associated account's identifier.
      java.lang.String getCardStatus()
      Current card status.
      java.lang.String getCardType()
      Card type.
      java.lang.String getExpiry()
      Card year and month of expiry, e.g.
      java.lang.String getId()
      Unique card identifier.
      int getLimit()
      Current card limit.
      java.lang.String getMaskedPan()
      Card masked pan, e.g **** **** **** 5454.
      boolean getSca()
      Boolean indicating if card is SCA compliant.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Card

        public Card​(java.lang.String id,
                    java.lang.String accountId,
                    java.lang.String cardType,
                    java.lang.String cardStatus,
                    int limit,
                    java.lang.String maskedPan,
                    java.lang.String expiry,
                    boolean sca)
    • Method Detail

      • getId

        public java.lang.String getId()
        Unique card identifier.
      • getAccountId

        public java.lang.String getAccountId()
        Associated account's identifier.
      • getCardType

        public java.lang.String getCardType()
        Card type.
      • getCardStatus

        public java.lang.String getCardStatus()
        Current card status.
        See Also:
        CardStatus
      • getLimit

        public int getLimit()
        Current card limit.
      • getMaskedPan

        public java.lang.String getMaskedPan()
        Card masked pan, e.g **** **** **** 5454.
      • getExpiry

        public java.lang.String getExpiry()
        Card year and month of expiry, e.g. 2024-08.
      • getSca

        public boolean getSca()
        Boolean indicating if card is SCA compliant.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object