Class PromotionStack

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PromotionStack extends Object
PromotionStack
  • Field Details

  • Constructor Details

    • PromotionStack

      public PromotionStack()
  • Method Details

    • name

      public PromotionStack name(String name)
    • getName

      @Nullable public String getName()
      Promotion stack name.
      Returns:
      name
    • setName

      public void setName(String name)
    • tiers

      public PromotionStack tiers(PromotionStackTiers tiers)
    • getTiers

      @Nullable public PromotionStackTiers getTiers()
      Get tiers
      Returns:
      tiers
    • setTiers

      public void setTiers(PromotionStackTiers tiers)
    • id

      public PromotionStack id(String id)
    • getId

      @Nullable public String getId()
      Unique promotion stack ID.
      Returns:
      id
    • setId

      public void setId(String id)
    • createdAt

      public PromotionStack createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the promotion stack was created. The value is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public PromotionStack updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp representing the date and time when the promotion stack was updated. The value is shown in the ISO 8601 format.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • campaignId

      public PromotionStack campaignId(String campaignId)
    • getCampaignId

      @Nullable public String getCampaignId()
      Promotion stack's parent campaign's unique ID.
      Returns:
      campaignId
    • setCampaignId

      public void setCampaignId(String campaignId)
    • _object

      public PromotionStack _object(PromotionStack.ObjectEnum _object)
    • getObject

      @Nullable public PromotionStack.ObjectEnum getObject()
      The type of the object represented by JSON.
      Returns:
      _object
    • setObject

      public void setObject(PromotionStack.ObjectEnum _object)
    • categoryId

      public PromotionStack categoryId(String categoryId)
    • getCategoryId

      @Nullable public String getCategoryId()
      Promotion stack category ID.
      Returns:
      categoryId
    • setCategoryId

      public void setCategoryId(String categoryId)
    • categories

      public PromotionStack categories(List<Category> categories)
    • addCategoriesItem

      public PromotionStack addCategoriesItem(Category categoriesItem)
    • getCategories

      @Nullable public List<Category> getCategories()
      Details about the category assigned to the promotion stack.
      Returns:
      categories
    • setCategories

      public void setCategories(List<Category> categories)
    • 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 PromotionStack fromJson(String jsonString) throws IOException
      Create an instance of PromotionStack given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PromotionStack
      Throws:
      IOException - if the JSON string is invalid with respect to PromotionStack
    • toJson

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