Package io.voucherify.client.model
Class EarningRuleLoyalty
java.lang.Object
io.voucherify.client.model.EarningRuleLoyalty
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class EarningRuleLoyalty
extends Object
EarningRuleLoyalty
-
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 TypeMethodDescriptioncalculationType(EarningRuleLoyalty.CalculationTypeEnum calculationType) customer(EarningRuleLoyaltyCustomer customer) customEvent(EarningRuleLoyaltyCustomEvent customEvent) booleanstatic EarningRuleLoyaltyCreate an instance of EarningRuleLoyalty given an JSON stringGet calculationTypeGet customerGet customEventgetOrder()Get orderGet orderItemsDefines how the points will be added to the loyalty card.getType()Get typeinthashCode()order(EarningRuleLoyaltyOrder order) orderItems(EarningRuleLoyaltyOrderItems orderItems) voidsetCalculationType(EarningRuleLoyalty.CalculationTypeEnum calculationType) voidsetCustomer(EarningRuleLoyaltyCustomer customer) voidsetCustomEvent(EarningRuleLoyaltyCustomEvent customEvent) voidsetOrder(EarningRuleLoyaltyOrder order) voidsetOrderItems(EarningRuleLoyaltyOrderItems orderItems) voidvoidtoJson()Convert an instance of EarningRuleLoyalty 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
-
EarningRuleLoyalty
public EarningRuleLoyalty()
-
-
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
-
getCalculationType
Get calculationType- Returns:
- calculationType
-
setCalculationType
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
orderItems
-
getOrderItems
Get orderItems- Returns:
- orderItems
-
setOrderItems
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
customEvent
-
getCustomEvent
Get customEvent- Returns:
- customEvent
-
setCustomEvent
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of EarningRuleLoyalty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EarningRuleLoyalty
- Throws:
IOException- if the JSON string is invalid with respect to EarningRuleLoyalty
-
toJson
Convert an instance of EarningRuleLoyalty to an JSON string- Returns:
- JSON string
-