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**.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<String>getTerminalModels()The list of payment terminal models to which the returned `errorCode` applies.inthashCode()AndroidAppErrorincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetErrorCode(String errorCode)The error code of the Android app with the `status` of either **error** or **invalid**.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The error code of the Android app with the `status` of either **error** or **invalid**.- 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 The error code of the Android app with the `status` of either **error** or **invalid**.
-
setErrorCode
public void setErrorCode(String errorCode)
The error code of the Android app with the `status` of either **error** or **invalid**.- Parameters:
errorCode- The error code of the Android app with the `status` of either **error** or **invalid**.
-
terminalModels
public AndroidAppError terminalModels(List<String> terminalModels)
The list of payment terminal models to which the returned `errorCode` applies.- Parameters:
terminalModels- The list of payment terminal models to which the returned `errorCode` applies.- 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 The list of payment terminal models to which the returned `errorCode` applies.
-
setTerminalModels
public void setTerminalModels(List<String> terminalModels)
The list of payment terminal models to which the returned `errorCode` applies.- Parameters:
terminalModels- The list of payment terminal models to which the returned `errorCode` applies.
-
includeNullValues
public AndroidAppError includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this AndroidAppError object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-