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

32 lines
2.1 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 RecurrenceRepetition struct {
Id string `json:"id,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Type_ *RecurrenceRepetitionType `json:"type"`
// Information that defined the type of repetition. - For 'daily', this is empty. - For 'weekly', it is day of the week between 1 and 7 (Monday - Sunday). - For 'ndom', it is '1,2' or '4,5' or something else, where the first number is the week in the month, and the second number is the day in the week (between 1 and 7). '2,3' means: the 2nd Wednesday of the month - For 'monthly' it is the day of the month (1 - 31) - For yearly, it is a full date, ie '2018-09-17'. The year you use does not matter.
Moment string `json:"moment"`
// How many occurrences to skip. 0 means skip nothing. 1 means every other.
Skip int32 `json:"skip,omitempty"`
// How to respond when the recurring transaction falls in the weekend. Possible values: 1. Do nothing, just create it 2. Create no transaction. 3. Skip to the previous Friday. 4. Skip to the next Monday.
Weekend int32 `json:"weekend,omitempty"`
// Auto-generated repetition description.
Description string `json:"description,omitempty"`
// Array of future dates when the repetition will apply to. Auto generated.
Occurrences []time.Time `json:"occurrences,omitempty"`
}