Class AndroidApp


  • public class AndroidApp
    extends Object
    AndroidApp
    • Constructor Detail

      • AndroidApp

        public AndroidApp()
    • Method Detail

      • getDescription

        public String getDescription()
        The description that was provided when uploading the app. The description is not shown on the terminal.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        public String getId()
        The unique identifier of the app.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getLabel

        public String getLabel()
        The app name that is shown on the terminal.
        Returns:
        label
      • setLabel

        public void setLabel​(String label)
      • getPackageName

        public String getPackageName()
        The package name of the app.
        Returns:
        packageName
      • setPackageName

        public void setPackageName​(String packageName)
      • getStatus

        public String getStatus()
        The status of the app. Possible values: * `processing`: The app is being signed and converted to a format that the terminal can handle. * `error`: Something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: There is something wrong with the APK file of the app. * `ready`: The app has been signed and converted. * `archived`: The app is no longer available.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
      • getVersionCode

        public Integer getVersionCode()
        The internal version number of the app.
        Returns:
        versionCode
      • setVersionCode

        public void setVersionCode​(Integer versionCode)
      • getVersionName

        public String getVersionName()
        The app version number that is shown on the terminal.
        Returns:
        versionName
      • setVersionName

        public void setVersionName​(String versionName)
      • 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 AndroidApp
      • fromJson

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

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