Record Class Transaction

java.lang.Object
java.lang.Record
kr.paysync.sdk.transaction.Transaction
Record Components:
id - 입금 ID (trx_...)
bankAccount - 입금이 들어온 계좌
depositorName - 은행 알림에 적힌 입금자명
amount - 입금 금액(원)
receivedAt - 은행 알림 기준 입금 시각
status - 입금 상태
match - 매칭된 주문. 매칭되지 않았으면 null입니다.
failureReason - 자동 매칭에 실패한 이유
candidateCount - 자동 매칭 때 후보 주문 수
hidden - 숨긴 입금이면 true
hiddenAt - 숨긴 시각
unmatches - 매칭을 해제한 기록
createdAt - PaySync가 입금을 기록한 시각

public record Transaction(String id, BankAccount bankAccount, String depositorName, long amount, Instant receivedAt, TransactionStatus status, @Nullable Transaction.Match match, @Nullable MatchFailureReason failureReason, @Nullable Integer candidateCount, boolean hidden, @Nullable Instant hiddenAt, List<Transaction.Unmatch> unmatches, Instant createdAt) extends Record
계좌에 들어온 입금입니다.
  • Constructor Details

  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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
    • bankAccount

      public BankAccount bankAccount()
      Returns the value of the bankAccount record component.
      Returns:
      the value of the bankAccount record component
    • depositorName

      public String depositorName()
      Returns the value of the depositorName record component.
      Returns:
      the value of the depositorName record component
    • amount

      public long amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • receivedAt

      public Instant receivedAt()
      Returns the value of the receivedAt record component.
      Returns:
      the value of the receivedAt record component
    • status

      public TransactionStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • match

      public @Nullable Transaction.Match match()
      Returns the value of the match record component.
      Returns:
      the value of the match record component
    • failureReason

      public @Nullable MatchFailureReason failureReason()
      Returns the value of the failureReason record component.
      Returns:
      the value of the failureReason record component
    • candidateCount

      public @Nullable Integer candidateCount()
      Returns the value of the candidateCount record component.
      Returns:
      the value of the candidateCount record component
    • hidden

      public boolean hidden()
      Returns the value of the hidden record component.
      Returns:
      the value of the hidden record component
    • hiddenAt

      public @Nullable Instant hiddenAt()
      Returns the value of the hiddenAt record component.
      Returns:
      the value of the hiddenAt record component
    • unmatches

      public List<Transaction.Unmatch> unmatches()
      Returns the value of the unmatches record component.
      Returns:
      the value of the unmatches record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component