Package com.adyen.model.capital
Class Grant
- java.lang.Object
-
- com.adyen.model.capital.Grant
-
public class Grant extends Object
Grant
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCESstatic StringJSON_PROPERTY_COUNTERPARTYstatic StringJSON_PROPERTY_GRANT_ACCOUNT_IDstatic StringJSON_PROPERTY_GRANT_OFFER_IDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description Grant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Grantbalances(Balance balances)balancesGrantcounterparty(GrantCounterparty counterparty)counterpartybooleanequals(Object o)Return true if this Grant object is equal to o.static GrantfromJson(String jsonString)Create an instance of Grant given an JSON stringBalancegetBalances()Get balancesGrantCounterpartygetCounterparty()Get counterpartyMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetGrantAccountId()The unique identifier of the grant account that tracks this grant.StringgetGrantOfferId()The unique identifier of the selected grant offer.StringgetId()The unique identifier of the grant reference.StatusgetStatus()Get statusGrantgrantAccountId(String grantAccountId)The unique identifier of the grant account that tracks this grant.GrantgrantOfferId(String grantOfferId)The unique identifier of the selected grant offer.inthashCode()Grantid(String id)The unique identifier of the grant reference.GrantincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetBalances(Balance balances)balancesvoidsetCounterparty(GrantCounterparty counterparty)counterpartyvoidsetGrantAccountId(String grantAccountId)The unique identifier of the grant account that tracks this grant.voidsetGrantOfferId(String grantOfferId)The unique identifier of the selected grant offer.voidsetId(String id)The unique identifier of the grant reference.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetStatus(Status status)statusGrantstatus(Status status)statusStringtoJson()Convert an instance of Grant to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCES
public static final String JSON_PROPERTY_BALANCES
- See Also:
- Constant Field Values
-
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
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
balances
public Grant balances(Balance balances)
balances- Parameters:
balances-- Returns:
- the current
Grantinstance, allowing for method chaining
-
getBalances
public Balance getBalances()
Get balances- Returns:
- balances
-
setBalances
public void setBalances(Balance balances)
balances- Parameters:
balances-
-
counterparty
public Grant counterparty(GrantCounterparty counterparty)
counterparty- Parameters:
counterparty-- Returns:
- the current
Grantinstance, allowing for method chaining
-
getCounterparty
public GrantCounterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(GrantCounterparty counterparty)
counterparty- Parameters:
counterparty-
-
grantAccountId
public Grant grantAccountId(String grantAccountId)
The unique identifier of the grant account that tracks this grant.- Parameters:
grantAccountId- The unique identifier of the grant account that tracks this grant.- Returns:
- the current
Grantinstance, allowing for method chaining
-
getGrantAccountId
public String getGrantAccountId()
The unique identifier of the grant account that tracks this grant.- Returns:
- grantAccountId The unique identifier of the grant account that tracks this grant.
-
setGrantAccountId
public void setGrantAccountId(String grantAccountId)
The unique identifier of the grant account that tracks this grant.- Parameters:
grantAccountId- The unique identifier of the grant account that tracks this grant.
-
grantOfferId
public Grant grantOfferId(String grantOfferId)
The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.- Parameters:
grantOfferId- The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.- Returns:
- the current
Grantinstance, allowing for method chaining
-
getGrantOfferId
public String getGrantOfferId()
The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.- Returns:
- grantOfferId The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
-
setGrantOfferId
public void setGrantOfferId(String grantOfferId)
The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.- Parameters:
grantOfferId- The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
-
id
public Grant id(String id)
The unique identifier of the grant reference.- Parameters:
id- The unique identifier of the grant reference.- Returns:
- the current
Grantinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the grant reference.- Returns:
- id The unique identifier of the grant reference.
-
setId
public void setId(String id)
The unique identifier of the grant reference.- Parameters:
id- The unique identifier of the grant reference.
-
status
public Grant status(Status status)
status- Parameters:
status-- Returns:
- the current
Grantinstance, allowing for method chaining
-
getStatus
public Status getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(Status status)
status- Parameters:
status-
-
includeNullValues
public Grant includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Grant object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static Grant fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Grant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Grant
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Grant
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Grant to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-