Record Class WebhookEvent.UnknownEvent
java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.WebhookEvent.UnknownEvent
- Record Components:
rawType- 이벤트 종류 문자열data- 이벤트 data
- All Implemented Interfaces:
WebhookEvent
- Enclosing interface:
WebhookEvent
public static record WebhookEvent.UnknownEvent(String id, WebhookEventType type, Instant timestamp, String rawType, @Nullable org.json.JSONObject data)
extends Record
implements WebhookEvent
이 SDK 버전이 모르는 이벤트입니다.
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebhookEvent
WebhookEvent.InvoiceEvent, WebhookEvent.TransactionEvent, WebhookEvent.UnknownEvent -
Constructor Summary
ConstructorsConstructorDescriptionUnknownEvent(String id, WebhookEventType type, Instant timestamp, String rawType, @Nullable org.json.JSONObject data) Creates an instance of aUnknownEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.json.JSONObjectdata()Returns the value of thedatarecord 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.rawType()Returns the value of therawTyperecord 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
-
UnknownEvent
public UnknownEvent(String id, WebhookEventType type, Instant timestamp, String rawType, @Nullable org.json.JSONObject data) Creates an instance of aUnknownEventrecord class.
-
-
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
-
rawType
-
data
-