Skip to content

Latest commit

 

History

History
160 lines (87 loc) · 4.96 KB

File metadata and controls

160 lines (87 loc) · 4.96 KB

CouponConstraints

Properties

Name Type Description Notes
UsageLimit Pointer to int64 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 int64 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]

Methods

NewCouponConstraints

func NewCouponConstraints() *CouponConstraints

NewCouponConstraints instantiates a new CouponConstraints object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewCouponConstraintsWithDefaults

func NewCouponConstraintsWithDefaults() *CouponConstraints

NewCouponConstraintsWithDefaults instantiates a new CouponConstraints object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetUsageLimit

func (o *CouponConstraints) GetUsageLimit() int64

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

GetUsageLimitOk

func (o *CouponConstraints) GetUsageLimitOk() (*int64, 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.

SetUsageLimit

func (o *CouponConstraints) SetUsageLimit(v int64)

SetUsageLimit sets UsageLimit field to given value.

HasUsageLimit

func (o *CouponConstraints) HasUsageLimit() bool

HasUsageLimit returns a boolean if a field has been set.

GetDiscountLimit

func (o *CouponConstraints) GetDiscountLimit() float32

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

GetDiscountLimitOk

func (o *CouponConstraints) 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.

SetDiscountLimit

func (o *CouponConstraints) SetDiscountLimit(v float32)

SetDiscountLimit sets DiscountLimit field to given value.

HasDiscountLimit

func (o *CouponConstraints) HasDiscountLimit() bool

HasDiscountLimit returns a boolean if a field has been set.

GetReservationLimit

func (o *CouponConstraints) GetReservationLimit() int64

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

GetReservationLimitOk

func (o *CouponConstraints) GetReservationLimitOk() (*int64, 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.

SetReservationLimit

func (o *CouponConstraints) SetReservationLimit(v int64)

SetReservationLimit sets ReservationLimit field to given value.

HasReservationLimit

func (o *CouponConstraints) HasReservationLimit() bool

HasReservationLimit returns a boolean if a field has been set.

GetStartDate

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

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

GetStartDateOk

func (o *CouponConstraints) 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.

SetStartDate

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

SetStartDate sets StartDate field to given value.

HasStartDate

func (o *CouponConstraints) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

GetExpiryDate

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

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

GetExpiryDateOk

func (o *CouponConstraints) 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.

SetExpiryDate

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

SetExpiryDate sets ExpiryDate field to given value.

HasExpiryDate

func (o *CouponConstraints) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

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