Skip to content

Latest commit

 

History

History
299 lines (160 loc) · 8.14 KB

Giveaway.md

File metadata and controls

299 lines (160 loc) · 8.14 KB

Giveaway

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.
Code Pointer to string The code value of this giveaway.
PoolId Pointer to int32 The ID of the pool to return giveaway codes from.
StartDate Pointer to time.Time Timestamp at which point the giveaway becomes valid. [optional]
EndDate Pointer to time.Time Timestamp at which point the giveaway becomes invalid. [optional]
Attributes Pointer to map[string]interface{} Arbitrary properties associated with this giveaway. [optional]
Used Pointer to bool Indicates whether this giveaway code was given before. [optional]
ImportId Pointer to int32 The ID of the Import which created this giveaway. [optional]
ProfileIntegrationId Pointer to string The third-party integration ID of the customer profile that was awarded the giveaway, if the giveaway was awarded. [optional]
ProfileId Pointer to int32 The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. [optional]

Methods

GetId

func (o *Giveaway) GetId() int32

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

GetIdOk

func (o *Giveaway) 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 *Giveaway) HasId() bool

HasId returns a boolean if a field has been set.

SetId

func (o *Giveaway) SetId(v int32)

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

GetCreated

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

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

GetCreatedOk

func (o *Giveaway) 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 *Giveaway) HasCreated() bool

HasCreated returns a boolean if a field has been set.

SetCreated

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

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

GetCode

func (o *Giveaway) GetCode() string

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

GetCodeOk

func (o *Giveaway) 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 *Giveaway) HasCode() bool

HasCode returns a boolean if a field has been set.

SetCode

func (o *Giveaway) SetCode(v string)

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

GetPoolId

func (o *Giveaway) GetPoolId() int32

GetPoolId returns the PoolId field if non-nil, zero value otherwise.

GetPoolIdOk

func (o *Giveaway) GetPoolIdOk() (int32, bool)

GetPoolIdOk returns a tuple with the PoolId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasPoolId

func (o *Giveaway) HasPoolId() bool

HasPoolId returns a boolean if a field has been set.

SetPoolId

func (o *Giveaway) SetPoolId(v int32)

SetPoolId gets a reference to the given int32 and assigns it to the PoolId field.

GetStartDate

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

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

GetStartDateOk

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

HasStartDate returns a boolean if a field has been set.

SetStartDate

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

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

GetEndDate

func (o *Giveaway) GetEndDate() time.Time

GetEndDate returns the EndDate field if non-nil, zero value otherwise.

GetEndDateOk

func (o *Giveaway) GetEndDateOk() (time.Time, bool)

GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasEndDate

func (o *Giveaway) HasEndDate() bool

HasEndDate returns a boolean if a field has been set.

SetEndDate

func (o *Giveaway) SetEndDate(v time.Time)

SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field.

GetAttributes

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

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

GetAttributesOk

func (o *Giveaway) 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 *Giveaway) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

func (o *Giveaway) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

GetUsed

func (o *Giveaway) GetUsed() bool

GetUsed returns the Used field if non-nil, zero value otherwise.

GetUsedOk

func (o *Giveaway) GetUsedOk() (bool, bool)

GetUsedOk returns a tuple with the Used field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasUsed

func (o *Giveaway) HasUsed() bool

HasUsed returns a boolean if a field has been set.

SetUsed

func (o *Giveaway) SetUsed(v bool)

SetUsed gets a reference to the given bool and assigns it to the Used field.

GetImportId

func (o *Giveaway) GetImportId() int32

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

GetImportIdOk

func (o *Giveaway) 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 *Giveaway) HasImportId() bool

HasImportId returns a boolean if a field has been set.

SetImportId

func (o *Giveaway) SetImportId(v int32)

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

GetProfileIntegrationId

func (o *Giveaway) GetProfileIntegrationId() string

GetProfileIntegrationId returns the ProfileIntegrationId field if non-nil, zero value otherwise.

GetProfileIntegrationIdOk

func (o *Giveaway) GetProfileIntegrationIdOk() (string, bool)

GetProfileIntegrationIdOk returns a tuple with the ProfileIntegrationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasProfileIntegrationId

func (o *Giveaway) HasProfileIntegrationId() bool

HasProfileIntegrationId returns a boolean if a field has been set.

SetProfileIntegrationId

func (o *Giveaway) SetProfileIntegrationId(v string)

SetProfileIntegrationId gets a reference to the given string and assigns it to the ProfileIntegrationId field.

GetProfileId

func (o *Giveaway) GetProfileId() int32

GetProfileId returns the ProfileId field if non-nil, zero value otherwise.

GetProfileIdOk

func (o *Giveaway) GetProfileIdOk() (int32, bool)

GetProfileIdOk returns a tuple with the ProfileId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasProfileId

func (o *Giveaway) HasProfileId() bool

HasProfileId returns a boolean if a field has been set.

SetProfileId

func (o *Giveaway) SetProfileId(v int32)

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.

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