Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexchangeRatio(BigDecimal exchangeRatio) static RewardTypeCoinCreate an instance of RewardTypeCoin 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(Integer pointsRatio) voidsetExchangeRatio(BigDecimal exchangeRatio) voidsetPointsRatio(Integer pointsRatio) toJson()Convert an instance of RewardTypeCoin to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EXCHANGE_RATIO
- See Also:
-
SERIALIZED_NAME_POINTS_RATIO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RewardTypeCoin
public RewardTypeCoin()
-
-
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 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
Convert an instance of RewardTypeCoin to an JSON string- Returns:
- JSON string
-