Package software.xdev.brevo.model
Class CreateOrderPayload
java.lang.Object
software.xdev.brevo.model.CreateOrderPayload
Payload for creating an order linked to a balance definition.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) balanceDefinitionId(String balanceDefinitionId) booleanOrder amount (must be non-zero).Unique identifier (UUID) of the associated balance definition.Unique identifier of the contact placing the order (must be ≥ 1).getDueAt()RFC3339 timestamp specifying when the order is due.Optional RFC3339 timestamp defining order expiration.getMeta()Optional metadata associated with the order.Specifies the origin of the order (`engine` or `user`).inthashCode()putMetaItem(String key, Object metaItem) voidsetAmount(BigDecimal amount) voidsetBalanceDefinitionId(String balanceDefinitionId) voidsetContactId(Integer contactId) voidvoidsetExpiresAt(String expiresAt) voidvoidtoString()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_CONTACT_ID
- See Also:
-
JSON_PROPERTY_DUE_AT
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_SOURCE
- See Also:
-
-
Constructor Details
-
CreateOrderPayload
public CreateOrderPayload()
-
-
Method Details
-
amount
-
getAmount
Order amount (must be non-zero).- Returns:
- amount
-
setAmount
-
balanceDefinitionId
-
getBalanceDefinitionId
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
-
dueAt
-
getDueAt
RFC3339 timestamp specifying when the order is due.- Returns:
- dueAt
-
setDueAt
-
expiresAt
-
getExpiresAt
Optional RFC3339 timestamp defining order expiration.- Returns:
- expiresAt
-
setExpiresAt
-
meta
-
putMetaItem
-
getMeta
Optional metadata associated with the order.- Returns:
- meta
-
setMeta
-
source
-
getSource
Specifies the origin of the order (`engine` or `user`).- Returns:
- source
-
setSource
-
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
-