Package software.xdev.brevo.model
Class TransactionHistory
java.lang.Object
software.xdev.brevo.model.TransactionHistory
Represents a record of a past transaction, including status and key timestamps.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) balanceExpirationDate(String balanceExpirationDate) cancelledAt(String cancelledAt) completedAt(String completedAt) booleanThe transaction amount.Expiration date of the balance associated with this transaction.Timestamp when the transaction was canceled, if applicable.Timestamp when the transaction was successfully completed.Timestamp when the transaction was initiated.getId()Unique identifier of the transaction.getMeta()Optional metadata associated with the transaction.Timestamp when the transaction was rejected.Reason for rejection, if the transaction was declined.Current status of the transaction (e.g., pending, completed, rejected).inthashCode()putMetaItem(String key, Object metaItem) rejectedAt(String rejectedAt) rejectReason(String rejectReason) voidsetAmount(BigDecimal amount) voidsetBalanceExpirationDate(String balanceExpirationDate) voidsetCancelledAt(String cancelledAt) voidsetCompletedAt(String completedAt) voidsetCreatedAt(String createdAt) voidvoidvoidsetRejectedAt(String rejectedAt) voidsetRejectReason(String rejectReason) voidtoString()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_EXPIRATION_DATE
- See Also:
-
JSON_PROPERTY_CANCELLED_AT
- See Also:
-
JSON_PROPERTY_COMPLETED_AT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_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:
-
-
Constructor Details
-
TransactionHistory
public TransactionHistory()
-
-
Method Details
-
amount
-
getAmount
The transaction amount.- Returns:
- amount
-
setAmount
-
balanceExpirationDate
-
getBalanceExpirationDate
Expiration date of the balance associated with this transaction.- Returns:
- balanceExpirationDate
-
setBalanceExpirationDate
-
cancelledAt
-
getCancelledAt
Timestamp when the transaction was canceled, if applicable.- Returns:
- cancelledAt
-
setCancelledAt
-
completedAt
-
getCompletedAt
Timestamp when the transaction was successfully completed.- Returns:
- completedAt
-
setCompletedAt
-
createdAt
-
getCreatedAt
Timestamp when the transaction was initiated.- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Unique identifier of the transaction.- Returns:
- id
-
setId
-
meta
-
putMetaItem
-
getMeta
Optional metadata associated with the transaction.- Returns:
- meta
-
setMeta
-
rejectReason
-
getRejectReason
Reason for rejection, if the transaction was declined.- Returns:
- rejectReason
-
setRejectReason
-
rejectedAt
-
getRejectedAt
Timestamp when the transaction was rejected.- Returns:
- rejectedAt
-
setRejectedAt
-
status
-
getStatus
Current status of the transaction (e.g., pending, completed, rejected).- Returns:
- status
-
setStatus
-
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
-