Package io.voucherify.client.model
Class ClientEventsCreateRequestBodyLoyalty
java.lang.Object
io.voucherify.client.model.ClientEventsCreateRequestBodyLoyalty
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientEventsCreateRequestBodyLoyalty
extends Object
If an earning rule in a loyalty program is based on a custom event. This objects let's you specify the loyalty card to which the custom event should be attributed to.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientEventsCreateRequestBodyLoyalty given an JSON stringgetCode()Code of the loyalty card to receive points based on the calculation method defined in the related earning rule.inthashCode()voidtoJson()Convert an instance of ClientEventsCreateRequestBodyLoyalty to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientEventsCreateRequestBodyLoyalty
public ClientEventsCreateRequestBodyLoyalty()
-
-
Method Details
-
code
-
getCode
Code of the loyalty card to receive points based on the calculation method defined in the related earning rule. An earning rule is triggered for the loyalty card when the event passed in the `event` parameter of the request payload gets sent along with this loyalty card code.- Returns:
- code
-
setCode
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ClientEventsCreateRequestBodyLoyalty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientEventsCreateRequestBodyLoyalty
- Throws:
IOException- if the JSON string is invalid with respect to ClientEventsCreateRequestBodyLoyalty
-
toJson
Convert an instance of ClientEventsCreateRequestBodyLoyalty to an JSON string- Returns:
- JSON string
-