Package com.adyen.model.management
Class AndroidAppError
- java.lang.Object
-
- com.adyen.model.management.AndroidAppError
-
public class AndroidAppError extends Object
AndroidAppError
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ERROR_CODEstatic StringJSON_PROPERTY_TERMINAL_MODELS
-
Constructor Summary
Constructors Constructor Description AndroidAppError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AndroidAppErroraddTerminalModelsItem(String terminalModelsItem)booleanequals(Object o)Return true if this AndroidAppError object is equal to o.AndroidAppErrorerrorCode(String errorCode)The error code of the Android app with the `status` of either **error** or **invalid**.static AndroidAppErrorfromJson(String jsonString)Create an instance of AndroidAppError given an JSON stringStringgetErrorCode()The error code of the Android app with the `status` of either **error** or **invalid**.List<String>getTerminalModels()The list of payment terminal models to which the returned `errorCode` applies.inthashCode()voidsetErrorCode(String errorCode)The error code of the Android app with the `status` of either **error** or **invalid**.voidsetTerminalModels(List<String> terminalModels)The list of payment terminal models to which the returned `errorCode` applies.AndroidAppErrorterminalModels(List<String> terminalModels)The list of payment terminal models to which the returned `errorCode` applies.StringtoJson()Convert an instance of AndroidAppError to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ERROR_CODE
public static final String JSON_PROPERTY_ERROR_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMINAL_MODELS
public static final String JSON_PROPERTY_TERMINAL_MODELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorCode
public AndroidAppError errorCode(String errorCode)
The error code of the Android app with the `status` of either **error** or **invalid**.- Parameters:
errorCode-- Returns:
- the current
AndroidAppErrorinstance, allowing for method chaining
-
getErrorCode
public String getErrorCode()
The error code of the Android app with the `status` of either **error** or **invalid**.- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
The error code of the Android app with the `status` of either **error** or **invalid**.- Parameters:
errorCode-
-
terminalModels
public AndroidAppError terminalModels(List<String> terminalModels)
The list of payment terminal models to which the returned `errorCode` applies.- Parameters:
terminalModels-- Returns:
- the current
AndroidAppErrorinstance, allowing for method chaining
-
addTerminalModelsItem
public AndroidAppError addTerminalModelsItem(String terminalModelsItem)
-
getTerminalModels
public List<String> getTerminalModels()
The list of payment terminal models to which the returned `errorCode` applies.- Returns:
- terminalModels
-
setTerminalModels
public void setTerminalModels(List<String> terminalModels)
The list of payment terminal models to which the returned `errorCode` applies.- Parameters:
terminalModels-
-
equals
public boolean equals(Object o)
Return true if this AndroidAppError object is equal to o.
-
fromJson
public static AndroidAppError fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AndroidAppError given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AndroidAppError
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AndroidAppError
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AndroidAppError to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-