Package software.xdev.brevo.model
Class CreateTransactionPayload
java.lang.Object
software.xdev.brevo.model.CreateTransactionPayload
Payload for creating a transaction, specifying balance details and optional expiration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) autoComplete(Boolean autoComplete) balanceDefinitionId(String balanceDefinitionId) balanceExpiryInMinutes(Integer balanceExpiryInMinutes) booleanTransaction amount (must be provided).Whether the transaction should be automatically completed.Unique identifier (UUID) of the associated balance definition.Optional expiry time for the balance in minutes (must be greater than 0 if provided).Unique identifier of the contact involved in the transaction (required unless `LoyaltySubscriptionId` is provided).Optional timestamp specifying when the transaction occurred.Unique identifier for the loyalty subscription (required unless `contactId` is provided).getMeta()Optional metadata associated with the transaction.getTtl()Optional time-to-live for the transaction (must be greater than 0 if provided).inthashCode()loyaltySubscriptionId(String loyaltySubscriptionId) putMetaItem(String key, Object metaItem) voidsetAmount(BigDecimal amount) voidsetAutoComplete(Boolean autoComplete) voidsetBalanceDefinitionId(String balanceDefinitionId) voidsetBalanceExpiryInMinutes(Integer balanceExpiryInMinutes) voidsetContactId(Integer contactId) voidsetEventTime(String eventTime) voidsetLoyaltySubscriptionId(String loyaltySubscriptionId) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_LOYALTY_SUBSCRIPTION_ID
- See Also:
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_AUTO_COMPLETE
- See Also:
-
JSON_PROPERTY_BALANCE_DEFINITION_ID
- See Also:
-
JSON_PROPERTY_BALANCE_EXPIRY_IN_MINUTES
- See Also:
-
JSON_PROPERTY_CONTACT_ID
- See Also:
-
JSON_PROPERTY_EVENT_TIME
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_TTL
- See Also:
-
-
Constructor Details
-
CreateTransactionPayload
public CreateTransactionPayload()
-
-
Method Details
-
loyaltySubscriptionId
-
getLoyaltySubscriptionId
Unique identifier for the loyalty subscription (required unless `contactId` is provided).- Returns:
- loyaltySubscriptionId
-
setLoyaltySubscriptionId
-
amount
-
getAmount
Transaction amount (must be provided).- Returns:
- amount
-
setAmount
-
autoComplete
-
getAutoComplete
Whether the transaction should be automatically completed.- Returns:
- autoComplete
-
setAutoComplete
-
balanceDefinitionId
-
getBalanceDefinitionId
Unique identifier (UUID) of the associated balance definition.- Returns:
- balanceDefinitionId
-
setBalanceDefinitionId
-
balanceExpiryInMinutes
-
getBalanceExpiryInMinutes
Optional expiry time for the balance in minutes (must be greater than 0 if provided).- Returns:
- balanceExpiryInMinutes
-
setBalanceExpiryInMinutes
-
contactId
-
getContactId
Unique identifier of the contact involved in the transaction (required unless `LoyaltySubscriptionId` is provided). minimum: 1- Returns:
- contactId
-
setContactId
-
eventTime
-
getEventTime
Optional timestamp specifying when the transaction occurred.- Returns:
- eventTime
-
setEventTime
-
meta
-
putMetaItem
-
getMeta
Optional metadata associated with the transaction.- Returns:
- meta
-
setMeta
-
ttl
-
getTtl
Optional time-to-live for the transaction (must be greater than 0 if provided).- Returns:
- ttl
-
setTtl
-
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
-