Class WebhookEventData

    • Constructor Detail

      • WebhookEventData

        public WebhookEventData()
      • WebhookEventData

        public WebhookEventData​(Object o)
    • Method Detail

      • setActualInstance

        public void setActualInstance​(Object instance)
        Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent It could be an instance of the 'oneOf' schemas.
        Overrides:
        setActualInstance in class AbstractOpenApiSchema
        Parameters:
        instance - the actual instance of the schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance, which can be the following: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent)
      • getDocumentEvent

        public DocumentEvent getDocumentEvent()
                                       throws ClassCastException
        Get the actual instance of `DocumentEvent`. If the actual instance is not `DocumentEvent`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `DocumentEvent`
        Throws:
        ClassCastException - if the instance is not `DocumentEvent`
      • getTemplateEvent

        public TemplateEvent getTemplateEvent()
                                       throws ClassCastException
        Get the actual instance of `TemplateEvent`. If the actual instance is not `TemplateEvent`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `TemplateEvent`
        Throws:
        ClassCastException - if the instance is not `TemplateEvent`
      • getSenderIdentityEvent

        public SenderIdentityEvent getSenderIdentityEvent()
                                                   throws ClassCastException
        Get the actual instance of `SenderIdentityEvent`. If the actual instance is not `SenderIdentityEvent`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `SenderIdentityEvent`
        Throws:
        ClassCastException - if the instance is not `SenderIdentityEvent`
      • getIdentityVerificationEvent

        public IdentityVerificationEvent getIdentityVerificationEvent()
                                                               throws ClassCastException
        Get the actual instance of `IdentityVerificationEvent`. If the actual instance is not `IdentityVerificationEvent`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `IdentityVerificationEvent`
        Throws:
        ClassCastException - if the instance is not `IdentityVerificationEvent`
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to WebhookEventData
      • fromJson

        public static WebhookEventData fromJson​(String jsonString)
                                         throws IOException
        Create an instance of WebhookEventData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of WebhookEventData
        Throws:
        IOException - if the JSON string is invalid with respect to WebhookEventData
      • toJson

        public String toJson()
        Convert an instance of WebhookEventData to an JSON string
        Returns:
        JSON string