Package io.voucherify.client.model
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`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexchangeRatio(String exchangeRatio) Create an instance of RewardsCreateRequestBodyParametersCoin given an JSON stringThe cash equivalent of the points defined in the `points_ratio` property.The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property.inthashCode()pointsRatio(String pointsRatio) voidsetExchangeRatio(String exchangeRatio) voidsetPointsRatio(String pointsRatio) toJson()Convert an instance of RewardsCreateRequestBodyParametersCoin to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EXCHANGE_RATIO
- See Also:
-
SERIALIZED_NAME_POINTS_RATIO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RewardsCreateRequestBodyParametersCoin
public RewardsCreateRequestBodyParametersCoin()
-
-
Method Details
-
exchangeRatio
-
getExchangeRatio
The cash equivalent of the points defined in the `points_ratio` property.- Returns:
- exchangeRatio
-
setExchangeRatio
-
pointsRatio
-
getPointsRatio
The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property.- Returns:
- pointsRatio
-
setPointsRatio
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of RewardsCreateRequestBodyParametersCoin to an JSON string- Returns:
- JSON string
-