Class Webhook

    • Constructor Detail

      • Webhook

        public Webhook()
    • Method Detail

      • getWebhookId

        @Nullable
        public String getWebhookId()
        A unique identifier of the webhook you subscribed to.
        Returns:
        webhookId
      • setWebhookId

        public void setWebhookId​(String webhookId)
      • getCreatedAt

        @Nullable
        public OffsetDateTime getCreatedAt()
        The time and date when you created this webhook subscription, in ATOM UTC format.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • addEventsItem

        public Webhook addEventsItem​(String eventsItem)
      • getEvents

        @Nullable
        public List<String> getEvents()
        A list of events that you subscribed to. When these events occur, the API triggers a webhook call to the URL you provided.
        Returns:
        events
      • setEvents

        public void setEvents​(List<String> events)
      • getUrl

        @Nullable
        public String getUrl()
        The URL where the API sends the webhook.
        Returns:
        url
      • setUrl

        public void setUrl​(String url)
      • signatureSecret

        public Webhook signatureSecret​(String signatureSecret)
      • getSignatureSecret

        @Nullable
        public String getSignatureSecret()
        A secret key for the webhook you subscribed to. You can use it to verify the origin of the webhook call that you receive.
        Returns:
        signatureSecret
      • setSignatureSecret

        public void setSignatureSecret​(String signatureSecret)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object