Package com.adyen.model.balanceplatform
Class GrantOffer
- java.lang.Object
-
- com.adyen.model.balanceplatform.GrantOffer
-
public class GrantOffer extends Object
GrantOffer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrantOffer.ContractTypeEnumThe contract type of the grant offer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_IDstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_CONTRACT_TYPEstatic StringJSON_PROPERTY_EXPIRES_ATstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REPAYMENTstatic StringJSON_PROPERTY_STARTS_AT
-
Constructor Summary
Constructors Constructor Description GrantOffer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GrantOfferaccountHolderId(String accountHolderId)GrantOfferamount(Amount amount)GrantOffercontractType(GrantOffer.ContractTypeEnum contractType)booleanequals(Object o)Return true if this GrantOffer object is equal to o.GrantOfferexpiresAt(OffsetDateTime expiresAt)GrantOfferfee(Fee fee)static GrantOfferfromJson(String jsonString)Create an instance of GrantOffer given an JSON stringStringgetAccountHolderId()The identifier of the account holder to which the grant is offered.AmountgetAmount()Get amountGrantOffer.ContractTypeEnumgetContractType()The contract type of the grant offer.OffsetDateTimegetExpiresAt()The end date of the grant offer validity period.FeegetFee()Get feeStringgetId()The unique identifier of the grant offer.RepaymentgetRepayment()Get repaymentOffsetDateTimegetStartsAt()The starting date of the grant offer validity period.inthashCode()GrantOfferid(String id)GrantOfferrepayment(Repayment repayment)voidsetAccountHolderId(String accountHolderId)The identifier of the account holder to which the grant is offered.voidsetAmount(Amount amount)amountvoidsetContractType(GrantOffer.ContractTypeEnum contractType)The contract type of the grant offer.voidsetExpiresAt(OffsetDateTime expiresAt)The end date of the grant offer validity period.voidsetFee(Fee fee)feevoidsetId(String id)The unique identifier of the grant offer.voidsetRepayment(Repayment repayment)repaymentvoidsetStartsAt(OffsetDateTime startsAt)The starting date of the grant offer validity period.GrantOfferstartsAt(OffsetDateTime startsAt)StringtoJson()Convert an instance of GrantOffer to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_ID
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTRACT_TYPE
public static final String JSON_PROPERTY_CONTRACT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_EXPIRES_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEE
public static final String JSON_PROPERTY_FEE
- 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_STARTS_AT
public static final String JSON_PROPERTY_STARTS_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderId
public GrantOffer accountHolderId(String accountHolderId)
-
getAccountHolderId
public String getAccountHolderId()
The identifier of the account holder to which the grant is offered.- Returns:
- accountHolderId
-
setAccountHolderId
public void setAccountHolderId(String accountHolderId)
The identifier of the account holder to which the grant is offered.- Parameters:
accountHolderId-
-
amount
public GrantOffer amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
contractType
public GrantOffer contractType(GrantOffer.ContractTypeEnum contractType)
-
getContractType
public GrantOffer.ContractTypeEnum getContractType()
The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.- Returns:
- contractType
-
setContractType
public void setContractType(GrantOffer.ContractTypeEnum contractType)
The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.- Parameters:
contractType-
-
expiresAt
public GrantOffer expiresAt(OffsetDateTime expiresAt)
-
getExpiresAt
public OffsetDateTime getExpiresAt()
The end date of the grant offer validity period.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(OffsetDateTime expiresAt)
The end date of the grant offer validity period.- Parameters:
expiresAt-
-
fee
public GrantOffer fee(Fee fee)
-
getFee
public Fee getFee()
Get fee- Returns:
- fee
-
setFee
public void setFee(Fee fee)
fee- Parameters:
fee-
-
id
public GrantOffer id(String id)
-
getId
public String getId()
The unique identifier of the grant offer.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the grant offer.- Parameters:
id-
-
repayment
public GrantOffer repayment(Repayment repayment)
-
getRepayment
public Repayment getRepayment()
Get repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(Repayment repayment)
repayment- Parameters:
repayment-
-
startsAt
public GrantOffer startsAt(OffsetDateTime startsAt)
-
getStartsAt
public OffsetDateTime getStartsAt()
The starting date of the grant offer validity period.- Returns:
- startsAt
-
setStartsAt
public void setStartsAt(OffsetDateTime startsAt)
The starting date of the grant offer validity period.- Parameters:
startsAt-
-
equals
public boolean equals(Object o)
Return true if this GrantOffer object is equal to o.
-
fromJson
public static GrantOffer fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GrantOffer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GrantOffer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GrantOffer
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GrantOffer to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-