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/).StringgetLocale()Locale on the shopper interaction device.StringgetMerchantAccount()Your merchant account identifier.inthashCode()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/).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-- 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
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Parameters:
currency-
-
locale
public DonationCampaignsRequest locale(String locale)
Locale on the shopper interaction device.- Parameters:
locale-- Returns:
- the current
DonationCampaignsRequestinstance, allowing for method chaining
-
getLocale
public String getLocale()
Locale on the shopper interaction device.- Returns:
- locale
-
setLocale
public void setLocale(String locale)
Locale on the shopper interaction device.- Parameters:
locale-
-
merchantAccount
public DonationCampaignsRequest merchantAccount(String merchantAccount)
Your merchant account identifier.- Parameters:
merchantAccount-- Returns:
- the current
DonationCampaignsRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account identifier.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account identifier.- Parameters:
merchantAccount-
-
equals
public boolean equals(Object o)
Return true if this DonationCampaignsRequest object is equal to o.
-
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
-
-