Skip to content

Commit

Permalink
Make patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Crandel committed Jan 16, 2025
1 parent b46e808 commit de4cc01
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 65 deletions.
8 changes: 3 additions & 5 deletions docs/NewApplicationCifExpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)


18 changes: 9 additions & 9 deletions model_application_cif_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions model_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -75,17 +75,17 @@ 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
}

return o.Expression
}

// SetExpression sets field value
func (o *Binding) SetExpression(v []map[string]interface{}) {
func (o *Binding) SetExpression(v []interface{}) {
o.Expression = v
}

Expand Down
8 changes: 4 additions & 4 deletions model_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -215,17 +215,17 @@ 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
}

return o.Effects
}

// SetEffects sets field value
func (o *Event) SetEffects(v []map[string]interface{}) {
func (o *Event) SetEffects(v [][]interface{}) {
o.Effects = v
}

Expand Down
36 changes: 18 additions & 18 deletions model_generate_rule_title_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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 {
Expand Down
18 changes: 9 additions & 9 deletions model_new_application_cif_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions model_new_template_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -129,17 +129,17 @@ 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
}

return o.Expr
}

// SetExpr sets field value
func (o *NewTemplateDef) SetExpr(v []map[string]interface{}) {
func (o *NewTemplateDef) SetExpr(v []interface{}) {
o.Expr = v
}

Expand Down
16 changes: 8 additions & 8 deletions model_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -180,32 +180,32 @@ 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
}

return o.Condition
}

// 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
}

return o.Effects
}

// SetEffects sets field value
func (o *Rule) SetEffects(v []map[string]interface{}) {
func (o *Rule) SetEffects(v [][]interface{}) {
o.Effects = v
}

Expand Down
8 changes: 4 additions & 4 deletions model_template_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -147,17 +147,17 @@ 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
}

return o.Expr
}

// SetExpr sets field value
func (o *TemplateDef) SetExpr(v []map[string]interface{}) {
func (o *TemplateDef) SetExpr(v []interface{}) {
o.Expr = v
}

Expand Down

0 comments on commit de4cc01

Please sign in to comment.