Package com.adyen.model.checkout
Class DonationCampaign
- java.lang.Object
-
- com.adyen.model.checkout.DonationCampaign
-
public class DonationCampaign extends Object
DonationCampaign
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTSstatic StringJSON_PROPERTY_BANNER_URLstatic StringJSON_PROPERTY_CAMPAIGN_NAMEstatic StringJSON_PROPERTY_CAUSE_NAMEstatic StringJSON_PROPERTY_DONATIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LOGO_URLstatic StringJSON_PROPERTY_NONPROFIT_DESCRIPTIONstatic StringJSON_PROPERTY_NONPROFIT_NAMEstatic StringJSON_PROPERTY_NONPROFIT_URLstatic StringJSON_PROPERTY_TERMS_AND_CONDITIONS_URL
-
Constructor Summary
Constructors Constructor Description DonationCampaign()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DonationCampaignamounts(Amounts amounts)DonationCampaignbannerUrl(String bannerUrl)DonationCampaigncampaignName(String campaignName)DonationCampaigncauseName(String causeName)DonationCampaigndonation(Donation donation)booleanequals(Object o)Return true if this DonationCampaign object is equal to o.static DonationCampaignfromJson(String jsonString)Create an instance of DonationCampaign given an JSON stringAmountsgetAmounts()Get amountsStringgetBannerUrl()The URL for the banner of the nonprofit or campaign.StringgetCampaignName()The name of the donation campaign..StringgetCauseName()The cause of the nonprofit.DonationgetDonation()Get donationStringgetId()The unique campaign ID of the donation campaign.StringgetLogoUrl()The URL for the logo of the nonprofit.StringgetNonprofitDescription()The description of the nonprofit.StringgetNonprofitName()The name of the nonprofit organization that receives the donation.StringgetNonprofitUrl()The website URL of the nonprofit.StringgetTermsAndConditionsUrl()The URL of the terms and conditions page of the nonprofit and the campaign.inthashCode()DonationCampaignid(String id)DonationCampaignlogoUrl(String logoUrl)DonationCampaignnonprofitDescription(String nonprofitDescription)DonationCampaignnonprofitName(String nonprofitName)DonationCampaignnonprofitUrl(String nonprofitUrl)voidsetAmounts(Amounts amounts)amountsvoidsetBannerUrl(String bannerUrl)The URL for the banner of the nonprofit or campaign.voidsetCampaignName(String campaignName)The name of the donation campaign..voidsetCauseName(String causeName)The cause of the nonprofit.voidsetDonation(Donation donation)donationvoidsetId(String id)The unique campaign ID of the donation campaign.voidsetLogoUrl(String logoUrl)The URL for the logo of the nonprofit.voidsetNonprofitDescription(String nonprofitDescription)The description of the nonprofit.voidsetNonprofitName(String nonprofitName)The name of the nonprofit organization that receives the donation.voidsetNonprofitUrl(String nonprofitUrl)The website URL of the nonprofit.voidsetTermsAndConditionsUrl(String termsAndConditionsUrl)The URL of the terms and conditions page of the nonprofit and the campaign.DonationCampaigntermsAndConditionsUrl(String termsAndConditionsUrl)StringtoJson()Convert an instance of DonationCampaign to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNTS
public static final String JSON_PROPERTY_AMOUNTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANNER_URL
public static final String JSON_PROPERTY_BANNER_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAMPAIGN_NAME
public static final String JSON_PROPERTY_CAMPAIGN_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAUSE_NAME
public static final String JSON_PROPERTY_CAUSE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DONATION
public static final String JSON_PROPERTY_DONATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOGO_URL
public static final String JSON_PROPERTY_LOGO_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NONPROFIT_DESCRIPTION
public static final String JSON_PROPERTY_NONPROFIT_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NONPROFIT_NAME
public static final String JSON_PROPERTY_NONPROFIT_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NONPROFIT_URL
public static final String JSON_PROPERTY_NONPROFIT_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMS_AND_CONDITIONS_URL
public static final String JSON_PROPERTY_TERMS_AND_CONDITIONS_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
amounts
public DonationCampaign amounts(Amounts amounts)
-
getAmounts
public Amounts getAmounts()
Get amounts- Returns:
- amounts
-
setAmounts
public void setAmounts(Amounts amounts)
amounts- Parameters:
amounts-
-
bannerUrl
public DonationCampaign bannerUrl(String bannerUrl)
-
getBannerUrl
public String getBannerUrl()
The URL for the banner of the nonprofit or campaign.- Returns:
- bannerUrl
-
setBannerUrl
public void setBannerUrl(String bannerUrl)
The URL for the banner of the nonprofit or campaign.- Parameters:
bannerUrl-
-
campaignName
public DonationCampaign campaignName(String campaignName)
-
getCampaignName
public String getCampaignName()
The name of the donation campaign..- Returns:
- campaignName
-
setCampaignName
public void setCampaignName(String campaignName)
The name of the donation campaign..- Parameters:
campaignName-
-
causeName
public DonationCampaign causeName(String causeName)
-
getCauseName
public String getCauseName()
The cause of the nonprofit.- Returns:
- causeName
-
setCauseName
public void setCauseName(String causeName)
The cause of the nonprofit.- Parameters:
causeName-
-
donation
public DonationCampaign donation(Donation donation)
-
getDonation
public Donation getDonation()
Get donation- Returns:
- donation
-
setDonation
public void setDonation(Donation donation)
donation- Parameters:
donation-
-
id
public DonationCampaign id(String id)
-
getId
public String getId()
The unique campaign ID of the donation campaign.- Returns:
- id
-
setId
public void setId(String id)
The unique campaign ID of the donation campaign.- Parameters:
id-
-
logoUrl
public DonationCampaign logoUrl(String logoUrl)
-
getLogoUrl
public String getLogoUrl()
The URL for the logo of the nonprofit.- Returns:
- logoUrl
-
setLogoUrl
public void setLogoUrl(String logoUrl)
The URL for the logo of the nonprofit.- Parameters:
logoUrl-
-
nonprofitDescription
public DonationCampaign nonprofitDescription(String nonprofitDescription)
-
getNonprofitDescription
public String getNonprofitDescription()
The description of the nonprofit.- Returns:
- nonprofitDescription
-
setNonprofitDescription
public void setNonprofitDescription(String nonprofitDescription)
The description of the nonprofit.- Parameters:
nonprofitDescription-
-
nonprofitName
public DonationCampaign nonprofitName(String nonprofitName)
-
getNonprofitName
public String getNonprofitName()
The name of the nonprofit organization that receives the donation.- Returns:
- nonprofitName
-
setNonprofitName
public void setNonprofitName(String nonprofitName)
The name of the nonprofit organization that receives the donation.- Parameters:
nonprofitName-
-
nonprofitUrl
public DonationCampaign nonprofitUrl(String nonprofitUrl)
-
getNonprofitUrl
public String getNonprofitUrl()
The website URL of the nonprofit.- Returns:
- nonprofitUrl
-
setNonprofitUrl
public void setNonprofitUrl(String nonprofitUrl)
The website URL of the nonprofit.- Parameters:
nonprofitUrl-
-
termsAndConditionsUrl
public DonationCampaign termsAndConditionsUrl(String termsAndConditionsUrl)
-
getTermsAndConditionsUrl
public String getTermsAndConditionsUrl()
The URL of the terms and conditions page of the nonprofit and the campaign.- Returns:
- termsAndConditionsUrl
-
setTermsAndConditionsUrl
public void setTermsAndConditionsUrl(String termsAndConditionsUrl)
The URL of the terms and conditions page of the nonprofit and the campaign.- Parameters:
termsAndConditionsUrl-
-
equals
public boolean equals(Object o)
Return true if this DonationCampaign object is equal to o.
-
fromJson
public static DonationCampaign fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DonationCampaign given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DonationCampaign
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DonationCampaign
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DonationCampaign to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-