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. | [optional] [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 | A list of features for the campaign. | |
CouponSettings | Pointer to CodeGeneratorSettings | [optional] | |
ReferralSettings | Pointer to CodeGeneratorSettings | [optional] | |
Limits | Pointer to []LimitConfig | The set of limits that will operate for this campaign. | |
CampaignGroups | Pointer to []int32 | The IDs of the campaign groups this campaign belongs to. | [optional] |
EvaluationGroupId | Pointer to int32 | The ID of the campaign evaluation group the 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. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. | [optional] |
func (o *UpdateCampaign) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UpdateCampaign) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UpdateCampaign) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *UpdateCampaign) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *UpdateCampaign) GetStartTime() time.Time
GetStartTime returns the StartTime field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasStartTime() bool
HasStartTime returns a boolean if a field has been set.
func (o *UpdateCampaign) SetStartTime(v time.Time)
SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *UpdateCampaign) GetEndTime() time.Time
GetEndTime returns the EndTime field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasEndTime() bool
HasEndTime returns a boolean if a field has been set.
func (o *UpdateCampaign) SetEndTime(v time.Time)
SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.
func (o *UpdateCampaign) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UpdateCampaign) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *UpdateCampaign) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasState() bool
HasState returns a boolean if a field has been set.
func (o *UpdateCampaign) SetState(v string)
SetState gets a reference to the given string and assigns it to the State field.
func (o *UpdateCampaign) GetActiveRulesetId() int32
GetActiveRulesetId returns the ActiveRulesetId field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasActiveRulesetId() bool
HasActiveRulesetId returns a boolean if a field has been set.
func (o *UpdateCampaign) SetActiveRulesetId(v int32)
SetActiveRulesetId gets a reference to the given int32 and assigns it to the ActiveRulesetId field.
func (o *UpdateCampaign) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *UpdateCampaign) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *UpdateCampaign) GetFeatures() []string
GetFeatures returns the Features field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasFeatures() bool
HasFeatures returns a boolean if a field has been set.
func (o *UpdateCampaign) SetFeatures(v []string)
SetFeatures gets a reference to the given []string and assigns it to the Features field.
func (o *UpdateCampaign) GetCouponSettings() CodeGeneratorSettings
GetCouponSettings returns the CouponSettings field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasCouponSettings() bool
HasCouponSettings returns a boolean if a field has been set.
func (o *UpdateCampaign) SetCouponSettings(v CodeGeneratorSettings)
SetCouponSettings gets a reference to the given CodeGeneratorSettings and assigns it to the CouponSettings field.
func (o *UpdateCampaign) GetReferralSettings() CodeGeneratorSettings
GetReferralSettings returns the ReferralSettings field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasReferralSettings() bool
HasReferralSettings returns a boolean if a field has been set.
func (o *UpdateCampaign) SetReferralSettings(v CodeGeneratorSettings)
SetReferralSettings gets a reference to the given CodeGeneratorSettings and assigns it to the ReferralSettings field.
func (o *UpdateCampaign) GetLimits() []LimitConfig
GetLimits returns the Limits field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasLimits() bool
HasLimits returns a boolean if a field has been set.
func (o *UpdateCampaign) SetLimits(v []LimitConfig)
SetLimits gets a reference to the given []LimitConfig and assigns it to the Limits field.
func (o *UpdateCampaign) GetCampaignGroups() []int32
GetCampaignGroups returns the CampaignGroups field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasCampaignGroups() bool
HasCampaignGroups returns a boolean if a field has been set.
func (o *UpdateCampaign) SetCampaignGroups(v []int32)
SetCampaignGroups gets a reference to the given []int32 and assigns it to the CampaignGroups field.
func (o *UpdateCampaign) GetEvaluationGroupId() int32
GetEvaluationGroupId returns the EvaluationGroupId field if non-nil, zero value otherwise.
func (o *UpdateCampaign) GetEvaluationGroupIdOk() (int32, bool)
GetEvaluationGroupIdOk returns a tuple with the EvaluationGroupId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateCampaign) HasEvaluationGroupId() bool
HasEvaluationGroupId returns a boolean if a field has been set.
func (o *UpdateCampaign) SetEvaluationGroupId(v int32)
SetEvaluationGroupId gets a reference to the given int32 and assigns it to the EvaluationGroupId field.
func (o *UpdateCampaign) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasType() bool
HasType returns a boolean if a field has been set.
func (o *UpdateCampaign) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *UpdateCampaign) GetLinkedStoreIds() []int32
GetLinkedStoreIds returns the LinkedStoreIds field if non-nil, zero value otherwise.
func (o *UpdateCampaign) 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 *UpdateCampaign) HasLinkedStoreIds() bool
HasLinkedStoreIds returns a boolean if a field has been set.
func (o *UpdateCampaign) SetLinkedStoreIds(v []int32)
SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.