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. | [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] |
CampaignId | Pointer to int32 | ID of the campaign from which the referral received the referral code. | |
AdvocateProfileIntegrationId | Pointer to string | The Integration ID of the Advocate's Profile. | |
FriendProfileIntegrationId | Pointer to string | An optional Integration ID of the Friend's Profile. | [optional] |
Attributes | Pointer to map[string]interface{} | Arbitrary properties associated with this item. | [optional] |
func (o *NewReferral) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *NewReferral) 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 *NewReferral) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *NewReferral) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *NewReferral) GetExpiryDate() time.Time
GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.
func (o *NewReferral) 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 *NewReferral) HasExpiryDate() bool
HasExpiryDate returns a boolean if a field has been set.
func (o *NewReferral) SetExpiryDate(v time.Time)
SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.
func (o *NewReferral) GetUsageLimit() int32
GetUsageLimit returns the UsageLimit field if non-nil, zero value otherwise.
func (o *NewReferral) 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 *NewReferral) HasUsageLimit() bool
HasUsageLimit returns a boolean if a field has been set.
func (o *NewReferral) SetUsageLimit(v int32)
SetUsageLimit gets a reference to the given int32 and assigns it to the UsageLimit field.
func (o *NewReferral) GetCampaignId() int32
GetCampaignId returns the CampaignId field if non-nil, zero value otherwise.
func (o *NewReferral) GetCampaignIdOk() (int32, bool)
GetCampaignIdOk returns a tuple with the CampaignId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewReferral) HasCampaignId() bool
HasCampaignId returns a boolean if a field has been set.
func (o *NewReferral) SetCampaignId(v int32)
SetCampaignId gets a reference to the given int32 and assigns it to the CampaignId field.
func (o *NewReferral) GetAdvocateProfileIntegrationId() string
GetAdvocateProfileIntegrationId returns the AdvocateProfileIntegrationId field if non-nil, zero value otherwise.
func (o *NewReferral) GetAdvocateProfileIntegrationIdOk() (string, bool)
GetAdvocateProfileIntegrationIdOk returns a tuple with the AdvocateProfileIntegrationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewReferral) HasAdvocateProfileIntegrationId() bool
HasAdvocateProfileIntegrationId returns a boolean if a field has been set.
func (o *NewReferral) SetAdvocateProfileIntegrationId(v string)
SetAdvocateProfileIntegrationId gets a reference to the given string and assigns it to the AdvocateProfileIntegrationId field.
func (o *NewReferral) GetFriendProfileIntegrationId() string
GetFriendProfileIntegrationId returns the FriendProfileIntegrationId field if non-nil, zero value otherwise.
func (o *NewReferral) GetFriendProfileIntegrationIdOk() (string, bool)
GetFriendProfileIntegrationIdOk returns a tuple with the FriendProfileIntegrationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewReferral) HasFriendProfileIntegrationId() bool
HasFriendProfileIntegrationId returns a boolean if a field has been set.
func (o *NewReferral) SetFriendProfileIntegrationId(v string)
SetFriendProfileIntegrationId gets a reference to the given string and assigns it to the FriendProfileIntegrationId field.
func (o *NewReferral) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *NewReferral) 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 *NewReferral) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *NewReferral) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.