Record Class TransactionPayload
java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.TransactionPayload
- Record Components:
id- 입금 ID (trx_...)bankAccount- 입금이 들어온 계좌depositorName- 은행 알림에 적힌 입금자명amount- 입금 금액(원)status- 입금 상태matchedInvoiceId- 매칭된 주문 IDmatchedInvoiceNumber- 매칭된 주문번호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 Summary
ConstructorsConstructorDescriptionTransactionPayload(String id, BankAccount bankAccount, String depositorName, long amount, TransactionStatus status, @Nullable String matchedInvoiceId, @Nullable Long matchedInvoiceNumber, Instant receivedAt, Instant createdAt) Creates an instance of aTransactionPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.Returns the value of thebankAccountrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedepositorNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable StringReturns the value of thematchedInvoiceIdrecord component.@Nullable LongReturns the value of thematchedInvoiceNumberrecord component.Returns the value of thereceivedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aTransactionPayloadrecord class.- Parameters:
id- the value for theidrecord componentbankAccount- the value for thebankAccountrecord componentdepositorName- the value for thedepositorNamerecord componentamount- the value for theamountrecord componentstatus- the value for thestatusrecord componentmatchedInvoiceId- the value for thematchedInvoiceIdrecord componentmatchedInvoiceNumber- the value for thematchedInvoiceNumberrecord componentreceivedAt- the value for thereceivedAtrecord 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
-
status
-
matchedInvoiceId
Returns the value of thematchedInvoiceIdrecord component.- Returns:
- the value of the
matchedInvoiceIdrecord component
-
matchedInvoiceNumber
Returns the value of thematchedInvoiceNumberrecord component.- Returns:
- the value of the
matchedInvoiceNumberrecord component
-
receivedAt
Returns the value of thereceivedAtrecord component.- Returns:
- the value of the
receivedAtrecord component
-
createdAt
-