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