Skip to content

Latest commit

 

History

History
442 lines (237 loc) · 13.7 KB

File metadata and controls

442 lines (237 loc) · 13.7 KB

Effect

Properties

Name Type Description Notes
ExperimentId Pointer to int64 The ID of the experiment that campaign belongs to. [optional]
CampaignId Pointer to int64 The ID of the campaign that triggered this effect.
RulesetId Pointer to int64 The ID of the ruleset that was active in the campaign when this effect was triggered.
RuleIndex Pointer to int64 The position of the rule that triggered this effect within the ruleset.
RuleName Pointer to string The name of the rule that triggered this effect.
EffectType Pointer to string The type of effect that was triggered. See API effects.
TriggeredByCoupon Pointer to int64 The ID of the coupon that was being evaluated when this effect was triggered. [optional]
TriggeredForCatalogItem Pointer to int64 The ID of the catalog item that was being evaluated when this effect was triggered. [optional]
ConditionIndex Pointer to int64 The index of the condition that was triggered. [optional]
EvaluationGroupID Pointer to int64 The ID of the evaluation group. For more information, see Managing campaign evaluation. [optional]
EvaluationGroupMode Pointer to string The evaluation mode of the evaluation group. For more information, see Managing campaign evaluation. [optional]
CampaignRevisionId Pointer to int64 The revision ID of the campaign that was used when triggering the effect. [optional]
CampaignRevisionVersionId Pointer to int64 The revision version ID of the campaign that was used when triggering the effect. [optional]
SelectedPriceType Pointer to string The selected price type for the SKU targeted by this effect. [optional]
SelectedPrice Pointer to float32 The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. [optional]
AdjustmentReferenceId Pointer to string The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment. [optional]
Props Pointer to map[string]interface{}

Methods

NewEffect

func NewEffect(campaignId int64, rulesetId int64, ruleIndex int64, ruleName string, effectType string, props map[string]interface{}, ) *Effect

NewEffect instantiates a new Effect object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewEffectWithDefaults

func NewEffectWithDefaults() *Effect

NewEffectWithDefaults instantiates a new Effect object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetExperimentId

func (o *Effect) GetExperimentId() int64

GetExperimentId returns the ExperimentId field if non-nil, zero value otherwise.

GetExperimentIdOk

func (o *Effect) GetExperimentIdOk() (*int64, bool)

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

SetExperimentId

func (o *Effect) SetExperimentId(v int64)

SetExperimentId sets ExperimentId field to given value.

HasExperimentId

func (o *Effect) HasExperimentId() bool

HasExperimentId returns a boolean if a field has been set.

GetCampaignId

func (o *Effect) GetCampaignId() int64

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

GetCampaignIdOk

