Name | Type | Description | Notes |
---|---|---|---|
Id | int64 | Rule identifier | |
Category | Category | <strong>Type:</strong> Category<br/> The category that this rule assigns to the transactions that it matches | |
Direction | TransactionDirection | <strong>Type:</strong> TransactionDirection<br/> Direction for the rule. 'Income' means that the rule applies to transactions with a positive amount only, 'Spending' means it applies to transactions with a negative amount only. | |
CreationDate | string | Timestamp of when the rule was created, in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time) | |
Keywords | []string | ||
AllKeywordsMustMatch | bool | This field is only relevant if the rule contains multiple keywords. If set to 'true' it means that all keywords have to be found in a transaction to apply the given category. If set to 'false', then even a single matching keyword in a transaction can trigger this rule. |
func NewKeywordRule(id int64, category Category, direction TransactionDirection, creationDate string, keywords []string, allKeywordsMustMatch bool, ) *KeywordRule
NewKeywordRule instantiates a new KeywordRule 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
func NewKeywordRuleWithDefaults() *KeywordRule
NewKeywordRuleWithDefaults instantiates a new KeywordRule 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
func (o *KeywordRule) GetId() int64
GetId returns the Id field if non-nil, zero value otherwise.
func (o *KeywordRule) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetId(v int64)
SetId sets Id field to given value.
func (o *KeywordRule) GetCategory() Category
GetCategory returns the Category field if non-nil, zero value otherwise.
func (o *KeywordRule) GetCategoryOk() (*Category, bool)
GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetCategory(v Category)
SetCategory sets Category field to given value.
func (o *KeywordRule) GetDirection() TransactionDirection
GetDirection returns the Direction field if non-nil, zero value otherwise.
func (o *KeywordRule) GetDirectionOk() (*TransactionDirection, bool)
GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetDirection(v TransactionDirection)
SetDirection sets Direction field to given value.
func (o *KeywordRule) GetCreationDate() string
GetCreationDate returns the CreationDate field if non-nil, zero value otherwise.
func (o *KeywordRule) GetCreationDateOk() (*string, bool)
GetCreationDateOk returns a tuple with the CreationDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetCreationDate(v string)
SetCreationDate sets CreationDate field to given value.
func (o *KeywordRule) GetKeywords() []string
GetKeywords returns the Keywords field if non-nil, zero value otherwise.
func (o *KeywordRule) GetKeywordsOk() (*[]string, bool)
GetKeywordsOk returns a tuple with the Keywords field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetKeywords(v []string)
SetKeywords sets Keywords field to given value.
func (o *KeywordRule) GetAllKeywordsMustMatch() bool
GetAllKeywordsMustMatch returns the AllKeywordsMustMatch field if non-nil, zero value otherwise.
func (o *KeywordRule) GetAllKeywordsMustMatchOk() (*bool, bool)
GetAllKeywordsMustMatchOk returns a tuple with the AllKeywordsMustMatch field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KeywordRule) SetAllKeywordsMustMatch(v bool)
SetAllKeywordsMustMatch sets AllKeywordsMustMatch field to given value.