Class RewardTypeCoin

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RewardTypeCoin extends Object
Defines the ratio by mapping the number of loyalty points in points_ratio to a predefined cash amount in exchange_ratio.
  • Field Details

  • Constructor Details

    • RewardTypeCoin

      public RewardTypeCoin()
  • Method Details

    • exchangeRatio

      public RewardTypeCoin exchangeRatio(BigDecimal exchangeRatio)
    • getExchangeRatio

      @Nullable public BigDecimal getExchangeRatio()
      The cash equivalent of the points defined in the points_ratio property.
      Returns:
      exchangeRatio
    • setExchangeRatio

      public void setExchangeRatio(BigDecimal exchangeRatio)
    • pointsRatio

      public RewardTypeCoin pointsRatio(Integer pointsRatio)
    • getPointsRatio

      @Nullable public Integer getPointsRatio()
      The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property.
      Returns:
      pointsRatio
    • setPointsRatio

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

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