Class ActivityStream

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-25T08:58:01.141341582+07:00[Asia/Bangkok]") public class ActivityStream extends Object
ActivityStream
  • Field Details

  • Constructor Details

    • ActivityStream

      public ActivityStream()
  • Method Details

    • id

      public ActivityStream id(String id)
    • getId

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

      public void setId(String id)
    • createdDate

      public ActivityStream createdDate(LocalDateTime createdDate)
    • getCreatedDate

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

      public void setCreatedDate(LocalDateTime createdDate)
    • lastUpdate

      public ActivityStream lastUpdate(LocalDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(LocalDateTime lastUpdate)
    • version

      public ActivityStream version(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(Long version)
    • acl

    • getAcl

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

      public void setAcl(ActivityStream.AclEnum acl)
    • entityIdentifier

      public ActivityStream entityIdentifier(UUID entityIdentifier)
    • getEntityIdentifier

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

      public void setEntityIdentifier(UUID entityIdentifier)
    • emotion

      public ActivityStream emotion(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(String emotion)
    • comment

      public ActivityStream comment(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(String comment)
    • i18nKey

      public ActivityStream i18nKey(String i18nKey)
    • getI18nKey

      @Nonnull @NotNull public @NotNull 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(String i18nKey)
    • attachmentId

      public ActivityStream attachmentId(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(String attachmentId)
    • user

      public ActivityStream user(ActivityStreamUser user)
    • getUser

      @Nullable @Valid public @Valid ActivityStreamUser getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(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