Package software.xdev.brevo.model
Class MainModelContactReward
java.lang.Object
software.xdev.brevo.model.MainModelContactReward
MainModelContactReward
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsumedAt(String consumedAt) booleanexpirationDate(String expirationDate) getCode()Generated codeTimestamp when the reward limit was consumedTimestamp when the reward limit was createdReward expiration dategetId()Unique identifier for the contactgetMeta()Additional data for the rewardUnique identifier for the rewardgetUnit()Unit of the balance selected in the reward definitionTimestamp when the reward limit was updatedgetValue()Value of the selected reward configinthashCode()putMetaItem(String key, Object metaItem) voidvoidsetConsumedAt(String consumedAt) voidsetCreatedAt(String createdAt) voidsetExpirationDate(String expirationDate) voidvoidvoidsetRewardId(String rewardId) voidvoidsetUpdatedAt(String updatedAt) voidsetValue(BigDecimal value) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.value(BigDecimal value)
-
Field Details
-
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_CONSUMED_AT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_EXPIRATION_DATE
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_REWARD_ID
- See Also:
-
JSON_PROPERTY_UNIT
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
MainModelContactReward
public MainModelContactReward()
-
-
Method Details
-
code
-
getCode
Generated code- Returns:
- code
-
setCode
-
consumedAt
-
getConsumedAt
Timestamp when the reward limit was consumed- Returns:
- consumedAt
-
setConsumedAt
-
createdAt
-
getCreatedAt
Timestamp when the reward limit was created- Returns:
- createdAt
-
setCreatedAt
-
expirationDate
-
getExpirationDate
Reward expiration date- Returns:
- expirationDate
-
setExpirationDate
-
id
-
getId
Unique identifier for the contact- Returns:
- id
-
setId
-
meta
-
putMetaItem
-
getMeta
Additional data for the reward- Returns:
- meta
-
setMeta
-
rewardId
-
getRewardId
Unique identifier for the reward- Returns:
- rewardId
-
setRewardId
-
unit
-
getUnit
Unit of the balance selected in the reward definition- Returns:
- unit
-
setUnit
-
updatedAt
-
getUpdatedAt
Timestamp when the reward limit was updated- Returns:
- updatedAt
-
setUpdatedAt
-
value
-
getValue
Value of the selected reward config- Returns:
- value
-
setValue
-
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
-