Skip to content

Commit

Permalink
Fix generation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Crandel committed Jan 16, 2025
1 parent de4cc01 commit d733eff
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 48 deletions.
10 changes: 5 additions & 5 deletions docs/ApplicationCifExpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Created** | Pointer to [**time.Time**](time.Time.md) | The time this entity was created. |
**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]
**Expression** | Pointer to [**[]interface{}**](interface{}.md) | Arbitrary additional JSON data associated with the Application cart item filter. | [optional]
**ApplicationId** | Pointer to **int32** | The ID of the application that owns this entity. |

## Methods
Expand Down Expand Up @@ -115,13 +115,13 @@ SetCreatedBy gets a reference to the given int32 and assigns it to the CreatedBy

### GetExpression

`func (o *ApplicationCifExpression) GetExpression() []map[string]interface{}`
`func (o *ApplicationCifExpression) GetExpression() []interface{}`

GetExpression returns the Expression field if non-nil, zero value otherwise.

### GetExpressionOk

`func (o *ApplicationCifExpression) GetExpressionOk() ([]map[string]interface{}, bool)`
`func (o *ApplicationCifExpression) GetExpressionOk() ([]interface{}, bool)`

GetExpressionOk returns a tuple with the Expression field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -134,9 +134,9 @@ HasExpression returns a boolean if a field has been set.

### SetExpression

`func (o *ApplicationCifExpression) SetExpression(v []map[string]interface{})`
`func (o *ApplicationCifExpression) SetExpression(v []interface{})`

SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field.
SetExpression gets a reference to the given []interface{} and assigns it to the Expression field.

### GetApplicationId

Expand Down
10 changes: 5 additions & 5 deletions docs/Binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | A descriptive name for the value to be bound. |
**Type** | Pointer to **string** | The kind of binding. Possible values are: - `bundle` - `cartItemFilter` - `subledgerBalance` - `templateParameter` | [optional]
**Expression** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | A Talang expression that will be evaluated and its result attached to the name of the binding. |
**Expression** | Pointer to [**[]interface{}**]([]interface{}.md) | A Talang expression that will be evaluated and its result attached to the name of the binding. |
**ValueType** | Pointer to **string** | Can be one of the following: - `string` - `number` - `boolean` | [optional]

## Methods
Expand Down Expand Up @@ -63,13 +63,13 @@ SetType gets a reference to the given string and assigns it to the Type field.

### GetExpression

`func (o *Binding) GetExpression() []map[string]interface{}`
`func (o *Binding) GetExpression() []interface{}`

GetExpression returns the Expression field if non-nil, zero value otherwise.

### GetExpressionOk

`func (o *Binding) GetExpressionOk() ([]map[string]interface{}, bool)`
`func (o *Binding) GetExpressionOk() ([]interface{}, bool)`

GetExpressionOk returns a tuple with the Expression field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -82,9 +82,9 @@ HasExpression returns a boolean if a field has been set.

### SetExpression

`func (o *Binding) SetExpression(v []map[string]interface{})`
`func (o *Binding) SetExpression(v []interface{})`

SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field.
SetExpression gets a reference to the given []interface{} and assigns it to the Expression field.

### GetValueType

Expand Down
10 changes: 5 additions & 5 deletions docs/Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Type** | Pointer to **string** | A string representing the event. Must not be a reserved event name. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON data associated with the event. |
**SessionId** | Pointer to **string** | The ID of the session that this event occurred in. | [optional]
**Effects** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | 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** | Pointer to [**[]interface{}**]([]interface{}.md) | 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). |
**LedgerEntries** | Pointer to [**[]LedgerEntry**](LedgerEntry.md) | Ledger entries for the event. | [optional]
**Meta** | Pointer to [**Meta**](Meta.md) | | [optional]

Expand Down Expand Up @@ -220,13 +220,13 @@ SetSessionId gets a reference to the given string and assigns it to the SessionI

### GetEffects

`func (o *Event) GetEffects() []map[string]interface{}`
`func (o *Event) GetEffects() []interface{}`

GetEffects returns the Effects field if non-nil, zero value otherwise.

### GetEffectsOk

`func (o *Event) GetEffectsOk() ([]map[string]interface{}, bool)`
`func (o *Event) GetEffectsOk() ([]interface{}, bool)`

GetEffectsOk returns a tuple with the Effects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -239,9 +239,9 @@ HasEffects returns a boolean if a field has been set.

### SetEffects

`func (o *Event) SetEffects(v []map[string]interface{})`
`func (o *Event) SetEffects(v []interface{})`

SetEffects gets a reference to the given []map[string]interface{} and assigns it to the Effects field.
SetEffects gets a reference to the given []interface{} and assigns it to the Effects field.

### GetLedgerEntries

Expand Down
10 changes: 5 additions & 5 deletions docs/GenerateItemFilterDescription.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ItemFilter** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | An array of item filter Talang expressions. |
**ItemFilter** | Pointer to [**[]interface{}**](interface{}.md) | An array of item filter Talang expressions. |

