Skip to content

Latest commit

 

History

History
91 lines (48 loc) · 2.79 KB

ReferralConstraints.md

File metadata and controls

91 lines (48 loc) · 2.79 KB

ReferralConstraints

Properties

Name Type Description Notes
StartDate Pointer to time.Time Timestamp at which point the referral code becomes valid. [optional]
ExpiryDate Pointer to time.Time Expiration date of the referral code. Referral never expires if this is omitted, zero, or negative. [optional]
UsageLimit Pointer to int32 The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. [optional]

Methods

GetStartDate

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

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

GetStartDateOk

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

HasStartDate returns a boolean if a field has been set.

SetStartDate

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

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

GetExpiryDate

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

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

GetExpiryDateOk

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

HasExpiryDate returns a boolean if a field has been set.

SetExpiryDate

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

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

GetUsageLimit

func (o *ReferralConstraints) GetUsageLimit() int32

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

GetUsageLimitOk

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

HasUsageLimit returns a boolean if a field has been set.

SetUsageLimit

func (o *ReferralConstraints) SetUsageLimit(v int32)

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

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