Package software.xdev.brevo.model
Class Balance
java.lang.Object
software.xdev.brevo.model.Balance
Balance
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) balanceDefinitionId(String balanceDefinitionId) consumedAt(String consumedAt) booleanThe current amount available in the balancebalance definition IDTimestamp of when the balance was last consumedcontact IDTimestamp of when the balance was createdExpiration timestamp of the balancegetId()Unique identifier for the balanceloyalty program IDorganization IDinthashCode()loyaltyProgramId(String loyaltyProgramId) organizationId(Integer organizationId) voidsetAmount(BigDecimal amount) voidsetBalanceDefinitionId(String balanceDefinitionId) voidsetConsumedAt(String consumedAt) voidsetContactId(Integer contactId) voidsetCreatedAt(String createdAt) voidsetExpiresAt(String expiresAt) voidvoidsetLoyaltyProgramId(String loyaltyProgramId) voidsetOrganizationId(Integer organizationId) toString()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_CONSUMED_AT
- See Also:
-
JSON_PROPERTY_CONTACT_ID
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAM_ID
- See Also:
-
JSON_PROPERTY_ORGANIZATION_ID
- See Also:
-
-
Constructor Details
-
Balance
public Balance()
-
-
Method Details
-
amount
-
getAmount
The current amount available in the balance- Returns:
- amount
-
setAmount
-
balanceDefinitionId
-
getBalanceDefinitionId
balance definition ID- Returns:
- balanceDefinitionId
-
setBalanceDefinitionId
-
consumedAt
-
getConsumedAt
Timestamp of when the balance was last consumed- Returns:
- consumedAt
-
setConsumedAt
-
contactId
-
getContactId
contact ID- Returns:
- contactId
-
setContactId
-
createdAt
-
getCreatedAt
Timestamp of when the balance was created- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
getExpiresAt
Expiration timestamp of the balance- Returns:
- expiresAt
-
setExpiresAt
-
id
-
getId
Unique identifier for the balance- Returns:
- id
-
setId
-
loyaltyProgramId
-
getLoyaltyProgramId
loyalty program ID- Returns:
- loyaltyProgramId
-
setLoyaltyProgramId
-
organizationId
-
getOrganizationId
organization ID- Returns:
- organizationId
-
setOrganizationId
-
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
-