Package io.voucherify.client.model
Class ClientEventsCreateRequestBody
java.lang.Object
io.voucherify.client.model.ClientEventsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientEventsCreateRequestBody
extends Object
Request body schema for **POST** `v1/events`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientEventsCreateRequestBody given an JSON stringGet customergetEvent()Event name.Get loyaltyThe metadata object stores all custom attributes assigned to the event.Get referralinthashCode()voidsetCustomer(Customer customer) voidvoidvoidsetMetadata(Object metadata) voidtoJson()Convert an instance of ClientEventsCreateRequestBody 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
-
ClientEventsCreateRequestBody
public ClientEventsCreateRequestBody()
-
-
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 ClientEventsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientEventsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ClientEventsCreateRequestBody
-
toJson
Convert an instance of ClientEventsCreateRequestBody to an JSON string- Returns:
- JSON string
-