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 Details

  • Constructor Details

    • Webhook1

      public Webhook1()
  • Method Details

    • active

      public Webhook1 active(Boolean active)
    • getActive

      @Nonnull @NotNull public @NotNull Boolean getActive()
      Whether the webhook receiver is actively being notified or not
      Returns:
      active
    • setActive

      public void setActive(Boolean active)
    • createdAt

      public Webhook1 createdAt(LocalDateTime createdAt)
    • getCreatedAt

      @Nonnull @NotNull @Valid public LocalDateTime getCreatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(LocalDateTime createdAt)
    • events

      public Webhook1 events(List<String> events)
    • addEventsItem

      public Webhook1 addEventsItem(String eventsItem)
    • getEvents

      @Nonnull @NotNull public @NotNull List<String> getEvents()
      The events that this webhook will be subscribed to
      Returns:
      events
    • setEvents

      public void setEvents(List<String> events)
    • id

      public Webhook1 id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      Duffel's unique identifier for the webhook receiver
      Returns:
      id
    • setId

      public void setId(String id)
    • liveMode

      public Webhook1 liveMode(Boolean liveMode)
    • getLiveMode

      @Nonnull @NotNull public @NotNull Boolean 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

      public void setLiveMode(Boolean liveMode)
    • updatedAt

      public Webhook1 updatedAt(LocalDateTime updatedAt)
    • getUpdatedAt

      @Nonnull @NotNull @Valid public LocalDateTime getUpdatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was updated
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(LocalDateTime updatedAt)
    • url

      public Webhook1 url(String url)
    • getUrl

      @Nonnull @NotNull public @NotNull String getUrl()
      The URL where your webhook will be received
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object