Class EarningRuleLoyaltyTier

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

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

  • Constructor Details

    • EarningRuleLoyaltyTier

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

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