Record Class BankAccount

java.lang.Object
java.lang.Record
kr.paysync.sdk.model.BankAccount
Record Components:
id - 계좌 ID (bac_...)
alias - 대시보드에서 정한 계좌 별칭
provider - 은행
type - 계좌 종류
number - 은행 표기 방식대로 하이픈을 넣은 계좌번호

public record BankAccount(String id, String alias, BankAccountProvider provider, BankAccountType type, String number) extends Record
입금이 들어온 계좌입니다.
  • Constructor Details

    • BankAccount

      public BankAccount(String id, String alias, BankAccountProvider provider, BankAccountType type, String number)
      Creates an instance of a BankAccount record class.
      Parameters:
      id - the value for the id record component
      alias - the value for the alias record component
      provider - the value for the provider record component
      type - the value for the type record component
      number - the value for the number record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • alias

      public String alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • provider

      public BankAccountProvider provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • type

      public BankAccountType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • number

      public String number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component