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.static classGrantOffer.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_HOLDER_IDstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CONTRACT_TYPEstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_FEEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REPAYMENTstatic StringSERIALIZED_NAME_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)GrantOfferexpiresAt(Object 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.ObjectgetExpiresAt()Get expiresAtFeegetFee()Get feeStringgetId()The unique identifier of the grant offer.RepaymentgetRepayment()Get repaymentObjectgetStartsAt()Get startsAtinthashCode()GrantOfferid(String id)GrantOfferrepayment(Repayment repayment)voidsetAccountHolderId(String accountHolderId)voidsetAmount(Amount amount)voidsetContractType(GrantOffer.ContractTypeEnum contractType)voidsetExpiresAt(Object expiresAt)voidsetFee(Fee fee)voidsetId(String id)voidsetRepayment(Repayment repayment)voidsetStartsAt(Object startsAt)GrantOfferstartsAt(Object startsAt)StringtoJson()Convert an instance of GrantOffer to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCOUNT_HOLDER_ID
public static final String SERIALIZED_NAME_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTRACT_TYPE
public static final String SERIALIZED_NAME_CONTRACT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE
- 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_STARTS_AT
public static final String SERIALIZED_NAME_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)
-
amount
public GrantOffer amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount 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)
-
expiresAt
public GrantOffer expiresAt(Object expiresAt)
-
getExpiresAt
public Object getExpiresAt()
Get expiresAt- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(Object expiresAt)
-
fee
public GrantOffer fee(Fee fee)
-
getFee
public Fee getFee()
Get fee- Returns:
- fee
-
setFee
public void setFee(Fee 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)
-
repayment
public GrantOffer repayment(Repayment repayment)
-
getRepayment
public Repayment getRepayment()
Get repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(Repayment repayment)
-
startsAt
public GrantOffer startsAt(Object startsAt)
-
getStartsAt
public Object getStartsAt()
Get startsAt- Returns:
- startsAt
-
setStartsAt
public void setStartsAt(Object startsAt)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to GrantOffer
-
fromJson
public static GrantOffer fromJson(String jsonString) throws IOException
Create an instance of GrantOffer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GrantOffer
- Throws:
IOException- if the JSON string is invalid with respect to GrantOffer
-
toJson
public String toJson()
Convert an instance of GrantOffer to an JSON string- Returns:
- JSON string
-
-