Class CreateWebhook201ResponseData

java.lang.Object
com.duffel.sdk.model.CreateWebhook201ResponseData

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class CreateWebhook201ResponseData extends Object
CreateWebhook201ResponseData
  • Field Details

  • Constructor Details

    • CreateWebhook201ResponseData

      public CreateWebhook201ResponseData()
  • Method Details

    • active

      public CreateWebhook201ResponseData 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 CreateWebhook201ResponseData createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime 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(OffsetDateTime createdAt)
    • events

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

      public CreateWebhook201ResponseData 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

    • 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 CreateWebhook201ResponseData 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 CreateWebhook201ResponseData updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime 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(OffsetDateTime updatedAt)
    • url

    • getUrl

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

      public void setUrl(String url)
    • secret

      public CreateWebhook201ResponseData secret(String secret)
    • getSecret

      @Nullable public String getSecret()
      The secret used to secure the payload being sent. This will only be returned when the webhook is first created.
      Returns:
      secret
    • setSecret

      public void setSecret(String secret)
    • 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