Class UpsertActivityStreamRequest

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

@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 UpsertActivityStreamRequest extends Object
UpsertActivityStreamRequest
  • Field Details

  • Constructor Details

    • UpsertActivityStreamRequest

      public UpsertActivityStreamRequest()
  • Method Details

    • acl

    • getAcl

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

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

      public UpsertActivityStreamRequest 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)
    • eventDate

      public UpsertActivityStreamRequest eventDate(@Nullable LocalDateTime eventDate)
    • getEventDate

      @Nullable @Valid public LocalDateTime getEventDate()
      Optional way to indicate when event occurred
      Returns:
      eventDate
    • setEventDate

      public void setEventDate(@Nullable LocalDateTime eventDate)
    • emotion

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

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getI18nKey()
      Optional 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 UpsertActivityStreamRequest 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 UpsertActivityStreamRequest 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