Class LoyaltiesEarningRulesCreateResponseBodyLoyaltyTier

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesEarningRulesCreateResponseBodyLoyaltyTier extends Object
Defines the tier associated with the earning rule definition.
  • Field Details

  • Constructor Details

    • LoyaltiesEarningRulesCreateResponseBodyLoyaltyTier

      public LoyaltiesEarningRulesCreateResponseBodyLoyaltyTier()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique loyalty tier ID associated with the earning rule. - `__ANY__`: any loyalty tier within the campaign
      Returns:
      id
    • setId

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

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