Package com.adyen.model.disputes
Class DefenseReasonsResponse
- java.lang.Object
-
- com.adyen.model.disputes.DefenseReasonsResponse
-
public class DefenseReasonsResponse extends Object
DefenseReasonsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEFENSE_REASONSstatic StringJSON_PROPERTY_DISPUTE_SERVICE_RESULT
-
Constructor Summary
Constructors Constructor Description DefenseReasonsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefenseReasonsResponseaddDefenseReasonsItem(DefenseReason defenseReasonsItem)DefenseReasonsResponsedefenseReasons(List<DefenseReason> defenseReasons)The defense reasons that can be used to defend the dispute.DefenseReasonsResponsedisputeServiceResult(DisputeServiceResult disputeServiceResult)disputeServiceResultbooleanequals(Object o)Return true if this DefenseReasonsResponse object is equal to o.static DefenseReasonsResponsefromJson(String jsonString)Create an instance of DefenseReasonsResponse given an JSON stringList<DefenseReason>getDefenseReasons()The defense reasons that can be used to defend the dispute.DisputeServiceResultgetDisputeServiceResult()disputeServiceResultinthashCode()voidsetDefenseReasons(List<DefenseReason> defenseReasons)The defense reasons that can be used to defend the dispute.voidsetDisputeServiceResult(DisputeServiceResult disputeServiceResult)disputeServiceResultStringtoJson()Convert an instance of DefenseReasonsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DEFENSE_REASONS
public static final String JSON_PROPERTY_DEFENSE_REASONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPUTE_SERVICE_RESULT
public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
defenseReasons
public DefenseReasonsResponse defenseReasons(List<DefenseReason> defenseReasons)
The defense reasons that can be used to defend the dispute.- Parameters:
defenseReasons-- Returns:
- the current
DefenseReasonsResponseinstance, allowing for method chaining
-
addDefenseReasonsItem
public DefenseReasonsResponse addDefenseReasonsItem(DefenseReason defenseReasonsItem)
-
getDefenseReasons
public List<DefenseReason> getDefenseReasons()
The defense reasons that can be used to defend the dispute.- Returns:
- defenseReasons
-
setDefenseReasons
public void setDefenseReasons(List<DefenseReason> defenseReasons)
The defense reasons that can be used to defend the dispute.- Parameters:
defenseReasons-
-
disputeServiceResult
public DefenseReasonsResponse disputeServiceResult(DisputeServiceResult disputeServiceResult)
disputeServiceResult- Parameters:
disputeServiceResult-- Returns:
- the current
DefenseReasonsResponseinstance, allowing for method chaining
-
getDisputeServiceResult
public DisputeServiceResult getDisputeServiceResult()
disputeServiceResult- Returns:
- disputeServiceResult
-
setDisputeServiceResult
public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult)
disputeServiceResult- Parameters:
disputeServiceResult-
-
equals
public boolean equals(Object o)
Return true if this DefenseReasonsResponse object is equal to o.
-
fromJson
public static DefenseReasonsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DefenseReasonsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DefenseReasonsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DefenseReasonsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DefenseReasonsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-