Package com.adyen.model.capital
Class CapitalGrantInfo
- java.lang.Object
-
- com.adyen.model.capital.CapitalGrantInfo
-
public class CapitalGrantInfo extends Object
CapitalGrantInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapitalGrantInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTERPARTYstatic StringSERIALIZED_NAME_GRANT_ACCOUNT_IDstatic StringSERIALIZED_NAME_GRANT_OFFER_ID
-
Constructor Summary
Constructors Constructor Description CapitalGrantInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CapitalGrantInfocounterparty(Counterparty counterparty)booleanequals(Object o)static CapitalGrantInfofromJson(String jsonString)Create an instance of CapitalGrantInfo given an JSON stringCounterpartygetCounterparty()Get counterpartyStringgetGrantAccountId()The identifier of the grant account used for the grant.StringgetGrantOfferId()The identifier of the grant offer that has been selected and from which the grant details will be used.CapitalGrantInfograntAccountId(String grantAccountId)CapitalGrantInfograntOfferId(String grantOfferId)inthashCode()voidsetCounterparty(Counterparty counterparty)voidsetGrantAccountId(String grantAccountId)voidsetGrantOfferId(String grantOfferId)StringtoJson()Convert an instance of CapitalGrantInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTERPARTY
public static final String SERIALIZED_NAME_COUNTERPARTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GRANT_ACCOUNT_ID
public static final String SERIALIZED_NAME_GRANT_ACCOUNT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GRANT_OFFER_ID
public static final String SERIALIZED_NAME_GRANT_OFFER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
counterparty
public CapitalGrantInfo counterparty(Counterparty counterparty)
-
getCounterparty
public Counterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(Counterparty counterparty)
-
grantAccountId
public CapitalGrantInfo grantAccountId(String grantAccountId)
-
getGrantAccountId
public String getGrantAccountId()
The identifier of the grant account used for the grant.- Returns:
- grantAccountId
-
setGrantAccountId
public void setGrantAccountId(String grantAccountId)
-
grantOfferId
public CapitalGrantInfo grantOfferId(String grantOfferId)
-
getGrantOfferId
public String getGrantOfferId()
The identifier of the grant offer that has been selected and from which the grant details will be used.- Returns:
- grantOfferId
-
setGrantOfferId
public void setGrantOfferId(String grantOfferId)
-
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 CapitalGrantInfo
-
fromJson
public static CapitalGrantInfo fromJson(String jsonString) throws IOException
Create an instance of CapitalGrantInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrantInfo
- Throws:
IOException- if the JSON string is invalid with respect to CapitalGrantInfo
-
toJson
public String toJson()
Convert an instance of CapitalGrantInfo to an JSON string- Returns:
- JSON string
-
-