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.
  • Field Details

  • Constructor Details

    • MemberActivity

      public MemberActivity()
  • Method Details

    • id

      public MemberActivity id(String id)
    • getId

      @Nullable public String getId()
      Unique event ID, assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • type

      public MemberActivity type(String type)
    • getType

      @Nullable public String getType()
      Event type.
      Returns:
      type
    • setType

      public void setType(String type)
    • data

      public MemberActivity data(Object data)
    • getData

      @Nullable public Object 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

      public void setData(Object data)
    • createdAt

      public MemberActivity createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the member activity occurred in ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • groupId

      public MemberActivity groupId(String groupId)
    • getGroupId

      @Nullable public String getGroupId()
      Unique identifier of the request that caused the event.
      Returns:
      groupId
    • setGroupId

      public void setGroupId(String groupId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static MemberActivity fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of MemberActivity to an JSON string
      Returns:
      JSON string