Package io.voucherify.client.model
Class CustomerActivity
java.lang.Object
io.voucherify.client.model.CustomerActivity
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomerActivity
extends Object
This is an object representing customer activity. This is a general object which presents moments from customers' activity. There are all types of different events that customers perform during their journey once they participate in Promotions. Events describe moments when customers redeem coupons and earn points or rewards. The list of all types of activities is listed below. The details describing the activity are collected in a property named `data`. In this object, software integrators will find all further information explaining the event context.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic CustomerActivityCreate an instance of CustomerActivity given an JSON stringTimestamp representing the date and time when the customer activity occurred in ISO 8601 format.getData()Contains details about the event.Unique identifier of the request that caused the event.getId()Unique event ID, assigned by Voucherify.getType()Event type.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetGroupId(String groupId) voidvoidtoJson()Convert an instance of CustomerActivity to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_GROUP_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomerActivity
public CustomerActivity()
-
-
Method Details
-
id
-
getId
Unique event ID, assigned by Voucherify.- Returns:
- id
-
setId
-
type
-
getType
Event type.- Returns:
- type
-
setType
-
data
-
getData
Contains details about the event. The objects that are returned in the data attribute differ based on the context of the event type.- Returns:
- data
-
setData
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the customer activity occurred in ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
groupId
-
getGroupId
Unique identifier of the request that caused the event.- Returns:
- groupId
-
setGroupId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomerActivity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomerActivity
- Throws:
IOException- if the JSON string is invalid with respect to CustomerActivity
-
toJson
Convert an instance of CustomerActivity to an JSON string- Returns:
- JSON string
-