Package com.adyen.model.balanceplatform
Class GrantOffers
- java.lang.Object
-
- com.adyen.model.balanceplatform.GrantOffers
-
public class GrantOffers extends Object
GrantOffers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrantOffers.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_GRANT_OFFERS
-
Constructor Summary
Constructors Constructor Description GrantOffers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GrantOffersaddGrantOffersItem(GrantOffer grantOffersItem)booleanequals(Object o)static GrantOffersfromJson(String jsonString)Create an instance of GrantOffers given an JSON stringList<GrantOffer>getGrantOffers()A list of available grant offers.GrantOffersgrantOffers(List<GrantOffer> grantOffers)inthashCode()voidsetGrantOffers(List<GrantOffer> grantOffers)StringtoJson()Convert an instance of GrantOffers to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
grantOffers
public GrantOffers grantOffers(List<GrantOffer> grantOffers)
-
addGrantOffersItem
public GrantOffers addGrantOffersItem(GrantOffer grantOffersItem)
-
getGrantOffers
public List<GrantOffer> getGrantOffers()
A list of available grant offers.- Returns:
- grantOffers
-
setGrantOffers
public void setGrantOffers(List<GrantOffer> grantOffers)
-
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 GrantOffers
-
fromJson
public static GrantOffers fromJson(String jsonString) throws IOException
Create an instance of GrantOffers given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GrantOffers
- Throws:
IOException- if the JSON string is invalid with respect to GrantOffers
-
toJson
public String toJson()
Convert an instance of GrantOffers to an JSON string- Returns:
- JSON string
-
-