Record Class Transaction.Match

java.lang.Object
java.lang.Record
kr.paysync.sdk.transaction.Transaction.Match
Record Components:
invoiceId - 주문 ID
invoiceNumber - 주문번호
method - 매칭 방식
automatic - 자동 매칭이면 true
matchedAt - 매칭한 시각
matchedBy - 매칭한 주체
amountDiff - 입금 금액에서 주문 금액을 뺀 값
Enclosing class:
Transaction

public static record Transaction.Match(String invoiceId, long invoiceNumber, MatchMethod method, boolean automatic, Instant matchedAt, Actor matchedBy, @Nullable Long amountDiff) extends Record
입금과 매칭된 주문입니다.
  • Constructor Details

    • Match

      public Match(String invoiceId, long invoiceNumber, MatchMethod method, boolean automatic, Instant matchedAt, Actor matchedBy, @Nullable Long amountDiff)
      Creates an instance of a Match record class.
      Parameters:
      invoiceId - the value for the invoiceId record component
      invoiceNumber - the value for the invoiceNumber record component
      method - the value for the method record component
      automatic - the value for the automatic record component
      matchedAt - the value for the matchedAt record component
      matchedBy - the value for the matchedBy record component
      amountDiff - the value for the amountDiff 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.
    • invoiceId

      public String invoiceId()
      Returns the value of the invoiceId record component.
      Returns:
      the value of the invoiceId record component
    • invoiceNumber

      public long invoiceNumber()
      Returns the value of the invoiceNumber record component.
      Returns:
      the value of the invoiceNumber record component
    • method

      public MatchMethod method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • automatic

      public boolean automatic()
      Returns the value of the automatic record component.
      Returns:
      the value of the automatic record component
    • matchedAt

      public Instant matchedAt()
      Returns the value of the matchedAt record component.
      Returns:
      the value of the matchedAt record component
    • matchedBy

      public Actor matchedBy()
      Returns the value of the matchedBy record component.
      Returns:
      the value of the matchedBy record component
    • amountDiff

      public @Nullable Long amountDiff()
      Returns the value of the amountDiff record component.
      Returns:
      the value of the amountDiff record component