Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | A user-facing name for this campaign. | |
Description | Pointer to string | A detailed description of the campaign. | [optional] |
StartTime | Pointer to time.Time | Timestamp when the campaign will become active. | [optional] |
EndTime | Pointer to time.Time | Timestamp when the campaign will become inactive. | [optional] |
Attributes | Pointer to map[string]interface{} | Arbitrary properties associated with this campaign. | [optional] |
State | Pointer to string | A disabled or archived campaign is not evaluated for rules or coupons. | [default to STATE_ENABLED] |
ActiveRulesetId | Pointer to int32 | ID of Ruleset this campaign applies on customer session evaluation. | [optional] |
Tags | Pointer to []string | A list of tags for the campaign. | |
Features | Pointer to []string | The features enabled in this campaign. | |
CouponSettings | Pointer to CodeGeneratorSettings | [optional] | |
ReferralSettings | Pointer to CodeGeneratorSettings | [optional] | |
Limits | Pointer to []LimitConfig | The set of budget limits for this campaign. | |
CampaignGroups | Pointer to []int32 | The IDs of the campaign groups this campaign belongs to. | [optional] |
Type | Pointer to string | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] [default to TYPE_ADVANCED] |
LinkedStoreIds | Pointer to []int32 | A list of store IDs that you want to link to the campaign. Note: Campaigns with linked store IDs will only be evaluated when there is a customer session update that references a linked store. | [optional] |
func (o *BaseCampaign) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetNameOk() (string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasName() bool
HasName returns a boolean if a field has been set.
func (o *BaseCampaign) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *BaseCampaign) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetDescriptionOk() (string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *BaseCampaign) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *BaseCampaign) GetStartTime() time.Time
GetStartTime returns the StartTime field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetStartTimeOk() (time.Time, bool)
GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasStartTime() bool
HasStartTime returns a boolean if a field has been set.
func (o *BaseCampaign) SetStartTime(v time.Time)
SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *BaseCampaign) GetEndTime() time.Time
GetEndTime returns the EndTime field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetEndTimeOk() (time.Time, bool)
GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasEndTime() bool
HasEndTime returns a boolean if a field has been set.
func (o *BaseCampaign) SetEndTime(v time.Time)
SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.
func (o *BaseCampaign) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *BaseCampaign) 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 *BaseCampaign) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *BaseCampaign) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *BaseCampaign) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetStateOk() (string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasState() bool
HasState returns a boolean if a field has been set.
func (o *BaseCampaign) SetState(v string)
SetState gets a reference to the given string and assigns it to the State field.
func (o *BaseCampaign) GetActiveRulesetId() int32
GetActiveRulesetId returns the ActiveRulesetId field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetActiveRulesetIdOk() (int32, bool)
GetActiveRulesetIdOk returns a tuple with the ActiveRulesetId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasActiveRulesetId() bool
HasActiveRulesetId returns a boolean if a field has been set.
func (o *BaseCampaign) SetActiveRulesetId(v int32)
SetActiveRulesetId gets a reference to the given int32 and assigns it to the ActiveRulesetId field.
func (o *BaseCampaign) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetTagsOk() ([]string, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *BaseCampaign) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *BaseCampaign) GetFeatures() []string
GetFeatures returns the Features field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetFeaturesOk() ([]string, bool)
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasFeatures() bool
HasFeatures returns a boolean if a field has been set.
func (o *BaseCampaign) SetFeatures(v []string)
SetFeatures gets a reference to the given []string and assigns it to the Features field.
func (o *BaseCampaign) GetCouponSettings() CodeGeneratorSettings
GetCouponSettings returns the CouponSettings field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetCouponSettingsOk() (CodeGeneratorSettings, bool)
GetCouponSettingsOk returns a tuple with the CouponSettings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasCouponSettings() bool
HasCouponSettings returns a boolean if a field has been set.
func (o *BaseCampaign) SetCouponSettings(v CodeGeneratorSettings)
SetCouponSettings gets a reference to the given CodeGeneratorSettings and assigns it to the CouponSettings field.
func (o *BaseCampaign) GetReferralSettings() CodeGeneratorSettings
GetReferralSettings returns the ReferralSettings field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetReferralSettingsOk() (CodeGeneratorSettings, bool)
GetReferralSettingsOk returns a tuple with the ReferralSettings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasReferralSettings() bool
HasReferralSettings returns a boolean if a field has been set.
func (o *BaseCampaign) SetReferralSettings(v CodeGeneratorSettings)
SetReferralSettings gets a reference to the given CodeGeneratorSettings and assigns it to the ReferralSettings field.
func (o *BaseCampaign) GetLimits() []LimitConfig
GetLimits returns the Limits field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetLimitsOk() ([]LimitConfig, bool)
GetLimitsOk returns a tuple with the Limits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasLimits() bool
HasLimits returns a boolean if a field has been set.
func (o *BaseCampaign) SetLimits(v []LimitConfig)
SetLimits gets a reference to the given []LimitConfig and assigns it to the Limits field.
func (o *BaseCampaign) GetCampaignGroups() []int32
GetCampaignGroups returns the CampaignGroups field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetCampaignGroupsOk() ([]int32, bool)
GetCampaignGroupsOk returns a tuple with the CampaignGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasCampaignGroups() bool
HasCampaignGroups returns a boolean if a field has been set.
func (o *BaseCampaign) SetCampaignGroups(v []int32)
SetCampaignGroups gets a reference to the given []int32 and assigns it to the CampaignGroups field.
func (o *BaseCampaign) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetTypeOk() (string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasType() bool
HasType returns a boolean if a field has been set.
func (o *BaseCampaign) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *BaseCampaign) GetLinkedStoreIds() []int32
GetLinkedStoreIds returns the LinkedStoreIds field if non-nil, zero value otherwise.
func (o *BaseCampaign) GetLinkedStoreIdsOk() ([]int32, bool)
GetLinkedStoreIdsOk returns a tuple with the LinkedStoreIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BaseCampaign) HasLinkedStoreIds() bool
HasLinkedStoreIds returns a boolean if a field has been set.
func (o *BaseCampaign) SetLinkedStoreIds(v []int32)
SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.