Class OnboardingLink


  • public class OnboardingLink
    extends Object
    OnboardingLink
    • Constructor Detail

      • OnboardingLink

        public OnboardingLink()
    • Method Detail

      • getUrl

        public String getUrl()
        The URL of the hosted onboarding page where you need to redirect your user. This URL expires after 4 minutes and can only be used once. If the link expires, you need to create a new link.
        Returns:
        url
      • setUrl

        public void setUrl​(String url)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to OnboardingLink
      • fromJson

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

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