Package com.adyen.model.checkout
Class DonationCampaignsRequest
- java.lang.Object
-
- com.adyen.model.checkout.DonationCampaignsRequest
-
public class DonationCampaignsRequest extends Object
DonationCampaignsRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_LOCALEstatic StringJSON_PROPERTY_MERCHANT_ACCOUNT
-
Constructor Summary
Constructors Constructor Description DonationCampaignsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DonationCampaignsRequestcurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).booleanequals(Object o)Return true if this DonationCampaignsRequest object is equal to o.static DonationCampaignsRequestfromJson(String jsonString)Create an instance of DonationCampaignsRequest given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetLocale()Locale on the shopper interaction device.StringgetMerchantAccount()Your merchant account identifier.inthashCode()DonationCampaignsRequestincludeNullValues(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.DonationCampaignsRequestlocale(String locale)Locale on the shopper interaction device.DonationCampaignsRequestmerchantAccount(String merchantAccount)Your merchant account identifier.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLocale(String locale)Locale on the shopper interaction device.voidsetMerchantAccount(String merchantAccount)Your merchant account identifier.StringtoJson()Convert an instance of DonationCampaignsRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOCALE
public static final String JSON_PROPERTY_LOCALE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public DonationCampaignsRequest currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Returns:
- the current
DonationCampaignsRequestinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Returns:
- currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
-
locale
public DonationCampaignsRequest locale(String locale)
Locale on the shopper interaction device.- Parameters:
locale- Locale on the shopper interaction device.- Returns:
- the current
DonationCampaignsRequestinstance, allowing for method chaining
-
getLocale
public String getLocale()
Locale on the shopper interaction device.- Returns:
- locale Locale on the shopper interaction device.
-
setLocale
public void setLocale(String locale)
Locale on the shopper interaction device.- Parameters:
locale- Locale on the shopper interaction device.
-
merchantAccount
public DonationCampaignsRequest merchantAccount(String merchantAccount)
Your merchant account identifier.- Parameters:
merchantAccount- Your merchant account identifier.- Returns:
- the current
DonationCampaignsRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account identifier.- Returns:
- merchantAccount Your merchant account identifier.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account identifier.- Parameters:
merchantAccount- Your merchant account identifier.
-
includeNullValues
public DonationCampaignsRequest 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 DonationCampaignsRequest 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 DonationCampaignsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DonationCampaignsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DonationCampaignsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DonationCampaignsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DonationCampaignsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-