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] |
func (o *Giveaway) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Giveaway) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *Giveaway) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *Giveaway) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *Giveaway) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *Giveaway) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *Giveaway) GetPoolId() int32
GetPoolId returns the PoolId field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasPoolId() bool
HasPoolId returns a boolean if a field has been set.
func (o *Giveaway) SetPoolId(v int32)
SetPoolId gets a reference to the given int32 and assigns it to the PoolId field.
func (o *Giveaway) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *Giveaway) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *Giveaway) GetEndDate() time.Time
GetEndDate returns the EndDate field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasEndDate() bool
HasEndDate returns a boolean if a field has been set.
func (o *Giveaway) SetEndDate(v time.Time)
SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field.
func (o *Giveaway) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
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.
func (o *Giveaway) GetUsed() bool
GetUsed returns the Used field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasUsed() bool
HasUsed returns a boolean if a field has been set.
func (o *Giveaway) SetUsed(v bool)
SetUsed gets a reference to the given bool and assigns it to the Used field.
func (o *Giveaway) GetImportId() int32
GetImportId returns the ImportId field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasImportId() bool
HasImportId returns a boolean if a field has been set.
func (o *Giveaway) SetImportId(v int32)
SetImportId gets a reference to the given int32 and assigns it to the ImportId field.
func (o *Giveaway) GetProfileIntegrationId() string
GetProfileIntegrationId returns the ProfileIntegrationId field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasProfileIntegrationId() bool
HasProfileIntegrationId returns a boolean if a field has been set.
func (o *Giveaway) SetProfileIntegrationId(v string)
SetProfileIntegrationId gets a reference to the given string and assigns it to the ProfileIntegrationId field.
func (o *Giveaway) GetProfileId() int32
GetProfileId returns the ProfileId field if non-nil, zero value otherwise.
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.
func (o *Giveaway) HasProfileId() bool
HasProfileId returns a boolean if a field has been set.
func (o *Giveaway) SetProfileId(v int32)
SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.