Class EarningRuleLoyaltyOrderTotalAmount

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class EarningRuleLoyaltyOrderTotalAmount extends Object
Defines the ratio based on the property defined in the calculation_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation_type, give the customer the number of points defined in the points parameter. In other words, for every calculation_type, give points.
  • Field Details

  • Constructor Details

    • EarningRuleLoyaltyOrderTotalAmount

      public EarningRuleLoyaltyOrderTotalAmount()
  • Method Details

    • every

    • getEvery

      @Nullable public Integer getEvery()
      Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 order amount is written as 1000.
      Returns:
      every
    • setEvery

      public void setEvery(Integer every)
    • points

    • getPoints

      @Nullable public Integer getPoints()
      Number of points to be awarded, i.e. how many points to be added to the loyalty card.
      Returns:
      points
    • setPoints

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

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