Class Webhook


  • public class Webhook
    extends java.lang.Object
    Webhook
    • Field Detail

      • JSON_PROPERTY_ID

        public static final java.lang.String JSON_PROPERTY_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_VERSION

        public static final java.lang.String JSON_PROPERTY_VERSION
        See Also:
        Constant Field Values
      • JSON_PROPERTY_TARGET

        public static final java.lang.String JSON_PROPERTY_TARGET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_TRIGGERS

        public static final java.lang.String JSON_PROPERTY_TRIGGERS
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SECRET

        public static final java.lang.String JSON_PROPERTY_SECRET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_INCLUDE_FULL_USER

        public static final java.lang.String JSON_PROPERTY_INCLUDE_FULL_USER
        See Also:
        Constant Field Values
      • JSON_PROPERTY_INCLUDE_FULL_SOURCE

        public static final java.lang.String JSON_PROPERTY_INCLUDE_FULL_SOURCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Webhook

        public Webhook()
    • Method Detail

      • getId

        @Nullable
        public java.lang.String getId()
        A unique identifier for the webhook.
        Returns:
        id
      • getVersion

        @Nullable
        public java.lang.String getVersion()
        Schema version of the payload delivered to this webhook. Can be `v1`, `v1.1` or `v2`.
        Returns:
        version
      • target

        public Webhook target​(java.lang.String target)
      • getTarget

        public java.lang.String getTarget()
        URL to be called when the webhook is triggered.
        Returns:
        target
      • setTarget

        public void setTarget​(java.lang.String target)
      • triggers

        public Webhook triggers​(java.util.List<java.lang.String> triggers)
      • addTriggersItem

        public Webhook addTriggersItem​(java.lang.String triggersItem)
      • getTriggers

        public java.util.List<java.lang.String> getTriggers()
        An array of triggers the integration is subscribed to. This property is case sensitive. [More details](https://docs.smooch.io/rest/#section/Webhook-Triggers).
        Returns:
        triggers
      • setTriggers

        public void setTriggers​(java.util.List<java.lang.String> triggers)
      • secret

        public Webhook secret​(java.lang.String secret)
      • getSecret

        @Nullable
        public java.lang.String getSecret()
        Webhook secret, used to verify the origin of incoming requests.
        Returns:
        secret
      • setSecret

        public void setSecret​(java.lang.String secret)
      • includeFullUser

        public Webhook includeFullUser​(java.lang.Boolean includeFullUser)
      • getIncludeFullUser

        @Nullable
        public java.lang.Boolean getIncludeFullUser()
        A boolean specifying whether webhook payloads should include the complete user schema for events involving a specific user.
        Returns:
        includeFullUser
      • setIncludeFullUser

        public void setIncludeFullUser​(java.lang.Boolean includeFullUser)
      • includeFullSource

        public Webhook includeFullSource​(java.lang.Boolean includeFullSource)
      • getIncludeFullSource

        @Nullable
        public java.lang.Boolean getIncludeFullSource()
        A boolean specifying whether webhook payloads should include the client and device object (when applicable).
        Returns:
        includeFullSource
      • setIncludeFullSource

        public void setIncludeFullSource​(java.lang.Boolean includeFullSource)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object