Package io.voucherify.client.model
Class LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
extends Object
Defines the ratio based on the property defined in the calculation_type parameter. For every given increment of value (1, 10, etc) defined in the every parameter for the property defined in calculation_type, give the customer the number of points defined in the points parameter. In other words, for every order metadata property value, give points.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata given an JSON stringgetEvery()For how many increments of the customer metadata property to grant points for.Number of points to be awarded, i.e.Customer metadata property.inthashCode()voidvoidvoidsetProperty(String property) toJson()Convert an instance of LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EVERY
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_PROPERTY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
public LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata()
-
-
Method Details
-
every
-
getEvery
For how many increments of the customer metadata property to grant points for.- Returns:
- every
-
setEvery
-
points
-
getPoints
Number of points to be awarded, i.e. how many points to be added to the loyalty card.- Returns:
- points
-
setPoints
-
property
-
getProperty
Customer metadata property.- Returns:
- property
-
setProperty
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata
-
toJson
Convert an instance of LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata to an JSON string- Returns:
- JSON string
-