Package io.voucherify.client.model
Class LoyaltiesEarningRulesEnableResponseBodyLoyalty
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesEnableResponseBodyLoyalty
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesEnableResponseBodyLoyalty
extends Object
LoyaltiesEarningRulesEnableResponseBodyLoyalty
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets calculationTypestatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesEnableResponseBodyLoyalty given an JSON stringGet calculationTypeGet customerGet customEventgetOrder()Get orderGet orderItemsDefines how the points will be added to the loyalty card.getType()Get typeinthashCode()voidsetCalculationType(LoyaltiesEarningRulesEnableResponseBodyLoyalty.CalculationTypeEnum calculationType) voidvoidvoidvoidvoidvoidtoJson()Convert an instance of LoyaltiesEarningRulesEnableResponseBodyLoyalty to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_CALCULATION_TYPE
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_ORDER_ITEMS
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_CUSTOM_EVENT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesEnableResponseBodyLoyalty
public LoyaltiesEarningRulesEnableResponseBodyLoyalty()
-
-
Method Details
-
type
-
getType
Get type- Returns:
- type
-
setType
-
points
-
getPoints
Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points.- Returns:
- points
-
setPoints
-
calculationType
public LoyaltiesEarningRulesEnableResponseBodyLoyalty calculationType(LoyaltiesEarningRulesEnableResponseBodyLoyalty.CalculationTypeEnum calculationType) -
getCalculationType
@Nullable public LoyaltiesEarningRulesEnableResponseBodyLoyalty.CalculationTypeEnum getCalculationType()Get calculationType- Returns:
- calculationType
-
setCalculationType
public void setCalculationType(LoyaltiesEarningRulesEnableResponseBodyLoyalty.CalculationTypeEnum calculationType) -
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
orderItems
public LoyaltiesEarningRulesEnableResponseBodyLoyalty orderItems(LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItems orderItems) -
getOrderItems
Get orderItems- Returns:
- orderItems
-
setOrderItems
-
customer
public LoyaltiesEarningRulesEnableResponseBodyLoyalty customer(LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomer customer) -
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
customEvent
public LoyaltiesEarningRulesEnableResponseBodyLoyalty customEvent(LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEvent customEvent) -
getCustomEvent
Get customEvent- Returns:
- customEvent
-
setCustomEvent
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesEnableResponseBodyLoyalty fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesEnableResponseBodyLoyalty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesEnableResponseBodyLoyalty
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesEnableResponseBodyLoyalty
-
toJson
Convert an instance of LoyaltiesEarningRulesEnableResponseBodyLoyalty to an JSON string- Returns:
- JSON string
-