Class RedemptionRewardResultParametersCoin

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionRewardResultParametersCoin 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

    • RedemptionRewardResultParametersCoin

      public RedemptionRewardResultParametersCoin()
  • Method Details

    • exchangeRatio

      public RedemptionRewardResultParametersCoin exchangeRatio(Integer exchangeRatio)
    • getExchangeRatio

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

      public void setExchangeRatio(Integer exchangeRatio)
    • pointsRatio

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

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