Record Class TransactionPayload

java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.TransactionPayload
Record Components:
id - 입금 ID (trx_...)
bankAccount - 입금이 들어온 계좌
depositorName - 은행 알림에 적힌 입금자명
amount - 입금 금액(원)
status - 입금 상태
matchedInvoiceId - 매칭된 주문 ID
matchedInvoiceNumber - 매칭된 주문번호
receivedAt - 은행 알림 기준 입금 시각
createdAt - PaySync가 입금을 기록한 시각

public record TransactionPayload(String id, BankAccount bankAccount, String depositorName, long amount, TransactionStatus status, @Nullable String matchedInvoiceId, @Nullable Long matchedInvoiceNumber, Instant receivedAt, Instant createdAt) extends Record
입금 이벤트의 입금입니다.
  • Constructor Details

    • TransactionPayload

      public TransactionPayload(String id, BankAccount bankAccount, String depositorName, long amount, TransactionStatus status, @Nullable String matchedInvoiceId, @Nullable Long matchedInvoiceNumber, Instant receivedAt, Instant createdAt)
      Creates an instance of a TransactionPayload record class.
      Parameters:
      id - the value for the id record component
      bankAccount - the value for the bankAccount record component
      depositorName - the value for the depositorName record component
      amount - the value for the amount record component
      status - the value for the status record component
      matchedInvoiceId - the value for the matchedInvoiceId record component
      matchedInvoiceNumber - the value for the matchedInvoiceNumber record component
      receivedAt - the value for the receivedAt record component
      createdAt - the value for the createdAt 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. 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
    • status

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

      public @Nullable String matchedInvoiceId()
      Returns the value of the matchedInvoiceId record component.
      Returns:
      the value of the matchedInvoiceId record component
    • matchedInvoiceNumber

      public @Nullable Long matchedInvoiceNumber()
      Returns the value of the matchedInvoiceNumber record component.
      Returns:
      the value of the matchedInvoiceNumber record component
    • receivedAt

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

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