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] |
ReferredCustomers | Pointer to []string | An array of referred customers. |
func (o *InventoryReferral) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasId() bool
HasId returns a boolean if a field has been set.
func (o *InventoryReferral) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *InventoryReferral) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *InventoryReferral) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *InventoryReferral) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *InventoryReferral) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *InventoryReferral) GetExpiryDate() time.Time
GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasExpiryDate() bool
HasExpiryDate returns a boolean if a field has been set.
func (o *InventoryReferral) SetExpiryDate(v time.Time)
SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.
func (o *InventoryReferral) GetUsageLimit() int32
GetUsageLimit returns the UsageLimit field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasUsageLimit() bool
HasUsageLimit returns a boolean if a field has been set.
func (o *InventoryReferral) SetUsageLimit(v int32)
SetUsageLimit gets a reference to the given int32 and assigns it to the UsageLimit field.
func (o *InventoryReferral) GetCampaignId() int32
GetCampaignId returns the CampaignId field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasCampaignId() bool
HasCampaignId returns a boolean if a field has been set.
func (o *InventoryReferral) SetCampaignId(v int32)
SetCampaignId gets a reference to the given int32 and assigns it to the CampaignId field.
func (o *InventoryReferral) GetAdvocateProfileIntegrationId() string
GetAdvocateProfileIntegrationId returns the AdvocateProfileIntegrationId field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasAdvocateProfileIntegrationId() bool
HasAdvocateProfileIntegrationId returns a boolean if a field has been set.
func (o *InventoryReferral) SetAdvocateProfileIntegrationId(v string)
SetAdvocateProfileIntegrationId gets a reference to the given string and assigns it to the AdvocateProfileIntegrationId field.
func (o *InventoryReferral) GetFriendProfileIntegrationId() string
GetFriendProfileIntegrationId returns the FriendProfileIntegrationId field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasFriendProfileIntegrationId() bool
HasFriendProfileIntegrationId returns a boolean if a field has been set.
func (o *InventoryReferral) SetFriendProfileIntegrationId(v string)
SetFriendProfileIntegrationId gets a reference to the given string and assigns it to the FriendProfileIntegrationId field.
func (o *InventoryReferral) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *InventoryReferral) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *InventoryReferral) GetImportId() int32
GetImportId returns the ImportId field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasImportId() bool
HasImportId returns a boolean if a field has been set.
func (o *InventoryReferral) SetImportId(v int32)
SetImportId gets a reference to the given int32 and assigns it to the ImportId field.
func (o *InventoryReferral) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *InventoryReferral) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *InventoryReferral) GetUsageCounter() int32
GetUsageCounter returns the UsageCounter field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasUsageCounter() bool
HasUsageCounter returns a boolean if a field has been set.
func (o *InventoryReferral) SetUsageCounter(v int32)
SetUsageCounter gets a reference to the given int32 and assigns it to the UsageCounter field.
func (o *InventoryReferral) GetBatchId() string
GetBatchId returns the BatchId field if non-nil, zero value otherwise.
func (o *InventoryReferral) 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 *InventoryReferral) HasBatchId() bool
HasBatchId returns a boolean if a field has been set.
func (o *InventoryReferral) SetBatchId(v string)
SetBatchId gets a reference to the given string and assigns it to the BatchId field.
func (o *InventoryReferral) GetReferredCustomers() []string
GetReferredCustomers returns the ReferredCustomers field if non-nil, zero value otherwise.
func (o *InventoryReferral) GetReferredCustomersOk() ([]string, bool)
GetReferredCustomersOk returns a tuple with the ReferredCustomers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InventoryReferral) HasReferredCustomers() bool
HasReferredCustomers returns a boolean if a field has been set.
func (o *InventoryReferral) SetReferredCustomers(v []string)
SetReferredCustomers gets a reference to the given []string and assigns it to the ReferredCustomers field.