Package software.xdev.brevo.model
Class Transaction
java.lang.Object
software.xdev.brevo.model.Transaction
Represents a transaction involving a balance, including status and timestamps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) balanceDefinitionId(String balanceDefinitionId) cancelledAt(String cancelledAt) completedAt(String completedAt) booleanexpirationDate(String expirationDate) The transaction amount.Unique identifier (UUID) of the associated balance definition.Timestamp when the transaction was canceled (nullable).Timestamp when the transaction was completed (nullable).Unique identifier of the contact associated with the transaction.Timestamp when the transaction was created.Optional timestamp indicating when the transaction event occurred.Expiry date of the transaction (nullable).getId()Unique identifier (UUID) of the transaction.Unique identifier (UUID) of the associated loyalty program.getMeta()Optional metadata associated with the transaction.Timestamp when the transaction was rejected (nullable).Reason for rejection if the transaction was declined (nullable).The current status of the transaction (e.g., pending, completed, rejected).Timestamp when the transaction was last updated.inthashCode()loyaltyProgramId(String loyaltyProgramId) putMetaItem(String key, Object metaItem) rejectedAt(String rejectedAt) rejectReason(String rejectReason) voidsetAmount(BigDecimal amount) voidsetBalanceDefinitionId(String balanceDefinitionId) voidsetCancelledAt(String cancelledAt) voidsetCompletedAt(String completedAt) voidsetContactId(Integer contactId) voidsetCreatedAt(String createdAt) voidsetEventTime(String eventTime) voidsetExpirationDate(String expirationDate) voidvoidsetLoyaltyProgramId(String loyaltyProgramId) voidvoidsetRejectedAt(String rejectedAt) voidsetRejectReason(String rejectReason) voidvoidsetUpdatedAt(String updatedAt) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_BALANCE_DEFINITION_ID
- See Also:
-
JSON_PROPERTY_CANCELLED_AT
- See Also:
-
JSON_PROPERTY_COMPLETED_AT
- See Also:
-
JSON_PROPERTY_CONTACT_ID
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_EVENT_TIME
- See Also:
-
JSON_PROPERTY_EXPIRATION_DATE
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAM_ID
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_REJECT_REASON
- See Also:
-
JSON_PROPERTY_REJECTED_AT
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
amount
-
getAmount
The transaction amount.- Returns:
- amount
-
setAmount
-
balanceDefinitionId
-
getBalanceDefinitionId
Unique identifier (UUID) of the associated balance definition.- Returns:
- balanceDefinitionId
-
setBalanceDefinitionId
-
cancelledAt
-
getCancelledAt
Timestamp when the transaction was canceled (nullable).- Returns:
- cancelledAt
-
setCancelledAt
-
completedAt
-
getCompletedAt
Timestamp when the transaction was completed (nullable).- Returns:
- completedAt
-
setCompletedAt
-
contactId
-
getContactId
Unique identifier of the contact associated with the transaction.- Returns:
- contactId
-
setContactId
-
createdAt
-
getCreatedAt
Timestamp when the transaction was created.- Returns:
- createdAt
-
setCreatedAt
-
eventTime
-
getEventTime
Optional timestamp indicating when the transaction event occurred.- Returns:
- eventTime
-
setEventTime
-
expirationDate
-
getExpirationDate
Expiry date of the transaction (nullable).- Returns:
- expirationDate
-
setExpirationDate
-
id
-
getId
Unique identifier (UUID) of the transaction.- Returns:
- id
-
setId
-
loyaltyProgramId
-
getLoyaltyProgramId
Unique identifier (UUID) of the associated loyalty program.- Returns:
- loyaltyProgramId
-
setLoyaltyProgramId
-
meta
-
putMetaItem
-
getMeta
Optional metadata associated with the transaction.- Returns:
- meta
-
setMeta
-
rejectReason
-
getRejectReason
Reason for rejection if the transaction was declined (nullable).- Returns:
- rejectReason
-
setRejectReason
-
rejectedAt
-
getRejectedAt
Timestamp when the transaction was rejected (nullable).- Returns:
- rejectedAt
-
setRejectedAt
-
status
-
getStatus
The current status of the transaction (e.g., pending, completed, rejected).- Returns:
- status
-
setStatus
-
updatedAt
-
getUpdatedAt
Timestamp when the transaction was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-