Package com.adyen.model.checkout
Class ConfidenceScore
- java.lang.Object
-
- com.adyen.model.checkout.ConfidenceScore
-
public class ConfidenceScore extends Object
ConfidenceScore
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ERRORSstatic StringJSON_PROPERTY_SCORE
-
Constructor Summary
Constructors Constructor Description ConfidenceScore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfidenceScoreaddErrorsItem(String errorsItem)booleanequals(Object o)Return true if this ConfidenceScore object is equal to o.ConfidenceScoreerrors(List<String> errors)errorsstatic ConfidenceScorefromJson(String jsonString)Create an instance of ConfidenceScore given an JSON stringList<String>getErrors()Get errorsMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.DoublegetScore()Get scoreinthashCode()ConfidenceScoreincludeNullValues(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.ConfidenceScorescore(Double score)scorevoidsetErrors(List<String> errors)errorsvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetScore(Double score)scoreStringtoJson()Convert an instance of ConfidenceScore to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ERRORS
public static final String JSON_PROPERTY_ERRORS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCORE
public static final String JSON_PROPERTY_SCORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
errors
public ConfidenceScore errors(List<String> errors)
errors- Parameters:
errors-- Returns:
- the current
ConfidenceScoreinstance, allowing for method chaining
-
addErrorsItem
public ConfidenceScore addErrorsItem(String errorsItem)
-
score
public ConfidenceScore score(Double score)
score- Parameters:
score-- Returns:
- the current
ConfidenceScoreinstance, allowing for method chaining
-
getScore
public Double getScore()
Get score- Returns:
- score
-
setScore
public void setScore(Double score)
score- Parameters:
score-
-
includeNullValues
public ConfidenceScore 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 ConfidenceScore 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 ConfidenceScore fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ConfidenceScore given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConfidenceScore
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ConfidenceScore
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ConfidenceScore to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-