Class MappingPoints

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

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

  • Constructor Details

    • MappingPoints

      public MappingPoints()
  • Method Details

    • type

    • getType

      @Nullable public MappingPoints.TypeEnum getType()
      Get type
      Returns:
      type
    • setType

      public void setType(MappingPoints.TypeEnum type)
    • multiplier

      public MappingPoints multiplier(BigDecimal multiplier)
    • getMultiplier

      @Nullable public BigDecimal getMultiplier()
      Multiplication factor used to multiply the points to obtain the mapped points.
      Returns:
      multiplier
    • setMultiplier

      public void setMultiplier(BigDecimal multiplier)
    • points

      public MappingPoints points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      Fixed number of points to be applied.
      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 MappingPoints fromJson(String jsonString) throws IOException
      Create an instance of MappingPoints given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of MappingPoints
      Throws:
      IOException - if the JSON string is invalid with respect to MappingPoints
    • toJson

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