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)
        The description that was provided when uploading the app. The description is not shown on the terminal.
        Parameters:
        description -
      • getErrorCode

        @Deprecated
        public String getErrorCode()
        Deprecated.
        The error code of the Android app with the `status` of either **error** or **invalid**.
        Returns:
        errorCode
      • setErrorCode

        @Deprecated
        public void setErrorCode​(String errorCode)
        Deprecated.
        The error code of the Android app with the `status` of either **error** or **invalid**.
        Parameters:
        errorCode -
      • getErrors

        public List<AndroidAppError> getErrors()
        The list of errors of the Android app.
        Returns:
        errors
      • setErrors

        public void setErrors​(List<AndroidAppError> errors)
        The list of errors of the Android app.
        Parameters:
        errors -
      • getId

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

        public void setId​(String id)
        The unique identifier of the app.
        Parameters:
        id -
      • getLabel

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

        public void setLabel​(String label)
        The app name that is shown on the terminal.
        Parameters:
        label -
      • getPackageName

        public String getPackageName()
        The package name that uniquely identifies the Android app.
        Returns:
        packageName
      • setPackageName

        public void setPackageName​(String packageName)
        The package name that uniquely identifies the Android app.
        Parameters:
        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)
        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.
        Parameters:
        status -
      • getVersionCode

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

        public void setVersionCode​(Integer versionCode)
        The version number of the app.
        Parameters:
        versionCode -
      • getVersionName

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

        public void setVersionName​(String versionName)
        The app version number that is shown on the terminal.
        Parameters:
        versionName -
      • equals

        public boolean equals​(Object o)
        Return true if this AndroidApp object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of AndroidApp to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException