Skip to content

Latest commit

 

History

History
221 lines (118 loc) · 7.12 KB

NewCouponCreationJob.md

File metadata and controls

221 lines (118 loc) · 7.12 KB

NewCouponCreationJob

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.
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. [optional]
NumberOfCoupons Pointer to int32 The number of new coupon codes to generate for the campaign.
CouponSettings Pointer to CodeGeneratorSettings [optional]
Attributes Pointer to map[string]interface{} Arbitrary properties associated with coupons.

Methods

GetUsageLimit

func (o *NewCouponCreationJob) GetUsageLimit() int32

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

GetUsageLimitOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasUsageLimit() bool

HasUsageLimit returns a boolean if a field has been set.

SetUsageLimit

func (o *NewCouponCreationJob) SetUsageLimit(v int32)

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

GetDiscountLimit

func (o *NewCouponCreationJob) GetDiscountLimit() float32

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

GetDiscountLimitOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasDiscountLimit() bool

HasDiscountLimit returns a boolean if a field has been set.

SetDiscountLimit

func (o *NewCouponCreationJob) SetDiscountLimit(v float32)

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

GetReservationLimit

func (o *NewCouponCreationJob) GetReservationLimit() int32

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

GetReservationLimitOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasReservationLimit() bool

HasReservationLimit returns a boolean if a field has been set.

SetReservationLimit

func (o *NewCouponCreationJob) SetReservationLimit(v int32)

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

GetStartDate

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

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

GetStartDateOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

SetStartDate

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

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

GetExpiryDate

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

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

GetExpiryDateOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

SetExpiryDate

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

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

GetNumberOfCoupons

func (o *NewCouponCreationJob) GetNumberOfCoupons() int32

GetNumberOfCoupons returns the NumberOfCoupons field if non-nil, zero value otherwise.

GetNumberOfCouponsOk

func (o *NewCouponCreationJob) GetNumberOfCouponsOk() (int32, bool)

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

HasNumberOfCoupons

func (o *NewCouponCreationJob) HasNumberOfCoupons() bool

HasNumberOfCoupons returns a boolean if a field has been set.

SetNumberOfCoupons

func (o *NewCouponCreationJob) SetNumberOfCoupons(v int32)

SetNumberOfCoupons gets a reference to the given int32 and assigns it to the NumberOfCoupons field.

GetCouponSettings

func (o *NewCouponCreationJob) GetCouponSettings() CodeGeneratorSettings

GetCouponSettings returns the CouponSettings field if non-nil, zero value otherwise.

GetCouponSettingsOk

func (o *NewCouponCreationJob) GetCouponSettingsOk() (CodeGeneratorSettings, bool)

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

HasCouponSettings

func (o *NewCouponCreationJob) HasCouponSettings() bool

HasCouponSettings returns a boolean if a field has been set.

SetCouponSettings

func (o *NewCouponCreationJob) SetCouponSettings(v CodeGeneratorSettings)

SetCouponSettings gets a reference to the given CodeGeneratorSettings and assigns it to the CouponSettings field.

GetAttributes

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

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

GetAttributesOk

func (o *NewCouponCreationJob) 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 *NewCouponCreationJob) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

func (o *NewCouponCreationJob) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

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