Package io.voucherify.client.model
Class MemberActivity
java.lang.Object
io.voucherify.client.model.MemberActivity
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class MemberActivity
extends Object
This is an object representing member activity. This is a general object which presents moments from members' activity. There are all types of different events that members perform during their journey once they participate in a loyalty program. Events describe moments when the members redeem loyalty cards and earn points or rewards. The list of all types of activities is listed below. The details describing the activity are collected in an array property named `data`. In this object, software integrators can 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 MemberActivityCreate an instance of MemberActivity given an JSON stringTimestamp representing the date and time when the member 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 MemberActivity 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
-
MemberActivity
public MemberActivity()
-
-
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 member 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 MemberActivity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MemberActivity
- Throws:
IOException- if the JSON string is invalid with respect to MemberActivity
-
toJson
Convert an instance of MemberActivity to an JSON string- Returns:
- JSON string
-