Package io.trippay.sdk.payment.model
Class UpsertActivityStreamRequest
java.lang.Object
io.trippay.sdk.payment.model.UpsertActivityStreamRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-12T15:09:05.445923493+07:00[Asia/Bangkok]")
public class UpsertActivityStreamRequest
extends Object
UpsertActivityStreamRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWho can track this stream? -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) entityIdentifier(UUID entityIdentifier) booleaneventDate(LocalDateTime eventDate) @NotNull UpsertActivityStreamRequest.AclEnumgetAcl()Who can track this stream?Optional attachment.Optional comment.Optional emotion.@NotNull @Valid UUIDID of tracked entityOptional way to indicate when event occurred@NotNull StringOptional localized key.@Valid ActivityStreamUsergetUser()Get userinthashCode()voidvoidsetAttachmentId(String attachmentId) voidsetComment(String comment) voidsetEmotion(String emotion) voidsetEntityIdentifier(UUID entityIdentifier) voidsetEventDate(LocalDateTime eventDate) voidsetI18nKey(String i18nKey) voidsetUser(ActivityStreamUser user) toString()user(ActivityStreamUser user)
-
Field Details
-
JSON_PROPERTY_ACL
- See Also:
-
JSON_PROPERTY_ENTITY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_EVENT_DATE
- See Also:
-
JSON_PROPERTY_EMOTION
- See Also:
-
JSON_PROPERTY_COMMENT
- See Also:
-
JSON_PROPERTY_I18N_KEY
- See Also:
-
JSON_PROPERTY_ATTACHMENT_ID
- See Also:
-
JSON_PROPERTY_USER
- See Also:
-
-
Constructor Details
-
UpsertActivityStreamRequest
public UpsertActivityStreamRequest()
-
-
Method Details
-
acl
-
getAcl
Who can track this stream?- Returns:
- acl
-
setAcl
-
entityIdentifier
-
getEntityIdentifier
ID of tracked entity- Returns:
- entityIdentifier
-
setEntityIdentifier
-
eventDate
-
getEventDate
Optional way to indicate when event occurred- Returns:
- eventDate
-
setEventDate
-
emotion
-
getEmotion
Optional emotion. The actual implementation of the emotion is down to the consumer of the stream.- Returns:
- emotion
-
setEmotion
-
comment
-
getComment
Optional comment. For when the activity was created manually by a user. If i18nKey is not populated, comment is required.- Returns:
- comment
-
setComment
-
i18nKey
-
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
-
attachmentId
-
getAttachmentId
Optional attachment. For when we allow users to upload documents to the activity via Cloudinary.- Returns:
- attachmentId
-
setAttachmentId
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-