Class Webhook

java.lang.Object
io.trippay.sdk.payment.model.Webhook

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-05-12T17:59:21.291736784+07:00[Asia/Bangkok]") public class Webhook extends Object
Webhook
  • Field Details

  • Constructor Details

    • Webhook

      public Webhook()
  • Method Details

    • id

      public Webhook id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      Document UUID
      Returns:
      id
    • setId

      public void setId(String id)
    • createdDate

      public Webhook createdDate(LocalDateTime createdDate)
    • getCreatedDate

      @Nullable @Valid public LocalDateTime getCreatedDate()
      Datetime this record was first created
      Returns:
      createdDate
    • setCreatedDate

      public void setCreatedDate(LocalDateTime createdDate)
    • lastUpdate

      public Webhook lastUpdate(LocalDateTime lastUpdate)
    • getLastUpdate

      @Nullable @Valid public LocalDateTime getLastUpdate()
      Datetime this record was last updated
      Returns:
      lastUpdate
    • setLastUpdate

      public void setLastUpdate(LocalDateTime lastUpdate)
    • version

      public Webhook version(Long version)
    • getVersion

      @Nullable public Long getVersion()
      Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
      Returns:
      version
    • setVersion

      public void setVersion(Long version)
    • userIdentifier

      public Webhook userIdentifier(UUID userIdentifier)
    • getUserIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getUserIdentifier()
      Unique owner record identifier
      Returns:
      userIdentifier
    • setUserIdentifier

      public void setUserIdentifier(UUID userIdentifier)
    • ownerIdentifier

      public Webhook ownerIdentifier(UUID ownerIdentifier)
    • getOwnerIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getOwnerIdentifier()
      Unique owner record identifier
      Returns:
      ownerIdentifier
    • setOwnerIdentifier

      public void setOwnerIdentifier(UUID ownerIdentifier)
    • ownerName

      public Webhook ownerName(String ownerName)
    • getOwnerName

      @Nonnull @NotNull public @NotNull String getOwnerName()
      Name of company owner.
      Returns:
      ownerName
    • setOwnerName

      public void setOwnerName(String ownerName)
    • ownerType

      public Webhook ownerType(Webhook.OwnerTypeEnum ownerType)
    • getOwnerType

      @Nonnull @NotNull public @NotNull Webhook.OwnerTypeEnum getOwnerType()
      Type of entity.
      Returns:
      ownerType
    • setOwnerType

      public void setOwnerType(Webhook.OwnerTypeEnum ownerType)
    • name

      public Webhook name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      Descriptive name of webhook.
      Returns:
      name
    • setName

      public void setName(String name)
    • enabled

      public Webhook enabled(Boolean enabled)
    • getEnabled

      @Nonnull @NotNull public @NotNull Boolean getEnabled()
      Whether this webhook is enabled.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • eventUrl

      public Webhook eventUrl(String eventUrl)
    • getEventUrl

      @Nonnull @NotNull public @NotNull String getEventUrl()
      The url to POST event to.
      Returns:
      eventUrl
    • setEventUrl

      public void setEventUrl(String eventUrl)
    • eventList

      public Webhook eventList(List<String> eventList)
    • addEventListItem

      public Webhook addEventListItem(String eventListItem)
    • getEventList

      @Nonnull @NotNull public @NotNull List<String> getEventList()
      Get eventList
      Returns:
      eventList
    • setEventList

      public void setEventList(List<String> eventList)
    • 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