Package software.xdev.brevo.model
Class GetCouponCollection
java.lang.Object
software.xdev.brevo.model.GetCouponCollection
GetCouponCollection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) defaultCoupon(String defaultCoupon) booleanexpirationDate(OffsetDateTime expirationDate) Datetime on which the collection was created.The default coupon of the collection.Expiration date for the coupon collection in RFC3339 format.getId()The id of the collection.getName()The name of the collection.Number of coupons that have not been sent yet.If present, an email notification is going to be sent when the total number of available coupons falls below the defined threshold.If present, an email notification is going to be sent the defined amount of days before to the expiration date.Total number of coupons in the collection.inthashCode()remainingCoupons(Long remainingCoupons) remainingCouponsAlert(Integer remainingCouponsAlert) remainingDaysAlert(Integer remainingDaysAlert) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDefaultCoupon(String defaultCoupon) voidsetExpirationDate(OffsetDateTime expirationDate) voidvoidvoidsetRemainingCoupons(Long remainingCoupons) voidsetRemainingCouponsAlert(Integer remainingCouponsAlert) voidsetRemainingDaysAlert(Integer remainingDaysAlert) voidsetTotalCoupons(Long totalCoupons) toString()totalCoupons(Long totalCoupons) Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_DEFAULT_COUPON
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_TOTAL_COUPONS
- See Also:
-
JSON_PROPERTY_REMAINING_COUPONS
- See Also:
-
JSON_PROPERTY_EXPIRATION_DATE
- See Also:
-
JSON_PROPERTY_REMAINING_DAYS_ALERT
- See Also:
-
JSON_PROPERTY_REMAINING_COUPONS_ALERT
- See Also:
-
-
Constructor Details
-
GetCouponCollection
public GetCouponCollection()
-
-
Method Details
-
id
-
getId
The id of the collection.- Returns:
- id
-
setId
-
name
-
getName
The name of the collection.- Returns:
- name
-
setName
-
defaultCoupon
-
getDefaultCoupon
The default coupon of the collection.- Returns:
- defaultCoupon
-
setDefaultCoupon
-
createdAt
-
getCreatedAt
Datetime on which the collection was created.- Returns:
- createdAt
-
setCreatedAt
-
totalCoupons
-
getTotalCoupons
Total number of coupons in the collection.- Returns:
- totalCoupons
-
setTotalCoupons
-
remainingCoupons
-
getRemainingCoupons
Number of coupons that have not been sent yet.- Returns:
- remainingCoupons
-
setRemainingCoupons
-
expirationDate
-
getExpirationDate
Expiration date for the coupon collection in RFC3339 format.- Returns:
- expirationDate
-
setExpirationDate
-
remainingDaysAlert
-
getRemainingDaysAlert
If present, an email notification is going to be sent the defined amount of days before to the expiration date.- Returns:
- remainingDaysAlert
-
setRemainingDaysAlert
-
remainingCouponsAlert
-
getRemainingCouponsAlert
If present, an email notification is going to be sent when the total number of available coupons falls below the defined threshold.- Returns:
- remainingCouponsAlert
-
setRemainingCouponsAlert
-
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
-