Package com.adyen.model.management
Class AndroidApp
- java.lang.Object
-
- com.adyen.model.management.AndroidApp
-
public class AndroidApp extends Object
AndroidApp
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_ERROR_CODEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LABELstatic StringJSON_PROPERTY_PACKAGE_NAMEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_VERSION_CODEstatic StringJSON_PROPERTY_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)Return true if this AndroidApp object is equal to o.AndroidApperrorCode(String errorCode)static AndroidAppfromJson(String jsonString)Create an instance of AndroidApp given an JSON stringStringgetDescription()The description that was provided when uploading the app.StringgetErrorCode()The error code of the app.StringgetId()The unique identifier of the app.StringgetLabel()The app name that is shown on the terminal.StringgetPackageName()The package name that uniquely identifies the Android app.StringgetStatus()The status of the app.IntegergetVersionCode()The 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)voidsetErrorCode(String errorCode)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()AndroidAppversionCode(Integer versionCode)AndroidAppversionName(String versionName)
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR_CODE
public static final String JSON_PROPERTY_ERROR_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABEL
public static final String JSON_PROPERTY_LABEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PACKAGE_NAME
public static final String JSON_PROPERTY_PACKAGE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERSION_CODE
public static final String JSON_PROPERTY_VERSION_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERSION_NAME
public static final String JSON_PROPERTY_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)
-
errorCode
public AndroidApp errorCode(String errorCode)
-
getErrorCode
public String getErrorCode()
The error code of the app. It exists if the status is error or invalid.- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
-
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 that uniquely identifies the Android 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 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)
-
equals
public boolean equals(Object o)
Return true if this AndroidApp object is equal to o.
-
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
-
-