go-firefly3/model_rule_trigger.go
2024-05-11 15:26:56 +03:00

32 lines
1.6 KiB
Go

/*
* Firefly III API v2.0.14
*
* This is the documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. You may use the \"Authorize\" button to try the API below. This file was last generated on 2024-04-20T05:28:29+00:00 Please keep in mind that the demo site does not accept requests from curl, colly, wget, etc. You must use a browser or a tool like Postman to make requests. Too many script kiddies out there, sorry about that.
*
* API version: 2.0.14
* Contact: james@firefly-iii.org
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package firefly3
import (
"time"
)
type RuleTrigger struct {
Id string `json:"id,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Type_ *RuleTriggerKeyword `json:"type"`
// The accompanying value the trigger responds to. This value is often mandatory, but this depends on the trigger.
Value string `json:"value"`
// If 'prohibited' is true, this rule trigger will be negated. 'Description is' will become 'Description is NOT' etc.
Prohibited bool `json:"prohibited,omitempty"`
// Order of the trigger
Order int32 `json:"order,omitempty"`
// If the trigger is active. Defaults to true.
Active bool `json:"active,omitempty"`
// When true, other triggers will not be checked if this trigger was triggered. Defaults to false.
StopProcessing bool `json:"stop_processing,omitempty"`
}