Package com.adyen.model.disputes
Class DefenseDocumentType
- java.lang.Object
-
- com.adyen.model.disputes.DefenseDocumentType
-
public class DefenseDocumentType extends Object
DefenseDocumentType
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVAILABLEstatic StringJSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODEstatic StringJSON_PROPERTY_REQUIREMENT_LEVEL
-
Constructor Summary
Constructors Constructor Description DefenseDocumentType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefenseDocumentTypeavailable(Boolean available)When **true**, you've successfully uploaded this type of defense document.DefenseDocumentTypedefenseDocumentTypeCode(String defenseDocumentTypeCode)The document type code of the defense document.booleanequals(Object o)Return true if this DefenseDocumentType object is equal to o.static DefenseDocumentTypefromJson(String jsonString)Create an instance of DefenseDocumentType given an JSON stringBooleangetAvailable()When **true**, you've successfully uploaded this type of defense document.StringgetDefenseDocumentTypeCode()The document type code of the defense document.StringgetRequirementLevel()Indicates to what extent the defense document is required in the defense process.inthashCode()DefenseDocumentTyperequirementLevel(String requirementLevel)Indicates to what extent the defense document is required in the defense process.voidsetAvailable(Boolean available)When **true**, you've successfully uploaded this type of defense document.voidsetDefenseDocumentTypeCode(String defenseDocumentTypeCode)The document type code of the defense document.voidsetRequirementLevel(String requirementLevel)Indicates to what extent the defense document is required in the defense process.StringtoJson()Convert an instance of DefenseDocumentType to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AVAILABLE
public static final String JSON_PROPERTY_AVAILABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE
public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUIREMENT_LEVEL
public static final String JSON_PROPERTY_REQUIREMENT_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
available
public DefenseDocumentType available(Boolean available)
When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type.- Parameters:
available-- Returns:
- the current
DefenseDocumentTypeinstance, allowing for method chaining
-
getAvailable
public Boolean getAvailable()
When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type.- Returns:
- available
-
setAvailable
public void setAvailable(Boolean available)
When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type.- Parameters:
available-
-
defenseDocumentTypeCode
public DefenseDocumentType defenseDocumentTypeCode(String defenseDocumentTypeCode)
The document type code of the defense document.- Parameters:
defenseDocumentTypeCode-- Returns:
- the current
DefenseDocumentTypeinstance, allowing for method chaining
-
getDefenseDocumentTypeCode
public String getDefenseDocumentTypeCode()
The document type code of the defense document.- Returns:
- defenseDocumentTypeCode
-
setDefenseDocumentTypeCode
public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode)
The document type code of the defense document.- Parameters:
defenseDocumentTypeCode-
-
requirementLevel
public DefenseDocumentType requirementLevel(String requirementLevel)
Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes.- Parameters:
requirementLevel-- Returns:
- the current
DefenseDocumentTypeinstance, allowing for method chaining
-
getRequirementLevel
public String getRequirementLevel()
Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes.- Returns:
- requirementLevel
-
setRequirementLevel
public void setRequirementLevel(String requirementLevel)
Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes.- Parameters:
requirementLevel-
-
equals
public boolean equals(Object o)
Return true if this DefenseDocumentType object is equal to o.
-
fromJson
public static DefenseDocumentType fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DefenseDocumentType given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DefenseDocumentType
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DefenseDocumentType
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DefenseDocumentType to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-