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

  • Constructor Details

    • CustomerActivity

      public CustomerActivity()
  • Method Details

    • id

      public CustomerActivity id(String id)
    • getId

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

      public void setId(String id)
    • type

      public CustomerActivity type(String type)
    • getType

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

      public void setType(String type)
    • data

      public CustomerActivity 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 CustomerActivity createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • groupId

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

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