Package com.adyen.model.capital
Class CapitalGrants
- java.lang.Object
-
- com.adyen.model.capital.CapitalGrants
-
public class CapitalGrants extends Object
CapitalGrants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapitalGrants.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_GRANTS
-
Constructor Summary
Constructors Constructor Description CapitalGrants()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CapitalGrantsaddGrantsItem(CapitalGrant grantsItem)booleanequals(Object o)static CapitalGrantsfromJson(String jsonString)Create an instance of CapitalGrants given an JSON stringList<CapitalGrant>getGrants()The unique identifier of the grant.CapitalGrantsgrants(List<CapitalGrant> grants)inthashCode()voidsetGrants(List<CapitalGrant> grants)StringtoJson()Convert an instance of CapitalGrants to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
grants
public CapitalGrants grants(List<CapitalGrant> grants)
-
addGrantsItem
public CapitalGrants addGrantsItem(CapitalGrant grantsItem)
-
getGrants
public List<CapitalGrant> getGrants()
The unique identifier of the grant.- Returns:
- grants
-
setGrants
public void setGrants(List<CapitalGrant> grants)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CapitalGrants
-
fromJson
public static CapitalGrants fromJson(String jsonString) throws IOException
Create an instance of CapitalGrants given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrants
- Throws:
IOException- if the JSON string is invalid with respect to CapitalGrants
-
toJson
public String toJson()
Convert an instance of CapitalGrants to an JSON string- Returns:
- JSON string
-
-