Name | Type | Description | Notes |
---|---|---|---|
UsageLimit | Pointer to int32 | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] |
DiscountLimit | Pointer to float32 | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] |
ReservationLimit | Pointer to int32 | The number of reservations that can be made with this coupon code. | [optional] |
StartDate | Pointer to time.Time | Timestamp at which point the coupon becomes valid. | [optional] |
ExpiryDate | Pointer to time.Time | Expiration date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional] |
Limits | Pointer to []LimitConfig | Limits configuration for a coupon. These limits will override the limits set from the campaign. Note: Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] |
RecipientIntegrationId | Pointer to string | The integration ID for this coupon's beneficiary's profile. | [optional] |
Attributes | Pointer to map[string]interface{} | Arbitrary properties associated with this item. | [optional] |
IsReservationMandatory | Pointer to bool | Whether the reservation effect actually created a new reservation. | [optional] [default to true] |
func (o *UpdateCoupon) GetUsageLimit() int32
GetUsageLimit returns the UsageLimit field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetUsageLimitOk() (int32, bool)
GetUsageLimitOk returns a tuple with the UsageLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasUsageLimit() bool
HasUsageLimit returns a boolean if a field has been set.
func (o *UpdateCoupon) SetUsageLimit(v int32)
SetUsageLimit gets a reference to the given int32 and assigns it to the UsageLimit field.
func (o *UpdateCoupon) GetDiscountLimit() float32
GetDiscountLimit returns the DiscountLimit field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetDiscountLimitOk() (float32, bool)
GetDiscountLimitOk returns a tuple with the DiscountLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasDiscountLimit() bool
HasDiscountLimit returns a boolean if a field has been set.
func (o *UpdateCoupon) SetDiscountLimit(v float32)
SetDiscountLimit gets a reference to the given float32 and assigns it to the DiscountLimit field.
func (o *UpdateCoupon) GetReservationLimit() int32
GetReservationLimit returns the ReservationLimit field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetReservationLimitOk() (int32, bool)
GetReservationLimitOk returns a tuple with the ReservationLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasReservationLimit() bool
HasReservationLimit returns a boolean if a field has been set.
func (o *UpdateCoupon) SetReservationLimit(v int32)
SetReservationLimit gets a reference to the given int32 and assigns it to the ReservationLimit field.
func (o *UpdateCoupon) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetStartDateOk() (time.Time, bool)
GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *UpdateCoupon) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *UpdateCoupon) GetExpiryDate() time.Time
GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetExpiryDateOk() (time.Time, bool)
GetExpiryDateOk returns a tuple with the ExpiryDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasExpiryDate() bool
HasExpiryDate returns a boolean if a field has been set.
func (o *UpdateCoupon) SetExpiryDate(v time.Time)
SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.
func (o *UpdateCoupon) GetLimits() []LimitConfig
GetLimits returns the Limits field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetLimitsOk() ([]LimitConfig, bool)
GetLimitsOk returns a tuple with the Limits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasLimits() bool
HasLimits returns a boolean if a field has been set.
func (o *UpdateCoupon) SetLimits(v []LimitConfig)
SetLimits gets a reference to the given []LimitConfig and assigns it to the Limits field.
func (o *UpdateCoupon) GetRecipientIntegrationId() string
GetRecipientIntegrationId returns the RecipientIntegrationId field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetRecipientIntegrationIdOk() (string, bool)
GetRecipientIntegrationIdOk returns a tuple with the RecipientIntegrationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasRecipientIntegrationId() bool
HasRecipientIntegrationId returns a boolean if a field has been set.
func (o *UpdateCoupon) SetRecipientIntegrationId(v string)
SetRecipientIntegrationId gets a reference to the given string and assigns it to the RecipientIntegrationId field.
func (o *UpdateCoupon) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetAttributesOk() (map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UpdateCoupon) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *UpdateCoupon) GetIsReservationMandatory() bool
GetIsReservationMandatory returns the IsReservationMandatory field if non-nil, zero value otherwise.
func (o *UpdateCoupon) GetIsReservationMandatoryOk() (bool, bool)
GetIsReservationMandatoryOk returns a tuple with the IsReservationMandatory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCoupon) HasIsReservationMandatory() bool
HasIsReservationMandatory returns a boolean if a field has been set.
func (o *UpdateCoupon) SetIsReservationMandatory(v bool)
SetIsReservationMandatory gets a reference to the given bool and assigns it to the IsReservationMandatory field.