Class ActivityStream

java.lang.Object
io.trippay.sdk.payment.model.ActivityStream

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-06-26T20:12:05.578754358+07:00[Asia/Bangkok]", comments="Generator version: 7.13.0") public class ActivityStream extends Object
ActivityStream
  • Field Details

  • Constructor Details

    • ActivityStream

      public ActivityStream()
  • Method Details

    • id

      public ActivityStream id(@Nullable String id)
    • getId

      @Nullable public String getId()
      Document UUID
      Returns:
      id
    • setId

      public void setId(@Nullable String id)
    • createdDate

      public ActivityStream createdDate(@Nullable LocalDateTime createdDate)
    • getCreatedDate

      @Nullable @Valid public LocalDateTime getCreatedDate()
      Datetime this record was first created
      Returns:
      createdDate
    • setCreatedDate

      public void setCreatedDate(@Nullable LocalDateTime createdDate)
    • lastUpdate

      public ActivityStream lastUpdate(@Nullable LocalDateTime lastUpdate)
    • getLastUpdate

      @Nullable @Valid public LocalDateTime getLastUpdate()
      Datetime this record was last updated
      Returns:
      lastUpdate
    • setLastUpdate

      public void setLastUpdate(@Nullable LocalDateTime lastUpdate)
    • version

      public ActivityStream version(@Nullable Long version)
    • getVersion

      @Nullable public Long getVersion()
      Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable Long version)
    • acl

      public ActivityStream acl(@Nonnull ActivityStream.AclEnum acl)
    • getAcl

      @Nonnull @NotNull public @NotNull ActivityStream.AclEnum getAcl()
      Who can track this stream?
      Returns:
      acl
    • setAcl

      public void setAcl(@Nonnull ActivityStream.AclEnum acl)
    • entityIdentifier

      public ActivityStream entityIdentifier(@Nonnull UUID entityIdentifier)
    • getEntityIdentifier

      @Nonnull @NotNull @Valid @Size(min=1) public @NotNull @Valid @Size(min=1) UUID getEntityIdentifier()
      ID of tracked entity
      Returns:
      entityIdentifier
    • setEntityIdentifier

      public void setEntityIdentifier(@Nonnull UUID entityIdentifier)
    • emotion

      public ActivityStream emotion(@Nullable String emotion)
    • getEmotion

      @Nullable public String getEmotion()
      Optional emotion. The actual implementation of the emotion is down to the consumer of the stream.
      Returns:
      emotion
    • setEmotion

      public void setEmotion(@Nullable String emotion)
    • comment

      public ActivityStream comment(@Nullable String comment)
    • getComment

      @Nullable public String getComment()
      Optional comment. For when the activity was created manually by a user. If i18nKey is not populated, comment is required.
      Returns:
      comment
    • setComment

      public void setComment(@Nullable String comment)
    • i18nKey

      public ActivityStream i18nKey(@Nonnull String i18nKey)
    • getI18nKey

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getI18nKey()
      Localized key. Key will be used to generate text on the front-end. If comment is not populated, i18n is required.
      Returns:
      i18nKey
    • setI18nKey

      public void setI18nKey(@Nonnull String i18nKey)
    • attachmentId

      public ActivityStream attachmentId(@Nullable String attachmentId)
    • getAttachmentId

      @Nullable public String getAttachmentId()
      Optional attachment. For when we allow users to upload documents to the activity via Cloudinary.
      Returns:
      attachmentId
    • setAttachmentId

      public void setAttachmentId(@Nullable String attachmentId)
    • user

      public ActivityStream user(@Nullable ActivityStreamUser user)
    • getUser

      @Nullable @Valid public @Valid ActivityStreamUser getUser()
      Optional user. Attached when an authenticated user is available in the context of the activity.
      Returns:
      user
    • setUser

      public void setUser(@Nullable ActivityStreamUser user)
    • 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