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_ERRORSstatic 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 Deprecated Methods Modifier and Type Method Description AndroidAppaddErrorsItem(AndroidAppError errorsItem)AndroidAppdescription(String description)The description that was provided when uploading the app.booleanequals(Object o)Return true if this AndroidApp object is equal to o.AndroidApperrorCode(String errorCode)Deprecated.since Management API v3 Use `errors` instead.AndroidApperrors(List<AndroidAppError> errors)The list of errors of the Android app.static AndroidAppfromJson(String jsonString)Create an instance of AndroidApp given an JSON stringStringgetDescription()The description that was provided when uploading the app.StringgetErrorCode()Deprecated.since Management API v3 Use `errors` instead.List<AndroidAppError>getErrors()The list of errors of the Android 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)The unique identifier of the app.AndroidApplabel(String label)The app name that is shown on the terminal.AndroidApppackageName(String packageName)The package name that uniquely identifies the Android app.voidsetDescription(String description)The description that was provided when uploading the app.voidsetErrorCode(String errorCode)Deprecated.since Management API v3 Use `errors` instead.voidsetErrors(List<AndroidAppError> errors)The list of errors of the Android app.voidsetId(String id)The unique identifier of the app.voidsetLabel(String label)The app name that is shown on the terminal.voidsetPackageName(String packageName)The package name that uniquely identifies the Android app.voidsetStatus(String status)The status of the app.voidsetVersionCode(Integer versionCode)The version number of the app.voidsetVersionName(String versionName)The app version number that is shown on the terminal.AndroidAppstatus(String status)The status of the app.StringtoJson()Convert an instance of AndroidApp to an JSON stringStringtoString()AndroidAppversionCode(Integer versionCode)The version number of the app.AndroidAppversionName(String versionName)The app version number that is shown on the terminal.
-
-
-
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_ERRORS
public static final String JSON_PROPERTY_ERRORS
- 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)
The description that was provided when uploading the app. The description is not shown on the terminal.- Parameters:
description-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
errorCode
@Deprecated public AndroidApp errorCode(String errorCode)
Deprecated.since Management API v3 Use `errors` instead.The error code of the Android app with the `status` of either **error** or **invalid**.- Parameters:
errorCode-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
getErrorCode
@Deprecated public String getErrorCode()
Deprecated.since Management API v3 Use `errors` instead.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.since Management API v3 Use `errors` instead.The error code of the Android app with the `status` of either **error** or **invalid**.- Parameters:
errorCode-
-
errors
public AndroidApp errors(List<AndroidAppError> errors)
The list of errors of the Android app.- Parameters:
errors-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
addErrorsItem
public AndroidApp addErrorsItem(AndroidAppError errorsItem)
-
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-
-
id
public AndroidApp id(String id)
The unique identifier of the app.- Parameters:
id-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
label
public AndroidApp label(String label)
The app name that is shown on the terminal.- Parameters:
label-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
packageName
public AndroidApp packageName(String packageName)
The package name that uniquely identifies the Android app.- Parameters:
packageName-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
status
public AndroidApp status(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-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
versionCode
public AndroidApp versionCode(Integer versionCode)
The version number of the app.- Parameters:
versionCode-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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-
-
versionName
public AndroidApp versionName(String versionName)
The app version number that is shown on the terminal.- Parameters:
versionName-- Returns:
- the current
AndroidAppinstance, allowing for method chaining
-
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.
-
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
-
-