Skip to content

Latest commit

 

History

History
377 lines (202 loc) · 11.5 KB

InventoryReferral.md

File metadata and controls

377 lines (202 loc) · 11.5 KB

InventoryReferral

Properties

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.

Methods

GetId

func (o *InventoryReferral) GetId() int32

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

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.

HasId

func (o *InventoryReferral) HasId() bool

HasId returns a boolean if a field has been set.

SetId

func (o *InventoryReferral) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

GetCreated

func (o *InventoryReferral) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

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.

HasCreated

func (o *InventoryReferral) HasCreated() bool

HasCreated returns a boolean if a field has been set.

SetCreated

func (o *InventoryReferral) SetCreated(v time.Time)

SetCreated gets a reference to the given time.Time and assigns it to the Created field.

GetStartDate

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

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

GetStartDateOk

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.

HasStartDate

func (o *InventoryReferral) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

SetStartDate

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

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

GetExpiryDate

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

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

GetExpiryDateOk

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.

HasExpiryDate

func (o *InventoryReferral) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

SetExpiryDate

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

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

GetUsageLimit

func (o *InventoryReferral) GetUsageLimit() int32

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

GetUsageLimitOk

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.

HasUsageLimit

func (o *InventoryReferral) HasUsageLimit() bool

HasUsageLimit returns a boolean if a field has been set.

SetUsageLimit

func (o *InventoryReferral) SetUsageLimit(v int32)

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

GetCampaignId

func (o *InventoryReferral) GetCampaignId() int32

GetCampaignId returns the CampaignId field if non-nil, zero value otherwise.

GetCampaignIdOk

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.

HasCampaignId

func (o *InventoryReferral) HasCampaignId() bool

HasCampaignId returns a boolean if a field has been set.

SetCampaignId

func (o *InventoryReferral) SetCampaignId(v int32)

SetCampaignId gets a reference to the given int32 and assigns it to the CampaignId field.

GetAdvocateProfileIntegrationId

func (o *InventoryReferral) GetAdvocateProfileIntegrationId() string

GetAdvocateProfileIntegrationId returns the AdvocateProfileIntegrationId field if non-nil, zero value otherwise.

GetAdvocateProfileIntegrationIdOk

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.

HasAdvocateProfileIntegrationId

func (o *InventoryReferral) HasAdvocateProfileIntegrationId() bool

HasAdvocateProfileIntegrationId returns a boolean if a field has been set.

SetAdvocateProfileIntegrationId

func (o *InventoryReferral) SetAdvocateProfileIntegrationId(v string)

SetAdvocateProfileIntegrationId gets a reference to the given string and assigns it to the AdvocateProfileIntegrationId field.

GetFriendProfileIntegrationId

func (o *InventoryReferral) GetFriendProfileIntegrationId() string

GetFriendProfileIntegrationId returns the FriendProfileIntegrationId field if non-nil, zero value otherwise.

GetFriendProfileIntegrationIdOk

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.

HasFriendProfileIntegrationId

func (o *InventoryReferral) HasFriendProfileIntegrationId() bool

HasFriendProfileIntegrationId returns a boolean if a field has been set.

SetFriendProfileIntegrationId

func (o *InventoryReferral) SetFriendProfileIntegrationId(v string)

SetFriendProfileIntegrationId gets a reference to the given string and assigns it to the FriendProfileIntegrationId field.

GetAttributes

func (o *InventoryReferral) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field if non-nil, zero value otherwise.

GetAttributesOk

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.

HasAttributes

func (o *InventoryReferral) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

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.

GetImportId

func (o *InventoryReferral) GetImportId() int32

GetImportId returns the ImportId field if non-nil, zero value otherwise.

GetImportIdOk

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.

HasImportId

func (o *InventoryReferral) HasImportId() bool

HasImportId returns a boolean if a field has been set.

SetImportId

func (o *InventoryReferral) SetImportId(v int32)

SetImportId gets a reference to the given int32 and assigns it to the ImportId field.

GetCode

func (o *InventoryReferral) GetCode() string

GetCode returns the Code field if non-nil, zero value otherwise.

GetCodeOk

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.

HasCode

func (o *InventoryReferral) HasCode() bool

HasCode returns a boolean if a field has been set.

SetCode

func (o *InventoryReferral) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

GetUsageCounter

func (o *InventoryReferral) GetUsageCounter() int32

GetUsageCounter returns the UsageCounter field if non-nil, zero value otherwise.

GetUsageCounterOk

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.

HasUsageCounter

func (o *InventoryReferral) HasUsageCounter() bool

HasUsageCounter returns a boolean if a field has been set.

SetUsageCounter

func (o *InventoryReferral) SetUsageCounter(v int32)

SetUsageCounter gets a reference to the given int32 and assigns it to the UsageCounter field.

GetBatchId

func (o *InventoryReferral) GetBatchId() string

GetBatchId returns the BatchId field if non-nil, zero value otherwise.

GetBatchIdOk

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.

HasBatchId

func (o *InventoryReferral) HasBatchId() bool

HasBatchId returns a boolean if a field has been set.

SetBatchId

func (o *InventoryReferral) SetBatchId(v string)

SetBatchId gets a reference to the given string and assigns it to the BatchId field.

GetReferredCustomers

func (o *InventoryReferral) GetReferredCustomers() []string

GetReferredCustomers returns the ReferredCustomers field if non-nil, zero value otherwise.

GetReferredCustomersOk

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.

HasReferredCustomers

func (o *InventoryReferral) HasReferredCustomers() bool

HasReferredCustomers returns a boolean if a field has been set.

SetReferredCustomers

func (o *InventoryReferral) SetReferredCustomers(v []string)

SetReferredCustomers gets a reference to the given []string and assigns it to the ReferredCustomers field.

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