Class TemplatesCampaignsCreateRequestBody

java.lang.Object
io.voucherify.client.model.TemplatesCampaignsCreateRequestBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TemplatesCampaignsCreateRequestBody extends Object
Request body schema for **POST** `/templates/campaign`.
  • Field Details

  • Constructor Details

    • TemplatesCampaignsCreateRequestBody

      public TemplatesCampaignsCreateRequestBody()
  • Method Details

    • campaignId

      public TemplatesCampaignsCreateRequestBody campaignId(String campaignId)
    • getCampaignId

      @Nullable public String getCampaignId()
      Unique identifier of the campaign that will create a template. It must be an ID of an existing discount or gift card campaign. It cannot be passed when `promotion_tier_id` has value. Required when the `promotion_tier_id` is not passed or it is `null`.
      Returns:
      campaignId
    • setCampaignId

      public void setCampaignId(String campaignId)
    • promotionTierId

      public TemplatesCampaignsCreateRequestBody promotionTierId(String promotionTierId)
    • getPromotionTierId

      @Nullable public String getPromotionTierId()
      Unique identifier of the promotion tier that will create a template. It cannot be passed when `campaign_id` has value. Required when the `campaign_id` is not passed or it is `null`.
      Returns:
      promotionTierId
    • setPromotionTierId

      public void setPromotionTierId(String promotionTierId)
    • name

    • getName

      @Nullable public String getName()
      User-defined name of the campaign template. It must be unique.
      Returns:
      name
    • setName

      public void setName(String name)
    • description

      public TemplatesCampaignsCreateRequestBody description(String description)
    • getDescription

      @Nullable public String getDescription()
      User-defined description of the campaign template.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static TemplatesCampaignsCreateRequestBody fromJson(String jsonString) throws IOException
      Create an instance of TemplatesCampaignsCreateRequestBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TemplatesCampaignsCreateRequestBody
      Throws:
      IOException - if the JSON string is invalid with respect to TemplatesCampaignsCreateRequestBody
    • toJson

      public String toJson()
      Convert an instance of TemplatesCampaignsCreateRequestBody to an JSON string
      Returns:
      JSON string