Package io.voucherify.client.model
Class LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
extends Object
Defines the ratio based on the property defined in the calculation_type parameter. For every set 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 calculation_type, give points.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of object taken under consideration. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount given an JSON stringgetEvery()Value is multiplied by 100 to precisely represent 2 decimal places.getId()Unique ID of the resource, i.e.Type of object taken under consideration.Number of points to be awarded, i.e.inthashCode()voidvoidvoidvoidtoJson()Convert an instance of LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EVERY
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
public LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount()
-
-
Method Details
-
every
-
getEvery
Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 order amount is written as 1000.- 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
-
_object
-
getObject
@Nullable public LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount.ObjectEnum getObject()Type of object taken under consideration.- Returns:
- _object
-
setObject
public void setObject(LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount.ObjectEnum _object) -
id
-
getId
Unique ID of the resource, i.e. pc_75U0dHlr7u75BJodrW1AE3t6, prod_0bae32322150fd0546, or sku_0b7d7dfb090be5c619.- Returns:
- id
-
setId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount
-
toJson
Convert an instance of LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount to an JSON string- Returns:
- JSON string
-