Record Class WebhookEvent.TransactionEvent
java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.WebhookEvent.TransactionEvent
- Record Components:
transaction- 새로 들어온 입금
- All Implemented Interfaces:
WebhookEvent
- Enclosing interface:
WebhookEvent
public static record WebhookEvent.TransactionEvent(String id, WebhookEventType type, Instant timestamp, TransactionPayload transaction)
extends Record
implements WebhookEvent
입금 이벤트입니다.
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebhookEvent
WebhookEvent.InvoiceEvent, WebhookEvent.TransactionEvent, WebhookEvent.UnknownEvent -
Constructor Summary
ConstructorsConstructorDescriptionTransactionEvent(String id, WebhookEventType type, Instant timestamp, TransactionPayload transaction) Creates an instance of aTransactionEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TransactionEvent
public TransactionEvent(String id, WebhookEventType type, Instant timestamp, TransactionPayload transaction) Creates an instance of aTransactionEventrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componenttimestamp- the value for thetimestamprecord componenttransaction- the value for thetransactionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWebhookEvent- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceWebhookEvent- Returns:
- the value of the
typerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceWebhookEvent- Returns:
- the value of the
timestamprecord component
-
transaction
Returns the value of thetransactionrecord component.- Returns:
- the value of the
transactionrecord component
-