Package com.adyen.model.management
Class AndroidApp
- java.lang.Object
-
- com.adyen.model.management.AndroidApp
-
public class AndroidApp extends Object
AndroidApp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidApp.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LABELstatic StringSERIALIZED_NAME_PACKAGE_NAMEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_VERSION_CODEstatic StringSERIALIZED_NAME_VERSION_NAME
-
Constructor Summary
Constructors Constructor Description AndroidApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AndroidAppdescription(String description)booleanequals(Object o)static AndroidAppfromJson(String jsonString)Create an instance of AndroidApp given an JSON stringStringgetDescription()The description that was provided when uploading the app.StringgetId()The unique identifier of the app.StringgetLabel()The app name that is shown on the terminal.StringgetPackageName()The package name of the app.StringgetStatus()The status of the app.IntegergetVersionCode()The internal version number of the app.StringgetVersionName()The app version number that is shown on the terminal.inthashCode()AndroidAppid(String id)AndroidApplabel(String label)AndroidApppackageName(String packageName)voidsetDescription(String description)voidsetId(String id)voidsetLabel(String label)voidsetPackageName(String packageName)voidsetStatus(String status)voidsetVersionCode(Integer versionCode)voidsetVersionName(String versionName)AndroidAppstatus(String status)StringtoJson()Convert an instance of AndroidApp to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundAndroidAppversionCode(Integer versionCode)AndroidAppversionName(String versionName)
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_LABEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PACKAGE_NAME
public static final String SERIALIZED_NAME_PACKAGE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION_CODE
public static final String SERIALIZED_NAME_VERSION_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION_NAME
public static final String SERIALIZED_NAME_VERSION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public AndroidApp description(String description)
-
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)
-
id
public AndroidApp id(String id)
-
getId
public String getId()
The unique identifier of the app.- Returns:
- id
-
setId
public void setId(String id)
-
label
public AndroidApp label(String label)
-
getLabel
public String getLabel()
The app name that is shown on the terminal.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
packageName
public AndroidApp packageName(String packageName)
-
getPackageName
public String getPackageName()
The package name of the app.- Returns:
- packageName
-
setPackageName
public void setPackageName(String packageName)
-
status
public AndroidApp status(String status)
-
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)
-
versionCode
public AndroidApp versionCode(Integer versionCode)
-
getVersionCode
public Integer getVersionCode()
The internal version number of the app.- Returns:
- versionCode
-
setVersionCode
public void setVersionCode(Integer versionCode)
-
versionName
public AndroidApp versionName(String versionName)
-
getVersionName
public String getVersionName()
The app version number that is shown on the terminal.- Returns:
- versionName
-
setVersionName
public void setVersionName(String versionName)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-