Package com.adyen.model.transfers
Class CapitalGrants
- java.lang.Object
-
- com.adyen.model.transfers.CapitalGrants
-
public class CapitalGrants extends Object
CapitalGrants
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_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)Return true if this CapitalGrants object is equal to 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)The unique identifier of the grant.inthashCode()voidsetGrants(List<CapitalGrant> grants)The unique identifier of the grant.StringtoJson()Convert an instance of CapitalGrants to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_GRANTS
public static final String JSON_PROPERTY_GRANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
grants
public CapitalGrants grants(List<CapitalGrant> grants)
The unique identifier of the grant.- Parameters:
grants-- Returns:
- the current
CapitalGrantsinstance, allowing for method chaining
-
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)
The unique identifier of the grant.- Parameters:
grants-
-
equals
public boolean equals(Object o)
Return true if this CapitalGrants object is equal to o.
-
fromJson
public static CapitalGrants fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CapitalGrants given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrants
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CapitalGrants
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CapitalGrants to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-