Skip to content

Latest commit

 

History

History
273 lines (146 loc) · 8.97 KB

UpdateCoupon.md

File metadata and controls

273 lines (146 loc) · 8.97 KB

UpdateCoupon

Properties

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 An indication of whether the code can be redeemed only if it has been reserved first. [optional] [default to false]
ImplicitlyReserved Pointer to bool An indication of whether the coupon is implicitly reserved for all customers. [optional]

Methods

GetUsageLimit

func (o *UpdateCoupon) GetUsageLimit() int32

GetUsageLimit returns the UsageLimit field if non-nil, zero value otherwise.

GetUsageLimitOk

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.

HasUsageLimit

func (o *UpdateCoupon) HasUsageLimit() bool

HasUsageLimit returns a boolean if a field has been set.

SetUsageLimit

func (o *UpdateCoupon) SetUsageLimit(v int32)

SetUsageLimit gets a reference to the given int32 and assigns it to the UsageLimit field.

GetDiscountLimit

func (o *UpdateCoupon) GetDiscountLimit() float32

GetDiscountLimit returns the DiscountLimit field if non-nil, zero value otherwise.

GetDiscountLimitOk

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.

HasDiscountLimit

func (o *UpdateCoupon) HasDiscountLimit() bool

HasDiscountLimit returns a boolean if a field has been set.

SetDiscountLimit

func (o *UpdateCoupon) SetDiscountLimit(v float32)

SetDiscountLimit gets a reference to the given float32 and assigns it to the DiscountLimit field.

GetReservationLimit

func (o *UpdateCoupon) GetReservationLimit() int32

GetReservationLimit returns the ReservationLimit field if non-nil, zero value otherwise.

GetReservationLimitOk

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.

HasReservationLimit

func (o *UpdateCoupon) HasReservationLimit() bool

HasReservationLimit returns a boolean if a field has been set.

SetReservationLimit

func (o *UpdateCoupon) SetReservationLimit(v int32)

SetReservationLimit gets a reference to the given int32 and assigns it to the ReservationLimit field.

GetStartDate

func (o *UpdateCoupon) GetStartDate() time.Time

GetStartDate returns the StartDate field if non-nil, zero value otherwise.

GetStartDateOk

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.

HasStartDate

func (o *UpdateCoupon) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

SetStartDate

func (o *UpdateCoupon) SetStartDate(v time.Time)

SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.

GetExpiryDate

func (o *UpdateCoupon) GetExpiryDate() time.Time

GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.

GetExpiryDateOk

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.

HasExpiryDate

func (o *UpdateCoupon) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

SetExpiryDate

func (o *UpdateCoupon) SetExpiryDate(v time.Time)

SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.

GetLimits

func (o *UpdateCoupon) GetLimits() []LimitConfig

GetLimits returns the Limits field if non-nil, zero value otherwise.

GetLimitsOk

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.

HasLimits

func (o *UpdateCoupon) HasLimits() bool

HasLimits returns a boolean if a field has been set.

SetLimits

func (o *UpdateCoupon) SetLimits(v []LimitConfig)

SetLimits gets a reference to the given []LimitConfig and assigns it to the Limits field.

GetRecipientIntegrationId

func (o *UpdateCoupon) GetRecipientIntegrationId() string

GetRecipientIntegrationId returns the RecipientIntegrationId field if non-nil, zero value otherwise.

GetRecipientIntegrationIdOk

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.

HasRecipientIntegrationId

func (o *UpdateCoupon) HasRecipientIntegrationId() bool

HasRecipientIntegrationId returns a boolean if a field has been set.

SetRecipientIntegrationId

func (o *UpdateCoupon) SetRecipientIntegrationId(v string)

SetRecipientIntegrationId gets a reference to the given string and assigns it to the RecipientIntegrationId field.

GetAttributes

func (o *UpdateCoupon) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field if non-nil, zero value otherwise.

GetAttributesOk

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.

HasAttributes

func (o *UpdateCoupon) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

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.

GetIsReservationMandatory

func (o *UpdateCoupon) GetIsReservationMandatory() bool

GetIsReservationMandatory returns the IsReservationMandatory field if non-nil, zero value otherwise.

GetIsReservationMandatoryOk

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.

HasIsReservationMandatory

func (o *UpdateCoupon) HasIsReservationMandatory() bool

HasIsReservationMandatory returns a boolean if a field has been set.

SetIsReservationMandatory

func (o *UpdateCoupon) SetIsReservationMandatory(v bool)

SetIsReservationMandatory gets a reference to the given bool and assigns it to the IsReservationMandatory field.

GetImplicitlyReserved

func (o *UpdateCoupon) GetImplicitlyReserved() bool

GetImplicitlyReserved returns the ImplicitlyReserved field if non-nil, zero value otherwise.

GetImplicitlyReservedOk

func (o *UpdateCoupon) GetImplicitlyReservedOk() (bool, bool)

GetImplicitlyReservedOk returns a tuple with the ImplicitlyReserved field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasImplicitlyReserved

func (o *UpdateCoupon) HasImplicitlyReserved() bool

HasImplicitlyReserved returns a boolean if a field has been set.

SetImplicitlyReserved

func (o *UpdateCoupon) SetImplicitlyReserved(v bool)

SetImplicitlyReserved gets a reference to the given bool and assigns it to the ImplicitlyReserved field.

[Back to Model list] [Back to API list] [Back to README]