Package com.adyen.model.transfers
Class CapitalGrant
- java.lang.Object
-
- com.adyen.model.transfers.CapitalGrant
-
public class CapitalGrant extends Object
CapitalGrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapitalGrant.StatusEnumThe current status of the grant.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BALANCESstatic StringJSON_PROPERTY_COUNTERPARTYstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_GRANT_ACCOUNT_IDstatic StringJSON_PROPERTY_GRANT_OFFER_IDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REPAYMENTstatic StringJSON_PROPERTY_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)amountCapitalGrantbalances(CapitalBalance balances)balancesCapitalGrantcounterparty(Counterparty counterparty)counterpartybooleanequals(Object o)Return true if this CapitalGrant object is equal to o.CapitalGrantfee(Fee fee)feestatic CapitalGrantfromJson(String jsonString)Create an instance of CapitalGrant given an JSON stringAmountgetAmount()amountCapitalBalancegetBalances()balancesCounterpartygetCounterparty()counterpartyFeegetFee()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()repaymentCapitalGrant.StatusEnumgetStatus()The current status of the grant.CapitalGrantgrantAccountId(String grantAccountId)The identifier of the grant account used for the grant.CapitalGrantgrantOfferId(String grantOfferId)The identifier of the grant offer that has been selected and from which the grant details will be used.inthashCode()CapitalGrantid(String id)The identifier of the grant reference.CapitalGrantrepayment(Repayment repayment)repaymentvoidsetAmount(Amount amount)amountvoidsetBalances(CapitalBalance balances)balancesvoidsetCounterparty(Counterparty counterparty)counterpartyvoidsetFee(Fee fee)feevoidsetGrantAccountId(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.voidsetId(String id)The identifier of the grant reference.voidsetRepayment(Repayment repayment)repaymentvoidsetStatus(CapitalGrant.StatusEnum status)The current status of the grant.CapitalGrantstatus(CapitalGrant.StatusEnum status)The current status of the grant.StringtoJson()Convert an instance of CapitalGrant to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
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_FEE
public static final String JSON_PROPERTY_FEE
- 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_REPAYMENT
public static final String JSON_PROPERTY_REPAYMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CapitalGrant amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
balances
public CapitalGrant balances(CapitalBalance balances)
balances- Parameters:
balances-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getBalances
public CapitalBalance getBalances()
balances- Returns:
- balances
-
setBalances
public void setBalances(CapitalBalance balances)
balances- Parameters:
balances-
-
counterparty
public CapitalGrant counterparty(Counterparty counterparty)
counterparty- Parameters:
counterparty-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getCounterparty
public Counterparty getCounterparty()
counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(Counterparty counterparty)
counterparty- Parameters:
counterparty-
-
fee
public CapitalGrant fee(Fee fee)
fee- Parameters:
fee-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getFee
public Fee getFee()
fee- Returns:
- fee
-
setFee
public void setFee(Fee fee)
fee- Parameters:
fee-
-
grantAccountId
public CapitalGrant grantAccountId(String grantAccountId)
The identifier of the grant account used for the grant.- Parameters:
grantAccountId-- Returns:
- the current
CapitalGrantinstance, 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 CapitalGrant 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
CapitalGrantinstance, 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-
-
id
public CapitalGrant id(String id)
The identifier of the grant reference.- Parameters:
id-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getId
public String getId()
The identifier of the grant reference.- Returns:
- id
-
setId
public void setId(String id)
The identifier of the grant reference.- Parameters:
id-
-
repayment
public CapitalGrant repayment(Repayment repayment)
repayment- Parameters:
repayment-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
getRepayment
public Repayment getRepayment()
repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(Repayment repayment)
repayment- Parameters:
repayment-
-
status
public CapitalGrant status(CapitalGrant.StatusEnum status)
The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.- Parameters:
status-- Returns:
- the current
CapitalGrantinstance, allowing for method chaining
-
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)
The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this CapitalGrant object is equal to o.
-
fromJson
public static CapitalGrant fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CapitalGrant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGrant
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CapitalGrant
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CapitalGrant to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-