## Methods

### GetItemFilter

`func (o *GenerateItemFilterDescription) GetItemFilter() []map[string]interface{}`
`func (o *GenerateItemFilterDescription) GetItemFilter() []interface{}`

GetItemFilter returns the ItemFilter field if non-nil, zero value otherwise.

### GetItemFilterOk

`func (o *GenerateItemFilterDescription) GetItemFilterOk() ([]map[string]interface{}, bool)`
`func (o *GenerateItemFilterDescription) GetItemFilterOk() ([]interface{}, bool)`

GetItemFilterOk returns a tuple with the ItemFilter field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -29,9 +29,9 @@ HasItemFilter returns a boolean if a field has been set.

### SetItemFilter

`func (o *GenerateItemFilterDescription) SetItemFilter(v []map[string]interface{})`
`func (o *GenerateItemFilterDescription) SetItemFilter(v []interface{})`

SetItemFilter gets a reference to the given []map[string]interface{} and assigns it to the ItemFilter field.
SetItemFilter gets a reference to the given []interface{} and assigns it to the ItemFilter field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/NewApplicationCifExpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ SetCreatedBy gets a reference to the given int32 and assigns it to the CreatedBy

### GetExpression

`func (o *NewApplicationCifExpression) GetExpression() []map[string]interface{}`
`func (o *NewApplicationCifExpression) GetExpression() []interface{}`

GetExpression returns the Expression field if non-nil, zero value otherwise.

### GetExpressionOk

`func (o *NewApplicationCifExpression) GetExpressionOk() ([]map[string]interface{}, bool)`
`func (o *NewApplicationCifExpression) GetExpressionOk() ([]interface{}, bool)`

GetExpressionOk returns a tuple with the Expression field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -81,9 +81,9 @@ HasExpression returns a boolean if a field has been set.

### SetExpression

`func (o *NewApplicationCifExpression) SetExpression(v []map[string]interface{})`
`func (o *NewApplicationCifExpression) SetExpression(v []interface{})`

SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field.
SetExpression gets a reference to the given []interface{} and assigns it to the Expression field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10 changes: 5 additions & 5 deletions docs/NewTemplateDef.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | A short description of the template that will be shown in the rule editor. | [optional]
**Help** | Pointer to **string** | Extended help text for the template. | [optional]
**Category** | Pointer to **string** | Used for grouping templates in the rule editor sidebar. |
**Expr** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | A Talang expression that contains variable bindings referring to args. |
**Expr** | Pointer to [**[]interface{}**]([]interface{}.md) | A Talang expression that contains variable bindings referring to args. |
**Args** | Pointer to [**[]TemplateArgDef**](TemplateArgDef.md) | An array of argument definitions. |
**Expose** | Pointer to **bool** | A flag to control exposure in Rule Builder. | [optional] [default to false]

Expand Down Expand Up @@ -116,13 +116,13 @@ SetCategory gets a reference to the given string and assigns it to the Category

### GetExpr

`func (o *NewTemplateDef) GetExpr() []map[string]interface{}`
`func (o *NewTemplateDef) GetExpr() []interface{}`

GetExpr returns the Expr field if non-nil, zero value otherwise.

### GetExprOk

`func (o *NewTemplateDef) GetExprOk() ([]map[string]interface{}, bool)`
`func (o *NewTemplateDef) GetExprOk() ([]interface{}, bool)`

GetExprOk returns a tuple with the Expr field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -135,9 +135,9 @@ HasExpr returns a boolean if a field has been set.

### SetExpr

`func (o *NewTemplateDef) SetExpr(v []map[string]interface{})`
`func (o *NewTemplateDef) SetExpr(v []interface{})`

SetExpr gets a reference to the given []map[string]interface{} and assigns it to the Expr field.
SetExpr gets a reference to the given []interface{} and assigns it to the Expr field.

### GetArgs

Expand Down
20 changes: 10 additions & 10 deletions docs/Rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Name | Type | Description | Notes
**Title** | Pointer to **string** | A short description of the rule. |
**Description** | Pointer to **string** | A longer, more detailed description of the rule. | [optional]
**Bindings** | Pointer to [**[]Binding**](Binding.md) | 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. | [optional]
**Condition** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | A Talang expression that will be evaluated in the context of the given event. |
**Effects** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. |
**Condition** | Pointer to [**[]interface{}**]([]interface{}.md) | A Talang expression that will be evaluated in the context of the given event. |
**Effects** | Pointer to [**[]interface{}**]([]interface{}.md) | An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. |

## Methods

Expand Down Expand Up @@ -141,13 +141,13 @@ SetBindings gets a reference to the given []Binding and assigns it to the Bindin

### GetCondition

`func (o *Rule) GetCondition() []map[string]interface{}`
`func (o *Rule) GetCondition() []interface{}`

