Package software.xdev.brevo.model
Class BalanceOrder
java.lang.Object
software.xdev.brevo.model.BalanceOrder
Represents an order linked to a balance definition, including amount, due date, and transaction details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) balanceDefinitionId(String balanceDefinitionId) booleanOrder amount (must not be zero).Optional unique identifier (UUID) of the associated balance definition.Unique identifier of the contact placing the order (must be ≥ 1).RFC3339 timestamp indicating when the order was created.getDueAt()RFC3339 timestamp specifying when the order is due in the future.Optional RFC3339 timestamp defining order expiration in the future.getId()Unique identifier for the balance order.Unique identifier of the loyalty program associated with the order.getMeta()Optional metadata associated with the order.Optional RFC3339 timestamp indicating when the order was processed.Optional reference to the associated transaction ID.RFC3339 timestamp indicating the last update to the order.inthashCode()loyaltyProgramId(String loyaltyProgramId) processedAt(String processedAt) putMetaItem(String key, Object metaItem) voidsetAmount(BigDecimal amount) voidsetBalanceDefinitionId(String balanceDefinitionId) voidsetContactId(Integer contactId) voidsetCreatedAt(String createdAt) voidvoidsetExpiresAt(String expiresAt) voidvoidsetLoyaltyProgramId(String loyaltyProgramId) voidvoidsetProcessedAt(String processedAt) voidsetTransactionid(String transactionid) voidsetUpdatedAt(String updatedAt) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.transactionid(String transactionid)
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_BALANCE_DEFINITION_ID
- See Also:
-
JSON_PROPERTY_CONTACT_ID
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_DUE_AT
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAM_ID
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_PROCESSED_AT
- See Also:
-
JSON_PROPERTY_TRANSACTIONID
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
BalanceOrder
public BalanceOrder()
-
-
Method Details
-
amount
-
getAmount
Order amount (must not be zero).- Returns:
- amount
-
setAmount
-
balanceDefinitionId
-
getBalanceDefinitionId
Optional unique identifier (UUID) of the associated balance definition.- Returns:
- balanceDefinitionId
-
setBalanceDefinitionId
-
contactId
-
getContactId
Unique identifier of the contact placing the order (must be ≥ 1). minimum: 1- Returns:
- contactId
-
setContactId
-
createdAt
-
getCreatedAt
RFC3339 timestamp indicating when the order was created.- Returns:
- createdAt
-
setCreatedAt
-
dueAt
-
getDueAt
RFC3339 timestamp specifying when the order is due in the future.- Returns:
- dueAt
-
setDueAt
-
expiresAt
-
getExpiresAt
Optional RFC3339 timestamp defining order expiration in the future.- Returns:
- expiresAt
-
setExpiresAt
-
id
-
getId
Unique identifier for the balance order.- Returns:
- id
-
setId
-
loyaltyProgramId
-
getLoyaltyProgramId
Unique identifier of the loyalty program associated with the order.- Returns:
- loyaltyProgramId
-
setLoyaltyProgramId
-
meta
-
putMetaItem
-
getMeta
Optional metadata associated with the order.- Returns:
- meta
-
setMeta
-
processedAt
-
getProcessedAt
Optional RFC3339 timestamp indicating when the order was processed.- Returns:
- processedAt
-
setProcessedAt
-
transactionid
-
getTransactionid
Optional reference to the associated transaction ID.- Returns:
- transactionid
-
setTransactionid
-
updatedAt
-
getUpdatedAt
RFC3339 timestamp indicating the last update to the order.- 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
-