Package com.adyen.model.transfers
Class CapitalGrantInfo
- java.lang.Object
-
- com.adyen.model.transfers.CapitalGrantInfo
-
public class CapitalGrantInfo extends Object
CapitalGrantInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COUNTERPARTYstatic StringJSON_PROPERTY_GRANT_ACCOUNT_IDstatic StringJSON_PROPERTY_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)counterpartybooleanequals(Object o)Return true if this CapitalGrantInfo object is equal to o.static CapitalGrantInfofromJson(String jsonString)Create an instance of CapitalGrantInfo given an JSON stringCounterpartygetCounterparty()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)The identifier of the grant account used for the grant.CapitalGrantInfograntOfferId(String grantOfferId)The identifier of the grant offer that has been selected and from which the grant details will be used.inthashCode()voidsetCounterparty(Counterparty counterparty)counterpartyvoidsetGrantAccountId(String grantAccountId)The identifier of the grant account used for the grant.voidsetGrantOfferId(String grantOfferId)The identifier of the grant offer that has been selected and from which the grant details will be used.StringtoJson()Convert an instance of CapitalGrantInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COUNTERPARTY
public static final String JSON_PROPERTY_COUNTERPARTY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GRANT_ACCOUNT_ID
public static final String JSON_PROPERTY_GRANT_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GRANT_OFFER_ID
public static final String JSON_PROPERTY_GRANT_OFFER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
counterparty
public CapitalGrantInfo counterparty(Counterparty counterparty)
counterparty- Parameters:
counterparty-- Returns:
- the current
CapitalGrantInfoinstance, allowing for method chaining
-
getCounterparty
public Counterparty getCounterparty()
counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(Counterparty counterparty)
counterparty- Parameters:
counterparty-
-
grantAccountId
public CapitalGrantInfo grantAccountId(String grantAccountId)
The identifier of the grant account used for the grant.- Parameters:
grantAccountId-- Returns:
- the current
CapitalGrantInfoinstance, allowing for method chaining
-
getGrantAccountId
public String getGrantAccountId()
The identifier of the grant account used for the grant.- Returns:
- grantAccountId
-
setGrantAccountId
public void setGrantAccountId(String grantAccountId)
The identifier of the grant account used for the grant.- Parameters:
grantAccountId-
-
grantOfferId
public CapitalGrantInfo grantOfferId(String grantOfferId)
The identifier of the grant offer that has been selected and from which the grant details will be used.- Parameters:
grantOfferId-- Returns:
- the current
CapitalGrantInfoinstance, allowing for method chaining
-
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)
The identifier of the grant offer that has been selected and from which the grant details will be used.- Parameters:
grantOfferId-
-
equals
public boolean equals(Object o)
Return true if this CapitalGrantInfo object is equal to o.
-
fromJson
public static CapitalGrantInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CapitalGrantInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrantInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CapitalGrantInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CapitalGrantInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-