Class DonationCampaign


  • public class DonationCampaign
    extends Object
    DonationCampaign
    • Constructor Detail

      • DonationCampaign

        public DonationCampaign()
    • Method Detail

      • amounts

        public DonationCampaign amounts​(Amounts amounts)
        amounts
        Parameters:
        amounts -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • getAmounts

        public Amounts getAmounts()
        amounts
        Returns:
        amounts
      • setAmounts

        public void setAmounts​(Amounts amounts)
        amounts
        Parameters:
        amounts -
      • bannerUrl

        public DonationCampaign bannerUrl​(String bannerUrl)
        The URL for the banner of the nonprofit or campaign.
        Parameters:
        bannerUrl -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The name of the donation campaign..
        Parameters:
        campaignName -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The cause of the nonprofit.
        Parameters:
        causeName -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        donation
        Parameters:
        donation -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • getDonation

        public Donation getDonation()
        donation
        Returns:
        donation
      • setDonation

        public void setDonation​(Donation donation)
        donation
        Parameters:
        donation -
      • id

        public DonationCampaign id​(String id)
        The unique campaign ID of the donation campaign.
        Parameters:
        id -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The URL for the logo of the nonprofit.
        Parameters:
        logoUrl -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The description of the nonprofit.
        Parameters:
        nonprofitDescription -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The name of the nonprofit organization that receives the donation.
        Parameters:
        nonprofitName -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The website URL of the nonprofit.
        Parameters:
        nonprofitUrl -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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)
        The URL of the terms and conditions page of the nonprofit and the campaign.
        Parameters:
        termsAndConditionsUrl -
        Returns:
        the current DonationCampaign instance, allowing for method chaining
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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