Bump version

This commit is contained in:
Illya Marchenko 2024-05-11 15:15:59 +03:00
parent 250d72604e
commit 04e92891e3
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F
10 changed files with 2787 additions and 2756 deletions

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type AccountsApiService service type AccountsApiService service
/* /*
AccountsApiService Permanently delete account. AccountsApiService Permanently delete account.
Will permanently delete an account. Any associated transactions and piggy banks are ALSO deleted. Cannot be recovered from. Will permanently delete an account. Any associated transactions and piggy banks are ALSO deleted. Cannot be recovered from.
@ -47,7 +46,6 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -94,7 +92,6 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -102,7 +99,7 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
} }
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 return localVarHttpResponse, newErr
@ -112,7 +109,7 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
} }
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 return localVarHttpResponse, newErr
@ -122,7 +119,7 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
} }
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 return localVarHttpResponse, newErr
@ -132,7 +129,7 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
} }
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 return localVarHttpResponse, newErr
@ -145,6 +142,7 @@ func (a *AccountsApiService) DeleteAccount(ctx context.Context, id string, local
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
AccountsApiService Get single account. AccountsApiService Get single account.
Returns a single account by its ID. Returns a single account by its ID.
@ -219,7 +217,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id 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
} }
@ -232,7 +230,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -242,7 +240,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -252,7 +250,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -262,7 +260,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -272,7 +270,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AccountSingle var v AccountSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -285,6 +283,7 @@ func (a *AccountsApiService) GetAccount(ctx context.Context, id string, localVar
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService List all accounts. AccountsApiService List all accounts.
This endpoint returns a list of all the accounts owned by the authenticated user. This endpoint returns a list of all the accounts owned by the authenticated user.
@ -372,7 +371,7 @@ func (a *AccountsApiService) ListAccount(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
} }
@ -385,7 +384,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -395,7 +394,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -405,7 +404,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -415,7 +414,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -425,7 +424,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -438,6 +437,7 @@ func (a *AccountsApiService) ListAccount(ctx context.Context, localVarOptionals
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService Lists all attachments. AccountsApiService Lists all attachments.
Lists all attachments. Lists all attachments.
@ -517,7 +517,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
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
} }
@ -530,7 +530,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -540,7 +540,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -550,7 +550,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -560,7 +560,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -570,7 +570,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -583,6 +583,7 @@ func (a *AccountsApiService) ListAttachmentByAccount(ctx context.Context, id str
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService List all piggy banks related to the account. AccountsApiService List all piggy banks related to the account.
This endpoint returns a list of all the piggy banks connected to the account. This endpoint returns a list of all the piggy banks connected to the account.
@ -662,7 +663,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(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
} }
@ -675,7 +676,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -685,7 +686,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -695,7 +696,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -705,7 +706,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -715,7 +716,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -728,6 +729,7 @@ func (a *AccountsApiService) ListPiggyBankByAccount(ctx context.Context, id stri
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService List all transactions related to the account. AccountsApiService List all transactions related to the account.
This endpoint returns a list of all the transactions connected to the account. This endpoint returns a list of all the transactions connected to the account.
@ -822,7 +824,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, 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
} }
@ -835,7 +837,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -845,7 +847,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -855,7 +857,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -865,7 +867,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -875,7 +877,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -888,6 +890,7 @@ func (a *AccountsApiService) ListTransactionByAccount(ctx context.Context, id st
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService Create new account. AccountsApiService Create new account.
Creates a new account. The data required can be submitted as a JSON body or as a list of parameters (in key&#x3D;value pairs, like a webform). Creates a new account. The data required can be submitted as a JSON body or as a list of parameters (in key&#x3D;value pairs, like a webform).
@ -958,7 +961,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
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
} }
@ -971,7 +974,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -981,7 +984,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -991,7 +994,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1001,7 +1004,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1011,7 +1014,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1021,7 +1024,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AccountSingle var v AccountSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1034,6 +1037,7 @@ func (a *AccountsApiService) StoreAccount(ctx context.Context, body AccountStore
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AccountsApiService Update existing account. AccountsApiService Update existing account.
Used to update a single account. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory. Used to update a single account. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory.
@ -1106,7 +1110,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
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
} }
@ -1119,7 +1123,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1129,7 +1133,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1139,7 +1143,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1149,7 +1153,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1159,7 +1163,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1169,7 +1173,7 @@ func (a *AccountsApiService) UpdateAccount(ctx context.Context, body AccountUpda
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AccountSingle var v AccountSingle
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,12 +11,13 @@ package swagger
import ( import (
"context" "context"
"fmt"
"github.com/antihax/optional"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
"os"
"strings" "strings"
"fmt"
"github.com/antihax/optional"
) )
// Linger please // Linger please
@ -26,6 +26,7 @@ var (
) )
type AttachmentsApiService service type AttachmentsApiService service
/* /*
AttachmentsApiService Delete an attachment. AttachmentsApiService Delete an attachment.
With this endpoint you delete an attachment, including any stored file data. With this endpoint you delete an attachment, including any stored file data.
@ -46,7 +47,6 @@ func (a *AttachmentsApiService) DeleteAttachment(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,7 +93,6 @@ func (a *AttachmentsApiService) DeleteAttachment(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,
@ -101,7 +100,7 @@ func (a *AttachmentsApiService) DeleteAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -111,7 +110,7 @@ func (a *AttachmentsApiService) DeleteAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -121,7 +120,7 @@ func (a *AttachmentsApiService) DeleteAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -131,7 +130,7 @@ func (a *AttachmentsApiService) DeleteAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -144,6 +143,7 @@ func (a *AttachmentsApiService) DeleteAttachment(ctx context.Context, id string,
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService Download a single attachment. AttachmentsApiService Download a single attachment.
This endpoint allows you to download the binary content of a transaction. It will be sent to you as a download, using the content type \&quot;application/octet-stream\&quot; and content disposition \&quot;attachment; filename&#x3D;example.pdf\&quot;. This endpoint allows you to download the binary content of a transaction. It will be sent to you as a download, using the content type \&quot;application/octet-stream\&quot; and content disposition \&quot;attachment; filename&#x3D;example.pdf\&quot;.
@ -213,7 +213,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
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
} }
@ -226,7 +226,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -236,7 +236,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -246,7 +246,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -256,7 +256,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -266,7 +266,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -279,6 +279,7 @@ func (a *AttachmentsApiService) DownloadAttachment(ctx context.Context, id strin
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService Get a single attachment. AttachmentsApiService Get a single attachment.
Get a single attachment. This endpoint only returns the available metadata for the attachment. Actual file data is handled in two other endpoints (see below). Get a single attachment. This endpoint only returns the available metadata for the attachment. Actual file data is handled in two other endpoints (see below).
@ -348,7 +349,7 @@ func (a *AttachmentsApiService) GetAttachment(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
} }
@ -361,7 +362,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -371,7 +372,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -381,7 +382,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -391,7 +392,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -401,7 +402,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AttachmentSingle var v AttachmentSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -414,6 +415,7 @@ func (a *AttachmentsApiService) GetAttachment(ctx context.Context, id string, lo
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService List all attachments. AttachmentsApiService List all attachments.
This endpoint lists all attachments. This endpoint lists all attachments.
@ -491,7 +493,7 @@ func (a *AttachmentsApiService) ListAttachment(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
} }
@ -504,7 +506,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -514,7 +516,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -524,7 +526,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -534,7 +536,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -544,7 +546,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -557,6 +559,7 @@ func (a *AttachmentsApiService) ListAttachment(ctx context.Context, localVarOpti
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService Store a new attachment. AttachmentsApiService Store a new attachment.
Creates a new attachment. The data required can be submitted as a JSON body or as a list of parameters. You cannot use this endpoint to upload the actual file data (see below). This endpoint only creates the attachment object. Creates a new attachment. The data required can be submitted as a JSON body or as a list of parameters. You cannot use this endpoint to upload the actual file data (see below). This endpoint only creates the attachment object.
@ -627,7 +630,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
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
} }
@ -640,7 +643,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -650,7 +653,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -660,7 +663,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -670,7 +673,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -680,7 +683,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AttachmentSingle var v AttachmentSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -690,7 +693,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -703,6 +706,7 @@ func (a *AttachmentsApiService) StoreAttachment(ctx context.Context, body Attach
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService Update existing attachment. AttachmentsApiService Update existing attachment.
Update the meta data for an existing attachment. This endpoint does not allow you to upload or download data. For that, see below. Update the meta data for an existing attachment. This endpoint does not allow you to upload or download data. For that, see below.
@ -775,7 +779,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
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
} }
@ -788,7 +792,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -798,7 +802,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -808,7 +812,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -818,7 +822,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -828,7 +832,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v AttachmentSingle var v AttachmentSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -838,7 +842,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -851,6 +855,7 @@ func (a *AttachmentsApiService) UpdateAttachment(ctx context.Context, body Attac
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
AttachmentsApiService Upload an attachment. AttachmentsApiService Upload an attachment.
Use this endpoint to upload (and possible overwrite) the file contents of an attachment. Simply put the entire file in the body as binary data. Use this endpoint to upload (and possible overwrite) the file contents of an attachment. Simply put the entire file in the body as binary data.
@ -873,7 +878,6 @@ func (a *AttachmentsApiService) UploadAttachment(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
@ -926,7 +930,6 @@ func (a *AttachmentsApiService) UploadAttachment(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,
@ -934,7 +937,7 @@ func (a *AttachmentsApiService) UploadAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -944,7 +947,7 @@ func (a *AttachmentsApiService) UploadAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -954,7 +957,7 @@ func (a *AttachmentsApiService) UploadAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -964,7 +967,7 @@ func (a *AttachmentsApiService) UploadAttachment(ctx context.Context, id string,
} }
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 return localVarHttpResponse, newErr
@ -974,7 +977,7 @@ func (a *AttachmentsApiService) UploadAttachment(ctx context.Context, id string,
} }
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 localVarHttpResponse, newErr return localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type BillsApiService service type BillsApiService service
/* /*
BillsApiService Delete a bill. BillsApiService Delete a bill.
Delete a bill. This will not delete any associated rules. Will not remove associated transactions. WILL remove all associated attachments. Delete a bill. This will not delete any associated rules. Will not remove associated transactions. WILL remove all associated attachments.
@ -47,7 +46,6 @@ func (a *BillsApiService) DeleteBill(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
@ -94,7 +92,6 @@ func (a *BillsApiService) DeleteBill(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,
@ -102,7 +99,7 @@ func (a *BillsApiService) DeleteBill(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -112,7 +109,7 @@ func (a *BillsApiService) DeleteBill(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -122,7 +119,7 @@ func (a *BillsApiService) DeleteBill(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -132,7 +129,7 @@ func (a *BillsApiService) DeleteBill(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -145,6 +142,7 @@ func (a *BillsApiService) DeleteBill(ctx context.Context, id string, localVarOpt
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
BillsApiService Get a single bill. BillsApiService Get a single bill.
Get a single bill. Get a single bill.
@ -224,7 +222,7 @@ func (a *BillsApiService) GetBill(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
} }
@ -237,7 +235,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -247,7 +245,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -257,7 +255,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -267,7 +265,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -277,7 +275,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BillSingle var v BillSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -290,6 +288,7 @@ func (a *BillsApiService) GetBill(ctx context.Context, id string, localVarOption
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService List all attachments uploaded to the bill. BillsApiService List all attachments uploaded to the bill.
This endpoint will list all attachments linked to the bill. This endpoint will list all attachments linked to the bill.
@ -369,7 +368,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id 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
} }
@ -382,7 +381,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -392,7 +391,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -402,7 +401,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -412,7 +411,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -422,7 +421,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -435,6 +434,7 @@ func (a *BillsApiService) ListAttachmentByBill(ctx context.Context, id string, l
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService List all bills. BillsApiService List all bills.
This endpoint will list all the user&#x27;s bills. This endpoint will list all the user&#x27;s bills.
@ -522,7 +522,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
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
} }
@ -535,7 +535,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -545,7 +545,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -555,7 +555,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -565,7 +565,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -575,7 +575,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -588,6 +588,7 @@ func (a *BillsApiService) ListBill(ctx context.Context, localVarOptionals *Bills
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService List all rules associated with the bill. BillsApiService List all rules associated with the bill.
This endpoint will list all rules that have an action to set the bill to this bill. This endpoint will list all rules that have an action to set the bill to this bill.
@ -657,7 +658,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, 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
} }
@ -670,7 +671,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -680,7 +681,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -690,7 +691,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -700,7 +701,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -710,7 +711,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -723,6 +724,7 @@ func (a *BillsApiService) ListRuleByBill(ctx context.Context, id string, localVa
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService List all transactions associated with the bill. BillsApiService List all transactions associated with the bill.
This endpoint will list all transactions linked to this bill. This endpoint will list all transactions linked to this bill.
@ -807,7 +809,7 @@ func (a *BillsApiService) ListTransactionByBill(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
} }
@ -820,7 +822,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -830,7 +832,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -840,7 +842,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -850,7 +852,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -860,7 +862,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -873,6 +875,7 @@ func (a *BillsApiService) ListTransactionByBill(ctx context.Context, id string,
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService Store a new bill BillsApiService Store a new bill
Creates a new bill. The data required can be submitted as a JSON body or as a list of parameters. Creates a new bill. The data required can be submitted as a JSON body or as a list of parameters.
@ -943,7 +946,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, 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
} }
@ -956,7 +959,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -966,7 +969,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -976,7 +979,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -986,7 +989,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -996,7 +999,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BillSingle var v BillSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1006,7 +1009,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1019,6 +1022,7 @@ func (a *BillsApiService) StoreBill(ctx context.Context, body BillStore, localVa
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BillsApiService Update existing bill. BillsApiService Update existing bill.
Update existing bill. Update existing bill.
@ -1091,7 +1095,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, 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
} }
@ -1104,7 +1108,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1114,7 +1118,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1124,7 +1128,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1134,7 +1138,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1144,7 +1148,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BillSingle var v BillSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1154,7 +1158,7 @@ func (a *BillsApiService) UpdateBill(ctx context.Context, body BillUpdate, id st
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type BudgetsApiService service type BudgetsApiService service
/* /*
BudgetsApiService Delete a budget. BudgetsApiService Delete a budget.
Delete a budget. Transactions will not be deleted. Delete a budget. Transactions will not be deleted.
@ -47,7 +46,6 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -94,7 +92,6 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -102,7 +99,7 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
} }
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 return localVarHttpResponse, newErr
@ -112,7 +109,7 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
} }
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 return localVarHttpResponse, newErr
@ -122,7 +119,7 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
} }
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 return localVarHttpResponse, newErr
@ -132,7 +129,7 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
} }
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 return localVarHttpResponse, newErr
@ -145,6 +142,7 @@ func (a *BudgetsApiService) DeleteBudget(ctx context.Context, id string, localVa
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Delete a budget limit. BudgetsApiService Delete a budget limit.
Delete a budget limit. Delete a budget limit.
@ -166,7 +164,6 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -214,7 +211,6 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -222,7 +218,7 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
} }
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 return localVarHttpResponse, newErr
@ -232,7 +228,7 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
} }
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 return localVarHttpResponse, newErr
@ -242,7 +238,7 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
} }
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 return localVarHttpResponse, newErr
@ -252,7 +248,7 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
} }
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 return localVarHttpResponse, newErr
@ -265,6 +261,7 @@ func (a *BudgetsApiService) DeleteBudgetLimit(ctx context.Context, id string, li
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Get a single budget. BudgetsApiService Get a single budget.
Get a single budget. If the start date and end date are submitted as well, the \&quot;spent\&quot; array will be updated accordingly. Get a single budget. If the start date and end date are submitted as well, the \&quot;spent\&quot; array will be updated accordingly.
@ -344,7 +341,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
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
} }
@ -357,7 +354,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetSingle var v BudgetSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -367,7 +364,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -377,7 +374,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -387,7 +384,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -397,7 +394,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -410,6 +407,7 @@ func (a *BudgetsApiService) GetBudget(ctx context.Context, id string, localVarOp
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Get single budget limit. BudgetsApiService Get single budget limit.
* @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().
@ -483,7 +481,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
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
} }
@ -496,7 +494,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetLimitSingle var v BudgetLimitSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -506,7 +504,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -516,7 +514,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -526,7 +524,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -536,7 +534,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -549,6 +547,7 @@ func (a *BudgetsApiService) GetBudgetLimit(ctx context.Context, id string, limit
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Lists all attachments of a budget. BudgetsApiService Lists all attachments of a budget.
Lists all attachments. Lists all attachments.
@ -628,7 +627,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
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
} }
@ -641,7 +640,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -651,7 +650,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -661,7 +660,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -671,7 +670,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -681,7 +680,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -694,6 +693,7 @@ func (a *BudgetsApiService) ListAttachmentByBudget(ctx context.Context, id strin
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService List all budgets. BudgetsApiService List all budgets.
List all the budgets the user has made. If the start date and end date are submitted as well, the \&quot;spent\&quot; array will be updated accordingly. List all the budgets the user has made. If the start date and end date are submitted as well, the \&quot;spent\&quot; array will be updated accordingly.
@ -781,7 +781,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
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
} }
@ -794,7 +794,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetArray var v BudgetArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -804,7 +804,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -814,7 +814,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -824,7 +824,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -834,7 +834,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -847,6 +847,7 @@ func (a *BudgetsApiService) ListBudget(ctx context.Context, localVarOptionals *B
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Get list of budget limits by date BudgetsApiService Get list of budget limits by date
Get all budget limits for for this date range. Get all budget limits for for this date range.
@ -918,7 +919,7 @@ func (a *BudgetsApiService) ListBudgetLimit(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
} }
@ -931,7 +932,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetLimitArray var v BudgetLimitArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -941,7 +942,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -951,7 +952,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -961,7 +962,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -971,7 +972,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -984,6 +985,7 @@ func (a *BudgetsApiService) ListBudgetLimit(ctx context.Context, start string, e
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Get all limits for a budget. BudgetsApiService Get all limits for a budget.
Get all budget limits for this budget and the money spent, and money left. You can limit the list by submitting a date range as well. The \&quot;spent\&quot; array for each budget limit is NOT influenced by the start and end date of your query, but by the start and end date of the budget limit itself. Get all budget limits for this budget and the money spent, and money left. You can limit the list by submitting a date range as well. The \&quot;spent\&quot; array for each budget limit is NOT influenced by the start and end date of your query, but by the start and end date of the budget limit itself.
@ -1063,7 +1065,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(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
} }
@ -1076,7 +1078,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetLimitArray var v BudgetLimitArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1086,7 +1088,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1096,7 +1098,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1106,7 +1108,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1116,7 +1118,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1129,6 +1131,7 @@ func (a *BudgetsApiService) ListBudgetLimitByBudget(ctx context.Context, id stri
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService All transactions to a budget. BudgetsApiService All transactions to a budget.
Get all transactions linked to a budget, possibly limited by start and end Get all transactions linked to a budget, possibly limited by start and end
@ -1223,7 +1226,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(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
} }
@ -1236,7 +1239,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1246,7 +1249,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1256,7 +1259,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1266,7 +1269,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1276,7 +1279,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1289,6 +1292,7 @@ func (a *BudgetsApiService) ListTransactionByBudget(ctx context.Context, id stri
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService List all transactions by a budget limit ID. BudgetsApiService List all transactions by a budget limit ID.
List all the transactions within one budget limit. The start and end date are dictated by the budget limit. List all the transactions within one budget limit. The start and end date are dictated by the budget limit.
@ -1375,7 +1379,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(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
} }
@ -1388,7 +1392,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1398,7 +1402,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1408,7 +1412,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1418,7 +1422,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1428,7 +1432,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1441,6 +1445,7 @@ func (a *BudgetsApiService) ListTransactionByBudgetLimit(ctx context.Context, id
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Store a new budget BudgetsApiService Store a new budget
Creates a new budget. The data required can be submitted as a JSON body or as a list of parameters. Creates a new budget. The data required can be submitted as a JSON body or as a list of parameters.
@ -1511,7 +1516,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, 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
} }
@ -1524,7 +1529,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetSingle var v BudgetSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1534,7 +1539,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1544,7 +1549,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1554,7 +1559,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1564,7 +1569,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1574,7 +1579,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1587,6 +1592,7 @@ func (a *BudgetsApiService) StoreBudget(ctx context.Context, body BudgetStore, l
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Store new budget limit. BudgetsApiService Store new budget limit.
Store a new budget limit under this budget. Store a new budget limit under this budget.
@ -1659,7 +1665,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
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
} }
@ -1672,7 +1678,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetLimitSingle var v BudgetLimitSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1682,7 +1688,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1692,7 +1698,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1702,7 +1708,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1712,7 +1718,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1722,7 +1728,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1735,6 +1741,7 @@ func (a *BudgetsApiService) StoreBudgetLimit(ctx context.Context, body BudgetLim
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Update existing budget. BudgetsApiService Update existing budget.
Update existing budget. This endpoint cannot be used to set budget amount limits. Update existing budget. This endpoint cannot be used to set budget amount limits.
@ -1807,7 +1814,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
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
} }
@ -1820,7 +1827,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetSingle var v BudgetSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1830,7 +1837,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1840,7 +1847,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1850,7 +1857,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1860,7 +1867,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1870,7 +1877,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1883,6 +1890,7 @@ func (a *BudgetsApiService) UpdateBudget(ctx context.Context, body BudgetUpdate,
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
BudgetsApiService Update existing budget limit. BudgetsApiService Update existing budget limit.
Update existing budget limit. Update existing budget limit.
@ -1957,7 +1965,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
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
} }
@ -1970,7 +1978,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v BudgetLimitSingle var v BudgetLimitSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1980,7 +1988,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1990,7 +1998,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -2000,7 +2008,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -2010,7 +2018,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -2020,7 +2028,7 @@ func (a *BudgetsApiService) UpdateBudgetLimit(ctx context.Context, body BudgetLi
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type CategoriesApiService service type CategoriesApiService service
/* /*
CategoriesApiService Delete a category. CategoriesApiService Delete a category.
Delete a category. Transactions will not be removed. Delete a category. Transactions will not be removed.
@ -47,7 +46,6 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -94,7 +92,6 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -102,7 +99,7 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
} }
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 return localVarHttpResponse, newErr
@ -112,7 +109,7 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
} }
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 return localVarHttpResponse, newErr
@ -122,7 +119,7 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
} }
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 return localVarHttpResponse, newErr
@ -132,7 +129,7 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
} }
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 return localVarHttpResponse, newErr
@ -145,6 +142,7 @@ func (a *CategoriesApiService) DeleteCategory(ctx context.Context, id string, lo
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
CategoriesApiService Get a single category. CategoriesApiService Get a single category.
Get a single category. Get a single category.
@ -224,7 +222,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, 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
} }
@ -237,7 +235,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v CategorySingle var v CategorySingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -247,7 +245,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -257,7 +255,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -267,7 +265,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -277,7 +275,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -290,6 +288,7 @@ func (a *CategoriesApiService) GetCategory(ctx context.Context, id string, local
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
CategoriesApiService Lists all attachments. CategoriesApiService Lists all attachments.
Lists all attachments. Lists all attachments.
@ -369,7 +368,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(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
} }
@ -382,7 +381,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -392,7 +391,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -402,7 +401,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -412,7 +411,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -422,7 +421,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -435,6 +434,7 @@ func (a *CategoriesApiService) ListAttachmentByCategory(ctx context.Context, id
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
CategoriesApiService List all categories. CategoriesApiService List all categories.
List all categories. List all categories.
@ -512,7 +512,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, 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
} }
@ -525,7 +525,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v CategoryArray var v CategoryArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -535,7 +535,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -545,7 +545,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -555,7 +555,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -565,7 +565,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -578,6 +578,7 @@ func (a *CategoriesApiService) ListCategory(ctx context.Context, localVarOptiona
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
CategoriesApiService List all transactions in a category. CategoriesApiService List all transactions in a category.
List all transactions in a category, optionally limited to the date ranges specified. List all transactions in a category, optionally limited to the date ranges specified.
@ -672,7 +673,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(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
} }
@ -685,7 +686,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -695,7 +696,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -705,7 +706,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -715,7 +716,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -725,7 +726,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -738,6 +739,7 @@ func (a *CategoriesApiService) ListTransactionByCategory(ctx context.Context, id
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
CategoriesApiService Store a new category CategoriesApiService Store a new category
Creates a new category. The data required can be submitted as a JSON body or as a list of parameters. Creates a new category. The data required can be submitted as a JSON body or as a list of parameters.
@ -808,7 +810,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
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
} }
@ -821,7 +823,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v CategorySingle var v CategorySingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -831,7 +833,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -841,7 +843,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -851,7 +853,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -861,7 +863,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -871,7 +873,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -884,6 +886,7 @@ func (a *CategoriesApiService) StoreCategory(ctx context.Context, body Category,
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
CategoriesApiService Update existing category. CategoriesApiService Update existing category.
Update existing category. Update existing category.
@ -956,7 +959,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
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
} }
@ -969,7 +972,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v CategorySingle var v CategorySingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -979,7 +982,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -989,7 +992,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -999,7 +1002,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1009,7 +1012,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1019,7 +1022,7 @@ func (a *CategoriesApiService) UpdateCategory(ctx context.Context, body Category
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,12 +11,12 @@ package swagger
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 ConfigurationApiService service type ConfigurationApiService service
/* /*
ConfigurationApiService Get Firefly III system configuration values. ConfigurationApiService Get Firefly III system configuration values.
Returns all editable and not-editable configuration values for this Firefly III installation Returns all editable and not-editable configuration values for this Firefly III installation
@ -93,7 +93,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, 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
} }
@ -106,7 +106,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -116,7 +116,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -126,7 +126,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -136,7 +136,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -146,7 +146,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v []Configuration var v []Configuration
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -159,6 +159,7 @@ func (a *ConfigurationApiService) GetConfiguration(ctx context.Context, localVar
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
ConfigurationApiService Get a single Firefly III system configuration value ConfigurationApiService Get a single Firefly III system configuration value
Returns one configuration variable for this Firefly III installation Returns one configuration variable for this Firefly III installation
@ -228,7 +229,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
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
} }
@ -241,7 +242,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -251,7 +252,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -261,7 +262,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -271,7 +272,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -281,7 +282,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v ConfigurationSingle var v ConfigurationSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -294,6 +295,7 @@ func (a *ConfigurationApiService) GetSingleConfiguration(ctx context.Context, na
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
ConfigurationApiService Update configuration value ConfigurationApiService Update configuration value
Set a single configuration value. Not all configuration values can be updated so the list of accepted configuration variables is small. Set a single configuration value. Not all configuration values can be updated so the list of accepted configuration variables is small.
@ -347,7 +349,6 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
localVarHeaderParams["X-Trace-Id"] = parameterToString(localVarOptionals.XTraceId.Value(), "") localVarHeaderParams["X-Trace-Id"] = parameterToString(localVarOptionals.XTraceId.Value(), "")
} }
// body params // body params
localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return localVarReturnValue, nil, err return localVarReturnValue, nil, err
@ -366,7 +367,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
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
} }
@ -379,7 +380,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v ConfigurationSingle var v ConfigurationSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -389,7 +390,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -399,7 +400,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -409,7 +410,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -419,7 +420,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -429,7 +430,7 @@ func (a *ConfigurationApiService) SetConfiguration(ctx context.Context, value Po
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,11 +11,12 @@ package swagger
import ( import (
"context" "context"
"github.com/antihax/optional"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
"os"
"strings" "strings"
"github.com/antihax/optional"
) )
// Linger please // Linger please
@ -25,12 +25,12 @@ var (
) )
type DataApiService service type DataApiService service
/* /*
DataApiService Bulk update transaction properties. For more information, see https://docs.firefly-iii.org/references/firefly-iii/api/specials/ DataApiService Bulk update transaction properties. For more information, see https://docs.firefly-iii.org/references/firefly-iii/api/specials/
Allows you to update transactions in bulk. Allows you to update transactions in bulk.
* @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 query The JSON query. - @param query The JSON query.
*/ */
func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query string) (*http.Response, error) { func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query string) (*http.Response, error) {
var ( var (
@ -38,7 +38,6 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -82,7 +81,6 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -90,7 +88,7 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
} }
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 return localVarHttpResponse, newErr
@ -100,7 +98,7 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
} }
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 return localVarHttpResponse, newErr
@ -110,7 +108,7 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
} }
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 return localVarHttpResponse, newErr
@ -120,7 +118,7 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
} }
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 return localVarHttpResponse, newErr
@ -133,6 +131,7 @@ func (a *DataApiService) BulkUpdateTransactions(ctx context.Context, query strin
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
DataApiService Endpoint to destroy user data DataApiService Endpoint to destroy user data
A call to this endpoint deletes the requested data type. Use it with care and always with user permission. The demo user is incapable of using this endpoint. A call to this endpoint deletes the requested data type. Use it with care and always with user permission. The demo user is incapable of using this endpoint.
@ -153,7 +152,6 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -200,7 +198,6 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -208,7 +205,7 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
} }
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 return localVarHttpResponse, newErr
@ -218,7 +215,7 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
} }
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 return localVarHttpResponse, newErr
@ -228,7 +225,7 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
} }
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 return localVarHttpResponse, newErr
@ -238,7 +235,7 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
} }
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 return localVarHttpResponse, newErr
@ -251,6 +248,7 @@ func (a *DataApiService) DestroyData(ctx context.Context, objects DataDestroyObj
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
DataApiService Export account data from Firefly III DataApiService Export account data from Firefly III
This endpoint allows you to export your accounts from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your accounts from Firefly III into a file. Currently supports CSV exports only.
@ -323,7 +321,7 @@ func (a *DataApiService) ExportAccounts(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
} }
@ -336,7 +334,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -346,7 +344,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -356,7 +354,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -366,7 +364,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -376,7 +374,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -389,6 +387,7 @@ func (a *DataApiService) ExportAccounts(ctx context.Context, localVarOptionals *
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export bills from Firefly III DataApiService Export bills from Firefly III
This endpoint allows you to export your bills from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your bills from Firefly III into a file. Currently supports CSV exports only.
@ -461,7 +460,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
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
} }
@ -474,7 +473,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -484,7 +483,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -494,7 +493,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -504,7 +503,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -514,7 +513,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -527,6 +526,7 @@ func (a *DataApiService) ExportBills(ctx context.Context, localVarOptionals *Dat
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export budgets and budget amount data from Firefly III DataApiService Export budgets and budget amount data from Firefly III
This endpoint allows you to export your budgets and associated budget data from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your budgets and associated budget data from Firefly III into a file. Currently supports CSV exports only.
@ -599,7 +599,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
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
} }
@ -612,7 +612,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -622,7 +622,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -632,7 +632,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -642,7 +642,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -652,7 +652,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -665,6 +665,7 @@ func (a *DataApiService) ExportBudgets(ctx context.Context, localVarOptionals *D
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export category data from Firefly III DataApiService Export category data from Firefly III
This endpoint allows you to export your categories from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your categories from Firefly III into a file. Currently supports CSV exports only.
@ -737,7 +738,7 @@ func (a *DataApiService) ExportCategories(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
} }
@ -750,7 +751,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -760,7 +761,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -770,7 +771,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -780,7 +781,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -790,7 +791,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -803,6 +804,7 @@ func (a *DataApiService) ExportCategories(ctx context.Context, localVarOptionals
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export piggy banks from Firefly III DataApiService Export piggy banks from Firefly III
This endpoint allows you to export your piggy banks from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your piggy banks from Firefly III into a file. Currently supports CSV exports only.
@ -875,7 +877,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
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
} }
@ -888,7 +890,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -898,7 +900,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -908,7 +910,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -918,7 +920,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -928,7 +930,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -941,6 +943,7 @@ func (a *DataApiService) ExportPiggies(ctx context.Context, localVarOptionals *D
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export recurring transaction data from Firefly III DataApiService Export recurring transaction data from Firefly III
This endpoint allows you to export your recurring transactions from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your recurring transactions from Firefly III into a file. Currently supports CSV exports only.
@ -1013,7 +1016,7 @@ func (a *DataApiService) ExportRecurring(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
} }
@ -1026,7 +1029,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1036,7 +1039,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1046,7 +1049,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1056,7 +1059,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1066,7 +1069,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1079,6 +1082,7 @@ func (a *DataApiService) ExportRecurring(ctx context.Context, localVarOptionals
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export rule groups and rule data from Firefly III DataApiService Export rule groups and rule data from Firefly III
This endpoint allows you to export your rules and rule groups from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your rules and rule groups from Firefly III into a file. Currently supports CSV exports only.
@ -1151,7 +1155,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
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
} }
@ -1164,7 +1168,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1174,7 +1178,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1184,7 +1188,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1194,7 +1198,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1204,7 +1208,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1217,6 +1221,7 @@ func (a *DataApiService) ExportRules(ctx context.Context, localVarOptionals *Dat
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export tag data from Firefly III DataApiService Export tag data from Firefly III
This endpoint allows you to export your tags from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export your tags from Firefly III into a file. Currently supports CSV exports only.
@ -1289,7 +1294,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
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
} }
@ -1302,7 +1307,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1312,7 +1317,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1322,7 +1327,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1332,7 +1337,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1342,7 +1347,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1355,6 +1360,7 @@ func (a *DataApiService) ExportTags(ctx context.Context, localVarOptionals *Data
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Export transaction data from Firefly III DataApiService Export transaction data from Firefly III
This endpoint allows you to export transactions from Firefly III into a file. Currently supports CSV exports only. This endpoint allows you to export transactions from Firefly III into a file. Currently supports CSV exports only.
@ -1436,7 +1442,7 @@ func (a *DataApiService) ExportTransactions(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
} }
@ -1449,7 +1455,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1459,7 +1465,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1469,7 +1475,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1479,7 +1485,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1489,7 +1495,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v *os.File var v *os.File
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -1502,6 +1508,7 @@ func (a *DataApiService) ExportTransactions(ctx context.Context, start string, e
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
DataApiService Endpoint to purge user data DataApiService Endpoint to purge user data
A call to this endpoint purges all previously deleted data. Use it with care and always with user permission. The demo user is incapable of using this endpoint. A call to this endpoint purges all previously deleted data. Use it with care and always with user permission. The demo user is incapable of using this endpoint.
@ -1521,7 +1528,6 @@ func (a *DataApiService) PurgeData(ctx context.Context, localVarOptionals *DataA
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
// create path and map variables // create path and map variables
@ -1567,7 +1573,6 @@ func (a *DataApiService) PurgeData(ctx context.Context, localVarOptionals *DataA
return localVarHttpResponse, err return localVarHttpResponse, err
} }
if localVarHttpResponse.StatusCode >= 300 { if localVarHttpResponse.StatusCode >= 300 {
newErr := GenericSwaggerError{ newErr := GenericSwaggerError{
body: localVarBody, body: localVarBody,
@ -1575,7 +1580,7 @@ func (a *DataApiService) PurgeData(ctx context.Context, localVarOptionals *DataA
} }
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 return localVarHttpResponse, newErr
@ -1585,7 +1590,7 @@ func (a *DataApiService) PurgeData(ctx context.Context, localVarOptionals *DataA
} }
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 return localVarHttpResponse, newErr
@ -1595,7 +1600,7 @@ func (a *DataApiService) PurgeData(ctx context.Context, localVarOptionals *DataA
} }
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 return localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type PreferencesApiService service type PreferencesApiService service
/* /*
PreferencesApiService Return a single preference. PreferencesApiService Return a single preference.
Return a single preference and the value. Return a single preference and the value.
@ -96,7 +95,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name 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
} }
@ -109,7 +108,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v PreferenceSingle var v PreferenceSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -119,7 +118,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -129,7 +128,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -139,7 +138,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -149,7 +148,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -162,6 +161,7 @@ func (a *PreferencesApiService) GetPreference(ctx context.Context, name string,
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
PreferencesApiService List all users preferences. PreferencesApiService List all users preferences.
List all of the preferences of the user. List all of the preferences of the user.
@ -239,7 +239,7 @@ func (a *PreferencesApiService) ListPreference(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
} }
@ -252,7 +252,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v PreferenceArray var v PreferenceArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -262,7 +262,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -272,7 +272,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -282,7 +282,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -292,7 +292,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -305,6 +305,7 @@ func (a *PreferencesApiService) ListPreference(ctx context.Context, localVarOpti
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
PreferencesApiService Store a new preference for this user. PreferencesApiService Store a new preference for this user.
This endpoint creates a new preference. The name and data are free-format, and entirely up to you. If the preference is not used in Firefly III itself it may not be configurable through the user interface, but you can use this endpoint to persist custom data for your own app. This endpoint creates a new preference. The name and data are free-format, and entirely up to you. If the preference is not used in Firefly III itself it may not be configurable through the user interface, but you can use this endpoint to persist custom data for your own app.
@ -375,7 +376,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
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
} }
@ -388,7 +389,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v PreferenceSingle var v PreferenceSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -398,7 +399,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -408,7 +409,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -418,7 +419,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -428,7 +429,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -438,7 +439,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -451,6 +452,7 @@ func (a *PreferencesApiService) StorePreference(ctx context.Context, body Prefer
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
PreferencesApiService Update preference PreferencesApiService Update preference
Update a user&#x27;s preference. Update a user&#x27;s preference.
@ -523,7 +525,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
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
} }
@ -536,7 +538,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v PreferenceSingle var v PreferenceSingle
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -546,7 +548,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -556,7 +558,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -566,7 +568,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -576,7 +578,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -586,7 +588,7 @@ func (a *PreferencesApiService) UpdatePreference(ctx context.Context, body Prefe
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -1,4 +1,3 @@
/* /*
* Firefly III API v2.0.14 * Firefly III API v2.0.14
* *
@ -12,13 +11,12 @@ package swagger
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"
"time"
) )
// Linger please // Linger please
@ -27,6 +25,7 @@ var (
) )
type UsersApiService service type UsersApiService service
/* /*
UsersApiService Delete a user. UsersApiService Delete a user.
Delete a user. You cannot delete the user you&#x27;re authenticated with. This cannot be undone. Be careful! Delete a user. You cannot delete the user you&#x27;re authenticated with. This cannot be undone. Be careful!
@ -47,7 +46,6 @@ func (a *UsersApiService) DeleteUser(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
@ -94,7 +92,6 @@ func (a *UsersApiService) DeleteUser(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,
@ -102,7 +99,7 @@ func (a *UsersApiService) DeleteUser(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -112,7 +109,7 @@ func (a *UsersApiService) DeleteUser(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -122,7 +119,7 @@ func (a *UsersApiService) DeleteUser(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -132,7 +129,7 @@ func (a *UsersApiService) DeleteUser(ctx context.Context, id string, localVarOpt
} }
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 return localVarHttpResponse, newErr
@ -145,6 +142,7 @@ func (a *UsersApiService) DeleteUser(ctx context.Context, id string, localVarOpt
return localVarHttpResponse, nil return localVarHttpResponse, nil
} }
/* /*
UsersApiService Get a single user. UsersApiService Get a single user.
Gets all info of a single user. Gets all info of a single user.
@ -214,7 +212,7 @@ func (a *UsersApiService) GetUser(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
} }
@ -227,7 +225,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -237,7 +235,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -247,7 +245,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -257,7 +255,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -267,7 +265,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -280,6 +278,7 @@ func (a *UsersApiService) GetUser(ctx context.Context, id string, localVarOption
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
UsersApiService List all users. UsersApiService List all users.
List all the users in this instance of Firefly III. List all the users in this instance of Firefly III.
@ -357,7 +356,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
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
} }
@ -370,7 +369,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v UserArray var v UserArray
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -380,7 +379,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -390,7 +389,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -400,7 +399,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -410,7 +409,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -423,6 +422,7 @@ func (a *UsersApiService) ListUser(ctx context.Context, localVarOptionals *Users
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
UsersApiService Store a new user UsersApiService Store a new user
Creates a new user. The data required can be submitted as a JSON body or as a list of parameters. The user will be given a random password, which they can reset using the \&quot;forgot password\&quot; function. Creates a new user. The data required can be submitted as a JSON body or as a list of parameters. The user will be given a random password, which they can reset using the \&quot;forgot password\&quot; function.
@ -493,7 +493,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, 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
} }
@ -506,7 +506,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -516,7 +516,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -526,7 +526,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -536,7 +536,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -546,7 +546,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -556,7 +556,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -569,6 +569,7 @@ func (a *UsersApiService) StoreUser(ctx context.Context, body User, localVarOpti
return localVarReturnValue, localVarHttpResponse, nil return localVarReturnValue, localVarHttpResponse, nil
} }
/* /*
UsersApiService Update an existing user&#x27;s information. UsersApiService Update an existing user&#x27;s information.
Update existing user. Update existing user.
@ -641,7 +642,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, 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
} }
@ -654,7 +655,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -664,7 +665,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -674,7 +675,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -684,7 +685,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -694,7 +695,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr
@ -704,7 +705,7 @@ func (a *UsersApiService) UpdateUser(ctx context.Context, body User, id string,
} }
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 return localVarReturnValue, localVarHttpResponse, newErr

@ -9,9 +9,9 @@
*/ */
package swagger package swagger
type Configuration struct { //type Configuration struct {
Title *ConfigValueFilter `json:"title"` // Title *ConfigValueFilter `json:"title"`
Value *PolymorphicProperty `json:"value"` // Value *PolymorphicProperty `json:"value"`
// If this config variable can be edited by the user // // If this config variable can be edited by the user
Editable bool `json:"editable"` // Editable bool `json:"editable"`
} //}