Class RewardsCreateRequestBodyParametersCoin

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

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

  • Constructor Details

    • RewardsCreateRequestBodyParametersCoin

      public RewardsCreateRequestBodyParametersCoin()
  • Method Details

    • exchangeRatio

      public RewardsCreateRequestBodyParametersCoin exchangeRatio(String exchangeRatio)
    • getExchangeRatio

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

      public void setExchangeRatio(String exchangeRatio)
    • pointsRatio

      public RewardsCreateRequestBodyParametersCoin pointsRatio(String pointsRatio)
    • getPointsRatio

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

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