Record Class Transaction.Match
java.lang.Object
java.lang.Record
kr.paysync.sdk.transaction.Transaction.Match
- Record Components:
invoiceId- 주문 IDinvoiceNumber- 주문번호method- 매칭 방식automatic- 자동 매칭이면 truematchedAt- 매칭한 시각matchedBy- 매칭한 주체amountDiff- 입금 금액에서 주문 금액을 뺀 값
- Enclosing class:
Transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable LongReturns the value of theamountDiffrecord component.booleanReturns the value of theautomaticrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvoiceIdrecord component.longReturns the value of theinvoiceNumberrecord component.Returns the value of thematchedAtrecord component.Returns the value of thematchedByrecord component.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Match
public Match(String invoiceId, long invoiceNumber, MatchMethod method, boolean automatic, Instant matchedAt, Actor matchedBy, @Nullable Long amountDiff) Creates an instance of aMatchrecord class.- Parameters:
invoiceId- the value for theinvoiceIdrecord componentinvoiceNumber- the value for theinvoiceNumberrecord componentmethod- the value for themethodrecord componentautomatic- the value for theautomaticrecord componentmatchedAt- the value for thematchedAtrecord componentmatchedBy- the value for thematchedByrecord componentamountDiff- the value for theamountDiffrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
invoiceId
-
invoiceNumber
public long invoiceNumber()Returns the value of theinvoiceNumberrecord component.- Returns:
- the value of the
invoiceNumberrecord component
-
method
-
automatic
-
matchedAt
-
matchedBy
-
amountDiff
Returns the value of theamountDiffrecord component.- Returns:
- the value of the
amountDiffrecord component
-