Package io.voucherify.client.model
Class EventsCreateRequestBody
java.lang.Object
io.voucherify.client.model.EventsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class EventsCreateRequestBody
extends Object
Request body schema for **POST** `v1/events`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EventsCreateRequestBodyCreate an instance of EventsCreateRequestBody given an JSON stringGet customergetEvent()Event name.Get loyaltyThe metadata object stores all custom attributes assigned to the event.Get referralinthashCode()loyalty(EventsCreateRequestBodyLoyalty loyalty) referral(EventsCreateRequestBodyReferral referral) voidsetCustomer(Customer customer) voidvoidsetLoyalty(EventsCreateRequestBodyLoyalty loyalty) voidsetMetadata(Object metadata) voidsetReferral(EventsCreateRequestBodyReferral referral) toJson()Convert an instance of EventsCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EVENT
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_REFERRAL
- See Also:
-
SERIALIZED_NAME_LOYALTY
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EventsCreateRequestBody
public EventsCreateRequestBody()
-
-
Method Details
-
event
-
getEvent
Event name. This is the same name that you used to define a custom event in the **Dashboard** > **Project Settings** > **Event Schema**.- Returns:
- event
-
setEvent
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
referral
-
getReferral
Get referral- Returns:
- referral
-
setReferral
-
loyalty
-
getLoyalty
Get loyalty- Returns:
- loyalty
-
setLoyalty
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the event. A set of key/value pairs that you can attach to an event object. It can be useful for storing additional information about the event in a structured format. Event metadata schema is defined in the **Dashboard** > **Project Settings** > **Event Schema** > **Edit particular event** > **Metadata property definition**.- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of EventsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EventsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to EventsCreateRequestBody
-
toJson
Convert an instance of EventsCreateRequestBody to an JSON string- Returns:
- JSON string
-