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