GetCondition returns the Condition field if non-nil, zero value otherwise.

### GetConditionOk

`func (o *Rule) GetConditionOk() ([]map[string]interface{}, bool)`
`func (o *Rule) GetConditionOk() ([]interface{}, bool)`

GetConditionOk returns a tuple with the Condition field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -160,19 +160,19 @@ HasCondition returns a boolean if a field has been set.

### SetCondition

`func (o *Rule) SetCondition(v []map[string]interface{})`
`func (o *Rule) SetCondition(v []interface{})`

SetCondition gets a reference to the given []map[string]interface{} and assigns it to the Condition field.
SetCondition gets a reference to the given []interface{} and assigns it to the Condition field.

### GetEffects

`func (o *Rule) GetEffects() []map[string]interface{}`
`func (o *Rule) GetEffects() []interface{}`

GetEffects returns the Effects field if non-nil, zero value otherwise.

### GetEffectsOk

`func (o *Rule) GetEffectsOk() ([]map[string]interface{}, bool)`
`func (o *Rule) GetEffectsOk() ([]interface{}, bool)`

GetEffectsOk returns a tuple with the Effects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -185,9 +185,9 @@ HasEffects returns a boolean if a field has been set.

### SetEffects

`func (o *Rule) SetEffects(v []map[string]interface{})`
`func (o *Rule) SetEffects(v []interface{})`

SetEffects gets a reference to the given []map[string]interface{} and assigns it to the Effects field.
SetEffects gets a reference to the given []interface{} and assigns it to the Effects field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
10 changes: 5 additions & 5 deletions docs/TemplateDef.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | A short description of the template that will be shown in the rule editor. |
**Help** | Pointer to **string** | Extended help text for the template. |
**Category** | Pointer to **string** | Used for grouping templates in the rule editor sidebar. |
**Expr** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | A Talang expression that contains variable bindings referring to args. |
**Expr** | Pointer to [**[]interface{}**]([]interface{}.md) | A Talang expression that contains variable bindings referring to args. |
**Args** | Pointer to [**[]TemplateArgDef**](TemplateArgDef.md) | An array of argument definitions. |
**Expose** | Pointer to **bool** | A flag to control exposure in Rule Builder. | [optional] [default to false]
**Name** | Pointer to **string** | The template name used in Talang. |
Expand Down Expand Up @@ -195,13 +195,13 @@ SetCategory gets a reference to the given string and assigns it to the Category

### GetExpr

`func (o *TemplateDef) GetExpr() []map[string]interface{}`
`func (o *TemplateDef) GetExpr() []interface{}`

GetExpr returns the Expr field if non-nil, zero value otherwise.

### GetExprOk

`func (o *TemplateDef) GetExprOk() ([]map[string]interface{}, bool)`
`func (o *TemplateDef) GetExprOk() ([]interface{}, bool)`

GetExprOk returns a tuple with the Expr field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
Expand All @@ -214,9 +214,9 @@ HasExpr returns a boolean if a field has been set.

### SetExpr

`func (o *TemplateDef) SetExpr(v []map[string]interface{})`
`func (o *TemplateDef) SetExpr(v []interface{})`

SetExpr gets a reference to the given []map[string]interface{} and assigns it to the Expr field.
SetExpr gets a reference to the given []interface{} and assigns it to the Expr field.

### GetArgs

Expand Down
4 changes: 2 additions & 2 deletions model_generate_rule_title_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (o *GenerateRuleTitleRule) SetEffects(v [][]interface{}) {
// GetCondition returns the Condition field value if set, zero value otherwise.
func (o *GenerateRuleTitleRule) GetCondition() []interface{} {
if o == nil || o.Condition == nil {
var ret [][]interface{}
var ret []interface{}
return ret
}
return o.Condition
Expand All @@ -68,7 +68,7 @@ func (o *GenerateRuleTitleRule) GetCondition() []interface{} {
// and a boolean to check if the value has been set.
func (o *GenerateRuleTitleRule) GetConditionOk() ([]interface{}, bool) {
if o == nil || o.Condition == nil {
var ret [][]interface{}
var ret []interface{}
return ret, false
}
return o.Condition, true
Expand Down
2 changes: 1 addition & 1 deletion model_new_application_cif_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (o *NewApplicationCifExpression) HasExpression() bool {
return false
}

// SetExpression gets a reference to the given []map[string]interface{} and assigns it to the Expression field.
// SetExpression gets a reference to the given []interface{} and assigns it to the Expression field.
func (o *NewApplicationCifExpression) SetExpression(v []interface{}) {
o.Expression = v
}
Expand Down
2 changes: 1 addition & 1 deletion model_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (o *Rule) SetBindings(v []Binding) {
// GetCondition returns the Condition field value
func (o *Rule) GetCondition() []interface{} {
if o == nil {
var ret [][]interface{}
var ret []interface{}
return ret
}

Expand Down

0 comments on commit d733eff

Please sign in to comment.