Package com.adyen.model.disputes
Class DefendDisputeRequest
- java.lang.Object
-
- com.adyen.model.disputes.DefendDisputeRequest
-
public class DefendDisputeRequest extends Object
DefendDisputeRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEFENSE_REASON_CODEstatic StringJSON_PROPERTY_DISPUTE_PSP_REFERENCEstatic StringJSON_PROPERTY_MERCHANT_ACCOUNT_CODE
-
Constructor Summary
Constructors Constructor Description DefendDisputeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefendDisputeRequestdefenseReasonCode(String defenseReasonCode)The defense reason code that was selected to defend this dispute.DefendDisputeRequestdisputePspReference(String disputePspReference)The PSP reference assigned to the dispute.booleanequals(Object o)Return true if this DefendDisputeRequest object is equal to o.static DefendDisputeRequestfromJson(String jsonString)Create an instance of DefendDisputeRequest given an JSON stringStringgetDefenseReasonCode()The defense reason code that was selected to defend this dispute.StringgetDisputePspReference()The PSP reference assigned to the dispute.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccountCode()The merchant account identifier, for which you want to process the dispute transaction.inthashCode()DefendDisputeRequestincludeNullValues(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.DefendDisputeRequestmerchantAccountCode(String merchantAccountCode)The merchant account identifier, for which you want to process the dispute transaction.voidsetDefenseReasonCode(String defenseReasonCode)The defense reason code that was selected to defend this dispute.voidsetDisputePspReference(String disputePspReference)The PSP reference assigned to the dispute.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccountCode(String merchantAccountCode)The merchant account identifier, for which you want to process the dispute transaction.StringtoJson()Convert an instance of DefendDisputeRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DEFENSE_REASON_CODE
public static final String JSON_PROPERTY_DEFENSE_REASON_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPUTE_PSP_REFERENCE
public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
defenseReasonCode
public DefendDisputeRequest defenseReasonCode(String defenseReasonCode)
The defense reason code that was selected to defend this dispute.- Parameters:
defenseReasonCode- The defense reason code that was selected to defend this dispute.- Returns:
- the current
DefendDisputeRequestinstance, allowing for method chaining
-
getDefenseReasonCode
public String getDefenseReasonCode()
The defense reason code that was selected to defend this dispute.- Returns:
- defenseReasonCode The defense reason code that was selected to defend this dispute.
-
setDefenseReasonCode
public void setDefenseReasonCode(String defenseReasonCode)
The defense reason code that was selected to defend this dispute.- Parameters:
defenseReasonCode- The defense reason code that was selected to defend this dispute.
-
disputePspReference
public DefendDisputeRequest disputePspReference(String disputePspReference)
The PSP reference assigned to the dispute.- Parameters:
disputePspReference- The PSP reference assigned to the dispute.- Returns:
- the current
DefendDisputeRequestinstance, allowing for method chaining
-
getDisputePspReference
public String getDisputePspReference()
The PSP reference assigned to the dispute.- Returns:
- disputePspReference The PSP reference assigned to the dispute.
-
setDisputePspReference
public void setDisputePspReference(String disputePspReference)
The PSP reference assigned to the dispute.- Parameters:
disputePspReference- The PSP reference assigned to the dispute.
-
merchantAccountCode
public DefendDisputeRequest merchantAccountCode(String merchantAccountCode)
The merchant account identifier, for which you want to process the dispute transaction.- Parameters:
merchantAccountCode- The merchant account identifier, for which you want to process the dispute transaction.- Returns:
- the current
DefendDisputeRequestinstance, allowing for method chaining
-
getMerchantAccountCode
public String getMerchantAccountCode()
The merchant account identifier, for which you want to process the dispute transaction.- Returns:
- merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction.
-
setMerchantAccountCode
public void setMerchantAccountCode(String merchantAccountCode)
The merchant account identifier, for which you want to process the dispute transaction.- Parameters:
merchantAccountCode- The merchant account identifier, for which you want to process the dispute transaction.
-
includeNullValues
public DefendDisputeRequest 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 DefendDisputeRequest 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 DefendDisputeRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DefendDisputeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DefendDisputeRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DefendDisputeRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DefendDisputeRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-