func (o *Effect) GetCampaignIdOk() (*int64, 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.

SetCampaignId

func (o *Effect) SetCampaignId(v int64)

SetCampaignId sets CampaignId field to given value.

GetRulesetId

func (o *Effect) GetRulesetId() int64

GetRulesetId returns the RulesetId field if non-nil, zero value otherwise.

GetRulesetIdOk

func (o *Effect) GetRulesetIdOk() (*int64, bool)

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

SetRulesetId

func (o *Effect) SetRulesetId(v int64)

SetRulesetId sets RulesetId field to given value.

GetRuleIndex

func (o *Effect) GetRuleIndex() int64

GetRuleIndex returns the RuleIndex field if non-nil, zero value otherwise.

GetRuleIndexOk

func (o *Effect) GetRuleIndexOk() (*int64, bool)

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

SetRuleIndex

func (o *Effect) SetRuleIndex(v int64)

SetRuleIndex sets RuleIndex field to given value.

GetRuleName

func (o *Effect) GetRuleName() string

GetRuleName returns the RuleName field if non-nil, zero value otherwise.

GetRuleNameOk

func (o *Effect) GetRuleNameOk() (*string, bool)

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

SetRuleName

func (o *Effect) SetRuleName(v string)

SetRuleName sets RuleName field to given value.

GetEffectType

func (o *Effect) GetEffectType() string

GetEffectType returns the EffectType field if non-nil, zero value otherwise.

GetEffectTypeOk

func (o *Effect) GetEffectTypeOk() (*string, bool)

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

SetEffectType

func (o *Effect) SetEffectType(v string)

SetEffectType sets EffectType field to given value.

GetTriggeredByCoupon

func (o *Effect) GetTriggeredByCoupon() int64

GetTriggeredByCoupon returns the TriggeredByCoupon field if non-nil, zero value otherwise.

GetTriggeredByCouponOk

func (o *Effect) GetTriggeredByCouponOk() (*int64, bool)

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

SetTriggeredByCoupon

func (o *Effect) SetTriggeredByCoupon(v int64)

SetTriggeredByCoupon sets TriggeredByCoupon field to given value.

HasTriggeredByCoupon

func (o *Effect) HasTriggeredByCoupon() bool

HasTriggeredByCoupon returns a boolean if a field has been set.

GetTriggeredForCatalogItem

func (o *Effect) GetTriggeredForCatalogItem() int64

GetTriggeredForCatalogItem returns the TriggeredForCatalogItem field if non-nil, zero value otherwise.

GetTriggeredForCatalogItemOk

func (o *Effect) GetTriggeredForCatalogItemOk() (*int64, bool)

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

SetTriggeredForCatalogItem

func (o *Effect) SetTriggeredForCatalogItem(v int64)

SetTriggeredForCatalogItem sets TriggeredForCatalogItem field to given value.

HasTriggeredForCatalogItem

func (o *Effect) HasTriggeredForCatalogItem() bool

HasTriggeredForCatalogItem returns a boolean if a field has been set.

GetConditionIndex

func (o *Effect) GetConditionIndex() int64

GetConditionIndex returns the ConditionIndex field if non-nil, zero value otherwise.

GetConditionIndexOk

func (o *Effect) GetConditionIndexOk() (*int64, bool)

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

SetConditionIndex

func (o *Effect) SetConditionIndex(v int64)

SetConditionIndex sets ConditionIndex field to given value.

HasConditionIndex

func (o *Effect) HasConditionIndex() bool

HasConditionIndex returns a boolean if a field has been set.

GetEvaluationGroupID

func (o *Effect) GetEvaluationGroupID() int64

GetEvaluationGroupID returns the EvaluationGroupID field if non-nil, zero value otherwise.

GetEvaluationGroupIDOk

func (o *Effect) GetEvaluationGroupIDOk() (*int64, 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.

SetEvaluationGroupID

func (o *Effect) SetEvaluationGroupID(v int64)

SetEvaluationGroupID sets EvaluationGroupID field to given value.

HasEvaluationGroupID

func (o *Effect) HasEvaluationGroupID() bool

HasEvaluationGroupID returns a boolean if a field has been set.

GetEvaluationGroupMode

func (o *Effect) GetEvaluationGroupMode() string

GetEvaluationGroupMode returns the EvaluationGroupMode field if non-nil, zero value otherwise.

GetEvaluationGroupModeOk

func (o *Effect) GetEvaluationGroupModeOk() (*string, bool)

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

SetEvaluationGroupMode

func (o *Effect) SetEvaluationGroupMode(v string)

SetEvaluationGroupMode sets EvaluationGroupMode field to given value.

HasEvaluationGroupMode

func (o *Effect) HasEvaluationGroupMode() bool

HasEvaluationGroupMode returns a boolean if a field has been set.

GetCampaignRevisionId

func (o *Effect) GetCampaignRevisionId() int64

GetCampaignRevisionId returns the CampaignRevisionId field if non-nil, zero value otherwise.

GetCampaignRevisionIdOk

func (o *Effect) GetCampaignRevisionIdOk() (*int64, bool)

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

SetCampaignRevisionId

func (o *Effect) SetCampaignRevisionId(v int64)

SetCampaignRevisionId sets CampaignRevisionId field to given value.

HasCampaignRevisionId

func (o *Effect) HasCampaignRevisionId() bool

HasCampaignRevisionId returns a boolean if a field has been set.

GetCampaignRevisionVersionId

func (o *Effect) GetCampaignRevisionVersionId() int64

GetCampaignRevisionVersionId returns the CampaignRevisionVersionId field if non-nil, zero value otherwise.

GetCampaignRevisionVersionIdOk

func (o *Effect) GetCampaignRevisionVersionIdOk() (*int64, bool)

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

SetCampaignRevisionVersionId

func (o *Effect) SetCampaignRevisionVersionId(v int64)

SetCampaignRevisionVersionId sets CampaignRevisionVersionId field to given value.

HasCampaignRevisionVersionId

func (o *Effect) HasCampaignRevisionVersionId() bool

HasCampaignRevisionVersionId returns a boolean if a field has been set.

GetSelectedPriceType

func (o *Effect) GetSelectedPriceType() string

GetSelectedPriceType returns the SelectedPriceType field if non-nil, zero value otherwise.

GetSelectedPriceTypeOk

func (o *Effect) GetSelectedPriceTypeOk() (*string, bool)

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

SetSelectedPriceType

func (o *Effect) SetSelectedPriceType(v string)

SetSelectedPriceType sets SelectedPriceType field to given value.

HasSelectedPriceType

func (o *Effect) HasSelectedPriceType() bool

HasSelectedPriceType returns a boolean if a field has been set.

GetSelectedPrice

func (o *Effect) GetSelectedPrice() float32

GetSelectedPrice returns the SelectedPrice field if non-nil, zero value otherwise.

GetSelectedPriceOk

func (o *Effect) GetSelectedPriceOk() (*float32, bool)

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

SetSelectedPrice

func (o *Effect) SetSelectedPrice(v float32)

SetSelectedPrice sets SelectedPrice field to given value.

HasSelectedPrice

func (o *Effect) HasSelectedPrice() bool

HasSelectedPrice returns a boolean if a field has been set.

GetAdjustmentReferenceId

func (o *Effect) GetAdjustmentReferenceId() string

GetAdjustmentReferenceId returns the AdjustmentReferenceId field if non-nil, zero value otherwise.

GetAdjustmentReferenceIdOk

func (o *Effect) GetAdjustmentReferenceIdOk() (*string, bool)

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

SetAdjustmentReferenceId

func (o *Effect) SetAdjustmentReferenceId(v string)

SetAdjustmentReferenceId sets AdjustmentReferenceId field to given value.

HasAdjustmentReferenceId

func (o *Effect) HasAdjustmentReferenceId() bool

HasAdjustmentReferenceId returns a boolean if a field has been set.

GetProps

func (o *Effect) GetProps() map[string]interface{}

GetProps returns the Props field if non-nil, zero value otherwise.

GetPropsOk

func (o *Effect) GetPropsOk() (*map[string]interface{}, bool)

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

SetProps

func (o *Effect) SetProps(v map[string]interface{})

SetProps sets Props field to given value.

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