Package com.adyen.model.marketpayhop
Class FieldType
- java.lang.Object
-
- com.adyen.model.marketpayhop.FieldType
-
public class FieldType extends Object
FieldType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldType.FieldNameEnumThe type of the field.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FIELDstatic StringJSON_PROPERTY_FIELD_NAMEstatic StringJSON_PROPERTY_SHAREHOLDER_CODE
-
Constructor Summary
Constructors Constructor Description FieldType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this FieldType object is equal to o.FieldTypefield(String field)FieldTypefieldName(FieldType.FieldNameEnum fieldName)static FieldTypefromJson(String jsonString)Create an instance of FieldType given an JSON stringStringgetField()The full name of the property.FieldType.FieldNameEnumgetFieldName()The type of the field.StringgetShareholderCode()The code of the shareholder that the field belongs to.inthashCode()voidsetField(String field)voidsetFieldName(FieldType.FieldNameEnum fieldName)voidsetShareholderCode(String shareholderCode)FieldTypeshareholderCode(String shareholderCode)StringtoJson()Convert an instance of FieldType to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FIELD
public static final String JSON_PROPERTY_FIELD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIELD_NAME
public static final String JSON_PROPERTY_FIELD_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHAREHOLDER_CODE
public static final String JSON_PROPERTY_SHAREHOLDER_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getField
public String getField()
The full name of the property.- Returns:
- field
-
setField
public void setField(String field)
-
fieldName
public FieldType fieldName(FieldType.FieldNameEnum fieldName)
-
getFieldName
public FieldType.FieldNameEnum getFieldName()
The type of the field.- Returns:
- fieldName
-
setFieldName
public void setFieldName(FieldType.FieldNameEnum fieldName)
-
getShareholderCode
public String getShareholderCode()
The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.- Returns:
- shareholderCode
-
setShareholderCode
public void setShareholderCode(String shareholderCode)
-
equals
public boolean equals(Object o)
Return true if this FieldType object is equal to o.
-
fromJson
public static FieldType fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FieldType given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FieldType
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FieldType
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FieldType to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-