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- 자동 매칭 때 후보 주문 수- 숨긴 입금이면 true- 숨긴 시각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
계좌에 들어온 입금입니다.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record입금과 매칭된 주문입니다.static final record매칭을 해제한 기록입니다. -
Constructor Summary
ConstructorsConstructorDescriptionTransaction(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) Creates an instance of aTransactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.Returns the value of thebankAccountrecord component.@Nullable IntegerReturns the value of thecandidateCountrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedepositorNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable MatchFailureReasonReturns the value of thefailureReasonrecord component.final inthashCode()Returns a hash code value for this object.booleanhidden()Returns the value of thehiddenrecord component.@Nullable InstanthiddenAt()Returns the value of thehiddenAtrecord component.id()Returns the value of theidrecord component.@Nullable Transaction.Matchmatch()Returns the value of thematchrecord component.Returns the value of thereceivedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunmatchesrecord component.
-
Constructor Details
-
Transaction
public 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) Creates an instance of aTransactionrecord class.- Parameters:
id- the value for theidrecord componentbankAccount- the value for thebankAccountrecord componentdepositorName- the value for thedepositorNamerecord componentamount- the value for theamountrecord componentreceivedAt- the value for thereceivedAtrecord componentstatus- the value for thestatusrecord componentmatch- the value for thematchrecord componentfailureReason- the value for thefailureReasonrecord componentcandidateCount- the value for thecandidateCountrecord componenthidden- the value for thehiddenrecord componenthiddenAt- the value for thehiddenAtrecord componentunmatches- the value for theunmatchesrecord componentcreatedAt- the value for thecreatedAtrecord 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. -
id
-
bankAccount
Returns the value of thebankAccountrecord component.- Returns:
- the value of the
bankAccountrecord component
-
depositorName
Returns the value of thedepositorNamerecord component.- Returns:
- the value of the
depositorNamerecord component
-
amount
-
receivedAt
Returns the value of thereceivedAtrecord component.- Returns:
- the value of the
receivedAtrecord component
-
status
-
match
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
candidateCount
Returns the value of thecandidateCountrecord component.- Returns:
- the value of the
candidateCountrecord component
-
unmatches
-
createdAt
-