Package software.xdev.brevo.model
Class UpdateCouponCollectionRequest
java.lang.Object
software.xdev.brevo.model.UpdateCouponCollectionRequest
UpdateCouponCollectionRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultCoupon(String defaultCoupon) booleanexpirationDate(OffsetDateTime expirationDate) A default coupon to be used in case there are no coupons leftSpecify an expiration date for the coupon collection in RFC3339 format.Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number.Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number.inthashCode()remainingCouponsAlert(Integer remainingCouponsAlert) remainingDaysAlert(Integer remainingDaysAlert) voidsetDefaultCoupon(String defaultCoupon) voidsetExpirationDate(OffsetDateTime expirationDate) voidsetRemainingCouponsAlert(Integer remainingCouponsAlert) voidsetRemainingDaysAlert(Integer remainingDaysAlert) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_DEFAULT_COUPON
- See Also:
-
JSON_PROPERTY_EXPIRATION_DATE
- See Also:
-
JSON_PROPERTY_REMAINING_DAYS_ALERT
- See Also:
-
JSON_PROPERTY_REMAINING_COUPONS_ALERT
- See Also:
-
-
Constructor Details
-
UpdateCouponCollectionRequest
public UpdateCouponCollectionRequest()
-
-
Method Details
-
defaultCoupon
-
getDefaultCoupon
A default coupon to be used in case there are no coupons left- Returns:
- defaultCoupon
-
setDefaultCoupon
-
expirationDate
-
getExpirationDate
Specify an expiration date for the coupon collection in RFC3339 format. Use null to remove the expiration date.- Returns:
- expirationDate
-
setExpirationDate
-
remainingDaysAlert
-
getRemainingDaysAlert
Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number. Use null to disable alerts.- Returns:
- remainingDaysAlert
-
setRemainingDaysAlert
-
remainingCouponsAlert
-
getRemainingCouponsAlert
Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number. Use null to disable alerts.- 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
-