Package com.adyen.model.disputes
Class DefenseReason
- java.lang.Object
-
- com.adyen.model.disputes.DefenseReason
-
public class DefenseReason extends Object
DefenseReason
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEFENSE_DOCUMENT_TYPESstatic StringJSON_PROPERTY_DEFENSE_REASON_CODEstatic StringJSON_PROPERTY_SATISFIED
-
Constructor Summary
Constructors Constructor Description DefenseReason()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefenseReasonaddDefenseDocumentTypesItem(DefenseDocumentType defenseDocumentTypesItem)DefenseReasondefenseDocumentTypes(List<DefenseDocumentType> defenseDocumentTypes)Array of defense document types for a specific defense reason.DefenseReasondefenseReasonCode(String defenseReasonCode)The defense reason code that was selected to defend this dispute.booleanequals(Object o)Return true if this DefenseReason object is equal to o.static DefenseReasonfromJson(String jsonString)Create an instance of DefenseReason given an JSON stringList<DefenseDocumentType>getDefenseDocumentTypes()Array of defense document types for a specific defense reason.StringgetDefenseReasonCode()The defense reason code that was selected to defend this dispute.BooleangetSatisfied()Indicates if sufficient defense material has been supplied.inthashCode()DefenseReasonsatisfied(Boolean satisfied)Indicates if sufficient defense material has been supplied.voidsetDefenseDocumentTypes(List<DefenseDocumentType> defenseDocumentTypes)Array of defense document types for a specific defense reason.voidsetDefenseReasonCode(String defenseReasonCode)The defense reason code that was selected to defend this dispute.voidsetSatisfied(Boolean satisfied)Indicates if sufficient defense material has been supplied.StringtoJson()Convert an instance of DefenseReason to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES
public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFENSE_REASON_CODE
public static final String JSON_PROPERTY_DEFENSE_REASON_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SATISFIED
public static final String JSON_PROPERTY_SATISFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
defenseDocumentTypes
public DefenseReason defenseDocumentTypes(List<DefenseDocumentType> defenseDocumentTypes)
Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required.- Parameters:
defenseDocumentTypes-- Returns:
- the current
DefenseReasoninstance, allowing for method chaining
-
addDefenseDocumentTypesItem
public DefenseReason addDefenseDocumentTypesItem(DefenseDocumentType defenseDocumentTypesItem)
-
getDefenseDocumentTypes
public List<DefenseDocumentType> getDefenseDocumentTypes()
Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required.- Returns:
- defenseDocumentTypes
-
setDefenseDocumentTypes
public void setDefenseDocumentTypes(List<DefenseDocumentType> defenseDocumentTypes)
Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required.- Parameters:
defenseDocumentTypes-
-
defenseReasonCode
public DefenseReason defenseReasonCode(String defenseReasonCode)
The defense reason code that was selected to defend this dispute.- Parameters:
defenseReasonCode-- Returns:
- the current
DefenseReasoninstance, allowing for method chaining
-
getDefenseReasonCode
public String getDefenseReasonCode()
The defense reason code that was selected to defend this dispute.- Returns:
- defenseReasonCode
-
setDefenseReasonCode
public void setDefenseReasonCode(String defenseReasonCode)
The defense reason code that was selected to defend this dispute.- Parameters:
defenseReasonCode-
-
satisfied
public DefenseReason satisfied(Boolean satisfied)
Indicates if sufficient defense material has been supplied.- Parameters:
satisfied-- Returns:
- the current
DefenseReasoninstance, allowing for method chaining
-
getSatisfied
public Boolean getSatisfied()
Indicates if sufficient defense material has been supplied.- Returns:
- satisfied
-
setSatisfied
public void setSatisfied(Boolean satisfied)
Indicates if sufficient defense material has been supplied.- Parameters:
satisfied-
-
equals
public boolean equals(Object o)
Return true if this DefenseReason object is equal to o.
-
fromJson
public static DefenseReason fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DefenseReason given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DefenseReason
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DefenseReason
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DefenseReason to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-