Record Class WebhookEvent.InvoiceEvent
java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.WebhookEvent.InvoiceEvent
- Record Components:
invoice- 이벤트가 일어난 직후의 주문
- All Implemented Interfaces:
WebhookEvent
- Enclosing interface:
WebhookEvent
public static record WebhookEvent.InvoiceEvent(String id, WebhookEventType type, Instant timestamp, InvoicePayload invoice)
extends Record
implements WebhookEvent
주문 이벤트입니다.
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebhookEvent
WebhookEvent.InvoiceEvent, WebhookEvent.TransactionEvent, WebhookEvent.UnknownEvent -
Constructor Summary
ConstructorsConstructorDescriptionInvoiceEvent(String id, WebhookEventType type, Instant timestamp, InvoicePayload invoice) Creates an instance of aInvoiceEventrecord 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.invoice()Returns the value of theinvoicerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
InvoiceEvent
Creates an instance of aInvoiceEventrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componenttimestamp- the value for thetimestamprecord componentinvoice- the value for theinvoicerecord 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
-
invoice
-