Bump version
This commit is contained in:
parent
04e92891e3
commit
21371e5c22
254
api_about.go
254
api_about.go
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,9 +25,10 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type AboutApiService service
|
type AboutApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AboutApiService System information end point.
|
AboutApiService System information end point.
|
||||||
Returns general system information and versions of the (supporting) software.
|
Returns general system information and versions of the (supporting) software.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param optional nil or *AboutApiGetAboutOpts - Optional Parameters:
|
* @param optional nil or *AboutApiGetAboutOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
@ -36,15 +36,15 @@ Returns general system information and versions of the (supporting) software.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type AboutApiGetAboutOpts struct {
|
type AboutApiGetAboutOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AboutApiService) GetAbout(ctx context.Context, localVarOptionals *AboutApiGetAboutOpts) (SystemInfo, *http.Response, error) {
|
func (a *AboutApiService) GetAbout(ctx context.Context, localVarOptionals *AboutApiGetAboutOpts) (SystemInfo, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue SystemInfo
|
localVarReturnValue SystemInfo
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -93,96 +93,97 @@ func (a *AboutApiService) GetAbout(ctx context.Context, localVarOptionals *About
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v SystemInfo
|
var v SystemInfo
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AboutApiService Cron job endpoint
|
AboutApiService Cron job endpoint
|
||||||
Firefly III has one endpoint for its various cron related tasks. Send a GET to this endpoint to run the cron. The cron requires the CLI token to be present. The cron job will fire for all users.
|
Firefly III has one endpoint for its various cron related tasks. Send a GET to this endpoint to run the cron. The cron requires the CLI token to be present. The cron job will fire for all users.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param cliToken The CLI token of any user in Firefly III, required to run the cron job.
|
* @param cliToken The CLI token of any user in Firefly III, required to run the cron job.
|
||||||
* @param optional nil or *AboutApiGetCronOpts - Optional Parameters:
|
* @param optional nil or *AboutApiGetCronOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Date" (optional.String) - A date formatted YYYY-MM-DD. This can be used to make the cron job pretend it's running on another day.
|
* @param "Date" (optional.String) - A date formatted YYYY-MM-DD. This can be used to make the cron job pretend it's running on another day.
|
||||||
* @param "Force" (optional.Bool) - Forces the cron job to fire, regardless of whether it has fired before. This may result in double transactions or weird budgets, so be careful.
|
* @param "Force" (optional.Bool) - Forces the cron job to fire, regardless of whether it has fired before. This may result in double transactions or weird budgets, so be careful.
|
||||||
@return CronResult
|
@return CronResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type AboutApiGetCronOpts struct {
|
type AboutApiGetCronOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Date optional.String
|
Date optional.String
|
||||||
Force optional.Bool
|
Force optional.Bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AboutApiService) GetCron(ctx context.Context, cliToken string, localVarOptionals *AboutApiGetCronOpts) (CronResult, *http.Response, error) {
|
func (a *AboutApiService) GetCron(ctx context.Context, cliToken string, localVarOptionals *AboutApiGetCronOpts) (CronResult, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue CronResult
|
localVarReturnValue CronResult
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -238,75 +239,76 @@ func (a *AboutApiService) GetCron(ctx context.Context, cliToken string, localVar
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v CronResult
|
var v CronResult
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AboutApiService Currently authenticated user endpoint.
|
AboutApiService Currently authenticated user endpoint.
|
||||||
Returns the currently authenticated user.
|
Returns the currently authenticated user.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param optional nil or *AboutApiGetCurrentUserOpts - Optional Parameters:
|
* @param optional nil or *AboutApiGetCurrentUserOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
@ -314,15 +316,15 @@ Returns the currently authenticated user.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type AboutApiGetCurrentUserOpts struct {
|
type AboutApiGetCurrentUserOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AboutApiService) GetCurrentUser(ctx context.Context, localVarOptionals *AboutApiGetCurrentUserOpts) (UserSingle, *http.Response, error) {
|
func (a *AboutApiService) GetCurrentUser(ctx context.Context, localVarOptionals *AboutApiGetCurrentUserOpts) (UserSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue UserSingle
|
localVarReturnValue UserSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -371,66 +373,66 @@ func (a *AboutApiService) GetCurrentUser(ctx context.Context, localVarOptionals
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v UserSingle
|
var v UserSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
1307
api_autocomplete.go
1307
api_autocomplete.go
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type AvailableBudgetsApiService service
|
type AvailableBudgetsApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AvailableBudgetsApiService Get a single available budget.
|
AvailableBudgetsApiService Get a single available budget.
|
||||||
Get a single available budget, by ID.
|
Get a single available budget, by ID.
|
||||||
@ -37,15 +37,15 @@ Get a single available budget, by ID.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type AvailableBudgetsApiGetAvailableBudgetOpts struct {
|
type AvailableBudgetsApiGetAvailableBudgetOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AvailableBudgetsApiService) GetAvailableBudget(ctx context.Context, id string, localVarOptionals *AvailableBudgetsApiGetAvailableBudgetOpts) (AvailableBudgetSingle, *http.Response, error) {
|
func (a *AvailableBudgetsApiService) GetAvailableBudget(ctx context.Context, id string, localVarOptionals *AvailableBudgetsApiGetAvailableBudgetOpts) (AvailableBudgetSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue AvailableBudgetSingle
|
localVarReturnValue AvailableBudgetSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -95,99 +95,100 @@ func (a *AvailableBudgetsApiService) GetAvailableBudget(ctx context.Context, id
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v AvailableBudgetSingle
|
var v AvailableBudgetSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AvailableBudgetsApiService List all available budget amounts.
|
AvailableBudgetsApiService List all available budget amounts.
|
||||||
Firefly III allows users to set the amount that is available to be budgeted in so-called \"available budgets\". For example, the user could have 1200,- available to be divided during the coming month. This amount is used on the /budgets page. This endpoint returns all of these amounts and the periods for which they are set.
|
Firefly III allows users to set the amount that is available to be budgeted in so-called \"available budgets\". For example, the user could have 1200,- available to be divided during the coming month. This amount is used on the /budgets page. This endpoint returns all of these amounts and the periods for which they are set.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param optional nil or *AvailableBudgetsApiListAvailableBudgetOpts - Optional Parameters:
|
* @param optional nil or *AvailableBudgetsApiListAvailableBudgetOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
||||||
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
||||||
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD.
|
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD.
|
||||||
* @param "End" (optional.String) - A date formatted YYYY-MM-DD.
|
* @param "End" (optional.String) - A date formatted YYYY-MM-DD.
|
||||||
@return AvailableBudgetArray
|
@return AvailableBudgetArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type AvailableBudgetsApiListAvailableBudgetOpts struct {
|
type AvailableBudgetsApiListAvailableBudgetOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
Start optional.String
|
Start optional.String
|
||||||
End optional.String
|
End optional.String
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AvailableBudgetsApiService) ListAvailableBudget(ctx context.Context, localVarOptionals *AvailableBudgetsApiListAvailableBudgetOpts) (AvailableBudgetArray, *http.Response, error) {
|
func (a *AvailableBudgetsApiService) ListAvailableBudget(ctx context.Context, localVarOptionals *AvailableBudgetsApiListAvailableBudgetOpts) (AvailableBudgetArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue AvailableBudgetArray
|
localVarReturnValue AvailableBudgetArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -248,66 +249,66 @@ func (a *AvailableBudgetsApiService) ListAvailableBudget(ctx context.Context, lo
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v AvailableBudgetArray
|
var v AvailableBudgetArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -25,27 +24,28 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ChartsApiService service
|
type ChartsApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ChartsApiService Dashboard chart with asset account balance information.
|
ChartsApiService Dashboard chart with asset account balance information.
|
||||||
This endpoint returns the data required to generate a chart with basic asset account balance information.
|
This endpoint returns the data required to generate a chart with basic asset account balance information.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param start A date formatted YYYY-MM-DD.
|
* @param start A date formatted YYYY-MM-DD.
|
||||||
* @param end A date formatted YYYY-MM-DD.
|
* @param end A date formatted YYYY-MM-DD.
|
||||||
* @param optional nil or *ChartsApiGetChartAccountOverviewOpts - Optional Parameters:
|
* @param optional nil or *ChartsApiGetChartAccountOverviewOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
@return []ChartDataSet
|
@return []ChartDataSet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type ChartsApiGetChartAccountOverviewOpts struct {
|
type ChartsApiGetChartAccountOverviewOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ChartsApiService) GetChartAccountOverview(ctx context.Context, start string, end string, localVarOptionals *ChartsApiGetChartAccountOverviewOpts) ([]ChartDataSet, *http.Response, error) {
|
func (a *ChartsApiService) GetChartAccountOverview(ctx context.Context, start string, end string, localVarOptionals *ChartsApiGetChartAccountOverviewOpts) ([]ChartDataSet, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue []ChartDataSet
|
localVarReturnValue []ChartDataSet
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -96,66 +96,66 @@ func (a *ChartsApiService) GetChartAccountOverview(ctx context.Context, start st
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v []ChartDataSet
|
var v []ChartDataSet
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
1295
api_currencies.go
1295
api_currencies.go
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
2127
api_insight.go
2127
api_insight.go
File diff suppressed because it is too large
Load Diff
900
api_links.go
900
api_links.go
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ObjectGroupsApiService service
|
type ObjectGroupsApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService Delete a object group.
|
ObjectGroupsApiService Delete a object group.
|
||||||
Delete a object group.
|
Delete a object group.
|
||||||
@ -37,7 +37,7 @@ Delete a object group.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiDeleteObjectGroupOpts struct {
|
type ObjectGroupsApiDeleteObjectGroupOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) DeleteObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiDeleteObjectGroupOpts) (*http.Response, error) {
|
func (a *ObjectGroupsApiService) DeleteObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiDeleteObjectGroupOpts) (*http.Response, error) {
|
||||||
@ -46,7 +46,6 @@ func (a *ObjectGroupsApiService) DeleteObjectGroup(ctx context.Context, id strin
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -93,57 +92,57 @@ func (a *ObjectGroupsApiService) DeleteObjectGroup(ctx context.Context, id strin
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService Get a single object group.
|
ObjectGroupsApiService Get a single object group.
|
||||||
Get a single object group.
|
Get a single object group.
|
||||||
@ -155,15 +154,15 @@ Get a single object group.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiGetObjectGroupOpts struct {
|
type ObjectGroupsApiGetObjectGroupOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) GetObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiGetObjectGroupOpts) (ObjectGroupSingle, *http.Response, error) {
|
func (a *ObjectGroupsApiService) GetObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiGetObjectGroupOpts) (ObjectGroupSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue ObjectGroupSingle
|
localVarReturnValue ObjectGroupSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -213,72 +212,73 @@ func (a *ObjectGroupsApiService) GetObjectGroup(ctx context.Context, id string,
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v ObjectGroupSingle
|
var v ObjectGroupSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService List all bills with this object group.
|
ObjectGroupsApiService List all bills with this object group.
|
||||||
List all bills with this object group.
|
List all bills with this object group.
|
||||||
@ -292,17 +292,17 @@ List all bills with this object group.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiListBillByObjectGroupOpts struct {
|
type ObjectGroupsApiListBillByObjectGroupOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) ListBillByObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiListBillByObjectGroupOpts) (BillArray, *http.Response, error) {
|
func (a *ObjectGroupsApiService) ListBillByObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiListBillByObjectGroupOpts) (BillArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue BillArray
|
localVarReturnValue BillArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -358,72 +358,73 @@ func (a *ObjectGroupsApiService) ListBillByObjectGroup(ctx context.Context, id s
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v BillArray
|
var v BillArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService List all oject groups.
|
ObjectGroupsApiService List all oject groups.
|
||||||
List all oject groups.
|
List all oject groups.
|
||||||
@ -436,17 +437,17 @@ List all oject groups.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiListObjectGroupsOpts struct {
|
type ObjectGroupsApiListObjectGroupsOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) ListObjectGroups(ctx context.Context, localVarOptionals *ObjectGroupsApiListObjectGroupsOpts) (ObjectGroupArray, *http.Response, error) {
|
func (a *ObjectGroupsApiService) ListObjectGroups(ctx context.Context, localVarOptionals *ObjectGroupsApiListObjectGroupsOpts) (ObjectGroupArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue ObjectGroupArray
|
localVarReturnValue ObjectGroupArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -501,75 +502,76 @@ func (a *ObjectGroupsApiService) ListObjectGroups(ctx context.Context, localVarO
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v ObjectGroupArray
|
var v ObjectGroupArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService List all piggy banks related to the object group.
|
ObjectGroupsApiService List all piggy banks related to the object group.
|
||||||
This endpoint returns a list of all the piggy banks connected to the object group.
|
This endpoint returns a list of all the piggy banks connected to the object group.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param id The ID of the account.
|
* @param id The ID of the account.
|
||||||
* @param optional nil or *ObjectGroupsApiListPiggyBankByObjectGroupOpts - Optional Parameters:
|
* @param optional nil or *ObjectGroupsApiListPiggyBankByObjectGroupOpts - Optional Parameters:
|
||||||
@ -580,17 +582,17 @@ This endpoint returns a list of all the piggy banks connected to the object grou
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiListPiggyBankByObjectGroupOpts struct {
|
type ObjectGroupsApiListPiggyBankByObjectGroupOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) ListPiggyBankByObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiListPiggyBankByObjectGroupOpts) (PiggyBankArray, *http.Response, error) {
|
func (a *ObjectGroupsApiService) ListPiggyBankByObjectGroup(ctx context.Context, id string, localVarOptionals *ObjectGroupsApiListPiggyBankByObjectGroupOpts) (PiggyBankArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankArray
|
localVarReturnValue PiggyBankArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -646,72 +648,73 @@ func (a *ObjectGroupsApiService) ListPiggyBankByObjectGroup(ctx context.Context,
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankArray
|
var v PiggyBankArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ObjectGroupsApiService Update existing object group.
|
ObjectGroupsApiService Update existing object group.
|
||||||
Update existing object group.
|
Update existing object group.
|
||||||
@ -724,15 +727,15 @@ Update existing object group.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type ObjectGroupsApiUpdateObjectGroupOpts struct {
|
type ObjectGroupsApiUpdateObjectGroupOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ObjectGroupsApiService) UpdateObjectGroup(ctx context.Context, body ObjectGroupUpdate, id string, localVarOptionals *ObjectGroupsApiUpdateObjectGroupOpts) (ObjectGroupSingle, *http.Response, error) {
|
func (a *ObjectGroupsApiService) UpdateObjectGroup(ctx context.Context, body ObjectGroupUpdate, id string, localVarOptionals *ObjectGroupsApiUpdateObjectGroupOpts) (ObjectGroupSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Put")
|
localVarHttpMethod = strings.ToUpper("Put")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue ObjectGroupSingle
|
localVarReturnValue ObjectGroupSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -784,76 +787,76 @@ func (a *ObjectGroupsApiService) UpdateObjectGroup(ctx context.Context, body Obj
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v ObjectGroupSingle
|
var v ObjectGroupSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type PiggyBanksApiService service
|
type PiggyBanksApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService Delete a piggy bank.
|
PiggyBanksApiService Delete a piggy bank.
|
||||||
Delete a piggy bank.
|
Delete a piggy bank.
|
||||||
@ -37,7 +37,7 @@ Delete a piggy bank.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiDeletePiggyBankOpts struct {
|
type PiggyBanksApiDeletePiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) DeletePiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiDeletePiggyBankOpts) (*http.Response, error) {
|
func (a *PiggyBanksApiService) DeletePiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiDeletePiggyBankOpts) (*http.Response, error) {
|
||||||
@ -46,7 +46,6 @@ func (a *PiggyBanksApiService) DeletePiggyBank(ctx context.Context, id string, l
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -93,57 +92,57 @@ func (a *PiggyBanksApiService) DeletePiggyBank(ctx context.Context, id string, l
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService Get a single piggy bank.
|
PiggyBanksApiService Get a single piggy bank.
|
||||||
Get a single piggy bank.
|
Get a single piggy bank.
|
||||||
@ -155,15 +154,15 @@ Get a single piggy bank.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiGetPiggyBankOpts struct {
|
type PiggyBanksApiGetPiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) GetPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiGetPiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
func (a *PiggyBanksApiService) GetPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiGetPiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankSingle
|
localVarReturnValue PiggyBankSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -213,72 +212,73 @@ func (a *PiggyBanksApiService) GetPiggyBank(ctx context.Context, id string, loca
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankSingle
|
var v PiggyBankSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService Lists all attachments.
|
PiggyBanksApiService Lists all attachments.
|
||||||
Lists all attachments.
|
Lists all attachments.
|
||||||
@ -292,17 +292,17 @@ Lists all attachments.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiListAttachmentByPiggyBankOpts struct {
|
type PiggyBanksApiListAttachmentByPiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) ListAttachmentByPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiListAttachmentByPiggyBankOpts) (AttachmentArray, *http.Response, error) {
|
func (a *PiggyBanksApiService) ListAttachmentByPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiListAttachmentByPiggyBankOpts) (AttachmentArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue AttachmentArray
|
localVarReturnValue AttachmentArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -358,72 +358,73 @@ func (a *PiggyBanksApiService) ListAttachmentByPiggyBank(ctx context.Context, id
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v AttachmentArray
|
var v AttachmentArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService List all events linked to a piggy bank.
|
PiggyBanksApiService List all events linked to a piggy bank.
|
||||||
List all events linked to a piggy bank (adding and removing money).
|
List all events linked to a piggy bank (adding and removing money).
|
||||||
@ -437,17 +438,17 @@ List all events linked to a piggy bank (adding and removing money).
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiListEventByPiggyBankOpts struct {
|
type PiggyBanksApiListEventByPiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) ListEventByPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiListEventByPiggyBankOpts) (PiggyBankEventArray, *http.Response, error) {
|
func (a *PiggyBanksApiService) ListEventByPiggyBank(ctx context.Context, id string, localVarOptionals *PiggyBanksApiListEventByPiggyBankOpts) (PiggyBankEventArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankEventArray
|
localVarReturnValue PiggyBankEventArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -503,72 +504,73 @@ func (a *PiggyBanksApiService) ListEventByPiggyBank(ctx context.Context, id stri
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankEventArray
|
var v PiggyBankEventArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService List all piggy banks.
|
PiggyBanksApiService List all piggy banks.
|
||||||
List all piggy banks.
|
List all piggy banks.
|
||||||
@ -581,17 +583,17 @@ List all piggy banks.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiListPiggyBankOpts struct {
|
type PiggyBanksApiListPiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) ListPiggyBank(ctx context.Context, localVarOptionals *PiggyBanksApiListPiggyBankOpts) (PiggyBankArray, *http.Response, error) {
|
func (a *PiggyBanksApiService) ListPiggyBank(ctx context.Context, localVarOptionals *PiggyBanksApiListPiggyBankOpts) (PiggyBankArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankArray
|
localVarReturnValue PiggyBankArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -646,72 +648,73 @@ func (a *PiggyBanksApiService) ListPiggyBank(ctx context.Context, localVarOption
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankArray
|
var v PiggyBankArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService Store a new piggy bank
|
PiggyBanksApiService Store a new piggy bank
|
||||||
Creates a new piggy bank. The data required can be submitted as a JSON body or as a list of parameters.
|
Creates a new piggy bank. The data required can be submitted as a JSON body or as a list of parameters.
|
||||||
@ -723,15 +726,15 @@ Creates a new piggy bank. The data required can be submitted as a JSON body or a
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiStorePiggyBankOpts struct {
|
type PiggyBanksApiStorePiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) StorePiggyBank(ctx context.Context, body PiggyBankStore, localVarOptionals *PiggyBanksApiStorePiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
func (a *PiggyBanksApiService) StorePiggyBank(ctx context.Context, body PiggyBankStore, localVarOptionals *PiggyBanksApiStorePiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Post")
|
localVarHttpMethod = strings.ToUpper("Post")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankSingle
|
localVarReturnValue PiggyBankSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -782,82 +785,83 @@ func (a *PiggyBanksApiService) StorePiggyBank(ctx context.Context, body PiggyBan
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankSingle
|
var v PiggyBankSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PiggyBanksApiService Update existing piggy bank.
|
PiggyBanksApiService Update existing piggy bank.
|
||||||
Update existing piggy bank.
|
Update existing piggy bank.
|
||||||
@ -870,15 +874,15 @@ Update existing piggy bank.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type PiggyBanksApiUpdatePiggyBankOpts struct {
|
type PiggyBanksApiUpdatePiggyBankOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *PiggyBanksApiService) UpdatePiggyBank(ctx context.Context, body PiggyBankUpdate, id string, localVarOptionals *PiggyBanksApiUpdatePiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
func (a *PiggyBanksApiService) UpdatePiggyBank(ctx context.Context, body PiggyBankUpdate, id string, localVarOptionals *PiggyBanksApiUpdatePiggyBankOpts) (PiggyBankSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Put")
|
localVarHttpMethod = strings.ToUpper("Put")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue PiggyBankSingle
|
localVarReturnValue PiggyBankSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -930,76 +934,76 @@ func (a *PiggyBanksApiService) UpdatePiggyBank(ctx context.Context, body PiggyBa
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v PiggyBankSingle
|
var v PiggyBankSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type RecurrencesApiService service
|
type RecurrencesApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService Delete a recurring transaction.
|
RecurrencesApiService Delete a recurring transaction.
|
||||||
Delete a recurring transaction. Transactions created by the recurring transaction will not be deleted.
|
Delete a recurring transaction. Transactions created by the recurring transaction will not be deleted.
|
||||||
@ -37,7 +37,7 @@ Delete a recurring transaction. Transactions created by the recurring transactio
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiDeleteRecurrenceOpts struct {
|
type RecurrencesApiDeleteRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) DeleteRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiDeleteRecurrenceOpts) (*http.Response, error) {
|
func (a *RecurrencesApiService) DeleteRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiDeleteRecurrenceOpts) (*http.Response, error) {
|
||||||
@ -46,7 +46,6 @@ func (a *RecurrencesApiService) DeleteRecurrence(ctx context.Context, id string,
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -93,57 +92,57 @@ func (a *RecurrencesApiService) DeleteRecurrence(ctx context.Context, id string,
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService Get a single recurring transaction.
|
RecurrencesApiService Get a single recurring transaction.
|
||||||
Get a single recurring transaction.
|
Get a single recurring transaction.
|
||||||
@ -155,15 +154,15 @@ Get a single recurring transaction.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiGetRecurrenceOpts struct {
|
type RecurrencesApiGetRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) GetRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiGetRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
func (a *RecurrencesApiService) GetRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiGetRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RecurrenceSingle
|
localVarReturnValue RecurrenceSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -213,72 +212,73 @@ func (a *RecurrencesApiService) GetRecurrence(ctx context.Context, id string, lo
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RecurrenceSingle
|
var v RecurrenceSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService List all recurring transactions.
|
RecurrencesApiService List all recurring transactions.
|
||||||
List all recurring transactions.
|
List all recurring transactions.
|
||||||
@ -291,17 +291,17 @@ List all recurring transactions.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiListRecurrenceOpts struct {
|
type RecurrencesApiListRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) ListRecurrence(ctx context.Context, localVarOptionals *RecurrencesApiListRecurrenceOpts) (RecurrenceArray, *http.Response, error) {
|
func (a *RecurrencesApiService) ListRecurrence(ctx context.Context, localVarOptionals *RecurrencesApiListRecurrenceOpts) (RecurrenceArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RecurrenceArray
|
localVarReturnValue RecurrenceArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -356,72 +356,73 @@ func (a *RecurrencesApiService) ListRecurrence(ctx context.Context, localVarOpti
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RecurrenceArray
|
var v RecurrenceArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService List all transactions created by a recurring transaction.
|
RecurrencesApiService List all transactions created by a recurring transaction.
|
||||||
List all transactions created by a recurring transaction, optionally limited to the date ranges specified.
|
List all transactions created by a recurring transaction, optionally limited to the date ranges specified.
|
||||||
@ -431,27 +432,27 @@ List all transactions created by a recurring transaction, optionally limited to
|
|||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
||||||
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
||||||
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
||||||
* @param "End" (optional.String) - A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
* @param "End" (optional.String) - A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
||||||
* @param "Type_" (optional.Interface of TransactionTypeFilter) - Optional filter on the transaction type(s) returned
|
* @param "Type_" (optional.Interface of TransactionTypeFilter) - Optional filter on the transaction type(s) returned
|
||||||
@return TransactionArray
|
@return TransactionArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiListTransactionByRecurrenceOpts struct {
|
type RecurrencesApiListTransactionByRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
Start optional.String
|
Start optional.String
|
||||||
End optional.String
|
End optional.String
|
||||||
Type_ optional.Interface
|
Type_ optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) ListTransactionByRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiListTransactionByRecurrenceOpts) (TransactionArray, *http.Response, error) {
|
func (a *RecurrencesApiService) ListTransactionByRecurrence(ctx context.Context, id string, localVarOptionals *RecurrencesApiListTransactionByRecurrenceOpts) (TransactionArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TransactionArray
|
localVarReturnValue TransactionArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -516,72 +517,73 @@ func (a *RecurrencesApiService) ListTransactionByRecurrence(ctx context.Context,
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TransactionArray
|
var v TransactionArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService Store a new recurring transaction
|
RecurrencesApiService Store a new recurring transaction
|
||||||
Creates a new recurring transaction. The data required can be submitted as a JSON body or as a list of parameters.
|
Creates a new recurring transaction. The data required can be submitted as a JSON body or as a list of parameters.
|
||||||
@ -593,15 +595,15 @@ Creates a new recurring transaction. The data required can be submitted as a JSO
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiStoreRecurrenceOpts struct {
|
type RecurrencesApiStoreRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) StoreRecurrence(ctx context.Context, body RecurrenceStore, localVarOptionals *RecurrencesApiStoreRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
func (a *RecurrencesApiService) StoreRecurrence(ctx context.Context, body RecurrenceStore, localVarOptionals *RecurrencesApiStoreRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Post")
|
localVarHttpMethod = strings.ToUpper("Post")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RecurrenceSingle
|
localVarReturnValue RecurrenceSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -652,82 +654,83 @@ func (a *RecurrencesApiService) StoreRecurrence(ctx context.Context, body Recurr
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RecurrenceSingle
|
var v RecurrenceSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RecurrencesApiService Update existing recurring transaction.
|
RecurrencesApiService Update existing recurring transaction.
|
||||||
Update existing recurring transaction.
|
Update existing recurring transaction.
|
||||||
@ -740,15 +743,15 @@ Update existing recurring transaction.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RecurrencesApiUpdateRecurrenceOpts struct {
|
type RecurrencesApiUpdateRecurrenceOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RecurrencesApiService) UpdateRecurrence(ctx context.Context, body RecurrenceUpdate, id string, localVarOptionals *RecurrencesApiUpdateRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
func (a *RecurrencesApiService) UpdateRecurrence(ctx context.Context, body RecurrenceUpdate, id string, localVarOptionals *RecurrencesApiUpdateRecurrenceOpts) (RecurrenceSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Put")
|
localVarHttpMethod = strings.ToUpper("Put")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RecurrenceSingle
|
localVarReturnValue RecurrenceSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -800,76 +803,76 @@ func (a *RecurrencesApiService) UpdateRecurrence(ctx context.Context, body Recur
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RecurrenceSingle
|
var v RecurrenceSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
556
api_rules.go
556
api_rules.go
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type RulesApiService service
|
type RulesApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Delete an rule.
|
RulesApiService Delete an rule.
|
||||||
Delete an rule.
|
Delete an rule.
|
||||||
@ -37,7 +37,7 @@ Delete an rule.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiDeleteRuleOpts struct {
|
type RulesApiDeleteRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) DeleteRule(ctx context.Context, id string, localVarOptionals *RulesApiDeleteRuleOpts) (*http.Response, error) {
|
func (a *RulesApiService) DeleteRule(ctx context.Context, id string, localVarOptionals *RulesApiDeleteRuleOpts) (*http.Response, error) {
|
||||||
@ -46,7 +46,6 @@ func (a *RulesApiService) DeleteRule(ctx context.Context, id string, localVarOpt
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -93,57 +92,57 @@ func (a *RulesApiService) DeleteRule(ctx context.Context, id string, localVarOpt
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Fire the rule on your transactions.
|
RulesApiService Fire the rule on your transactions.
|
||||||
Fire the rule group on your transactions. Changes will be made by the rules in the group! Limit the result if you want to.
|
Fire the rule group on your transactions. Changes will be made by the rules in the group! Limit the result if you want to.
|
||||||
@ -151,17 +150,17 @@ Fire the rule group on your transactions. Changes will be made by the rules in t
|
|||||||
* @param id The ID of the rule.
|
* @param id The ID of the rule.
|
||||||
* @param optional nil or *RulesApiFireRuleOpts - Optional Parameters:
|
* @param optional nil or *RulesApiFireRuleOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. If the start date is not present, it will be set to one year ago. If you use this field, both the start date and the end date must be present.
|
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. If the start date is not present, it will be set to one year ago. If you use this field, both the start date and the end date must be present.
|
||||||
* @param "End" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. If the end date is not present, it will be set to today. If you use this field, both the start date and the end date must be present.
|
* @param "End" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. If the end date is not present, it will be set to today. If you use this field, both the start date and the end date must be present.
|
||||||
* @param "Accounts" (optional.Interface of []int64) - Limit the triggering of the rule to these asset accounts or liabilities. Only asset accounts and liabilities will be accepted. Other types will be silently dropped.
|
* @param "Accounts" (optional.Interface of []int64) - Limit the triggering of the rule to these asset accounts or liabilities. Only asset accounts and liabilities will be accepted. Other types will be silently dropped.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiFireRuleOpts struct {
|
type RulesApiFireRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Start optional.String
|
Start optional.String
|
||||||
End optional.String
|
End optional.String
|
||||||
Accounts optional.Interface
|
Accounts optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) FireRule(ctx context.Context, id string, localVarOptionals *RulesApiFireRuleOpts) (*http.Response, error) {
|
func (a *RulesApiService) FireRule(ctx context.Context, id string, localVarOptionals *RulesApiFireRuleOpts) (*http.Response, error) {
|
||||||
@ -170,7 +169,6 @@ func (a *RulesApiService) FireRule(ctx context.Context, id string, localVarOptio
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -226,57 +224,57 @@ func (a *RulesApiService) FireRule(ctx context.Context, id string, localVarOptio
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Get a single rule.
|
RulesApiService Get a single rule.
|
||||||
Get a single rule.
|
Get a single rule.
|
||||||
@ -288,15 +286,15 @@ Get a single rule.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiGetRuleOpts struct {
|
type RulesApiGetRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) GetRule(ctx context.Context, id string, localVarOptionals *RulesApiGetRuleOpts) (RuleSingle, *http.Response, error) {
|
func (a *RulesApiService) GetRule(ctx context.Context, id string, localVarOptionals *RulesApiGetRuleOpts) (RuleSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RuleSingle
|
localVarReturnValue RuleSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -346,72 +344,73 @@ func (a *RulesApiService) GetRule(ctx context.Context, id string, localVarOption
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RuleSingle
|
var v RuleSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService List all rules.
|
RulesApiService List all rules.
|
||||||
List all rules.
|
List all rules.
|
||||||
@ -424,17 +423,17 @@ List all rules.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiListRuleOpts struct {
|
type RulesApiListRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) ListRule(ctx context.Context, localVarOptionals *RulesApiListRuleOpts) (RuleArray, *http.Response, error) {
|
func (a *RulesApiService) ListRule(ctx context.Context, localVarOptionals *RulesApiListRuleOpts) (RuleArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RuleArray
|
localVarReturnValue RuleArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -489,72 +488,73 @@ func (a *RulesApiService) ListRule(ctx context.Context, localVarOptionals *Rules
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RuleArray
|
var v RuleArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Store a new rule
|
RulesApiService Store a new rule
|
||||||
Creates a new rule. The data required can be submitted as a JSON body or as a list of parameters.
|
Creates a new rule. The data required can be submitted as a JSON body or as a list of parameters.
|
||||||
@ -566,15 +566,15 @@ Creates a new rule. The data required can be submitted as a JSON body or as a li
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiStoreRuleOpts struct {
|
type RulesApiStoreRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) StoreRule(ctx context.Context, body RuleStore, localVarOptionals *RulesApiStoreRuleOpts) (RuleSingle, *http.Response, error) {
|
func (a *RulesApiService) StoreRule(ctx context.Context, body RuleStore, localVarOptionals *RulesApiStoreRuleOpts) (RuleSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Post")
|
localVarHttpMethod = strings.ToUpper("Post")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RuleSingle
|
localVarReturnValue RuleSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -625,82 +625,83 @@ func (a *RulesApiService) StoreRule(ctx context.Context, body RuleStore, localVa
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RuleSingle
|
var v RuleSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Test which transactions would be hit by the rule. No changes will be made.
|
RulesApiService Test which transactions would be hit by the rule. No changes will be made.
|
||||||
Test which transactions would be hit by the rule. No changes will be made. Limit the result if you want to.
|
Test which transactions would be hit by the rule. No changes will be made. Limit the result if you want to.
|
||||||
@ -708,25 +709,25 @@ Test which transactions would be hit by the rule. No changes will be made. Limit
|
|||||||
* @param id The ID of the rule.
|
* @param id The ID of the rule.
|
||||||
* @param optional nil or *RulesApiTestRuleOpts - Optional Parameters:
|
* @param optional nil or *RulesApiTestRuleOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
||||||
* @param "End" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
* @param "End" (optional.String) - A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
||||||
* @param "Accounts" (optional.Interface of []int64) - Limit the testing of the rule to these asset accounts or liabilities. Only asset accounts and liabilities will be accepted. Other types will be silently dropped.
|
* @param "Accounts" (optional.Interface of []int64) - Limit the testing of the rule to these asset accounts or liabilities. Only asset accounts and liabilities will be accepted. Other types will be silently dropped.
|
||||||
@return TransactionArray
|
@return TransactionArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiTestRuleOpts struct {
|
type RulesApiTestRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Start optional.String
|
Start optional.String
|
||||||
End optional.String
|
End optional.String
|
||||||
Accounts optional.Interface
|
Accounts optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) TestRule(ctx context.Context, id string, localVarOptionals *RulesApiTestRuleOpts) (TransactionArray, *http.Response, error) {
|
func (a *RulesApiService) TestRule(ctx context.Context, id string, localVarOptionals *RulesApiTestRuleOpts) (TransactionArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TransactionArray
|
localVarReturnValue TransactionArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -785,72 +786,73 @@ func (a *RulesApiService) TestRule(ctx context.Context, id string, localVarOptio
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TransactionArray
|
var v TransactionArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RulesApiService Update existing rule.
|
RulesApiService Update existing rule.
|
||||||
Update existing rule.
|
Update existing rule.
|
||||||
@ -863,15 +865,15 @@ Update existing rule.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type RulesApiUpdateRuleOpts struct {
|
type RulesApiUpdateRuleOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *RulesApiService) UpdateRule(ctx context.Context, body RuleUpdate, id string, localVarOptionals *RulesApiUpdateRuleOpts) (RuleSingle, *http.Response, error) {
|
func (a *RulesApiService) UpdateRule(ctx context.Context, body RuleUpdate, id string, localVarOptionals *RulesApiUpdateRuleOpts) (RuleSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Put")
|
localVarHttpMethod = strings.ToUpper("Put")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue RuleSingle
|
localVarReturnValue RuleSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -923,76 +925,76 @@ func (a *RulesApiService) UpdateRule(ctx context.Context, body RuleUpdate, id st
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v RuleSingle
|
var v RuleSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
171
api_search.go
171
api_search.go
@ -1,22 +1,21 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -25,6 +24,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SearchApiService service
|
type SearchApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
SearchApiService Search for accounts
|
SearchApiService Search for accounts
|
||||||
Search for accounts
|
Search for accounts
|
||||||
@ -40,18 +40,18 @@ Search for accounts
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type SearchApiSearchAccountsOpts struct {
|
type SearchApiSearchAccountsOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
Type_ optional.Interface
|
Type_ optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SearchApiService) SearchAccounts(ctx context.Context, query string, field AccountSearchFieldFilter, localVarOptionals *SearchApiSearchAccountsOpts) (AccountArray, *http.Response, error) {
|
func (a *SearchApiService) SearchAccounts(ctx context.Context, query string, field AccountSearchFieldFilter, localVarOptionals *SearchApiSearchAccountsOpts) (AccountArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue AccountArray
|
localVarReturnValue AccountArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -111,72 +111,73 @@ func (a *SearchApiService) SearchAccounts(ctx context.Context, query string, fie
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v AccountArray
|
var v AccountArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
SearchApiService Search for transactions
|
SearchApiService Search for transactions
|
||||||
Searches through the users transactions.
|
Searches through the users transactions.
|
||||||
@ -190,17 +191,17 @@ Searches through the users transactions.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type SearchApiSearchTransactionsOpts struct {
|
type SearchApiSearchTransactionsOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SearchApiService) SearchTransactions(ctx context.Context, query string, localVarOptionals *SearchApiSearchTransactionsOpts) (TransactionArray, *http.Response, error) {
|
func (a *SearchApiService) SearchTransactions(ctx context.Context, query string, localVarOptionals *SearchApiSearchTransactionsOpts) (TransactionArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TransactionArray
|
localVarReturnValue TransactionArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -256,66 +257,66 @@ func (a *SearchApiService) SearchTransactions(ctx context.Context, query string,
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TransactionArray
|
var v TransactionArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -25,29 +24,30 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SummaryApiService service
|
type SummaryApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
SummaryApiService Returns basic sums of the users data.
|
SummaryApiService Returns basic sums of the users data.
|
||||||
Returns basic sums of the users data, like the net worth, spent and earned amounts. It is multi-currency, and is used in Firefly III to populate the dashboard.
|
Returns basic sums of the users data, like the net worth, spent and earned amounts. It is multi-currency, and is used in Firefly III to populate the dashboard.
|
||||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
* @param start A date formatted YYYY-MM-DD.
|
* @param start A date formatted YYYY-MM-DD.
|
||||||
* @param end A date formatted YYYY-MM-DD.
|
* @param end A date formatted YYYY-MM-DD.
|
||||||
* @param optional nil or *SummaryApiGetBasicSummaryOpts - Optional Parameters:
|
* @param optional nil or *SummaryApiGetBasicSummaryOpts - Optional Parameters:
|
||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "CurrencyCode" (optional.String) - A currency code like EUR or USD, to filter the result.
|
* @param "CurrencyCode" (optional.String) - A currency code like EUR or USD, to filter the result.
|
||||||
@return map[string]BasicSummaryEntry
|
@return map[string]BasicSummaryEntry
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type SummaryApiGetBasicSummaryOpts struct {
|
type SummaryApiGetBasicSummaryOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
CurrencyCode optional.String
|
CurrencyCode optional.String
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SummaryApiService) GetBasicSummary(ctx context.Context, start string, end string, localVarOptionals *SummaryApiGetBasicSummaryOpts) (map[string]BasicSummaryEntry, *http.Response, error) {
|
func (a *SummaryApiService) GetBasicSummary(ctx context.Context, start string, end string, localVarOptionals *SummaryApiGetBasicSummaryOpts) (map[string]BasicSummaryEntry, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue map[string]BasicSummaryEntry
|
localVarReturnValue map[string]BasicSummaryEntry
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -101,66 +101,66 @@ func (a *SummaryApiService) GetBasicSummary(ctx context.Context, start string, e
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v map[string]BasicSummaryEntry
|
var v map[string]BasicSummaryEntry
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
576
api_tags.go
576
api_tags.go
@ -1,23 +1,22 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"github.com/antihax/optional"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"fmt"
|
|
||||||
"github.com/antihax/optional"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Linger please
|
// Linger please
|
||||||
@ -26,6 +25,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type TagsApiService service
|
type TagsApiService service
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService Delete an tag.
|
TagsApiService Delete an tag.
|
||||||
Delete an tag.
|
Delete an tag.
|
||||||
@ -37,7 +37,7 @@ Delete an tag.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiDeleteTagOpts struct {
|
type TagsApiDeleteTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) DeleteTag(ctx context.Context, tag string, localVarOptionals *TagsApiDeleteTagOpts) (*http.Response, error) {
|
func (a *TagsApiService) DeleteTag(ctx context.Context, tag string, localVarOptionals *TagsApiDeleteTagOpts) (*http.Response, error) {
|
||||||
@ -46,7 +46,6 @@ func (a *TagsApiService) DeleteTag(ctx context.Context, tag string, localVarOpti
|
|||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -93,57 +92,57 @@ func (a *TagsApiService) DeleteTag(ctx context.Context, tag string, localVarOpti
|
|||||||
return localVarHttpResponse, err
|
return localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarHttpResponse, newErr
|
return localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarHttpResponse, nil
|
return localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService Get a single tag.
|
TagsApiService Get a single tag.
|
||||||
Get a single tag.
|
Get a single tag.
|
||||||
@ -157,17 +156,17 @@ Get a single tag.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiGetTagOpts struct {
|
type TagsApiGetTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) GetTag(ctx context.Context, tag string, localVarOptionals *TagsApiGetTagOpts) (TagSingle, *http.Response, error) {
|
func (a *TagsApiService) GetTag(ctx context.Context, tag string, localVarOptionals *TagsApiGetTagOpts) (TagSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TagSingle
|
localVarReturnValue TagSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -223,72 +222,73 @@ func (a *TagsApiService) GetTag(ctx context.Context, tag string, localVarOptiona
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TagSingle
|
var v TagSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService Lists all attachments.
|
TagsApiService Lists all attachments.
|
||||||
Lists all attachments.
|
Lists all attachments.
|
||||||
@ -302,17 +302,17 @@ Lists all attachments.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiListAttachmentByTagOpts struct {
|
type TagsApiListAttachmentByTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) ListAttachmentByTag(ctx context.Context, tag string, localVarOptionals *TagsApiListAttachmentByTagOpts) (AttachmentArray, *http.Response, error) {
|
func (a *TagsApiService) ListAttachmentByTag(ctx context.Context, tag string, localVarOptionals *TagsApiListAttachmentByTagOpts) (AttachmentArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue AttachmentArray
|
localVarReturnValue AttachmentArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -368,72 +368,73 @@ func (a *TagsApiService) ListAttachmentByTag(ctx context.Context, tag string, lo
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v AttachmentArray
|
var v AttachmentArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService List all tags.
|
TagsApiService List all tags.
|
||||||
List all of the user's tags.
|
List all of the user's tags.
|
||||||
@ -446,17 +447,17 @@ List all of the user's tags.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiListTagOpts struct {
|
type TagsApiListTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) ListTag(ctx context.Context, localVarOptionals *TagsApiListTagOpts) (TagArray, *http.Response, error) {
|
func (a *TagsApiService) ListTag(ctx context.Context, localVarOptionals *TagsApiListTagOpts) (TagArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TagArray
|
localVarReturnValue TagArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -511,72 +512,73 @@ func (a *TagsApiService) ListTag(ctx context.Context, localVarOptionals *TagsApi
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TagArray
|
var v TagArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService List all transactions with this tag.
|
TagsApiService List all transactions with this tag.
|
||||||
List all transactions with this tag.
|
List all transactions with this tag.
|
||||||
@ -586,27 +588,27 @@ List all transactions with this tag.
|
|||||||
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
* @param "XTraceId" (optional.Interface of string) - Unique identifier associated with this request.
|
||||||
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
* @param "Limit" (optional.Int32) - Number of items per page. The default pagination is per 50 items.
|
||||||
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
* @param "Page" (optional.Int32) - Page number. The default pagination is per 50 items.
|
||||||
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
|
* @param "Start" (optional.String) - A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
|
||||||
* @param "End" (optional.String) - A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
|
* @param "End" (optional.String) - A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
|
||||||
* @param "Type_" (optional.Interface of TransactionTypeFilter) - Optional filter on the transaction type(s) returned.
|
* @param "Type_" (optional.Interface of TransactionTypeFilter) - Optional filter on the transaction type(s) returned.
|
||||||
@return TransactionArray
|
@return TransactionArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiListTransactionByTagOpts struct {
|
type TagsApiListTransactionByTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
Limit optional.Int32
|
Limit optional.Int32
|
||||||
Page optional.Int32
|
Page optional.Int32
|
||||||
Start optional.String
|
Start optional.String
|
||||||
End optional.String
|
End optional.String
|
||||||
Type_ optional.Interface
|
Type_ optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) ListTransactionByTag(ctx context.Context, tag string, localVarOptionals *TagsApiListTransactionByTagOpts) (TransactionArray, *http.Response, error) {
|
func (a *TagsApiService) ListTransactionByTag(ctx context.Context, tag string, localVarOptionals *TagsApiListTransactionByTagOpts) (TransactionArray, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Get")
|
localVarHttpMethod = strings.ToUpper("Get")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TransactionArray
|
localVarReturnValue TransactionArray
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -671,72 +673,73 @@ func (a *TagsApiService) ListTransactionByTag(ctx context.Context, tag string, l
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TransactionArray
|
var v TransactionArray
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService Store a new tag
|
TagsApiService Store a new tag
|
||||||
Creates a new tag. The data required can be submitted as a JSON body or as a list of parameters.
|
Creates a new tag. The data required can be submitted as a JSON body or as a list of parameters.
|
||||||
@ -748,15 +751,15 @@ Creates a new tag. The data required can be submitted as a JSON body or as a lis
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiStoreTagOpts struct {
|
type TagsApiStoreTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) StoreTag(ctx context.Context, body TagModelStore, localVarOptionals *TagsApiStoreTagOpts) (TagSingle, *http.Response, error) {
|
func (a *TagsApiService) StoreTag(ctx context.Context, body TagModelStore, localVarOptionals *TagsApiStoreTagOpts) (TagSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Post")
|
localVarHttpMethod = strings.ToUpper("Post")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TagSingle
|
localVarReturnValue TagSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -807,82 +810,83 @@ func (a *TagsApiService) StoreTag(ctx context.Context, body TagModelStore, local
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TagSingle
|
var v TagSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return localVarReturnValue, localVarHttpResponse, nil
|
return localVarReturnValue, localVarHttpResponse, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TagsApiService Update existing tag.
|
TagsApiService Update existing tag.
|
||||||
Update existing tag.
|
Update existing tag.
|
||||||
@ -895,15 +899,15 @@ Update existing tag.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type TagsApiUpdateTagOpts struct {
|
type TagsApiUpdateTagOpts struct {
|
||||||
XTraceId optional.Interface
|
XTraceId optional.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *TagsApiService) UpdateTag(ctx context.Context, body TagModelUpdate, tag string, localVarOptionals *TagsApiUpdateTagOpts) (TagSingle, *http.Response, error) {
|
func (a *TagsApiService) UpdateTag(ctx context.Context, body TagModelUpdate, tag string, localVarOptionals *TagsApiUpdateTagOpts) (TagSingle, *http.Response, error) {
|
||||||
var (
|
var (
|
||||||
localVarHttpMethod = strings.ToUpper("Put")
|
localVarHttpMethod = strings.ToUpper("Put")
|
||||||
localVarPostBody interface{}
|
localVarPostBody interface{}
|
||||||
localVarFileName string
|
localVarFileName string
|
||||||
localVarFileBytes []byte
|
localVarFileBytes []byte
|
||||||
localVarReturnValue TagSingle
|
localVarReturnValue TagSingle
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -955,76 +959,76 @@ func (a *TagsApiService) UpdateTag(ctx context.Context, body TagModelUpdate, tag
|
|||||||
|
|
||||||
if localVarHttpResponse.StatusCode < 300 {
|
if localVarHttpResponse.StatusCode < 300 {
|
||||||
// If we succeed, return the data, otherwise pass on to decode error.
|
// If we succeed, return the data, otherwise pass on to decode error.
|
||||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return localVarReturnValue, localVarHttpResponse, err
|
return localVarReturnValue, localVarHttpResponse, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if localVarHttpResponse.StatusCode >= 300 {
|
if localVarHttpResponse.StatusCode >= 300 {
|
||||||
newErr := GenericSwaggerError{
|
newErr := GenericSwaggerError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHttpResponse.Status,
|
error: localVarHttpResponse.Status,
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 200 {
|
if localVarHttpResponse.StatusCode == 200 {
|
||||||
var v TagSingle
|
var v TagSingle
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 422 {
|
if localVarHttpResponse.StatusCode == 422 {
|
||||||
var v ValidationErrorResponse
|
var v ValidationErrorResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 401 {
|
if localVarHttpResponse.StatusCode == 401 {
|
||||||
var v UnauthenticatedResponse
|
var v UnauthenticatedResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 404 {
|
if localVarHttpResponse.StatusCode == 404 {
|
||||||
var v NotFoundResponse
|
var v NotFoundResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 400 {
|
if localVarHttpResponse.StatusCode == 400 {
|
||||||
var v BadRequestResponse
|
var v BadRequestResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
if localVarHttpResponse.StatusCode == 500 {
|
if localVarHttpResponse.StatusCode == 500 {
|
||||||
var v InternalExceptionResponse
|
var v InternalExceptionResponse
|
||||||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
|
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = err.Error()
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
|
||||||
}
|
|
||||||
newErr.model = v
|
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
|
}
|
||||||
|
newErr.model = v
|
||||||
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
return localVarReturnValue, localVarHttpResponse, newErr
|
return localVarReturnValue, localVarHttpResponse, newErr
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@
|
|||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
838
api_webhooks.go
838
api_webhooks.go
File diff suppressed because it is too large
Load Diff
24
client.go
24
client.go
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
@ -385,17 +385,17 @@ func (c *APIClient) prepareRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||||
if strings.Contains(contentType, "application/xml") {
|
if strings.Contains(contentType, "application/xml") {
|
||||||
if err = xml.Unmarshal(b, v); err != nil {
|
if err = xml.Unmarshal(b, v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
|
||||||
return nil
|
|
||||||
} else if strings.Contains(contentType, "application/json") {
|
|
||||||
if err = json.Unmarshal(b, v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
} else if strings.Contains(contentType, "application/json") {
|
||||||
|
if err = json.Unmarshal(b, v); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return errors.New("undefined response type")
|
return errors.New("undefined response type")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -18,40 +19,40 @@ type Account struct {
|
|||||||
// If omitted, defaults to true.
|
// If omitted, defaults to true.
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
// Order of the account. Is NULL if account is not asset or liability.
|
// Order of the account. Is NULL if account is not asset or liability.
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Type_ *ShortAccountTypeProperty `json:"type"`
|
Type_ *ShortAccountTypeProperty `json:"type"`
|
||||||
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
CurrentBalance string `json:"current_balance,omitempty"`
|
CurrentBalance string `json:"current_balance,omitempty"`
|
||||||
// The timestamp for this date is always 23:59:59, to indicate it's the balance at the very END of that particular day.
|
// The timestamp for this date is always 23:59:59, to indicate it's the balance at the very END of that particular day.
|
||||||
CurrentBalanceDate time.Time `json:"current_balance_date,omitempty"`
|
CurrentBalanceDate time.Time `json:"current_balance_date,omitempty"`
|
||||||
Iban string `json:"iban,omitempty"`
|
Iban string `json:"iban,omitempty"`
|
||||||
Bic string `json:"bic,omitempty"`
|
Bic string `json:"bic,omitempty"`
|
||||||
AccountNumber string `json:"account_number,omitempty"`
|
AccountNumber string `json:"account_number,omitempty"`
|
||||||
// Represents the opening balance, the initial amount this account holds.
|
// Represents the opening balance, the initial amount this account holds.
|
||||||
OpeningBalance string `json:"opening_balance,omitempty"`
|
OpeningBalance string `json:"opening_balance,omitempty"`
|
||||||
// Represents the current debt for liabilities.
|
// Represents the current debt for liabilities.
|
||||||
CurrentDebt string `json:"current_debt,omitempty"`
|
CurrentDebt string `json:"current_debt,omitempty"`
|
||||||
// Represents the date of the opening balance.
|
// Represents the date of the opening balance.
|
||||||
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
||||||
VirtualBalance string `json:"virtual_balance,omitempty"`
|
VirtualBalance string `json:"virtual_balance,omitempty"`
|
||||||
// If omitted, defaults to true.
|
// If omitted, defaults to true.
|
||||||
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
||||||
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
||||||
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
||||||
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
||||||
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
||||||
LiabilityDirection *LiabilityDirectionProperty `json:"liability_direction,omitempty"`
|
LiabilityDirection *LiabilityDirectionProperty `json:"liability_direction,omitempty"`
|
||||||
// Mandatory when type is liability. Interest percentage.
|
// Mandatory when type is liability. Interest percentage.
|
||||||
Interest string `json:"interest,omitempty"`
|
Interest string `json:"interest,omitempty"`
|
||||||
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
||||||
Latitude float64 `json:"latitude,omitempty"`
|
Latitude float64 `json:"latitude,omitempty"`
|
||||||
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountArray struct {
|
type AccountArray struct {
|
||||||
Data []AccountRead `json:"data"`
|
Data []AccountRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountRead struct {
|
type AccountRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *Account `json:"attributes"`
|
Attributes *Account `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// AccountRoleProperty : Is only mandatory when the type is asset.
|
// AccountRoleProperty : Is only mandatory when the type is asset.
|
||||||
type AccountRoleProperty string
|
type AccountRoleProperty string
|
||||||
|
|
||||||
// List of AccountRoleProperty
|
// List of AccountRoleProperty
|
||||||
const (
|
const (
|
||||||
DEFAULT_ASSET_AccountRoleProperty AccountRoleProperty = "defaultAsset"
|
DEFAULT_ASSET_AccountRoleProperty AccountRoleProperty = "defaultAsset"
|
||||||
SHARED_ASSET_AccountRoleProperty AccountRoleProperty = "sharedAsset"
|
SHARED_ASSET_AccountRoleProperty AccountRoleProperty = "sharedAsset"
|
||||||
SAVING_ASSET_AccountRoleProperty AccountRoleProperty = "savingAsset"
|
SAVING_ASSET_AccountRoleProperty AccountRoleProperty = "savingAsset"
|
||||||
CC_ASSET_AccountRoleProperty AccountRoleProperty = "ccAsset"
|
CC_ASSET_AccountRoleProperty AccountRoleProperty = "ccAsset"
|
||||||
CASH_WALLET_ASSET_AccountRoleProperty AccountRoleProperty = "cashWalletAsset"
|
CASH_WALLET_ASSET_AccountRoleProperty AccountRoleProperty = "cashWalletAsset"
|
||||||
NULL_AccountRoleProperty AccountRoleProperty = ""
|
NULL_AccountRoleProperty AccountRoleProperty = ""
|
||||||
)
|
)
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountSearchFieldFilter string
|
type AccountSearchFieldFilter string
|
||||||
|
|
||||||
// List of AccountSearchFieldFilter
|
// List of AccountSearchFieldFilter
|
||||||
const (
|
const (
|
||||||
ALL_AccountSearchFieldFilter AccountSearchFieldFilter = "all"
|
ALL_AccountSearchFieldFilter AccountSearchFieldFilter = "all"
|
||||||
IBAN_AccountSearchFieldFilter AccountSearchFieldFilter = "iban"
|
IBAN_AccountSearchFieldFilter AccountSearchFieldFilter = "iban"
|
||||||
NAME_AccountSearchFieldFilter AccountSearchFieldFilter = "name"
|
NAME_AccountSearchFieldFilter AccountSearchFieldFilter = "name"
|
||||||
NUMBER_AccountSearchFieldFilter AccountSearchFieldFilter = "number"
|
NUMBER_AccountSearchFieldFilter AccountSearchFieldFilter = "number"
|
||||||
ID_AccountSearchFieldFilter AccountSearchFieldFilter = "id"
|
ID_AccountSearchFieldFilter AccountSearchFieldFilter = "id"
|
||||||
)
|
)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountSingle struct {
|
type AccountSingle struct {
|
||||||
Data *AccountRead `json:"data"`
|
Data *AccountRead `json:"data"`
|
||||||
|
@ -1,28 +1,29 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccountStore struct {
|
type AccountStore struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Type_ *ShortAccountTypeProperty `json:"type"`
|
Type_ *ShortAccountTypeProperty `json:"type"`
|
||||||
Iban string `json:"iban,omitempty"`
|
Iban string `json:"iban,omitempty"`
|
||||||
Bic string `json:"bic,omitempty"`
|
Bic string `json:"bic,omitempty"`
|
||||||
AccountNumber string `json:"account_number,omitempty"`
|
AccountNumber string `json:"account_number,omitempty"`
|
||||||
// Represents the opening balance, the initial amount this account holds.
|
// Represents the opening balance, the initial amount this account holds.
|
||||||
OpeningBalance string `json:"opening_balance,omitempty"`
|
OpeningBalance string `json:"opening_balance,omitempty"`
|
||||||
// Represents the date of the opening balance.
|
// Represents the date of the opening balance.
|
||||||
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
||||||
VirtualBalance string `json:"virtual_balance,omitempty"`
|
VirtualBalance string `json:"virtual_balance,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
@ -32,17 +33,17 @@ type AccountStore struct {
|
|||||||
// Order of the account
|
// Order of the account
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
// If omitted, defaults to true.
|
// If omitted, defaults to true.
|
||||||
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
||||||
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
||||||
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
||||||
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
||||||
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
||||||
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
||||||
LiabilityDirection *LiabilityDirectionProperty `json:"liability_direction,omitempty"`
|
LiabilityDirection *LiabilityDirectionProperty `json:"liability_direction,omitempty"`
|
||||||
// Mandatory when type is liability. Interest percentage.
|
// Mandatory when type is liability. Interest percentage.
|
||||||
Interest string `json:"interest,omitempty"`
|
Interest string `json:"interest,omitempty"`
|
||||||
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
||||||
Latitude float64 `json:"latitude,omitempty"`
|
Latitude float64 `json:"latitude,omitempty"`
|
||||||
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountTypeFilter string
|
type AccountTypeFilter string
|
||||||
|
|
||||||
// List of AccountTypeFilter
|
// List of AccountTypeFilter
|
||||||
const (
|
const (
|
||||||
ALL_AccountTypeFilter AccountTypeFilter = "all"
|
ALL_AccountTypeFilter AccountTypeFilter = "all"
|
||||||
ASSET_AccountTypeFilter AccountTypeFilter = "asset"
|
ASSET_AccountTypeFilter AccountTypeFilter = "asset"
|
||||||
CASH_AccountTypeFilter AccountTypeFilter = "cash"
|
CASH_AccountTypeFilter AccountTypeFilter = "cash"
|
||||||
EXPENSE_AccountTypeFilter AccountTypeFilter = "expense"
|
EXPENSE_AccountTypeFilter AccountTypeFilter = "expense"
|
||||||
REVENUE_AccountTypeFilter AccountTypeFilter = "revenue"
|
REVENUE_AccountTypeFilter AccountTypeFilter = "revenue"
|
||||||
SPECIAL_AccountTypeFilter AccountTypeFilter = "special"
|
SPECIAL_AccountTypeFilter AccountTypeFilter = "special"
|
||||||
HIDDEN_AccountTypeFilter AccountTypeFilter = "hidden"
|
HIDDEN_AccountTypeFilter AccountTypeFilter = "hidden"
|
||||||
LIABILITY_AccountTypeFilter AccountTypeFilter = "liability"
|
LIABILITY_AccountTypeFilter AccountTypeFilter = "liability"
|
||||||
LIABILITIES_AccountTypeFilter AccountTypeFilter = "liabilities"
|
LIABILITIES_AccountTypeFilter AccountTypeFilter = "liabilities"
|
||||||
DEFAULT_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Default account"
|
DEFAULT_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Default account"
|
||||||
CASH_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Cash account"
|
CASH_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Cash account"
|
||||||
ASSET_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Asset account"
|
ASSET_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Asset account"
|
||||||
EXPENSE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Expense account"
|
EXPENSE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Expense account"
|
||||||
REVENUE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Revenue account"
|
REVENUE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Revenue account"
|
||||||
INITIAL_BALANCE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Initial balance account"
|
INITIAL_BALANCE_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Initial balance account"
|
||||||
BENEFICIARY_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Beneficiary account"
|
BENEFICIARY_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Beneficiary account"
|
||||||
IMPORT_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Import account"
|
IMPORT_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Import account"
|
||||||
RECONCILIATION_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Reconciliation account"
|
RECONCILIATION_ACCOUNT_AccountTypeFilter AccountTypeFilter = "Reconciliation account"
|
||||||
LOAN_AccountTypeFilter AccountTypeFilter = "Loan"
|
LOAN_AccountTypeFilter AccountTypeFilter = "Loan"
|
||||||
DEBT_AccountTypeFilter AccountTypeFilter = "Debt"
|
DEBT_AccountTypeFilter AccountTypeFilter = "Debt"
|
||||||
MORTGAGE_AccountTypeFilter AccountTypeFilter = "Mortgage"
|
MORTGAGE_AccountTypeFilter AccountTypeFilter = "Mortgage"
|
||||||
)
|
)
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AccountTypeProperty string
|
type AccountTypeProperty string
|
||||||
|
|
||||||
// List of AccountTypeProperty
|
// List of AccountTypeProperty
|
||||||
const (
|
const (
|
||||||
DEFAULT_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Default account"
|
DEFAULT_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Default account"
|
||||||
CASH_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Cash account"
|
CASH_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Cash account"
|
||||||
ASSET_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Asset account"
|
ASSET_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Asset account"
|
||||||
EXPENSE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Expense account"
|
EXPENSE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Expense account"
|
||||||
REVENUE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Revenue account"
|
REVENUE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Revenue account"
|
||||||
INITIAL_BALANCE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Initial balance account"
|
INITIAL_BALANCE_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Initial balance account"
|
||||||
BENEFICIARY_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Beneficiary account"
|
BENEFICIARY_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Beneficiary account"
|
||||||
IMPORT_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Import account"
|
IMPORT_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Import account"
|
||||||
RECONCILIATION_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Reconciliation account"
|
RECONCILIATION_ACCOUNT_AccountTypeProperty AccountTypeProperty = "Reconciliation account"
|
||||||
LOAN_AccountTypeProperty AccountTypeProperty = "Loan"
|
LOAN_AccountTypeProperty AccountTypeProperty = "Loan"
|
||||||
DEBT_AccountTypeProperty AccountTypeProperty = "Debt"
|
DEBT_AccountTypeProperty AccountTypeProperty = "Debt"
|
||||||
MORTGAGE_AccountTypeProperty AccountTypeProperty = "Mortgage"
|
MORTGAGE_AccountTypeProperty AccountTypeProperty = "Mortgage"
|
||||||
)
|
)
|
||||||
|
@ -1,25 +1,26 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccountUpdate struct {
|
type AccountUpdate struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Iban string `json:"iban,omitempty"`
|
Iban string `json:"iban,omitempty"`
|
||||||
Bic string `json:"bic,omitempty"`
|
Bic string `json:"bic,omitempty"`
|
||||||
AccountNumber string `json:"account_number,omitempty"`
|
AccountNumber string `json:"account_number,omitempty"`
|
||||||
OpeningBalance string `json:"opening_balance,omitempty"`
|
OpeningBalance string `json:"opening_balance,omitempty"`
|
||||||
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
OpeningBalanceDate time.Time `json:"opening_balance_date,omitempty"`
|
||||||
VirtualBalance string `json:"virtual_balance,omitempty"`
|
VirtualBalance string `json:"virtual_balance,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
@ -29,16 +30,16 @@ type AccountUpdate struct {
|
|||||||
// Order of the account
|
// Order of the account
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
// If omitted, defaults to true.
|
// If omitted, defaults to true.
|
||||||
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
IncludeNetWorth bool `json:"include_net_worth,omitempty"`
|
||||||
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
AccountRole *AccountRoleProperty `json:"account_role,omitempty"`
|
||||||
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
CreditCardType *CreditCardTypeProperty `json:"credit_card_type,omitempty"`
|
||||||
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
|
||||||
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
MonthlyPaymentDate time.Time `json:"monthly_payment_date,omitempty"`
|
||||||
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
LiabilityType *LiabilityTypeProperty `json:"liability_type,omitempty"`
|
||||||
// Mandatory when type is liability. Interest percentage.
|
// Mandatory when type is liability. Interest percentage.
|
||||||
Interest string `json:"interest,omitempty"`
|
Interest string `json:"interest,omitempty"`
|
||||||
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
InterestPeriod *InterestPeriodProperty `json:"interest_period,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
|
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
|
||||||
Latitude float64 `json:"latitude,omitempty"`
|
Latitude float64 `json:"latitude,omitempty"`
|
||||||
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
|
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// AttachableType : The object class to which the attachment must be linked.
|
// AttachableType : The object class to which the attachment must be linked.
|
||||||
type AttachableType string
|
type AttachableType string
|
||||||
|
|
||||||
// List of AttachableType
|
// List of AttachableType
|
||||||
const (
|
const (
|
||||||
ACCOUNT_AttachableType AttachableType = "Account"
|
ACCOUNT_AttachableType AttachableType = "Account"
|
||||||
BUDGET_AttachableType AttachableType = "Budget"
|
BUDGET_AttachableType AttachableType = "Budget"
|
||||||
BILL_AttachableType AttachableType = "Bill"
|
BILL_AttachableType AttachableType = "Bill"
|
||||||
TRANSACTION_JOURNAL_AttachableType AttachableType = "TransactionJournal"
|
TRANSACTION_JOURNAL_AttachableType AttachableType = "TransactionJournal"
|
||||||
PIGGY_BANK_AttachableType AttachableType = "PiggyBank"
|
PIGGY_BANK_AttachableType AttachableType = "PiggyBank"
|
||||||
TAG_AttachableType AttachableType = "Tag"
|
TAG_AttachableType AttachableType = "Tag"
|
||||||
)
|
)
|
||||||
|
@ -1,30 +1,31 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Attachment struct {
|
type Attachment struct {
|
||||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||||
AttachableType *AttachableType `json:"attachable_type"`
|
AttachableType *AttachableType `json:"attachable_type"`
|
||||||
// ID of the model this attachment is linked to.
|
// ID of the model this attachment is linked to.
|
||||||
AttachableId string `json:"attachable_id"`
|
AttachableId string `json:"attachable_id"`
|
||||||
// MD5 hash of the file for basic duplicate detection.
|
// MD5 hash of the file for basic duplicate detection.
|
||||||
Md5 string `json:"md5,omitempty"`
|
Md5 string `json:"md5,omitempty"`
|
||||||
Filename string `json:"filename"`
|
Filename string `json:"filename"`
|
||||||
DownloadUrl string `json:"download_url,omitempty"`
|
DownloadUrl string `json:"download_url,omitempty"`
|
||||||
UploadUrl string `json:"upload_url,omitempty"`
|
UploadUrl string `json:"upload_url,omitempty"`
|
||||||
Title string `json:"title,omitempty"`
|
Title string `json:"title,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
Mime string `json:"mime,omitempty"`
|
Mime string `json:"mime,omitempty"`
|
||||||
Size int32 `json:"size,omitempty"`
|
Size int32 `json:"size,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AttachmentArray struct {
|
type AttachmentArray struct {
|
||||||
Data []AttachmentRead `json:"data"`
|
Data []AttachmentRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AttachmentRead struct {
|
type AttachmentRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *Attachment `json:"attributes"`
|
Attributes *Attachment `json:"attributes"`
|
||||||
Links *ObjectLink `json:"links"`
|
Links *ObjectLink `json:"links"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AttachmentSingle struct {
|
type AttachmentSingle struct {
|
||||||
Data *AttachmentRead `json:"data"`
|
Data *AttachmentRead `json:"data"`
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AttachmentStore struct {
|
type AttachmentStore struct {
|
||||||
Filename string `json:"filename"`
|
Filename string `json:"filename"`
|
||||||
AttachableType *AttachableType `json:"attachable_type"`
|
AttachableType *AttachableType `json:"attachable_type"`
|
||||||
// ID of the model this attachment is linked to.
|
// ID of the model this attachment is linked to.
|
||||||
AttachableId string `json:"attachable_id"`
|
AttachableId string `json:"attachable_id"`
|
||||||
Title string `json:"title,omitempty"`
|
Title string `json:"title,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AttachmentUpdate struct {
|
type AttachmentUpdate struct {
|
||||||
Filename string `json:"filename,omitempty"`
|
Filename string `json:"filename,omitempty"`
|
||||||
Title string `json:"title,omitempty"`
|
Title string `json:"title,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,24 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// AutoBudgetPeriod : Period for the auto budget
|
// AutoBudgetPeriod : Period for the auto budget
|
||||||
type AutoBudgetPeriod string
|
type AutoBudgetPeriod string
|
||||||
|
|
||||||
// List of AutoBudgetPeriod
|
// List of AutoBudgetPeriod
|
||||||
const (
|
const (
|
||||||
DAILY_AutoBudgetPeriod AutoBudgetPeriod = "daily"
|
DAILY_AutoBudgetPeriod AutoBudgetPeriod = "daily"
|
||||||
WEEKLY_AutoBudgetPeriod AutoBudgetPeriod = "weekly"
|
WEEKLY_AutoBudgetPeriod AutoBudgetPeriod = "weekly"
|
||||||
MONTHLY_AutoBudgetPeriod AutoBudgetPeriod = "monthly"
|
MONTHLY_AutoBudgetPeriod AutoBudgetPeriod = "monthly"
|
||||||
QUARTERLY_AutoBudgetPeriod AutoBudgetPeriod = "quarterly"
|
QUARTERLY_AutoBudgetPeriod AutoBudgetPeriod = "quarterly"
|
||||||
HALF_YEAR_AutoBudgetPeriod AutoBudgetPeriod = "half-year"
|
HALF_YEAR_AutoBudgetPeriod AutoBudgetPeriod = "half-year"
|
||||||
YEARLY_AutoBudgetPeriod AutoBudgetPeriod = "yearly"
|
YEARLY_AutoBudgetPeriod AutoBudgetPeriod = "yearly"
|
||||||
NULL_AutoBudgetPeriod AutoBudgetPeriod = ""
|
NULL_AutoBudgetPeriod AutoBudgetPeriod = ""
|
||||||
)
|
)
|
||||||
|
@ -1,20 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// AutoBudgetType : The type of auto-budget that Firefly III must create.
|
// AutoBudgetType : The type of auto-budget that Firefly III must create.
|
||||||
type AutoBudgetType string
|
type AutoBudgetType string
|
||||||
|
|
||||||
// List of AutoBudgetType
|
// List of AutoBudgetType
|
||||||
const (
|
const (
|
||||||
RESET_AutoBudgetType AutoBudgetType = "reset"
|
RESET_AutoBudgetType AutoBudgetType = "reset"
|
||||||
ROLLOVER_AutoBudgetType AutoBudgetType = "rollover"
|
ROLLOVER_AutoBudgetType AutoBudgetType = "rollover"
|
||||||
NONE_AutoBudgetType AutoBudgetType = "none"
|
NONE_AutoBudgetType AutoBudgetType = "none"
|
||||||
NULL_AutoBudgetType AutoBudgetType = ""
|
NULL_AutoBudgetType AutoBudgetType = ""
|
||||||
)
|
)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteAccount struct {
|
type AutocompleteAccount struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteBill struct {
|
type AutocompleteBill struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteBudget struct {
|
type AutocompleteBudget struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteCategory struct {
|
type AutocompleteCategory struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteCurrency struct {
|
type AutocompleteCurrency struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
// Currency name.
|
// Currency name.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
// Currency code.
|
// Currency code.
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Symbol string `json:"symbol"`
|
Symbol string `json:"symbol"`
|
||||||
DecimalPlaces int32 `json:"decimal_places"`
|
DecimalPlaces int32 `json:"decimal_places"`
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteCurrencyCode struct {
|
type AutocompleteCurrencyCode struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
// Currency name with the code between brackets.
|
// Currency name with the code between brackets.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
// Currency code.
|
// Currency code.
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Symbol string `json:"symbol"`
|
Symbol string `json:"symbol"`
|
||||||
DecimalPlaces int32 `json:"decimal_places"`
|
DecimalPlaces int32 `json:"decimal_places"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteObjectGroup struct {
|
type AutocompleteObjectGroup struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompletePiggy struct {
|
type AutocompletePiggy struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
@ -16,11 +16,11 @@ type AutocompletePiggy struct {
|
|||||||
// Currency ID for this piggy bank.
|
// Currency ID for this piggy bank.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Currency code for this piggy bank.
|
// Currency code for this piggy bank.
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Currency name for the currency used by this account.
|
// Currency name for the currency used by this account.
|
||||||
CurrencyName string `json:"currency_name,omitempty"`
|
CurrencyName string `json:"currency_name,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
// The group ID of the group this object is part of. NULL if no group.
|
// The group ID of the group this object is part of. NULL if no group.
|
||||||
ObjectGroupId string `json:"object_group_id,omitempty"`
|
ObjectGroupId string `json:"object_group_id,omitempty"`
|
||||||
// The name of the group. NULL if no group.
|
// The name of the group. NULL if no group.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompletePiggyBalance struct {
|
type AutocompletePiggyBalance struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
@ -18,9 +18,9 @@ type AutocompletePiggyBalance struct {
|
|||||||
// Currency ID for this piggy bank.
|
// Currency ID for this piggy bank.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Currency code for this piggy bank.
|
// Currency code for this piggy bank.
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
// The group ID of the group this object is part of. NULL if no group.
|
// The group ID of the group this object is part of. NULL if no group.
|
||||||
ObjectGroupId string `json:"object_group_id,omitempty"`
|
ObjectGroupId string `json:"object_group_id,omitempty"`
|
||||||
// The name of the group. NULL if no group.
|
// The name of the group. NULL if no group.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteRecurrence struct {
|
type AutocompleteRecurrence struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteRule struct {
|
type AutocompleteRule struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteRuleGroup struct {
|
type AutocompleteRuleGroup struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteTag struct {
|
type AutocompleteTag struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteTransaction struct {
|
type AutocompleteTransaction struct {
|
||||||
// The ID of a transaction journal (basically a single split).
|
// The ID of a transaction journal (basically a single split).
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteTransactionId struct {
|
type AutocompleteTransactionId struct {
|
||||||
// The ID of a transaction journal (basically a single split).
|
// The ID of a transaction journal (basically a single split).
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AutocompleteTransactionType struct {
|
type AutocompleteTransactionType struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -18,14 +19,14 @@ type AvailableBudget struct {
|
|||||||
// Use either currency_id or currency_code.
|
// Use either currency_id or currency_code.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code.
|
// Use either currency_id or currency_code.
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
Amount string `json:"amount"`
|
Amount string `json:"amount"`
|
||||||
// Start date of the available budget.
|
// Start date of the available budget.
|
||||||
Start time.Time `json:"start"`
|
Start time.Time `json:"start"`
|
||||||
// End date of the available budget.
|
// End date of the available budget.
|
||||||
End time.Time `json:"end"`
|
End time.Time `json:"end"`
|
||||||
SpentInBudgets []BudgetSpent `json:"spent_in_budgets,omitempty"`
|
SpentInBudgets []BudgetSpent `json:"spent_in_budgets,omitempty"`
|
||||||
SpentOutsideBudget []BudgetSpent `json:"spent_outside_budget,omitempty"`
|
SpentOutsideBudget []BudgetSpent `json:"spent_outside_budget,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AvailableBudgetArray struct {
|
type AvailableBudgetArray struct {
|
||||||
Data []AvailableBudgetRead `json:"data"`
|
Data []AvailableBudgetRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AvailableBudgetRead struct {
|
type AvailableBudgetRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *AvailableBudget `json:"attributes"`
|
Attributes *AvailableBudget `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type AvailableBudgetSingle struct {
|
type AvailableBudgetSingle struct {
|
||||||
Data *AvailableBudgetRead `json:"data"`
|
Data *AvailableBudgetRead `json:"data"`
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BadRequestResponse struct {
|
type BadRequestResponse struct {
|
||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
Exception string `json:"exception,omitempty"`
|
Exception string `json:"exception,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BasicSummaryEntry struct {
|
type BasicSummaryEntry struct {
|
||||||
// This is a reference to the type of info shared, not influenced by translations or user preferences. The EUR value is a reference to the currency code. Possibilities are: balance-in-ABC, spent-in-ABC, earned-in-ABC, bills-paid-in-ABC, bills-unpaid-in-ABC, left-to-spend-in-ABC and net-worth-in-ABC.
|
// This is a reference to the type of info shared, not influenced by translations or user preferences. The EUR value is a reference to the currency code. Possibilities are: balance-in-ABC, spent-in-ABC, earned-in-ABC, bills-paid-in-ABC, bills-unpaid-in-ABC, left-to-spend-in-ABC and net-worth-in-ABC.
|
||||||
@ -17,8 +17,8 @@ type BasicSummaryEntry struct {
|
|||||||
// The amount as a float.
|
// The amount as a float.
|
||||||
MonetaryValue float64 `json:"monetary_value,omitempty"`
|
MonetaryValue float64 `json:"monetary_value,omitempty"`
|
||||||
// The currency ID of the associated currency.
|
// The currency ID of the associated currency.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Number of decimals for the associated currency.
|
// Number of decimals for the associated currency.
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -18,24 +19,24 @@ type Bill struct {
|
|||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
AmountMin string `json:"amount_min"`
|
AmountMin string `json:"amount_min"`
|
||||||
AmountMax string `json:"amount_max"`
|
AmountMax string `json:"amount_max"`
|
||||||
Date time.Time `json:"date"`
|
Date time.Time `json:"date"`
|
||||||
// The date after which this bill is no longer valid or applicable
|
// The date after which this bill is no longer valid or applicable
|
||||||
EndDate time.Time `json:"end_date,omitempty"`
|
EndDate time.Time `json:"end_date,omitempty"`
|
||||||
// The date before which the bill must be renewed (or cancelled)
|
// The date before which the bill must be renewed (or cancelled)
|
||||||
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
||||||
RepeatFreq *BillRepeatFrequency `json:"repeat_freq"`
|
RepeatFreq *BillRepeatFrequency `json:"repeat_freq"`
|
||||||
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
||||||
Skip int32 `json:"skip,omitempty"`
|
Skip int32 `json:"skip,omitempty"`
|
||||||
// If the bill is active.
|
// If the bill is active.
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
// Order of the bill.
|
// Order of the bill.
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// When the bill is expected to be due.
|
// When the bill is expected to be due.
|
||||||
NextExpectedMatch time.Time `json:"next_expected_match,omitempty"`
|
NextExpectedMatch time.Time `json:"next_expected_match,omitempty"`
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BillArray struct {
|
type BillArray struct {
|
||||||
Data []BillRead `json:"data"`
|
Data []BillRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BillRead struct {
|
type BillRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *Bill `json:"attributes"`
|
Attributes *Bill `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// BillRepeatFrequency : How often the bill must be paid.
|
// BillRepeatFrequency : How often the bill must be paid.
|
||||||
type BillRepeatFrequency string
|
type BillRepeatFrequency string
|
||||||
|
|
||||||
// List of BillRepeatFrequency
|
// List of BillRepeatFrequency
|
||||||
const (
|
const (
|
||||||
WEEKLY_BillRepeatFrequency BillRepeatFrequency = "weekly"
|
WEEKLY_BillRepeatFrequency BillRepeatFrequency = "weekly"
|
||||||
MONTHLY_BillRepeatFrequency BillRepeatFrequency = "monthly"
|
MONTHLY_BillRepeatFrequency BillRepeatFrequency = "monthly"
|
||||||
QUARTERLY_BillRepeatFrequency BillRepeatFrequency = "quarterly"
|
QUARTERLY_BillRepeatFrequency BillRepeatFrequency = "quarterly"
|
||||||
HALF_YEAR_BillRepeatFrequency BillRepeatFrequency = "half-year"
|
HALF_YEAR_BillRepeatFrequency BillRepeatFrequency = "half-year"
|
||||||
YEARLY_BillRepeatFrequency BillRepeatFrequency = "yearly"
|
YEARLY_BillRepeatFrequency BillRepeatFrequency = "yearly"
|
||||||
)
|
)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BillSingle struct {
|
type BillSingle struct {
|
||||||
Data *BillRead `json:"data"`
|
Data *BillRead `json:"data"`
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -16,21 +17,21 @@ type BillStore struct {
|
|||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
AmountMin string `json:"amount_min"`
|
AmountMin string `json:"amount_min"`
|
||||||
AmountMax string `json:"amount_max"`
|
AmountMax string `json:"amount_max"`
|
||||||
Date time.Time `json:"date"`
|
Date time.Time `json:"date"`
|
||||||
// The date after which this bill is no longer valid or applicable
|
// The date after which this bill is no longer valid or applicable
|
||||||
EndDate time.Time `json:"end_date,omitempty"`
|
EndDate time.Time `json:"end_date,omitempty"`
|
||||||
// The date before which the bill must be renewed (or cancelled)
|
// The date before which the bill must be renewed (or cancelled)
|
||||||
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
||||||
RepeatFreq *BillRepeatFrequency `json:"repeat_freq"`
|
RepeatFreq *BillRepeatFrequency `json:"repeat_freq"`
|
||||||
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
||||||
Skip int32 `json:"skip,omitempty"`
|
Skip int32 `json:"skip,omitempty"`
|
||||||
// If the bill is active.
|
// If the bill is active.
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// The group ID of the group this object is part of. NULL if no group.
|
// The group ID of the group this object is part of. NULL if no group.
|
||||||
ObjectGroupId string `json:"object_group_id,omitempty"`
|
ObjectGroupId string `json:"object_group_id,omitempty"`
|
||||||
// The name of the group. NULL if no group.
|
// The name of the group. NULL if no group.
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -16,21 +17,21 @@ type BillUpdate struct {
|
|||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code
|
// Use either currency_id or currency_code
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
AmountMin string `json:"amount_min,omitempty"`
|
AmountMin string `json:"amount_min,omitempty"`
|
||||||
AmountMax string `json:"amount_max,omitempty"`
|
AmountMax string `json:"amount_max,omitempty"`
|
||||||
Date time.Time `json:"date,omitempty"`
|
Date time.Time `json:"date,omitempty"`
|
||||||
// The date after which this bill is no longer valid or applicable
|
// The date after which this bill is no longer valid or applicable
|
||||||
EndDate time.Time `json:"end_date,omitempty"`
|
EndDate time.Time `json:"end_date,omitempty"`
|
||||||
// The date before which the bill must be renewed (or cancelled)
|
// The date before which the bill must be renewed (or cancelled)
|
||||||
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
ExtensionDate time.Time `json:"extension_date,omitempty"`
|
||||||
RepeatFreq *BillRepeatFrequency `json:"repeat_freq,omitempty"`
|
RepeatFreq *BillRepeatFrequency `json:"repeat_freq,omitempty"`
|
||||||
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
// How often the bill must be skipped. 1 means a bi-monthly bill.
|
||||||
Skip int32 `json:"skip,omitempty"`
|
Skip int32 `json:"skip,omitempty"`
|
||||||
// If the bill is active.
|
// If the bill is active.
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
// The group ID of the group this object is part of. NULL if no group.
|
// The group ID of the group this object is part of. NULL if no group.
|
||||||
ObjectGroupId string `json:"object_group_id,omitempty"`
|
ObjectGroupId string `json:"object_group_id,omitempty"`
|
||||||
// The name of the group. NULL if no group.
|
// The name of the group. NULL if no group.
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Budget struct {
|
type Budget struct {
|
||||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
||||||
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
||||||
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
||||||
// Information on how much was spent in this budget. Is only filled in when the start and end date are submitted.
|
// Information on how much was spent in this budget. Is only filled in when the start and end date are submitted.
|
||||||
Spent []BudgetSpent `json:"spent,omitempty"`
|
Spent []BudgetSpent `json:"spent,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetArray struct {
|
type BudgetArray struct {
|
||||||
Data []BudgetRead `json:"data"`
|
Data []BudgetRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -22,14 +23,14 @@ type BudgetLimit struct {
|
|||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencyName string `json:"currency_name,omitempty"`
|
CurrencyName string `json:"currency_name,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
// The budget ID of the associated budget.
|
// The budget ID of the associated budget.
|
||||||
BudgetId string `json:"budget_id"`
|
BudgetId string `json:"budget_id"`
|
||||||
// Period of the budget limit. Only used when auto-generated by auto-budget.
|
// Period of the budget limit. Only used when auto-generated by auto-budget.
|
||||||
Period string `json:"period,omitempty"`
|
Period string `json:"period,omitempty"`
|
||||||
Amount string `json:"amount"`
|
Amount string `json:"amount"`
|
||||||
Spent string `json:"spent,omitempty"`
|
Spent string `json:"spent,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetLimitArray struct {
|
type BudgetLimitArray struct {
|
||||||
Data []BudgetLimitRead `json:"data"`
|
Data []BudgetLimitRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetLimitRead struct {
|
type BudgetLimitRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *BudgetLimit `json:"attributes"`
|
Attributes *BudgetLimit `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetLimitSingle struct {
|
type BudgetLimitSingle struct {
|
||||||
Data *BudgetLimitRead `json:"data"`
|
Data *BudgetLimitRead `json:"data"`
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetLimitStore struct {
|
type BudgetLimitStore struct {
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
@ -21,6 +21,6 @@ type BudgetLimitStore struct {
|
|||||||
// Period of the budget limit. Only used when auto-generated by auto-budget.
|
// Period of the budget limit. Only used when auto-generated by auto-budget.
|
||||||
Period string `json:"period,omitempty"`
|
Period string `json:"period,omitempty"`
|
||||||
// End date of the budget limit.
|
// End date of the budget limit.
|
||||||
End string `json:"end"`
|
End string `json:"end"`
|
||||||
Amount string `json:"amount"`
|
Amount string `json:"amount"`
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetRead struct {
|
type BudgetRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *Budget `json:"attributes"`
|
Attributes *Budget `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetSingle struct {
|
type BudgetSingle struct {
|
||||||
Data *BudgetRead `json:"data"`
|
Data *BudgetRead `json:"data"`
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetSpent struct {
|
type BudgetSpent struct {
|
||||||
// The amount spent.
|
// The amount spent.
|
||||||
Sum string `json:"sum,omitempty"`
|
Sum string `json:"sum,omitempty"`
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Number of decimals supported by the currency
|
// Number of decimals supported by the currency
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetStore struct {
|
type BudgetStore struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
||||||
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
||||||
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type BudgetUpdate struct {
|
type BudgetUpdate struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Order int32 `json:"order,omitempty"`
|
Order int32 `json:"order,omitempty"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
|
||||||
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
// Use either currency_id or currency_code. Defaults to the user's default currency.
|
||||||
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
|
||||||
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
|
||||||
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Category struct {
|
type Category struct {
|
||||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
Spent []CategorySpent `json:"spent,omitempty"`
|
Spent []CategorySpent `json:"spent,omitempty"`
|
||||||
Earned []CategoryEarned `json:"earned,omitempty"`
|
Earned []CategoryEarned `json:"earned,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategoryArray struct {
|
type CategoryArray struct {
|
||||||
Data []CategoryRead `json:"data"`
|
Data []CategoryRead `json:"data"`
|
||||||
Meta *Meta `json:"meta"`
|
Meta *Meta `json:"meta"`
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategoryEarned struct {
|
type CategoryEarned struct {
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Number of decimals supported by the currency
|
// Number of decimals supported by the currency
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategoryRead struct {
|
type CategoryRead struct {
|
||||||
// Immutable value
|
// Immutable value
|
||||||
Type_ string `json:"type"`
|
Type_ string `json:"type"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Attributes *Category `json:"attributes"`
|
Attributes *Category `json:"attributes"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategorySingle struct {
|
type CategorySingle struct {
|
||||||
Data *CategoryRead `json:"data"`
|
Data *CategoryRead `json:"data"`
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategorySpent struct {
|
type CategorySpent struct {
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Number of decimals supported by the currency
|
// Number of decimals supported by the currency
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type CategoryUpdate struct {
|
type CategoryUpdate struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Notes string `json:"notes,omitempty"`
|
Notes string `json:"notes,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type ChartDataPoint struct {
|
type ChartDataPoint struct {
|
||||||
// The key is the label of the value, so for example: '2018-01-01' => 13 or 'Groceries' => -123.
|
// The key is the label of the value, so for example: '2018-01-01' => 13 or 'Groceries' => -123.
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -16,13 +17,13 @@ type ChartDataSet struct {
|
|||||||
// This is the title of the current set. It can refer to an account, a budget or another object (by name).
|
// This is the title of the current set. It can refer to an account, a budget or another object (by name).
|
||||||
Label string `json:"label,omitempty"`
|
Label string `json:"label,omitempty"`
|
||||||
// The currency ID of the currency associated to the data in the entries.
|
// The currency ID of the currency associated to the data in the entries.
|
||||||
CurrencyId string `json:"currency_id,omitempty"`
|
CurrencyId string `json:"currency_id,omitempty"`
|
||||||
CurrencyCode string `json:"currency_code,omitempty"`
|
CurrencyCode string `json:"currency_code,omitempty"`
|
||||||
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
CurrencySymbol string `json:"currency_symbol,omitempty"`
|
||||||
// Number of decimals for the currency associated to the data in the entries.
|
// Number of decimals for the currency associated to the data in the entries.
|
||||||
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
|
||||||
StartDate time.Time `json:"start_date,omitempty"`
|
StartDate time.Time `json:"start_date,omitempty"`
|
||||||
EndDate time.Time `json:"end_date,omitempty"`
|
EndDate time.Time `json:"end_date,omitempty"`
|
||||||
// Indicated the type of chart that is expected to be rendered. You can safely ignore this if you want.
|
// Indicated the type of chart that is expected to be rendered. You can safely ignore this if you want.
|
||||||
Type_ string `json:"type,omitempty"`
|
Type_ string `json:"type,omitempty"`
|
||||||
// Used to indicate the Y axis for this data set. Is usually between 0 and 1 (left and right side of the chart).
|
// Used to indicate the Y axis for this data set. Is usually between 0 and 1 (left and right side of the chart).
|
||||||
|
@ -1,35 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
// ConfigValueFilter : Title of the configuration value.
|
// ConfigValueFilter : Title of the configuration value.
|
||||||
type ConfigValueFilter string
|
type ConfigValueFilter string
|
||||||
|
|
||||||
// List of ConfigValueFilter
|
// List of ConfigValueFilter
|
||||||
const (
|
const (
|
||||||
CONFIGURATIONIS_DEMO_SITE_ConfigValueFilter ConfigValueFilter = "configuration.is_demo_site"
|
CONFIGURATIONIS_DEMO_SITE_ConfigValueFilter ConfigValueFilter = "configuration.is_demo_site"
|
||||||
CONFIGURATIONPERMISSION_UPDATE_CHECK_ConfigValueFilter ConfigValueFilter = "configuration.permission_update_check"
|
CONFIGURATIONPERMISSION_UPDATE_CHECK_ConfigValueFilter ConfigValueFilter = "configuration.permission_update_check"
|
||||||
CONFIGURATIONLAST_UPDATE_CHECK_ConfigValueFilter ConfigValueFilter = "configuration.last_update_check"
|
CONFIGURATIONLAST_UPDATE_CHECK_ConfigValueFilter ConfigValueFilter = "configuration.last_update_check"
|
||||||
CONFIGURATIONSINGLE_USER_MODE_ConfigValueFilter ConfigValueFilter = "configuration.single_user_mode"
|
CONFIGURATIONSINGLE_USER_MODE_ConfigValueFilter ConfigValueFilter = "configuration.single_user_mode"
|
||||||
FIREFLYVERSION_ConfigValueFilter ConfigValueFilter = "firefly.version"
|
FIREFLYVERSION_ConfigValueFilter ConfigValueFilter = "firefly.version"
|
||||||
FIREFLYAPI_VERSION_ConfigValueFilter ConfigValueFilter = "firefly.api_version"
|
FIREFLYAPI_VERSION_ConfigValueFilter ConfigValueFilter = "firefly.api_version"
|
||||||
FIREFLYDEFAULT_LOCATION_ConfigValueFilter ConfigValueFilter = "firefly.default_location"
|
FIREFLYDEFAULT_LOCATION_ConfigValueFilter ConfigValueFilter = "firefly.default_location"
|
||||||
FIREFLYACCOUNT_TO_TRANSACTION_ConfigValueFilter ConfigValueFilter = "firefly.account_to_transaction"
|
FIREFLYACCOUNT_TO_TRANSACTION_ConfigValueFilter ConfigValueFilter = "firefly.account_to_transaction"
|
||||||
FIREFLYALLOWED_OPPOSING_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.allowed_opposing_types"
|
FIREFLYALLOWED_OPPOSING_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.allowed_opposing_types"
|
||||||
FIREFLYACCOUNT_ROLES_ConfigValueFilter ConfigValueFilter = "firefly.accountRoles"
|
FIREFLYACCOUNT_ROLES_ConfigValueFilter ConfigValueFilter = "firefly.accountRoles"
|
||||||
FIREFLYVALID_LIABILITIES_ConfigValueFilter ConfigValueFilter = "firefly.valid_liabilities"
|
FIREFLYVALID_LIABILITIES_ConfigValueFilter ConfigValueFilter = "firefly.valid_liabilities"
|
||||||
FIREFLYINTEREST_PERIODS_ConfigValueFilter ConfigValueFilter = "firefly.interest_periods"
|
FIREFLYINTEREST_PERIODS_ConfigValueFilter ConfigValueFilter = "firefly.interest_periods"
|
||||||
FIREFLYENABLE_EXTERNAL_MAP_ConfigValueFilter ConfigValueFilter = "firefly.enable_external_map"
|
FIREFLYENABLE_EXTERNAL_MAP_ConfigValueFilter ConfigValueFilter = "firefly.enable_external_map"
|
||||||
FIREFLYEXPECTED_SOURCE_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.expected_source_types"
|
FIREFLYEXPECTED_SOURCE_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.expected_source_types"
|
||||||
APPTIMEZONE_ConfigValueFilter ConfigValueFilter = "app.timezone"
|
APPTIMEZONE_ConfigValueFilter ConfigValueFilter = "app.timezone"
|
||||||
FIREFLYBILL_PERIODS_ConfigValueFilter ConfigValueFilter = "firefly.bill_periods"
|
FIREFLYBILL_PERIODS_ConfigValueFilter ConfigValueFilter = "firefly.bill_periods"
|
||||||
FIREFLYCREDIT_CARD_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.credit_card_types"
|
FIREFLYCREDIT_CARD_TYPES_ConfigValueFilter ConfigValueFilter = "firefly.credit_card_types"
|
||||||
FIREFLYLANGUAGES_ConfigValueFilter ConfigValueFilter = "firefly.languages"
|
FIREFLYLANGUAGES_ConfigValueFilter ConfigValueFilter = "firefly.languages"
|
||||||
FIREFLYVALID_VIEW_RANGES_ConfigValueFilter ConfigValueFilter = "firefly.valid_view_ranges"
|
FIREFLYVALID_VIEW_RANGES_ConfigValueFilter ConfigValueFilter = "firefly.valid_view_ranges"
|
||||||
)
|
)
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* Firefly III API v2.0.14
|
* 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.
|
* 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
|
* API version: 2.0.14
|
||||||
* Contact: james@firefly-iii.org
|
* Contact: james@firefly-iii.org
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package swagger
|
package firefly3
|
||||||
|
|
||||||
type ConfigValueUpdateFilter string
|
type ConfigValueUpdateFilter string
|
||||||
|
|
||||||
// List of ConfigValueUpdateFilter
|
// List of ConfigValueUpdateFilter
|
||||||
const (
|
const (
|
||||||
IS_DEMO_SITE_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.is_demo_site"
|
IS_DEMO_SITE_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.is_demo_site"
|
||||||
PERMISSION_UPDATE_CHECK_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.permission_update_check"
|
PERMISSION_UPDATE_CHECK_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.permission_update_check"
|
||||||
LAST_UPDATE_CHECK_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.last_update_check"
|
LAST_UPDATE_CHECK_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.last_update_check"
|
||||||
SINGLE_USER_MODE_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.single_user_mode"
|
SINGLE_USER_MODE_ConfigValueUpdateFilter ConfigValueUpdateFilter = "configuration.single_user_mode"
|
||||||
)
|
)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user