Package com.duffel.sdk.model
Class Webhook1
java.lang.Object
com.duffel.sdk.model.Webhook1
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class Webhook1
extends Object
A webhook that will receive notifications of the subscribed events
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) createdAt(LocalDateTime createdAt) boolean@NotNull BooleanWhether the webhook receiver is actively being notified or notThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was createdThe events that this webhook will be subscribed to@NotNull StringgetId()Duffel's unique identifier for the webhook receiver@NotNull BooleanThe live mode that the webhook was created in.The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was updated@NotNull StringgetUrl()The URL where your webhook will be receivedinthashCode()voidvoidsetCreatedAt(LocalDateTime createdAt) voidvoidvoidsetLiveMode(Boolean liveMode) voidsetUpdatedAt(LocalDateTime updatedAt) voidtoString()updatedAt(LocalDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_ACTIVE
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_EVENTS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LIVE_MODE
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
-
Constructor Details
-
Webhook1
public Webhook1()
-
-
Method Details
-
active
-
getActive
Whether the webhook receiver is actively being notified or not- Returns:
- active
-
setActive
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was created- Returns:
- createdAt
-
setCreatedAt
-
events
-
addEventsItem
-
getEvents
The events that this webhook will be subscribed to- Returns:
- events
-
setEvents
-
id
-
getId
Duffel's unique identifier for the webhook receiver- Returns:
- id
-
setId
-
liveMode
-
getLiveMode
The live mode that the webhook was created in. It will _only_ receive events for that same live mode. For example, you won't receive `order.created` events for orders that you created in the sandbox, if your webook is for `live_mode: true`.- Returns:
- liveMode
-
setLiveMode
-
updatedAt
-
getUpdatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was updated- Returns:
- updatedAt
-
setUpdatedAt
-
url
-
getUrl
The URL where your webhook will be received- Returns:
- url
-
setUrl
-
equals
-
hashCode
public int hashCode() -
toString
-