Package com.adyen.model.capital
Class CapitalGrant
- java.lang.Object
-
- com.adyen.model.capital.CapitalGrant
-
public class CapitalGrant extends Object
CapitalGrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapitalGrant.CustomTypeAdapterFactorystatic classCapitalGrant.StatusEnumThe current status of the grant.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_BALANCESstatic StringSERIALIZED_NAME_COUNTERPARTYstatic StringSERIALIZED_NAME_FEEstatic StringSERIALIZED_NAME_GRANT_ACCOUNT_IDstatic StringSERIALIZED_NAME_GRANT_OFFER_IDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REPAYMENTstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description CapitalGrant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CapitalGrantamount(Amount amount)CapitalGrantbalances(CapitalBalance balances)CapitalGrantcounterparty(Counterparty counterparty)booleanequals(Object o)CapitalGrantfee(Fee fee)static CapitalGrantfromJson(String jsonString)Create an instance of CapitalGrant given an JSON stringAmountgetAmount()Get amountCapitalBalancegetBalances()Get balancesCounterpartygetCounterparty()Get counterpartyFeegetFee()Get feeStringgetGrantAccountId()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.StringgetId()The identifier of the grant reference.RepaymentgetRepayment()Get repaymentCapitalGrant.StatusEnumgetStatus()The current status of the grant.CapitalGrantgrantAccountId(String grantAccountId)CapitalGrantgrantOfferId(String grantOfferId)inthashCode()CapitalGrantid(String id)CapitalGrantrepayment(Repayment repayment)voidsetAmount(Amount amount)voidsetBalances(CapitalBalance balances)voidsetCounterparty(Counterparty counterparty)voidsetFee(Fee fee)voidsetGrantAccountId(String grantAccountId)voidsetGrantOfferId(String grantOfferId)voidsetId(String id)voidsetRepayment(Repayment repayment)voidsetStatus(CapitalGrant.StatusEnum status)CapitalGrantstatus(CapitalGrant.StatusEnum status)StringtoJson()Convert an instance of CapitalGrant 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_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BALANCES
public static final String SERIALIZED_NAME_BALANCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTERPARTY
public static final String SERIALIZED_NAME_COUNTERPARTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE
- 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
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPAYMENT
public static final String SERIALIZED_NAME_REPAYMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CapitalGrant amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
balances
public CapitalGrant balances(CapitalBalance balances)
-
getBalances
public CapitalBalance getBalances()
Get balances- Returns:
- balances
-
setBalances
public void setBalances(CapitalBalance balances)
-
counterparty
public CapitalGrant counterparty(Counterparty counterparty)
-
getCounterparty
public Counterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(Counterparty counterparty)
-
fee
public CapitalGrant fee(Fee fee)
-
getFee
public Fee getFee()
Get fee- Returns:
- fee
-
setFee
public void setFee(Fee fee)
-
grantAccountId
public CapitalGrant 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 CapitalGrant 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)
-
id
public CapitalGrant id(String id)
-
getId
public String getId()
The identifier of the grant reference.- Returns:
- id
-
setId
public void setId(String id)
-
repayment
public CapitalGrant repayment(Repayment repayment)
-
getRepayment
public Repayment getRepayment()
Get repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(Repayment repayment)
-
status
public CapitalGrant status(CapitalGrant.StatusEnum status)
-
getStatus
public CapitalGrant.StatusEnum getStatus()
The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.- Returns:
- status
-
setStatus
public void setStatus(CapitalGrant.StatusEnum status)
-
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 CapitalGrant
-
fromJson
public static CapitalGrant fromJson(String jsonString) throws IOException
Create an instance of CapitalGrant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrant
- Throws:
IOException- if the JSON string is invalid with respect to CapitalGrant
-
toJson
public String toJson()
Convert an instance of CapitalGrant to an JSON string- Returns:
- JSON string
-
-