Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to int32 | Internal ID of this entity. | |
Created | Pointer to time.Time | The time this entity was created. | |
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. | |
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] |
ImportId | Pointer to int32 | The ID of the Import which created this referral. | [optional] |
Code | Pointer to string | The referral code. | |
UsageCounter | Pointer to int32 | The number of times this referral code has been successfully used. | |
BatchId | Pointer to string | The ID of the batch the referrals belong to. | [optional] |
func (o *Referral) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Referral) GetIdOk() (int32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Referral) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *Referral) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *Referral) GetCreatedOk() (time.Time, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *Referral) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *Referral) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *Referral) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *Referral) GetExpiryDate() time.Time
GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasExpiryDate() bool
HasExpiryDate returns a boolean if a field has been set.
func (o *Referral) SetExpiryDate(v time.Time)
SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.
func (o *Referral) GetUsageLimit() int32
GetUsageLimit returns the UsageLimit field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasUsageLimit() bool
HasUsageLimit returns a boolean if a field has been set.
func (o *Referral) SetUsageLimit(v int32)
SetUsageLimit gets a reference to the given int32 and assigns it to the UsageLimit field.
func (o *Referral) GetCampaignId() int32
GetCampaignId returns the CampaignId field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasCampaignId() bool
HasCampaignId returns a boolean if a field has been set.
func (o *Referral) SetCampaignId(v int32)
SetCampaignId gets a reference to the given int32 and assigns it to the CampaignId field.
func (o *Referral) GetAdvocateProfileIntegrationId() string
GetAdvocateProfileIntegrationId returns the AdvocateProfileIntegrationId field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasAdvocateProfileIntegrationId() bool
HasAdvocateProfileIntegrationId returns a boolean if a field has been set.
func (o *Referral) SetAdvocateProfileIntegrationId(v string)
SetAdvocateProfileIntegrationId gets a reference to the given string and assigns it to the AdvocateProfileIntegrationId field.
func (o *Referral) GetFriendProfileIntegrationId() string
GetFriendProfileIntegrationId returns the FriendProfileIntegrationId field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasFriendProfileIntegrationId() bool
HasFriendProfileIntegrationId returns a boolean if a field has been set.
func (o *Referral) SetFriendProfileIntegrationId(v string)
SetFriendProfileIntegrationId gets a reference to the given string and assigns it to the FriendProfileIntegrationId field.
func (o *Referral) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *Referral) 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 *Referral) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Referral) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *Referral) GetImportId() int32
GetImportId returns the ImportId field if non-nil, zero value otherwise.
func (o *Referral) GetImportIdOk() (int32, bool)
GetImportIdOk returns a tuple with the ImportId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasImportId() bool
HasImportId returns a boolean if a field has been set.
func (o *Referral) SetImportId(v int32)
SetImportId gets a reference to the given int32 and assigns it to the ImportId field.
func (o *Referral) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *Referral) GetCodeOk() (string, bool)
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *Referral) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *Referral) GetUsageCounter() int32
GetUsageCounter returns the UsageCounter field if non-nil, zero value otherwise.
func (o *Referral) GetUsageCounterOk() (int32, bool)
GetUsageCounterOk returns a tuple with the UsageCounter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasUsageCounter() bool
HasUsageCounter returns a boolean if a field has been set.
func (o *Referral) SetUsageCounter(v int32)
SetUsageCounter gets a reference to the given int32 and assigns it to the UsageCounter field.
func (o *Referral) GetBatchId() string
GetBatchId returns the BatchId field if non-nil, zero value otherwise.
func (o *Referral) GetBatchIdOk() (string, bool)
GetBatchIdOk returns a tuple with the BatchId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Referral) HasBatchId() bool
HasBatchId returns a boolean if a field has been set.
func (o *Referral) SetBatchId(v string)
SetBatchId gets a reference to the given string and assigns it to the BatchId field.