diff --git a/docs/NewApplicationCifExpression.md b/docs/NewApplicationCifExpression.md index 46c295e7..39294c3d 100644 --- a/docs/NewApplicationCifExpression.md +++ b/docs/NewApplicationCifExpression.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CartItemFilterId** | Pointer to **int32** | The ID of the Application cart item filter. | [optional] -**CreatedBy** | Pointer to **int32** | The ID of the user who created the Application cart item filter. | [optional] -**Expression** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] +**CartItemFilterId** | Pointer to **int32** | The ID of the Application cart item filter. | [optional] +**CreatedBy** | Pointer to **int32** | The ID of the user who created the Application cart item filter. | [optional] +**Expression** | Pointer to [**[]interface{}**]([]interface{}.md) | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] ## Methods @@ -87,5 +87,3 @@ SetExpression gets a reference to the given []map[string]interface{} and assigns [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/model_application_cif_expression.go b/model_application_cif_expression.go index 154fc69c..34a10783 100644 --- a/model_application_cif_expression.go +++ b/model_application_cif_expression.go @@ -26,7 +26,7 @@ type ApplicationCifExpression struct { // The ID of the user who created the Application cart item filter. CreatedBy *int32 `json:"createdBy,omitempty"` // Arbitrary additional JSON data associated with the Application cart item filter. - Expression *[]map[string]interface{} `json:"expression,omitempty"` + Expression []interface{} `json:"expression,omitempty"` // The ID of the application that owns this entity. ApplicationId int32 `json:"applicationId"` } @@ -128,22 +128,22 @@ func (o *ApplicationCifExpression) SetCreatedBy(v int32) { } // GetExpression returns the Expression field value if set, zero value otherwise. -func (o *ApplicationCifExpression) GetExpression() []map[string]interface{} { +func (o *ApplicationCifExpression) GetExpression() []interface{} { if o == nil || o.Expression == nil { - var ret []map[string]interface{} + var ret []interface{} return ret } - return *o.Expression + return o.Expression } // GetExpressionOk returns a tuple with the Expression field value if set, zero value otherwise // and a boolean to check if the value has been set. -func (o *ApplicationCifExpression) GetExpressionOk() ([]map[string]interface{}, bool) { +func (o *ApplicationCifExpression) GetExpressionOk() ([]interface{}, bool) { if o == nil || o.Expression == nil { - var ret []map[string]interface{} + var ret []interface{} return ret, false } - return *o.Expression, true + return o.Expression, true } // HasExpression returns a boolean if a field has been set. @@ -156,8 +156,8 @@ func (o *ApplicationCifExpression) HasExpression() bool { } // SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field. -func (o *ApplicationCifExpression) SetExpression(v []map[string]interface{}) { - o.Expression = &v +func (o *ApplicationCifExpression) SetExpression(v []interface{}) { + o.Expression = v } // GetApplicationId returns the ApplicationId field value diff --git a/model_binding.go b/model_binding.go index 7f2e64ec..2449ece1 100644 --- a/model_binding.go +++ b/model_binding.go @@ -21,7 +21,7 @@ type Binding struct { // The kind of binding. Possible values are: - `bundle` - `cartItemFilter` - `subledgerBalance` - `templateParameter` Type *string `json:"type,omitempty"` // A Talang expression that will be evaluated and its result attached to the name of the binding. - Expression []map[string]interface{} `json:"expression"` + Expression []interface{} `json:"expression"` // Can be one of the following: - `string` - `number` - `boolean` ValueType *string `json:"valueType,omitempty"` } @@ -75,9 +75,9 @@ func (o *Binding) SetType(v string) { } // GetExpression returns the Expression field value -func (o *Binding) GetExpression() []map[string]interface{} { +func (o *Binding) GetExpression() []interface{} { if o == nil { - var ret []map[string]interface{} + var ret []interface{} return ret } @@ -85,7 +85,7 @@ func (o *Binding) GetExpression() []map[string]interface{} { } // SetExpression sets field value -func (o *Binding) SetExpression(v []map[string]interface{}) { +func (o *Binding) SetExpression(v []interface{}) { o.Expression = v } diff --git a/model_event.go b/model_event.go index c0c2f47a..b5dc684c 100644 --- a/model_event.go +++ b/model_event.go @@ -34,7 +34,7 @@ type Event struct { // The ID of the session that this event occurred in. SessionId *string `json:"sessionId,omitempty"` // An array of effects generated by the rules of the enabled campaigns of the Application. You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). - Effects []map[string]interface{} `json:"effects"` + Effects [][]interface{} `json:"effects"` // Ledger entries for the event. LedgerEntries *[]LedgerEntry `json:"ledgerEntries,omitempty"` Meta *Meta `json:"meta,omitempty"` @@ -215,9 +215,9 @@ func (o *Event) SetSessionId(v string) { } // GetEffects returns the Effects field value -func (o *Event) GetEffects() []map[string]interface{} { +func (o *Event) GetEffects() [][]interface{} { if o == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret } @@ -225,7 +225,7 @@ func (o *Event) GetEffects() []map[string]interface{} { } // SetEffects sets field value -func (o *Event) SetEffects(v []map[string]interface{}) { +func (o *Event) SetEffects(v [][]interface{}) { o.Effects = v } diff --git a/model_generate_rule_title_rule.go b/model_generate_rule_title_rule.go index 418296ce..b12e43cb 100644 --- a/model_generate_rule_title_rule.go +++ b/model_generate_rule_title_rule.go @@ -17,28 +17,28 @@ import ( // GenerateRuleTitleRule struct for GenerateRuleTitleRule type GenerateRuleTitleRule struct { // An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. - Effects *[]map[string]interface{} `json:"effects,omitempty"` + Effects [][]interface{} `json:"effects,omitempty"` // A Talang expression that will be evaluated in the context of the given event. - Condition *[]map[string]interface{} `json:"condition,omitempty"` + Condition []interface{} `json:"condition,omitempty"` } // GetEffects returns the Effects field value if set, zero value otherwise. -func (o *GenerateRuleTitleRule) GetEffects() []map[string]interface{} { +func (o *GenerateRuleTitleRule) GetEffects() [][]interface{} { if o == nil || o.Effects == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret } - return *o.Effects + return o.Effects } // GetEffectsOk returns a tuple with the Effects field value if set, zero value otherwise // and a boolean to check if the value has been set. -func (o *GenerateRuleTitleRule) GetEffectsOk() ([]map[string]interface{}, bool) { +func (o *GenerateRuleTitleRule) GetEffectsOk() ([][]interface{}, bool) { if o == nil || o.Effects == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret, false } - return *o.Effects, true + return o.Effects, true } // HasEffects returns a boolean if a field has been set. @@ -51,27 +51,27 @@ func (o *GenerateRuleTitleRule) HasEffects() bool { } // SetEffects gets a reference to the given []map[string]interface{} and assigns it to the Effects field. -func (o *GenerateRuleTitleRule) SetEffects(v []map[string]interface{}) { - o.Effects = &v +func (o *GenerateRuleTitleRule) SetEffects(v [][]interface{}) { + o.Effects = v } // GetCondition returns the Condition field value if set, zero value otherwise. -func (o *GenerateRuleTitleRule) GetCondition() []map[string]interface{} { +func (o *GenerateRuleTitleRule) GetCondition() []interface{} { if o == nil || o.Condition == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret } - return *o.Condition + return o.Condition } // GetConditionOk returns a tuple with the Condition field value if set, zero value otherwise // and a boolean to check if the value has been set. -func (o *GenerateRuleTitleRule) GetConditionOk() ([]map[string]interface{}, bool) { +func (o *GenerateRuleTitleRule) GetConditionOk() ([]interface{}, bool) { if o == nil || o.Condition == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret, false } - return *o.Condition, true + return o.Condition, true } // HasCondition returns a boolean if a field has been set. @@ -84,8 +84,8 @@ func (o *GenerateRuleTitleRule) HasCondition() bool { } // SetCondition gets a reference to the given []map[string]interface{} and assigns it to the Condition field. -func (o *GenerateRuleTitleRule) SetCondition(v []map[string]interface{}) { - o.Condition = &v +func (o *GenerateRuleTitleRule) SetCondition(v []interface{}) { + o.Condition = v } type NullableGenerateRuleTitleRule struct { diff --git a/model_new_application_cif_expression.go b/model_new_application_cif_expression.go index 1c48dd68..541c5297 100644 --- a/model_new_application_cif_expression.go +++ b/model_new_application_cif_expression.go @@ -21,7 +21,7 @@ type NewApplicationCifExpression struct { // The ID of the user who created the Application cart item filter. CreatedBy *int32 `json:"createdBy,omitempty"` // Arbitrary additional JSON data associated with the Application cart item filter. - Expression *[]map[string]interface{} `json:"expression,omitempty"` + Expression []interface{} `json:"expression,omitempty"` } // GetCartItemFilterId returns the CartItemFilterId field value if set, zero value otherwise. @@ -91,22 +91,22 @@ func (o *NewApplicationCifExpression) SetCreatedBy(v int32) { } // GetExpression returns the Expression field value if set, zero value otherwise. -func (o *NewApplicationCifExpression) GetExpression() []map[string]interface{} { +func (o *NewApplicationCifExpression) GetExpression() []interface{} { if o == nil || o.Expression == nil { - var ret []map[string]interface{} + var ret []interface{} return ret } - return *o.Expression + return o.Expression } // GetExpressionOk returns a tuple with the Expression field value if set, zero value otherwise // and a boolean to check if the value has been set. -func (o *NewApplicationCifExpression) GetExpressionOk() ([]map[string]interface{}, bool) { +func (o *NewApplicationCifExpression) GetExpressionOk() ([]interface{}, bool) { if o == nil || o.Expression == nil { - var ret []map[string]interface{} + var ret []interface{} return ret, false } - return *o.Expression, true + return o.Expression, true } // HasExpression returns a boolean if a field has been set. @@ -119,8 +119,8 @@ func (o *NewApplicationCifExpression) HasExpression() bool { } // SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field. -func (o *NewApplicationCifExpression) SetExpression(v []map[string]interface{}) { - o.Expression = &v +func (o *NewApplicationCifExpression) SetExpression(v []interface{}) { + o.Expression = v } type NullableNewApplicationCifExpression struct { diff --git a/model_new_template_def.go b/model_new_template_def.go index e33c6a18..bd92bbf0 100644 --- a/model_new_template_def.go +++ b/model_new_template_def.go @@ -25,7 +25,7 @@ type NewTemplateDef struct { // Used for grouping templates in the rule editor sidebar. Category string `json:"category"` // A Talang expression that contains variable bindings referring to args. - Expr []map[string]interface{} `json:"expr"` + Expr []interface{} `json:"expr"` // An array of argument definitions. Args []TemplateArgDef `json:"args"` // A flag to control exposure in Rule Builder. @@ -129,9 +129,9 @@ func (o *NewTemplateDef) SetCategory(v string) { } // GetExpr returns the Expr field value -func (o *NewTemplateDef) GetExpr() []map[string]interface{} { +func (o *NewTemplateDef) GetExpr() []interface{} { if o == nil { - var ret []map[string]interface{} + var ret []interface{} return ret } @@ -139,7 +139,7 @@ func (o *NewTemplateDef) GetExpr() []map[string]interface{} { } // SetExpr sets field value -func (o *NewTemplateDef) SetExpr(v []map[string]interface{}) { +func (o *NewTemplateDef) SetExpr(v []interface{}) { o.Expr = v } diff --git a/model_rule.go b/model_rule.go index acc8a36d..fcccbae7 100644 --- a/model_rule.go +++ b/model_rule.go @@ -27,9 +27,9 @@ type Rule struct { // An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. Bindings *[]Binding `json:"bindings,omitempty"` // A Talang expression that will be evaluated in the context of the given event. - Condition []map[string]interface{} `json:"condition"` + Condition []interface{} `json:"condition"` // An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. - Effects []map[string]interface{} `json:"effects"` + Effects [][]interface{} `json:"effects"` } // GetId returns the Id field value if set, zero value otherwise. @@ -180,9 +180,9 @@ func (o *Rule) SetBindings(v []Binding) { } // GetCondition returns the Condition field value -func (o *Rule) GetCondition() []map[string]interface{} { +func (o *Rule) GetCondition() []interface{} { if o == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret } @@ -190,14 +190,14 @@ func (o *Rule) GetCondition() []map[string]interface{} { } // SetCondition sets field value -func (o *Rule) SetCondition(v []map[string]interface{}) { +func (o *Rule) SetCondition(v []interface{}) { o.Condition = v } // GetEffects returns the Effects field value -func (o *Rule) GetEffects() []map[string]interface{} { +func (o *Rule) GetEffects() [][]interface{} { if o == nil { - var ret []map[string]interface{} + var ret [][]interface{} return ret } @@ -205,7 +205,7 @@ func (o *Rule) GetEffects() []map[string]interface{} { } // SetEffects sets field value -func (o *Rule) SetEffects(v []map[string]interface{}) { +func (o *Rule) SetEffects(v [][]interface{}) { o.Effects = v } diff --git a/model_template_def.go b/model_template_def.go index cb472a0a..ed9fc0df 100644 --- a/model_template_def.go +++ b/model_template_def.go @@ -32,7 +32,7 @@ type TemplateDef struct { // Used for grouping templates in the rule editor sidebar. Category string `json:"category"` // A Talang expression that contains variable bindings referring to args. - Expr []map[string]interface{} `json:"expr"` + Expr []interface{} `json:"expr"` // An array of argument definitions. Args []TemplateArgDef `json:"args"` // A flag to control exposure in Rule Builder. @@ -147,9 +147,9 @@ func (o *TemplateDef) SetCategory(v string) { } // GetExpr returns the Expr field value -func (o *TemplateDef) GetExpr() []map[string]interface{} { +func (o *TemplateDef) GetExpr() []interface{} { if o == nil { - var ret []map[string]interface{} + var ret []interface{} return ret } @@ -157,7 +157,7 @@ func (o *TemplateDef) GetExpr() []map[string]interface{} { } // SetExpr sets field value -func (o *TemplateDef) SetExpr(v []map[string]interface{}) { +func (o *TemplateDef) SetExpr(v []interface{}) { o.Expr = v }