Package com.adyen.model.capital
Class GetDynamicOffersResponse
- java.lang.Object
-
- com.adyen.model.capital.GetDynamicOffersResponse
-
public class GetDynamicOffersResponse extends Object
GetDynamicOffersResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DYNAMIC_OFFERS
-
Constructor Summary
Constructors Constructor Description GetDynamicOffersResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetDynamicOffersResponseaddDynamicOffersItem(DynamicOffer dynamicOffersItem)GetDynamicOffersResponsedynamicOffers(List<DynamicOffer> dynamicOffers)Contains a list of available dynamic offers for the specified account holder.booleanequals(Object o)Return true if this GetDynamicOffersResponse object is equal to o.static GetDynamicOffersResponsefromJson(String jsonString)Create an instance of GetDynamicOffersResponse given an JSON stringList<DynamicOffer>getDynamicOffers()Contains a list of available dynamic offers for the specified account holder.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.inthashCode()GetDynamicOffersResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetDynamicOffers(List<DynamicOffer> dynamicOffers)Contains a list of available dynamic offers for the specified account holder.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of GetDynamicOffersResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DYNAMIC_OFFERS
public static final String JSON_PROPERTY_DYNAMIC_OFFERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
dynamicOffers
public GetDynamicOffersResponse dynamicOffers(List<DynamicOffer> dynamicOffers)
Contains a list of available dynamic offers for the specified account holder.- Parameters:
dynamicOffers- Contains a list of available dynamic offers for the specified account holder.- Returns:
- the current
GetDynamicOffersResponseinstance, allowing for method chaining
-
addDynamicOffersItem
public GetDynamicOffersResponse addDynamicOffersItem(DynamicOffer dynamicOffersItem)
-
getDynamicOffers
public List<DynamicOffer> getDynamicOffers()
Contains a list of available dynamic offers for the specified account holder.- Returns:
- dynamicOffers Contains a list of available dynamic offers for the specified account holder.
-
setDynamicOffers
public void setDynamicOffers(List<DynamicOffer> dynamicOffers)
Contains a list of available dynamic offers for the specified account holder.- Parameters:
dynamicOffers- Contains a list of available dynamic offers for the specified account holder.
-
includeNullValues
public GetDynamicOffersResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this GetDynamicOffersResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static GetDynamicOffersResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetDynamicOffersResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetDynamicOffersResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetDynamicOffersResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetDynamicOffersResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-