Documentation
¶
Overview ¶
Package ynab provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateAccountRequest(server string, budgetId string, body CreateAccountJSONRequestBody) (*http.Request, error)
- func NewCreateAccountRequestWithBody(server string, budgetId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTransactionRequest(server string, budgetId string, body CreateTransactionJSONRequestBody) (*http.Request, error)
- func NewCreateTransactionRequestWithBody(server string, budgetId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteTransactionRequest(server string, budgetId string, transactionId string) (*http.Request, error)
- func NewGetAccountByIdRequest(server string, budgetId string, accountId openapi_types.UUID) (*http.Request, error)
- func NewGetAccountsRequest(server string, budgetId string, params *GetAccountsParams) (*http.Request, error)
- func NewGetBudgetByIdRequest(server string, budgetId string, params *GetBudgetByIdParams) (*http.Request, error)
- func NewGetBudgetMonthRequest(server string, budgetId string, month openapi_types.Date) (*http.Request, error)
- func NewGetBudgetMonthsRequest(server string, budgetId string, params *GetBudgetMonthsParams) (*http.Request, error)
- func NewGetBudgetSettingsByIdRequest(server string, budgetId string) (*http.Request, error)
- func NewGetBudgetsRequest(server string, params *GetBudgetsParams) (*http.Request, error)
- func NewGetCategoriesRequest(server string, budgetId string, params *GetCategoriesParams) (*http.Request, error)
- func NewGetCategoryByIdRequest(server string, budgetId string, categoryId string) (*http.Request, error)
- func NewGetMonthCategoryByIdRequest(server string, budgetId string, month openapi_types.Date, categoryId string) (*http.Request, error)
- func NewGetPayeeByIdRequest(server string, budgetId string, payeeId string) (*http.Request, error)
- func NewGetPayeeLocationByIdRequest(server string, budgetId string, payeeLocationId string) (*http.Request, error)
- func NewGetPayeeLocationsByPayeeRequest(server string, budgetId string, payeeId string) (*http.Request, error)
- func NewGetPayeeLocationsRequest(server string, budgetId string) (*http.Request, error)
- func NewGetPayeesRequest(server string, budgetId string, params *GetPayeesParams) (*http.Request, error)
- func NewGetScheduledTransactionByIdRequest(server string, budgetId string, scheduledTransactionId string) (*http.Request, error)
- func NewGetScheduledTransactionsRequest(server string, budgetId string, params *GetScheduledTransactionsParams) (*http.Request, error)
- func NewGetTransactionByIdRequest(server string, budgetId string, transactionId string) (*http.Request, error)
- func NewGetTransactionsByAccountRequest(server string, budgetId string, accountId string, ...) (*http.Request, error)
- func NewGetTransactionsByCategoryRequest(server string, budgetId string, categoryId string, ...) (*http.Request, error)
- func NewGetTransactionsByPayeeRequest(server string, budgetId string, payeeId string, ...) (*http.Request, error)
- func NewGetTransactionsRequest(server string, budgetId string, params *GetTransactionsParams) (*http.Request, error)
- func NewGetUserRequest(server string) (*http.Request, error)
- func NewImportTransactionsRequest(server string, budgetId string) (*http.Request, error)
- func NewUpdateCategoryRequest(server string, budgetId string, categoryId string, ...) (*http.Request, error)
- func NewUpdateCategoryRequestWithBody(server string, budgetId string, categoryId string, contentType string, ...) (*http.Request, error)
- func NewUpdateMonthCategoryRequest(server string, budgetId string, month openapi_types.Date, categoryId string, ...) (*http.Request, error)
- func NewUpdateMonthCategoryRequestWithBody(server string, budgetId string, month openapi_types.Date, categoryId string, ...) (*http.Request, error)
- func NewUpdateTransactionRequest(server string, budgetId string, transactionId string, ...) (*http.Request, error)
- func NewUpdateTransactionRequestWithBody(server string, budgetId string, transactionId string, contentType string, ...) (*http.Request, error)
- func NewUpdateTransactionsRequest(server string, budgetId string, body UpdateTransactionsJSONRequestBody) (*http.Request, error)
- func NewUpdateTransactionsRequestWithBody(server string, budgetId string, contentType string, body io.Reader) (*http.Request, error)
- func NewYnabAdapter(logger *zap.Logger, authToken string) (*ynabAdapter, error)
- type Account
- type AccountResponse
- type AccountType
- type AccountsResponse
- type BudgetDetail
- type BudgetDetailResponse
- type BudgetSettings
- type BudgetSettingsResponse
- type BudgetSummary
- type BudgetSummaryResponse
- type CategoriesResponse
- type Category
- type CategoryGoalType
- type CategoryGroup
- type CategoryGroupWithCategories
- type CategoryResponse
- type Client
- func (c *Client) CreateAccount(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAccountWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateTransaction(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTransactionWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteTransaction(ctx context.Context, budgetId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) GetAccountById(ctx context.Context, budgetId string, accountId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetAccounts(ctx context.Context, budgetId string, params *GetAccountsParams, ...) (*http.Response, error)
- func (c *Client) GetBudgetById(ctx context.Context, budgetId string, params *GetBudgetByIdParams, ...) (*http.Response, error)
- func (c *Client) GetBudgetMonth(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*http.Response, error)
- func (c *Client) GetBudgetMonths(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, ...) (*http.Response, error)
- func (c *Client) GetBudgetSettingsById(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBudgets(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCategories(ctx context.Context, budgetId string, params *GetCategoriesParams, ...) (*http.Response, error)
- func (c *Client) GetCategoryById(ctx context.Context, budgetId string, categoryId string, ...) (*http.Response, error)
- func (c *Client) GetMonthCategoryById(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*http.Response, error)
- func (c *Client) GetPayeeById(ctx context.Context, budgetId string, payeeId string, ...) (*http.Response, error)
- func (c *Client) GetPayeeLocationById(ctx context.Context, budgetId string, payeeLocationId string, ...) (*http.Response, error)
- func (c *Client) GetPayeeLocations(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPayeeLocationsByPayee(ctx context.Context, budgetId string, payeeId string, ...) (*http.Response, error)
- func (c *Client) GetPayees(ctx context.Context, budgetId string, params *GetPayeesParams, ...) (*http.Response, error)
- func (c *Client) GetScheduledTransactionById(ctx context.Context, budgetId string, scheduledTransactionId string, ...) (*http.Response, error)
- func (c *Client) GetScheduledTransactions(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, ...) (*http.Response, error)
- func (c *Client) GetTransactionById(ctx context.Context, budgetId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) GetTransactions(ctx context.Context, budgetId string, params *GetTransactionsParams, ...) (*http.Response, error)
- func (c *Client) GetTransactionsByAccount(ctx context.Context, budgetId string, accountId string, ...) (*http.Response, error)
- func (c *Client) GetTransactionsByCategory(ctx context.Context, budgetId string, categoryId string, ...) (*http.Response, error)
- func (c *Client) GetTransactionsByPayee(ctx context.Context, budgetId string, payeeId string, ...) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ImportTransactions(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateCategory(ctx context.Context, budgetId string, categoryId string, ...) (*http.Response, error)
- func (c *Client) UpdateCategoryWithBody(ctx context.Context, budgetId string, categoryId string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateMonthCategory(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*http.Response, error)
- func (c *Client) UpdateMonthCategoryWithBody(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*http.Response, error)
- func (c *Client) UpdateTransaction(ctx context.Context, budgetId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) UpdateTransactionWithBody(ctx context.Context, budgetId string, transactionId string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateTransactions(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTransactionsWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAccountWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*CreateAccountResponse, error)
- func (c *ClientWithResponses) CreateAccountWithResponse(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, ...) (*CreateAccountResponse, error)
- func (c *ClientWithResponses) CreateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*CreateTransactionResponse, error)
- func (c *ClientWithResponses) CreateTransactionWithResponse(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, ...) (*CreateTransactionResponse, error)
- func (c *ClientWithResponses) DeleteTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, ...) (*DeleteTransactionResponse, error)
- func (c *ClientWithResponses) GetAccountByIdWithResponse(ctx context.Context, budgetId string, accountId openapi_types.UUID, ...) (*GetAccountByIdResponse, error)
- func (c *ClientWithResponses) GetAccountsWithResponse(ctx context.Context, budgetId string, params *GetAccountsParams, ...) (*GetAccountsResponse, error)
- func (c *ClientWithResponses) GetBudgetByIdWithResponse(ctx context.Context, budgetId string, params *GetBudgetByIdParams, ...) (*GetBudgetByIdResponse, error)
- func (c *ClientWithResponses) GetBudgetMonthWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*GetBudgetMonthResponse, error)
- func (c *ClientWithResponses) GetBudgetMonthsWithResponse(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, ...) (*GetBudgetMonthsResponse, error)
- func (c *ClientWithResponses) GetBudgetSettingsByIdWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetBudgetSettingsByIdResponse, error)
- func (c *ClientWithResponses) GetBudgetsWithResponse(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*GetBudgetsResponse, error)
- func (c *ClientWithResponses) GetCategoriesWithResponse(ctx context.Context, budgetId string, params *GetCategoriesParams, ...) (*GetCategoriesResponse, error)
- func (c *ClientWithResponses) GetCategoryByIdWithResponse(ctx context.Context, budgetId string, categoryId string, ...) (*GetCategoryByIdResponse, error)
- func (c *ClientWithResponses) GetMonthCategoryByIdWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*GetMonthCategoryByIdResponse, error)
- func (c *ClientWithResponses) GetPayeeByIdWithResponse(ctx context.Context, budgetId string, payeeId string, ...) (*GetPayeeByIdResponse, error)
- func (c *ClientWithResponses) GetPayeeLocationByIdWithResponse(ctx context.Context, budgetId string, payeeLocationId string, ...) (*GetPayeeLocationByIdResponse, error)
- func (c *ClientWithResponses) GetPayeeLocationsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, ...) (*GetPayeeLocationsByPayeeResponse, error)
- func (c *ClientWithResponses) GetPayeeLocationsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationsResponse, error)
- func (c *ClientWithResponses) GetPayeesWithResponse(ctx context.Context, budgetId string, params *GetPayeesParams, ...) (*GetPayeesResponse, error)
- func (c *ClientWithResponses) GetScheduledTransactionByIdWithResponse(ctx context.Context, budgetId string, scheduledTransactionId string, ...) (*GetScheduledTransactionByIdResponse, error)
- func (c *ClientWithResponses) GetScheduledTransactionsWithResponse(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, ...) (*GetScheduledTransactionsResponse, error)
- func (c *ClientWithResponses) GetTransactionByIdWithResponse(ctx context.Context, budgetId string, transactionId string, ...) (*GetTransactionByIdResponse, error)
- func (c *ClientWithResponses) GetTransactionsByAccountWithResponse(ctx context.Context, budgetId string, accountId string, ...) (*GetTransactionsByAccountResponse, error)
- func (c *ClientWithResponses) GetTransactionsByCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, ...) (*GetTransactionsByCategoryResponse, error)
- func (c *ClientWithResponses) GetTransactionsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, ...) (*GetTransactionsByPayeeResponse, error)
- func (c *ClientWithResponses) GetTransactionsWithResponse(ctx context.Context, budgetId string, params *GetTransactionsParams, ...) (*GetTransactionsResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) ImportTransactionsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*ImportTransactionsResponse, error)
- func (c *ClientWithResponses) UpdateCategoryWithBodyWithResponse(ctx context.Context, budgetId string, categoryId string, contentType string, ...) (*UpdateCategoryResponse, error)
- func (c *ClientWithResponses) UpdateCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, ...) (*UpdateCategoryResponse, error)
- func (c *ClientWithResponses) UpdateMonthCategoryWithBodyWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*UpdateMonthCategoryResponse, error)
- func (c *ClientWithResponses) UpdateMonthCategoryWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, ...) (*UpdateMonthCategoryResponse, error)
- func (c *ClientWithResponses) UpdateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, transactionId string, contentType string, ...) (*UpdateTransactionResponse, error)
- func (c *ClientWithResponses) UpdateTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, ...) (*UpdateTransactionResponse, error)
- func (c *ClientWithResponses) UpdateTransactionsWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, ...) (*UpdateTransactionsResponse, error)
- func (c *ClientWithResponses) UpdateTransactionsWithResponse(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, ...) (*UpdateTransactionsResponse, error)
- type ClientWithResponsesInterface
- type CreateAccountJSONRequestBody
- type CreateAccountResponse
- type CreateTransactionJSONRequestBody
- type CreateTransactionResponse
- type CurrencyFormat
- type DateFormat
- type DeleteTransactionResponse
- type ErrorDetail
- type ErrorResponse
- type GetAccountByIdResponse
- type GetAccountsParams
- type GetAccountsResponse
- type GetBudgetByIdParams
- type GetBudgetByIdResponse
- type GetBudgetMonthResponse
- type GetBudgetMonthsParams
- type GetBudgetMonthsResponse
- type GetBudgetSettingsByIdResponse
- type GetBudgetsParams
- type GetBudgetsResponse
- type GetCategoriesParams
- type GetCategoriesResponse
- type GetCategoryByIdResponse
- type GetMonthCategoryByIdResponse
- type GetPayeeByIdResponse
- type GetPayeeLocationByIdResponse
- type GetPayeeLocationsByPayeeResponse
- type GetPayeeLocationsResponse
- type GetPayeesParams
- type GetPayeesResponse
- type GetScheduledTransactionByIdResponse
- type GetScheduledTransactionsParams
- type GetScheduledTransactionsResponse
- type GetTransactionByIdResponse
- type GetTransactionsByAccountParams
- type GetTransactionsByAccountParamsType
- type GetTransactionsByAccountResponse
- type GetTransactionsByCategoryParams
- type GetTransactionsByCategoryParamsType
- type GetTransactionsByCategoryResponse
- type GetTransactionsByPayeeParams
- type GetTransactionsByPayeeParamsType
- type GetTransactionsByPayeeResponse
- type GetTransactionsParams
- type GetTransactionsParamsType
- type GetTransactionsResponse
- type GetUserResponse
- type HttpRequestDoer
- type HybridTransaction
- type HybridTransactionDebtTransactionType
- type HybridTransactionType
- type HybridTransactionsResponse
- type ImportTransactionsResponse
- type LoanAccountPeriodicValue
- type MonthDetail
- type MonthDetailResponse
- type MonthSummariesResponse
- type MonthSummary
- type PatchCategoryWrapper
- type PatchMonthCategoryWrapper
- type PatchTransactionsWrapper
- type Payee
- type PayeeLocation
- type PayeeLocationResponse
- type PayeeLocationsResponse
- type PayeeResponse
- type PayeesResponse
- type PostAccountWrapper
- type PostTransactionsWrapper
- type PutTransactionWrapper
- type RequestEditorFn
- type SaveAccount
- type SaveCategory
- type SaveCategoryResponse
- type SaveMonthCategory
- type SaveSubTransaction
- type SaveTransaction
- type SaveTransactionWithId
- type SaveTransactionWithOptionalFields
- type SaveTransactionsResponse
- type ScheduledSubTransaction
- type ScheduledTransactionDetail
- type ScheduledTransactionDetailFrequency
- type ScheduledTransactionResponse
- type ScheduledTransactionSummary
- type ScheduledTransactionSummaryFrequency
- type ScheduledTransactionsResponse
- type SubTransaction
- type TransactionClearedStatus
- type TransactionDetail
- type TransactionDetailDebtTransactionType
- type TransactionFlagColor
- type TransactionResponse
- type TransactionSummary
- type TransactionSummaryDebtTransactionType
- type TransactionsImportResponse
- type TransactionsResponse
- type UpdateCategoryJSONRequestBody
- type UpdateCategoryResponse
- type UpdateMonthCategoryJSONRequestBody
- type UpdateMonthCategoryResponse
- type UpdateTransactionJSONRequestBody
- type UpdateTransactionResponse
- type UpdateTransactionsJSONRequestBody
- type UpdateTransactionsResponse
- type User
- type UserResponse
Constants ¶
const (
BearerScopes = "bearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateAccountRequest ¶
func NewCreateAccountRequest(server string, budgetId string, body CreateAccountJSONRequestBody) (*http.Request, error)
NewCreateAccountRequest calls the generic CreateAccount builder with application/json body
func NewCreateAccountRequestWithBody ¶
func NewCreateAccountRequestWithBody(server string, budgetId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAccountRequestWithBody generates requests for CreateAccount with any type of body
func NewCreateTransactionRequest ¶
func NewCreateTransactionRequest(server string, budgetId string, body CreateTransactionJSONRequestBody) (*http.Request, error)
NewCreateTransactionRequest calls the generic CreateTransaction builder with application/json body
func NewCreateTransactionRequestWithBody ¶
func NewCreateTransactionRequestWithBody(server string, budgetId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTransactionRequestWithBody generates requests for CreateTransaction with any type of body
func NewDeleteTransactionRequest ¶
func NewDeleteTransactionRequest(server string, budgetId string, transactionId string) (*http.Request, error)
NewDeleteTransactionRequest generates requests for DeleteTransaction
func NewGetAccountByIdRequest ¶
func NewGetAccountByIdRequest(server string, budgetId string, accountId openapi_types.UUID) (*http.Request, error)
NewGetAccountByIdRequest generates requests for GetAccountById
func NewGetAccountsRequest ¶
func NewGetAccountsRequest(server string, budgetId string, params *GetAccountsParams) (*http.Request, error)
NewGetAccountsRequest generates requests for GetAccounts
func NewGetBudgetByIdRequest ¶
func NewGetBudgetByIdRequest(server string, budgetId string, params *GetBudgetByIdParams) (*http.Request, error)
NewGetBudgetByIdRequest generates requests for GetBudgetById
func NewGetBudgetMonthRequest ¶
func NewGetBudgetMonthRequest(server string, budgetId string, month openapi_types.Date) (*http.Request, error)
NewGetBudgetMonthRequest generates requests for GetBudgetMonth
func NewGetBudgetMonthsRequest ¶
func NewGetBudgetMonthsRequest(server string, budgetId string, params *GetBudgetMonthsParams) (*http.Request, error)
NewGetBudgetMonthsRequest generates requests for GetBudgetMonths
func NewGetBudgetSettingsByIdRequest ¶
NewGetBudgetSettingsByIdRequest generates requests for GetBudgetSettingsById
func NewGetBudgetsRequest ¶
func NewGetBudgetsRequest(server string, params *GetBudgetsParams) (*http.Request, error)
NewGetBudgetsRequest generates requests for GetBudgets
func NewGetCategoriesRequest ¶
func NewGetCategoriesRequest(server string, budgetId string, params *GetCategoriesParams) (*http.Request, error)
NewGetCategoriesRequest generates requests for GetCategories
func NewGetCategoryByIdRequest ¶
func NewGetCategoryByIdRequest(server string, budgetId string, categoryId string) (*http.Request, error)
NewGetCategoryByIdRequest generates requests for GetCategoryById
func NewGetMonthCategoryByIdRequest ¶
func NewGetMonthCategoryByIdRequest(server string, budgetId string, month openapi_types.Date, categoryId string) (*http.Request, error)
NewGetMonthCategoryByIdRequest generates requests for GetMonthCategoryById
func NewGetPayeeByIdRequest ¶
NewGetPayeeByIdRequest generates requests for GetPayeeById
func NewGetPayeeLocationByIdRequest ¶
func NewGetPayeeLocationByIdRequest(server string, budgetId string, payeeLocationId string) (*http.Request, error)
NewGetPayeeLocationByIdRequest generates requests for GetPayeeLocationById
func NewGetPayeeLocationsByPayeeRequest ¶
func NewGetPayeeLocationsByPayeeRequest(server string, budgetId string, payeeId string) (*http.Request, error)
NewGetPayeeLocationsByPayeeRequest generates requests for GetPayeeLocationsByPayee
func NewGetPayeeLocationsRequest ¶
NewGetPayeeLocationsRequest generates requests for GetPayeeLocations
func NewGetPayeesRequest ¶
func NewGetPayeesRequest(server string, budgetId string, params *GetPayeesParams) (*http.Request, error)
NewGetPayeesRequest generates requests for GetPayees
func NewGetScheduledTransactionByIdRequest ¶
func NewGetScheduledTransactionByIdRequest(server string, budgetId string, scheduledTransactionId string) (*http.Request, error)
NewGetScheduledTransactionByIdRequest generates requests for GetScheduledTransactionById
func NewGetScheduledTransactionsRequest ¶
func NewGetScheduledTransactionsRequest(server string, budgetId string, params *GetScheduledTransactionsParams) (*http.Request, error)
NewGetScheduledTransactionsRequest generates requests for GetScheduledTransactions
func NewGetTransactionByIdRequest ¶
func NewGetTransactionByIdRequest(server string, budgetId string, transactionId string) (*http.Request, error)
NewGetTransactionByIdRequest generates requests for GetTransactionById
func NewGetTransactionsByAccountRequest ¶
func NewGetTransactionsByAccountRequest(server string, budgetId string, accountId string, params *GetTransactionsByAccountParams) (*http.Request, error)
NewGetTransactionsByAccountRequest generates requests for GetTransactionsByAccount
func NewGetTransactionsByCategoryRequest ¶
func NewGetTransactionsByCategoryRequest(server string, budgetId string, categoryId string, params *GetTransactionsByCategoryParams) (*http.Request, error)
NewGetTransactionsByCategoryRequest generates requests for GetTransactionsByCategory
func NewGetTransactionsByPayeeRequest ¶
func NewGetTransactionsByPayeeRequest(server string, budgetId string, payeeId string, params *GetTransactionsByPayeeParams) (*http.Request, error)
NewGetTransactionsByPayeeRequest generates requests for GetTransactionsByPayee
func NewGetTransactionsRequest ¶
func NewGetTransactionsRequest(server string, budgetId string, params *GetTransactionsParams) (*http.Request, error)
NewGetTransactionsRequest generates requests for GetTransactions
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewImportTransactionsRequest ¶
NewImportTransactionsRequest generates requests for ImportTransactions
func NewUpdateCategoryRequest ¶
func NewUpdateCategoryRequest(server string, budgetId string, categoryId string, body UpdateCategoryJSONRequestBody) (*http.Request, error)
NewUpdateCategoryRequest calls the generic UpdateCategory builder with application/json body
func NewUpdateCategoryRequestWithBody ¶
func NewUpdateCategoryRequestWithBody(server string, budgetId string, categoryId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCategoryRequestWithBody generates requests for UpdateCategory with any type of body
func NewUpdateMonthCategoryRequest ¶
func NewUpdateMonthCategoryRequest(server string, budgetId string, month openapi_types.Date, categoryId string, body UpdateMonthCategoryJSONRequestBody) (*http.Request, error)
NewUpdateMonthCategoryRequest calls the generic UpdateMonthCategory builder with application/json body
func NewUpdateMonthCategoryRequestWithBody ¶
func NewUpdateMonthCategoryRequestWithBody(server string, budgetId string, month openapi_types.Date, categoryId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMonthCategoryRequestWithBody generates requests for UpdateMonthCategory with any type of body
func NewUpdateTransactionRequest ¶
func NewUpdateTransactionRequest(server string, budgetId string, transactionId string, body UpdateTransactionJSONRequestBody) (*http.Request, error)
NewUpdateTransactionRequest calls the generic UpdateTransaction builder with application/json body
func NewUpdateTransactionRequestWithBody ¶
func NewUpdateTransactionRequestWithBody(server string, budgetId string, transactionId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTransactionRequestWithBody generates requests for UpdateTransaction with any type of body
func NewUpdateTransactionsRequest ¶
func NewUpdateTransactionsRequest(server string, budgetId string, body UpdateTransactionsJSONRequestBody) (*http.Request, error)
NewUpdateTransactionsRequest calls the generic UpdateTransactions builder with application/json body
Types ¶
type Account ¶
type Account struct {
// Balance The current balance of the account in milliunits format
Balance int64 `json:"balance"`
// ClearedBalance The current cleared balance of the account in milliunits format
ClearedBalance int64 `json:"cleared_balance"`
// Closed Whether this account is closed or not
Closed bool `json:"closed"`
DebtEscrowAmounts *LoanAccountPeriodicValue `json:"debt_escrow_amounts"`
DebtInterestRates *LoanAccountPeriodicValue `json:"debt_interest_rates"`
DebtMinimumPayments *LoanAccountPeriodicValue `json:"debt_minimum_payments"`
// DebtOriginalBalance The original debt/loan account balance, specified in milliunits format.
DebtOriginalBalance *int64 `json:"debt_original_balance"`
// Deleted Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
Deleted bool `json:"deleted"`
// DirectImportInError If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.
DirectImportInError *bool `json:"direct_import_in_error,omitempty"`
// DirectImportLinked Whether or not the account is linked to a financial institution for automatic transaction import.
DirectImportLinked *bool `json:"direct_import_linked,omitempty"`
Id openapi_types.UUID `json:"id"`
// LastReconciledAt A date/time specifying when the account was last reconciled.
LastReconciledAt *time.Time `json:"last_reconciled_at"`
Name string `json:"name"`
Note *string `json:"note"`
// OnBudget Whether this account is on budget or not
OnBudget bool `json:"on_budget"`
// TransferPayeeId The payee id which should be used when transferring to this account
TransferPayeeId *openapi_types.UUID `json:"transfer_payee_id"`
// Type The type of account
Type AccountType `json:"type"`
// UnclearedBalance The current uncleared balance of the account in milliunits format
UnclearedBalance int64 `json:"uncleared_balance"`
}
Account defines model for Account.
type AccountResponse ¶
type AccountResponse struct {
Data struct {
Account Account `json:"account"`
} `json:"data"`
}
AccountResponse defines model for AccountResponse.
type AccountType ¶
type AccountType string
AccountType The type of account
const ( AutoLoan AccountType = "autoLoan" Cash AccountType = "cash" Checking AccountType = "checking" CreditCard AccountType = "creditCard" LineOfCredit AccountType = "lineOfCredit" MedicalDebt AccountType = "medicalDebt" Mortgage AccountType = "mortgage" OtherAsset AccountType = "otherAsset" OtherDebt AccountType = "otherDebt" OtherLiability AccountType = "otherLiability" PersonalLoan AccountType = "personalLoan" Savings AccountType = "savings" StudentLoan AccountType = "studentLoan" )
Defines values for AccountType.
type AccountsResponse ¶
type AccountsResponse struct {
Data struct {
Accounts []Account `json:"accounts"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
AccountsResponse defines model for AccountsResponse.
type BudgetDetail ¶
type BudgetDetail struct {
Accounts *[]Account `json:"accounts,omitempty"`
Categories *[]Category `json:"categories,omitempty"`
CategoryGroups *[]CategoryGroup `json:"category_groups,omitempty"`
// CurrencyFormat The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
CurrencyFormat *CurrencyFormat `json:"currency_format"`
// DateFormat The date format setting for the budget. In some cases the format will not be available and will be specified as null.
DateFormat *DateFormat `json:"date_format"`
// FirstMonth The earliest budget month
FirstMonth *openapi_types.Date `json:"first_month,omitempty"`
Id openapi_types.UUID `json:"id"`
// LastModifiedOn The last time any changes were made to the budget from either a web or mobile client
LastModifiedOn *time.Time `json:"last_modified_on,omitempty"`
// LastMonth The latest budget month
LastMonth *openapi_types.Date `json:"last_month,omitempty"`
Months *[]MonthDetail `json:"months,omitempty"`
Name string `json:"name"`
PayeeLocations *[]PayeeLocation `json:"payee_locations,omitempty"`
Payees *[]Payee `json:"payees,omitempty"`
ScheduledSubtransactions *[]ScheduledSubTransaction `json:"scheduled_subtransactions,omitempty"`
ScheduledTransactions *[]ScheduledTransactionSummary `json:"scheduled_transactions,omitempty"`
Subtransactions *[]SubTransaction `json:"subtransactions,omitempty"`
Transactions *[]TransactionSummary `json:"transactions,omitempty"`
}
BudgetDetail defines model for BudgetDetail.
type BudgetDetailResponse ¶
type BudgetDetailResponse struct {
Data struct {
Budget BudgetDetail `json:"budget"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
BudgetDetailResponse defines model for BudgetDetailResponse.
type BudgetSettings ¶
type BudgetSettings struct {
// CurrencyFormat The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
CurrencyFormat *CurrencyFormat `json:"currency_format"`
// DateFormat The date format setting for the budget. In some cases the format will not be available and will be specified as null.
DateFormat *DateFormat `json:"date_format"`
}
BudgetSettings defines model for BudgetSettings.
type BudgetSettingsResponse ¶
type BudgetSettingsResponse struct {
Data struct {
Settings BudgetSettings `json:"settings"`
} `json:"data"`
}
BudgetSettingsResponse defines model for BudgetSettingsResponse.
type BudgetSummary ¶
type BudgetSummary struct {
// Accounts The budget accounts (only included if `include_accounts=true` specified as query parameter)
Accounts *[]Account `json:"accounts,omitempty"`
// CurrencyFormat The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
CurrencyFormat *CurrencyFormat `json:"currency_format"`
// DateFormat The date format setting for the budget. In some cases the format will not be available and will be specified as null.
DateFormat *DateFormat `json:"date_format"`
// FirstMonth The earliest budget month
FirstMonth *openapi_types.Date `json:"first_month,omitempty"`
Id openapi_types.UUID `json:"id"`
// LastModifiedOn The last time any changes were made to the budget from either a web or mobile client
LastModifiedOn *time.Time `json:"last_modified_on,omitempty"`
// LastMonth The latest budget month
LastMonth *openapi_types.Date `json:"last_month,omitempty"`
Name string `json:"name"`
}
BudgetSummary defines model for BudgetSummary.
type BudgetSummaryResponse ¶
type BudgetSummaryResponse struct {
Data struct {
Budgets []BudgetSummary `json:"budgets"`
DefaultBudget *BudgetSummary `json:"default_budget,omitempty"`
} `json:"data"`
}
BudgetSummaryResponse defines model for BudgetSummaryResponse.
type CategoriesResponse ¶
type CategoriesResponse struct {
Data struct {
CategoryGroups []CategoryGroupWithCategories `json:"category_groups"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
CategoriesResponse defines model for CategoriesResponse.
type Category ¶
type Category struct {
// Activity Activity amount in milliunits format
Activity int64 `json:"activity"`
// Balance Balance in milliunits format
Balance int64 `json:"balance"`
// Budgeted Budgeted amount in milliunits format
Budgeted int64 `json:"budgeted"`
CategoryGroupId openapi_types.UUID `json:"category_group_id"`
CategoryGroupName *string `json:"category_group_name,omitempty"`
// Deleted Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
Deleted bool `json:"deleted"`
// GoalCadence The goal cadence. Value in range 0-14. There are two subsets of these values which behave differently. For values 0, 1, 2, and 13, the goal's due date repeats every goal_cadence * goal_cadence_frequency, where 0 = None, 1 = Monthly, 2 = Weekly, and 13 = Yearly. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. For values 3-12 and 14, goal_cadence_frequency is ignored and the goal's due date repeats every goal_cadence, where 3 = Every 2 Months, 4 = Every 3 Months, ..., 12 = Every 11 Months, and 14 = Every 2 Years.
GoalCadence *int32 `json:"goal_cadence"`
// GoalCadenceFrequency The goal cadence frequency. When goal_cadence is 0, 1, 2, or 13, a goal's due date repeats every goal_cadence * goal_cadence_frequency. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. When goal_cadence is 3-12 or 14, goal_cadence_frequency is ignored.
GoalCadenceFrequency *int32 `json:"goal_cadence_frequency"`
// GoalCreationMonth The month a goal was created
GoalCreationMonth *openapi_types.Date `json:"goal_creation_month"`
// GoalDay A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month).
GoalDay *int32 `json:"goal_day"`
// GoalMonthsToBudget The number of months, including the current month, left in the current goal period.
GoalMonthsToBudget *int32 `json:"goal_months_to_budget"`
// GoalOverallFunded The total amount funded towards the goal within the current goal period.
GoalOverallFunded *int64 `json:"goal_overall_funded"`
// GoalOverallLeft The amount of funding still needed to complete the goal within the current goal period.
GoalOverallLeft *int64 `json:"goal_overall_left"`
// GoalPercentageComplete The percentage completion of the goal
GoalPercentageComplete *int32 `json:"goal_percentage_complete"`
// GoalTarget The goal target amount in milliunits
GoalTarget *int64 `json:"goal_target"`
// GoalTargetMonth The original target month for the goal to be completed. Only some goal types specify this date.
GoalTargetMonth *openapi_types.Date `json:"goal_target_month"`
// GoalType The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
GoalType *CategoryGoalType `json:"goal_type"`
// GoalUnderFunded The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month.
GoalUnderFunded *int64 `json:"goal_under_funded"`
// Hidden Whether or not the category is hidden
Hidden bool `json:"hidden"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Note *string `json:"note"`
// OriginalCategoryGroupId DEPRECATED: No longer used. Value will always be null.
OriginalCategoryGroupId *openapi_types.UUID `json:"original_category_group_id"`
}
Category defines model for Category.
type CategoryGoalType ¶
type CategoryGoalType string
CategoryGoalType The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
const ( CategoryGoalTypeDEBT CategoryGoalType = "DEBT" CategoryGoalTypeMF CategoryGoalType = "MF" CategoryGoalTypeNEED CategoryGoalType = "NEED" CategoryGoalTypeNil CategoryGoalType = "<nil>" CategoryGoalTypeTB CategoryGoalType = "TB" CategoryGoalTypeTBD CategoryGoalType = "TBD" )
Defines values for CategoryGoalType.
type CategoryGroup ¶
type CategoryGroup struct {
// Deleted Whether or not the category group has been deleted. Deleted category groups will only be included in delta requests.
Deleted bool `json:"deleted"`
// Hidden Whether or not the category group is hidden
Hidden bool `json:"hidden"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
CategoryGroup defines model for CategoryGroup.
type CategoryGroupWithCategories ¶
type CategoryGroupWithCategories struct {
// Categories Category group categories. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
Categories []Category `json:"categories"`
// Deleted Whether or not the category group has been deleted. Deleted category groups will only be included in delta requests.
Deleted bool `json:"deleted"`
// Hidden Whether or not the category group is hidden
Hidden bool `json:"hidden"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
CategoryGroupWithCategories defines model for CategoryGroupWithCategories.
type CategoryResponse ¶
type CategoryResponse struct {
Data struct {
Category Category `json:"category"`
} `json:"data"`
}
CategoryResponse defines model for CategoryResponse.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAccountWithBody ¶
func (*Client) CreateTransaction ¶
func (c *Client) CreateTransaction(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTransactionWithBody ¶
func (*Client) DeleteTransaction ¶
func (*Client) GetAccountById ¶
func (c *Client) GetAccountById(ctx context.Context, budgetId string, accountId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAccounts ¶
func (c *Client) GetAccounts(ctx context.Context, budgetId string, params *GetAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBudgetById ¶
func (c *Client) GetBudgetById(ctx context.Context, budgetId string, params *GetBudgetByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBudgetMonth ¶
func (c *Client) GetBudgetMonth(ctx context.Context, budgetId string, month openapi_types.Date, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBudgetMonths ¶
func (c *Client) GetBudgetMonths(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBudgetSettingsById ¶
func (*Client) GetBudgets ¶
func (c *Client) GetBudgets(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCategories ¶
func (c *Client) GetCategories(ctx context.Context, budgetId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCategoryById ¶
func (*Client) GetMonthCategoryById ¶
func (*Client) GetPayeeById ¶
func (*Client) GetPayeeLocationById ¶
func (*Client) GetPayeeLocations ¶
func (*Client) GetPayeeLocationsByPayee ¶
func (*Client) GetPayees ¶
func (c *Client) GetPayees(ctx context.Context, budgetId string, params *GetPayeesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetScheduledTransactionById ¶
func (*Client) GetScheduledTransactions ¶
func (c *Client) GetScheduledTransactions(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransactionById ¶
func (*Client) GetTransactions ¶
func (c *Client) GetTransactions(ctx context.Context, budgetId string, params *GetTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransactionsByAccount ¶
func (c *Client) GetTransactionsByAccount(ctx context.Context, budgetId string, accountId string, params *GetTransactionsByAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransactionsByCategory ¶
func (c *Client) GetTransactionsByCategory(ctx context.Context, budgetId string, categoryId string, params *GetTransactionsByCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransactionsByPayee ¶
func (c *Client) GetTransactionsByPayee(ctx context.Context, budgetId string, payeeId string, params *GetTransactionsByPayeeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ImportTransactions ¶
func (*Client) UpdateCategory ¶
func (c *Client) UpdateCategory(ctx context.Context, budgetId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCategoryWithBody ¶
func (*Client) UpdateMonthCategory ¶
func (c *Client) UpdateMonthCategory(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, body UpdateMonthCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMonthCategoryWithBody ¶
func (*Client) UpdateTransaction ¶
func (c *Client) UpdateTransaction(ctx context.Context, budgetId string, transactionId string, body UpdateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTransactionWithBody ¶
func (*Client) UpdateTransactions ¶
func (c *Client) UpdateTransactions(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetBudgets request
GetBudgets(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBudgetById request
GetBudgetById(ctx context.Context, budgetId string, params *GetBudgetByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccounts request
GetAccounts(ctx context.Context, budgetId string, params *GetAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAccountWithBody request with any body
CreateAccountWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAccount(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountById request
GetAccountById(ctx context.Context, budgetId string, accountId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransactionsByAccount request
GetTransactionsByAccount(ctx context.Context, budgetId string, accountId string, params *GetTransactionsByAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCategories request
GetCategories(ctx context.Context, budgetId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCategoryById request
GetCategoryById(ctx context.Context, budgetId string, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCategoryWithBody request with any body
UpdateCategoryWithBody(ctx context.Context, budgetId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCategory(ctx context.Context, budgetId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransactionsByCategory request
GetTransactionsByCategory(ctx context.Context, budgetId string, categoryId string, params *GetTransactionsByCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBudgetMonths request
GetBudgetMonths(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBudgetMonth request
GetBudgetMonth(ctx context.Context, budgetId string, month openapi_types.Date, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonthCategoryById request
GetMonthCategoryById(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMonthCategoryWithBody request with any body
UpdateMonthCategoryWithBody(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMonthCategory(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, body UpdateMonthCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayeeLocations request
GetPayeeLocations(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayeeLocationById request
GetPayeeLocationById(ctx context.Context, budgetId string, payeeLocationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayees request
GetPayees(ctx context.Context, budgetId string, params *GetPayeesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayeeById request
GetPayeeById(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayeeLocationsByPayee request
GetPayeeLocationsByPayee(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransactionsByPayee request
GetTransactionsByPayee(ctx context.Context, budgetId string, payeeId string, params *GetTransactionsByPayeeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetScheduledTransactions request
GetScheduledTransactions(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetScheduledTransactionById request
GetScheduledTransactionById(ctx context.Context, budgetId string, scheduledTransactionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBudgetSettingsById request
GetBudgetSettingsById(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransactions request
GetTransactions(ctx context.Context, budgetId string, params *GetTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTransactionsWithBody request with any body
UpdateTransactionsWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTransactions(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTransactionWithBody request with any body
CreateTransactionWithBody(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTransaction(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportTransactions request
ImportTransactions(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTransaction request
DeleteTransaction(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransactionById request
GetTransactionById(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTransactionWithBody request with any body
UpdateTransactionWithBody(ctx context.Context, budgetId string, transactionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTransaction(ctx context.Context, budgetId string, transactionId string, body UpdateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAccountWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccountResponse, error)
CreateAccountWithBodyWithResponse request with arbitrary body returning *CreateAccountResponse
func (*ClientWithResponses) CreateAccountWithResponse ¶
func (c *ClientWithResponses) CreateAccountWithResponse(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccountResponse, error)
func (*ClientWithResponses) CreateTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTransactionResponse, error)
CreateTransactionWithBodyWithResponse request with arbitrary body returning *CreateTransactionResponse
func (*ClientWithResponses) CreateTransactionWithResponse ¶
func (c *ClientWithResponses) CreateTransactionWithResponse(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTransactionResponse, error)
func (*ClientWithResponses) DeleteTransactionWithResponse ¶
func (c *ClientWithResponses) DeleteTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*DeleteTransactionResponse, error)
DeleteTransactionWithResponse request returning *DeleteTransactionResponse
func (*ClientWithResponses) GetAccountByIdWithResponse ¶
func (c *ClientWithResponses) GetAccountByIdWithResponse(ctx context.Context, budgetId string, accountId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAccountByIdResponse, error)
GetAccountByIdWithResponse request returning *GetAccountByIdResponse
func (*ClientWithResponses) GetAccountsWithResponse ¶
func (c *ClientWithResponses) GetAccountsWithResponse(ctx context.Context, budgetId string, params *GetAccountsParams, reqEditors ...RequestEditorFn) (*GetAccountsResponse, error)
GetAccountsWithResponse request returning *GetAccountsResponse
func (*ClientWithResponses) GetBudgetByIdWithResponse ¶
func (c *ClientWithResponses) GetBudgetByIdWithResponse(ctx context.Context, budgetId string, params *GetBudgetByIdParams, reqEditors ...RequestEditorFn) (*GetBudgetByIdResponse, error)
GetBudgetByIdWithResponse request returning *GetBudgetByIdResponse
func (*ClientWithResponses) GetBudgetMonthWithResponse ¶
func (c *ClientWithResponses) GetBudgetMonthWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, reqEditors ...RequestEditorFn) (*GetBudgetMonthResponse, error)
GetBudgetMonthWithResponse request returning *GetBudgetMonthResponse
func (*ClientWithResponses) GetBudgetMonthsWithResponse ¶
func (c *ClientWithResponses) GetBudgetMonthsWithResponse(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, reqEditors ...RequestEditorFn) (*GetBudgetMonthsResponse, error)
GetBudgetMonthsWithResponse request returning *GetBudgetMonthsResponse
func (*ClientWithResponses) GetBudgetSettingsByIdWithResponse ¶
func (c *ClientWithResponses) GetBudgetSettingsByIdWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetBudgetSettingsByIdResponse, error)
GetBudgetSettingsByIdWithResponse request returning *GetBudgetSettingsByIdResponse
func (*ClientWithResponses) GetBudgetsWithResponse ¶
func (c *ClientWithResponses) GetBudgetsWithResponse(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*GetBudgetsResponse, error)
GetBudgetsWithResponse request returning *GetBudgetsResponse
func (*ClientWithResponses) GetCategoriesWithResponse ¶
func (c *ClientWithResponses) GetCategoriesWithResponse(ctx context.Context, budgetId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error)
GetCategoriesWithResponse request returning *GetCategoriesResponse
func (*ClientWithResponses) GetCategoryByIdWithResponse ¶
func (c *ClientWithResponses) GetCategoryByIdWithResponse(ctx context.Context, budgetId string, categoryId string, reqEditors ...RequestEditorFn) (*GetCategoryByIdResponse, error)
GetCategoryByIdWithResponse request returning *GetCategoryByIdResponse
func (*ClientWithResponses) GetMonthCategoryByIdWithResponse ¶
func (c *ClientWithResponses) GetMonthCategoryByIdWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, reqEditors ...RequestEditorFn) (*GetMonthCategoryByIdResponse, error)
GetMonthCategoryByIdWithResponse request returning *GetMonthCategoryByIdResponse
func (*ClientWithResponses) GetPayeeByIdWithResponse ¶
func (c *ClientWithResponses) GetPayeeByIdWithResponse(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*GetPayeeByIdResponse, error)
GetPayeeByIdWithResponse request returning *GetPayeeByIdResponse
func (*ClientWithResponses) GetPayeeLocationByIdWithResponse ¶
func (c *ClientWithResponses) GetPayeeLocationByIdWithResponse(ctx context.Context, budgetId string, payeeLocationId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationByIdResponse, error)
GetPayeeLocationByIdWithResponse request returning *GetPayeeLocationByIdResponse
func (*ClientWithResponses) GetPayeeLocationsByPayeeWithResponse ¶
func (c *ClientWithResponses) GetPayeeLocationsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationsByPayeeResponse, error)
GetPayeeLocationsByPayeeWithResponse request returning *GetPayeeLocationsByPayeeResponse
func (*ClientWithResponses) GetPayeeLocationsWithResponse ¶
func (c *ClientWithResponses) GetPayeeLocationsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationsResponse, error)
GetPayeeLocationsWithResponse request returning *GetPayeeLocationsResponse
func (*ClientWithResponses) GetPayeesWithResponse ¶
func (c *ClientWithResponses) GetPayeesWithResponse(ctx context.Context, budgetId string, params *GetPayeesParams, reqEditors ...RequestEditorFn) (*GetPayeesResponse, error)
GetPayeesWithResponse request returning *GetPayeesResponse
func (*ClientWithResponses) GetScheduledTransactionByIdWithResponse ¶
func (c *ClientWithResponses) GetScheduledTransactionByIdWithResponse(ctx context.Context, budgetId string, scheduledTransactionId string, reqEditors ...RequestEditorFn) (*GetScheduledTransactionByIdResponse, error)
GetScheduledTransactionByIdWithResponse request returning *GetScheduledTransactionByIdResponse
func (*ClientWithResponses) GetScheduledTransactionsWithResponse ¶
func (c *ClientWithResponses) GetScheduledTransactionsWithResponse(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, reqEditors ...RequestEditorFn) (*GetScheduledTransactionsResponse, error)
GetScheduledTransactionsWithResponse request returning *GetScheduledTransactionsResponse
func (*ClientWithResponses) GetTransactionByIdWithResponse ¶
func (c *ClientWithResponses) GetTransactionByIdWithResponse(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*GetTransactionByIdResponse, error)
GetTransactionByIdWithResponse request returning *GetTransactionByIdResponse
func (*ClientWithResponses) GetTransactionsByAccountWithResponse ¶
func (c *ClientWithResponses) GetTransactionsByAccountWithResponse(ctx context.Context, budgetId string, accountId string, params *GetTransactionsByAccountParams, reqEditors ...RequestEditorFn) (*GetTransactionsByAccountResponse, error)
GetTransactionsByAccountWithResponse request returning *GetTransactionsByAccountResponse
func (*ClientWithResponses) GetTransactionsByCategoryWithResponse ¶
func (c *ClientWithResponses) GetTransactionsByCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, params *GetTransactionsByCategoryParams, reqEditors ...RequestEditorFn) (*GetTransactionsByCategoryResponse, error)
GetTransactionsByCategoryWithResponse request returning *GetTransactionsByCategoryResponse
func (*ClientWithResponses) GetTransactionsByPayeeWithResponse ¶
func (c *ClientWithResponses) GetTransactionsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, params *GetTransactionsByPayeeParams, reqEditors ...RequestEditorFn) (*GetTransactionsByPayeeResponse, error)
GetTransactionsByPayeeWithResponse request returning *GetTransactionsByPayeeResponse
func (*ClientWithResponses) GetTransactionsWithResponse ¶
func (c *ClientWithResponses) GetTransactionsWithResponse(ctx context.Context, budgetId string, params *GetTransactionsParams, reqEditors ...RequestEditorFn) (*GetTransactionsResponse, error)
GetTransactionsWithResponse request returning *GetTransactionsResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) ImportTransactionsWithResponse ¶
func (c *ClientWithResponses) ImportTransactionsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*ImportTransactionsResponse, error)
ImportTransactionsWithResponse request returning *ImportTransactionsResponse
func (*ClientWithResponses) UpdateCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCategoryWithBodyWithResponse(ctx context.Context, budgetId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
UpdateCategoryWithBodyWithResponse request with arbitrary body returning *UpdateCategoryResponse
func (*ClientWithResponses) UpdateCategoryWithResponse ¶
func (c *ClientWithResponses) UpdateCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
func (*ClientWithResponses) UpdateMonthCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMonthCategoryWithBodyWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonthCategoryResponse, error)
UpdateMonthCategoryWithBodyWithResponse request with arbitrary body returning *UpdateMonthCategoryResponse
func (*ClientWithResponses) UpdateMonthCategoryWithResponse ¶
func (c *ClientWithResponses) UpdateMonthCategoryWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, body UpdateMonthCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonthCategoryResponse, error)
func (*ClientWithResponses) UpdateTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, transactionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTransactionResponse, error)
UpdateTransactionWithBodyWithResponse request with arbitrary body returning *UpdateTransactionResponse
func (*ClientWithResponses) UpdateTransactionWithResponse ¶
func (c *ClientWithResponses) UpdateTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, body UpdateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTransactionResponse, error)
func (*ClientWithResponses) UpdateTransactionsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTransactionsWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTransactionsResponse, error)
UpdateTransactionsWithBodyWithResponse request with arbitrary body returning *UpdateTransactionsResponse
func (*ClientWithResponses) UpdateTransactionsWithResponse ¶
func (c *ClientWithResponses) UpdateTransactionsWithResponse(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTransactionsResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetBudgetsWithResponse request
GetBudgetsWithResponse(ctx context.Context, params *GetBudgetsParams, reqEditors ...RequestEditorFn) (*GetBudgetsResponse, error)
// GetBudgetByIdWithResponse request
GetBudgetByIdWithResponse(ctx context.Context, budgetId string, params *GetBudgetByIdParams, reqEditors ...RequestEditorFn) (*GetBudgetByIdResponse, error)
// GetAccountsWithResponse request
GetAccountsWithResponse(ctx context.Context, budgetId string, params *GetAccountsParams, reqEditors ...RequestEditorFn) (*GetAccountsResponse, error)
// CreateAccountWithBodyWithResponse request with any body
CreateAccountWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccountResponse, error)
CreateAccountWithResponse(ctx context.Context, budgetId string, body CreateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccountResponse, error)
// GetAccountByIdWithResponse request
GetAccountByIdWithResponse(ctx context.Context, budgetId string, accountId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAccountByIdResponse, error)
// GetTransactionsByAccountWithResponse request
GetTransactionsByAccountWithResponse(ctx context.Context, budgetId string, accountId string, params *GetTransactionsByAccountParams, reqEditors ...RequestEditorFn) (*GetTransactionsByAccountResponse, error)
// GetCategoriesWithResponse request
GetCategoriesWithResponse(ctx context.Context, budgetId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error)
// GetCategoryByIdWithResponse request
GetCategoryByIdWithResponse(ctx context.Context, budgetId string, categoryId string, reqEditors ...RequestEditorFn) (*GetCategoryByIdResponse, error)
// UpdateCategoryWithBodyWithResponse request with any body
UpdateCategoryWithBodyWithResponse(ctx context.Context, budgetId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
UpdateCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
// GetTransactionsByCategoryWithResponse request
GetTransactionsByCategoryWithResponse(ctx context.Context, budgetId string, categoryId string, params *GetTransactionsByCategoryParams, reqEditors ...RequestEditorFn) (*GetTransactionsByCategoryResponse, error)
// GetBudgetMonthsWithResponse request
GetBudgetMonthsWithResponse(ctx context.Context, budgetId string, params *GetBudgetMonthsParams, reqEditors ...RequestEditorFn) (*GetBudgetMonthsResponse, error)
// GetBudgetMonthWithResponse request
GetBudgetMonthWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, reqEditors ...RequestEditorFn) (*GetBudgetMonthResponse, error)
// GetMonthCategoryByIdWithResponse request
GetMonthCategoryByIdWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, reqEditors ...RequestEditorFn) (*GetMonthCategoryByIdResponse, error)
// UpdateMonthCategoryWithBodyWithResponse request with any body
UpdateMonthCategoryWithBodyWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonthCategoryResponse, error)
UpdateMonthCategoryWithResponse(ctx context.Context, budgetId string, month openapi_types.Date, categoryId string, body UpdateMonthCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonthCategoryResponse, error)
// GetPayeeLocationsWithResponse request
GetPayeeLocationsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationsResponse, error)
// GetPayeeLocationByIdWithResponse request
GetPayeeLocationByIdWithResponse(ctx context.Context, budgetId string, payeeLocationId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationByIdResponse, error)
// GetPayeesWithResponse request
GetPayeesWithResponse(ctx context.Context, budgetId string, params *GetPayeesParams, reqEditors ...RequestEditorFn) (*GetPayeesResponse, error)
// GetPayeeByIdWithResponse request
GetPayeeByIdWithResponse(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*GetPayeeByIdResponse, error)
// GetPayeeLocationsByPayeeWithResponse request
GetPayeeLocationsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, reqEditors ...RequestEditorFn) (*GetPayeeLocationsByPayeeResponse, error)
// GetTransactionsByPayeeWithResponse request
GetTransactionsByPayeeWithResponse(ctx context.Context, budgetId string, payeeId string, params *GetTransactionsByPayeeParams, reqEditors ...RequestEditorFn) (*GetTransactionsByPayeeResponse, error)
// GetScheduledTransactionsWithResponse request
GetScheduledTransactionsWithResponse(ctx context.Context, budgetId string, params *GetScheduledTransactionsParams, reqEditors ...RequestEditorFn) (*GetScheduledTransactionsResponse, error)
// GetScheduledTransactionByIdWithResponse request
GetScheduledTransactionByIdWithResponse(ctx context.Context, budgetId string, scheduledTransactionId string, reqEditors ...RequestEditorFn) (*GetScheduledTransactionByIdResponse, error)
// GetBudgetSettingsByIdWithResponse request
GetBudgetSettingsByIdWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*GetBudgetSettingsByIdResponse, error)
// GetTransactionsWithResponse request
GetTransactionsWithResponse(ctx context.Context, budgetId string, params *GetTransactionsParams, reqEditors ...RequestEditorFn) (*GetTransactionsResponse, error)
// UpdateTransactionsWithBodyWithResponse request with any body
UpdateTransactionsWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTransactionsResponse, error)
UpdateTransactionsWithResponse(ctx context.Context, budgetId string, body UpdateTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTransactionsResponse, error)
// CreateTransactionWithBodyWithResponse request with any body
CreateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTransactionResponse, error)
CreateTransactionWithResponse(ctx context.Context, budgetId string, body CreateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTransactionResponse, error)
// ImportTransactionsWithResponse request
ImportTransactionsWithResponse(ctx context.Context, budgetId string, reqEditors ...RequestEditorFn) (*ImportTransactionsResponse, error)
// DeleteTransactionWithResponse request
DeleteTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*DeleteTransactionResponse, error)
// GetTransactionByIdWithResponse request
GetTransactionByIdWithResponse(ctx context.Context, budgetId string, transactionId string, reqEditors ...RequestEditorFn) (*GetTransactionByIdResponse, error)
// UpdateTransactionWithBodyWithResponse request with any body
UpdateTransactionWithBodyWithResponse(ctx context.Context, budgetId string, transactionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTransactionResponse, error)
UpdateTransactionWithResponse(ctx context.Context, budgetId string, transactionId string, body UpdateTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTransactionResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAccountJSONRequestBody ¶
type CreateAccountJSONRequestBody = PostAccountWrapper
CreateAccountJSONRequestBody defines body for CreateAccount for application/json ContentType.
type CreateAccountResponse ¶
type CreateAccountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *AccountResponse
JSON400 *ErrorResponse
}
func ParseCreateAccountResponse ¶
func ParseCreateAccountResponse(rsp *http.Response) (*CreateAccountResponse, error)
ParseCreateAccountResponse parses an HTTP response from a CreateAccountWithResponse call
func (CreateAccountResponse) Status ¶
func (r CreateAccountResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAccountResponse) StatusCode ¶
func (r CreateAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTransactionJSONRequestBody ¶
type CreateTransactionJSONRequestBody = PostTransactionsWrapper
CreateTransactionJSONRequestBody defines body for CreateTransaction for application/json ContentType.
type CreateTransactionResponse ¶
type CreateTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SaveTransactionsResponse
JSON400 *ErrorResponse
JSON409 *ErrorResponse
}
func ParseCreateTransactionResponse ¶
func ParseCreateTransactionResponse(rsp *http.Response) (*CreateTransactionResponse, error)
ParseCreateTransactionResponse parses an HTTP response from a CreateTransactionWithResponse call
func (CreateTransactionResponse) Status ¶
func (r CreateTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTransactionResponse) StatusCode ¶
func (r CreateTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrencyFormat ¶
type CurrencyFormat struct {
CurrencySymbol string `json:"currency_symbol"`
DecimalDigits int32 `json:"decimal_digits"`
DecimalSeparator string `json:"decimal_separator"`
DisplaySymbol bool `json:"display_symbol"`
ExampleFormat string `json:"example_format"`
GroupSeparator string `json:"group_separator"`
IsoCode string `json:"iso_code"`
SymbolFirst bool `json:"symbol_first"`
}
CurrencyFormat The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
type DateFormat ¶
type DateFormat struct {
Format string `json:"format"`
}
DateFormat The date format setting for the budget. In some cases the format will not be available and will be specified as null.
type DeleteTransactionResponse ¶
type DeleteTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionResponse
JSON404 *ErrorResponse
}
func ParseDeleteTransactionResponse ¶
func ParseDeleteTransactionResponse(rsp *http.Response) (*DeleteTransactionResponse, error)
ParseDeleteTransactionResponse parses an HTTP response from a DeleteTransactionWithResponse call
func (DeleteTransactionResponse) Status ¶
func (r DeleteTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTransactionResponse) StatusCode ¶
func (r DeleteTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorDetail ¶
type ErrorDetail struct {
Detail string `json:"detail"`
Id string `json:"id"`
Name string `json:"name"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct {
Error ErrorDetail `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type GetAccountByIdResponse ¶
type GetAccountByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AccountResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetAccountByIdResponse ¶
func ParseGetAccountByIdResponse(rsp *http.Response) (*GetAccountByIdResponse, error)
ParseGetAccountByIdResponse parses an HTTP response from a GetAccountByIdWithResponse call
func (GetAccountByIdResponse) Status ¶
func (r GetAccountByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountByIdResponse) StatusCode ¶
func (r GetAccountByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountsParams ¶
type GetAccountsParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetAccountsParams defines parameters for GetAccounts.
type GetAccountsResponse ¶
type GetAccountsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AccountsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetAccountsResponse ¶
func ParseGetAccountsResponse(rsp *http.Response) (*GetAccountsResponse, error)
ParseGetAccountsResponse parses an HTTP response from a GetAccountsWithResponse call
func (GetAccountsResponse) Status ¶
func (r GetAccountsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountsResponse) StatusCode ¶
func (r GetAccountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBudgetByIdParams ¶
type GetBudgetByIdParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetBudgetByIdParams defines parameters for GetBudgetById.
type GetBudgetByIdResponse ¶
type GetBudgetByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BudgetDetailResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetBudgetByIdResponse ¶
func ParseGetBudgetByIdResponse(rsp *http.Response) (*GetBudgetByIdResponse, error)
ParseGetBudgetByIdResponse parses an HTTP response from a GetBudgetByIdWithResponse call
func (GetBudgetByIdResponse) Status ¶
func (r GetBudgetByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetBudgetByIdResponse) StatusCode ¶
func (r GetBudgetByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBudgetMonthResponse ¶
type GetBudgetMonthResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MonthDetailResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetBudgetMonthResponse ¶
func ParseGetBudgetMonthResponse(rsp *http.Response) (*GetBudgetMonthResponse, error)
ParseGetBudgetMonthResponse parses an HTTP response from a GetBudgetMonthWithResponse call
func (GetBudgetMonthResponse) Status ¶
func (r GetBudgetMonthResponse) Status() string
Status returns HTTPResponse.Status
func (GetBudgetMonthResponse) StatusCode ¶
func (r GetBudgetMonthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBudgetMonthsParams ¶
type GetBudgetMonthsParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetBudgetMonthsParams defines parameters for GetBudgetMonths.
type GetBudgetMonthsResponse ¶
type GetBudgetMonthsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MonthSummariesResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetBudgetMonthsResponse ¶
func ParseGetBudgetMonthsResponse(rsp *http.Response) (*GetBudgetMonthsResponse, error)
ParseGetBudgetMonthsResponse parses an HTTP response from a GetBudgetMonthsWithResponse call
func (GetBudgetMonthsResponse) Status ¶
func (r GetBudgetMonthsResponse) Status() string
Status returns HTTPResponse.Status
func (GetBudgetMonthsResponse) StatusCode ¶
func (r GetBudgetMonthsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBudgetSettingsByIdResponse ¶
type GetBudgetSettingsByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BudgetSettingsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetBudgetSettingsByIdResponse ¶
func ParseGetBudgetSettingsByIdResponse(rsp *http.Response) (*GetBudgetSettingsByIdResponse, error)
ParseGetBudgetSettingsByIdResponse parses an HTTP response from a GetBudgetSettingsByIdWithResponse call
func (GetBudgetSettingsByIdResponse) Status ¶
func (r GetBudgetSettingsByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetBudgetSettingsByIdResponse) StatusCode ¶
func (r GetBudgetSettingsByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBudgetsParams ¶
type GetBudgetsParams struct {
// IncludeAccounts Whether to include the list of budget accounts
IncludeAccounts *bool `form:"include_accounts,omitempty" json:"include_accounts,omitempty"`
}
GetBudgetsParams defines parameters for GetBudgets.
type GetBudgetsResponse ¶
type GetBudgetsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BudgetSummaryResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetBudgetsResponse ¶
func ParseGetBudgetsResponse(rsp *http.Response) (*GetBudgetsResponse, error)
ParseGetBudgetsResponse parses an HTTP response from a GetBudgetsWithResponse call
func (GetBudgetsResponse) Status ¶
func (r GetBudgetsResponse) Status() string
Status returns HTTPResponse.Status
func (GetBudgetsResponse) StatusCode ¶
func (r GetBudgetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCategoriesParams ¶
type GetCategoriesParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetCategoriesParams defines parameters for GetCategories.
type GetCategoriesResponse ¶
type GetCategoriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CategoriesResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetCategoriesResponse ¶
func ParseGetCategoriesResponse(rsp *http.Response) (*GetCategoriesResponse, error)
ParseGetCategoriesResponse parses an HTTP response from a GetCategoriesWithResponse call
func (GetCategoriesResponse) Status ¶
func (r GetCategoriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetCategoriesResponse) StatusCode ¶
func (r GetCategoriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCategoryByIdResponse ¶
type GetCategoryByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CategoryResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetCategoryByIdResponse ¶
func ParseGetCategoryByIdResponse(rsp *http.Response) (*GetCategoryByIdResponse, error)
ParseGetCategoryByIdResponse parses an HTTP response from a GetCategoryByIdWithResponse call
func (GetCategoryByIdResponse) Status ¶
func (r GetCategoryByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetCategoryByIdResponse) StatusCode ¶
func (r GetCategoryByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonthCategoryByIdResponse ¶
type GetMonthCategoryByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CategoryResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetMonthCategoryByIdResponse ¶
func ParseGetMonthCategoryByIdResponse(rsp *http.Response) (*GetMonthCategoryByIdResponse, error)
ParseGetMonthCategoryByIdResponse parses an HTTP response from a GetMonthCategoryByIdWithResponse call
func (GetMonthCategoryByIdResponse) Status ¶
func (r GetMonthCategoryByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonthCategoryByIdResponse) StatusCode ¶
func (r GetMonthCategoryByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayeeByIdResponse ¶
type GetPayeeByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PayeeResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetPayeeByIdResponse ¶
func ParseGetPayeeByIdResponse(rsp *http.Response) (*GetPayeeByIdResponse, error)
ParseGetPayeeByIdResponse parses an HTTP response from a GetPayeeByIdWithResponse call
func (GetPayeeByIdResponse) Status ¶
func (r GetPayeeByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayeeByIdResponse) StatusCode ¶
func (r GetPayeeByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayeeLocationByIdResponse ¶
type GetPayeeLocationByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PayeeLocationResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetPayeeLocationByIdResponse ¶
func ParseGetPayeeLocationByIdResponse(rsp *http.Response) (*GetPayeeLocationByIdResponse, error)
ParseGetPayeeLocationByIdResponse parses an HTTP response from a GetPayeeLocationByIdWithResponse call
func (GetPayeeLocationByIdResponse) Status ¶
func (r GetPayeeLocationByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayeeLocationByIdResponse) StatusCode ¶
func (r GetPayeeLocationByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayeeLocationsByPayeeResponse ¶
type GetPayeeLocationsByPayeeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PayeeLocationsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetPayeeLocationsByPayeeResponse ¶
func ParseGetPayeeLocationsByPayeeResponse(rsp *http.Response) (*GetPayeeLocationsByPayeeResponse, error)
ParseGetPayeeLocationsByPayeeResponse parses an HTTP response from a GetPayeeLocationsByPayeeWithResponse call
func (GetPayeeLocationsByPayeeResponse) Status ¶
func (r GetPayeeLocationsByPayeeResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayeeLocationsByPayeeResponse) StatusCode ¶
func (r GetPayeeLocationsByPayeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayeeLocationsResponse ¶
type GetPayeeLocationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PayeeLocationsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetPayeeLocationsResponse ¶
func ParseGetPayeeLocationsResponse(rsp *http.Response) (*GetPayeeLocationsResponse, error)
ParseGetPayeeLocationsResponse parses an HTTP response from a GetPayeeLocationsWithResponse call
func (GetPayeeLocationsResponse) Status ¶
func (r GetPayeeLocationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayeeLocationsResponse) StatusCode ¶
func (r GetPayeeLocationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayeesParams ¶
type GetPayeesParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetPayeesParams defines parameters for GetPayees.
type GetPayeesResponse ¶
type GetPayeesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PayeesResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetPayeesResponse ¶
func ParseGetPayeesResponse(rsp *http.Response) (*GetPayeesResponse, error)
ParseGetPayeesResponse parses an HTTP response from a GetPayeesWithResponse call
func (GetPayeesResponse) Status ¶
func (r GetPayeesResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayeesResponse) StatusCode ¶
func (r GetPayeesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetScheduledTransactionByIdResponse ¶
type GetScheduledTransactionByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ScheduledTransactionResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetScheduledTransactionByIdResponse ¶
func ParseGetScheduledTransactionByIdResponse(rsp *http.Response) (*GetScheduledTransactionByIdResponse, error)
ParseGetScheduledTransactionByIdResponse parses an HTTP response from a GetScheduledTransactionByIdWithResponse call
func (GetScheduledTransactionByIdResponse) Status ¶
func (r GetScheduledTransactionByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetScheduledTransactionByIdResponse) StatusCode ¶
func (r GetScheduledTransactionByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetScheduledTransactionsParams ¶
type GetScheduledTransactionsParams struct {
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetScheduledTransactionsParams defines parameters for GetScheduledTransactions.
type GetScheduledTransactionsResponse ¶
type GetScheduledTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ScheduledTransactionsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetScheduledTransactionsResponse ¶
func ParseGetScheduledTransactionsResponse(rsp *http.Response) (*GetScheduledTransactionsResponse, error)
ParseGetScheduledTransactionsResponse parses an HTTP response from a GetScheduledTransactionsWithResponse call
func (GetScheduledTransactionsResponse) Status ¶
func (r GetScheduledTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetScheduledTransactionsResponse) StatusCode ¶
func (r GetScheduledTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionByIdResponse ¶
type GetTransactionByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetTransactionByIdResponse ¶
func ParseGetTransactionByIdResponse(rsp *http.Response) (*GetTransactionByIdResponse, error)
ParseGetTransactionByIdResponse parses an HTTP response from a GetTransactionByIdWithResponse call
func (GetTransactionByIdResponse) Status ¶
func (r GetTransactionByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionByIdResponse) StatusCode ¶
func (r GetTransactionByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionsByAccountParams ¶
type GetTransactionsByAccountParams struct {
// SinceDate If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
SinceDate *openapi_types.Date `form:"since_date,omitempty" json:"since_date,omitempty"`
// Type If specified, only transactions of the specified type will be included. "uncategorized" and "unapproved" are currently supported.
Type *GetTransactionsByAccountParamsType `form:"type,omitempty" json:"type,omitempty"`
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetTransactionsByAccountParams defines parameters for GetTransactionsByAccount.
type GetTransactionsByAccountParamsType ¶
type GetTransactionsByAccountParamsType string
GetTransactionsByAccountParamsType defines parameters for GetTransactionsByAccount.
const ( GetTransactionsByAccountParamsTypeUnapproved GetTransactionsByAccountParamsType = "unapproved" GetTransactionsByAccountParamsTypeUncategorized GetTransactionsByAccountParamsType = "uncategorized" )
Defines values for GetTransactionsByAccountParamsType.
type GetTransactionsByAccountResponse ¶
type GetTransactionsByAccountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetTransactionsByAccountResponse ¶
func ParseGetTransactionsByAccountResponse(rsp *http.Response) (*GetTransactionsByAccountResponse, error)
ParseGetTransactionsByAccountResponse parses an HTTP response from a GetTransactionsByAccountWithResponse call
func (GetTransactionsByAccountResponse) Status ¶
func (r GetTransactionsByAccountResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionsByAccountResponse) StatusCode ¶
func (r GetTransactionsByAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionsByCategoryParams ¶
type GetTransactionsByCategoryParams struct {
// SinceDate If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
SinceDate *openapi_types.Date `form:"since_date,omitempty" json:"since_date,omitempty"`
// Type If specified, only transactions of the specified type will be included. "uncategorized" and "unapproved" are currently supported.
Type *GetTransactionsByCategoryParamsType `form:"type,omitempty" json:"type,omitempty"`
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetTransactionsByCategoryParams defines parameters for GetTransactionsByCategory.
type GetTransactionsByCategoryParamsType ¶
type GetTransactionsByCategoryParamsType string
GetTransactionsByCategoryParamsType defines parameters for GetTransactionsByCategory.
const ( GetTransactionsByCategoryParamsTypeUnapproved GetTransactionsByCategoryParamsType = "unapproved" GetTransactionsByCategoryParamsTypeUncategorized GetTransactionsByCategoryParamsType = "uncategorized" )
Defines values for GetTransactionsByCategoryParamsType.
type GetTransactionsByCategoryResponse ¶
type GetTransactionsByCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HybridTransactionsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetTransactionsByCategoryResponse ¶
func ParseGetTransactionsByCategoryResponse(rsp *http.Response) (*GetTransactionsByCategoryResponse, error)
ParseGetTransactionsByCategoryResponse parses an HTTP response from a GetTransactionsByCategoryWithResponse call
func (GetTransactionsByCategoryResponse) Status ¶
func (r GetTransactionsByCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionsByCategoryResponse) StatusCode ¶
func (r GetTransactionsByCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionsByPayeeParams ¶
type GetTransactionsByPayeeParams struct {
// SinceDate If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
SinceDate *openapi_types.Date `form:"since_date,omitempty" json:"since_date,omitempty"`
// Type If specified, only transactions of the specified type will be included. "uncategorized" and "unapproved" are currently supported.
Type *GetTransactionsByPayeeParamsType `form:"type,omitempty" json:"type,omitempty"`
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetTransactionsByPayeeParams defines parameters for GetTransactionsByPayee.
type GetTransactionsByPayeeParamsType ¶
type GetTransactionsByPayeeParamsType string
GetTransactionsByPayeeParamsType defines parameters for GetTransactionsByPayee.
const ( GetTransactionsByPayeeParamsTypeUnapproved GetTransactionsByPayeeParamsType = "unapproved" GetTransactionsByPayeeParamsTypeUncategorized GetTransactionsByPayeeParamsType = "uncategorized" )
Defines values for GetTransactionsByPayeeParamsType.
type GetTransactionsByPayeeResponse ¶
type GetTransactionsByPayeeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HybridTransactionsResponse
JSON404 *ErrorResponse
JSONDefault *ErrorResponse
}
func ParseGetTransactionsByPayeeResponse ¶
func ParseGetTransactionsByPayeeResponse(rsp *http.Response) (*GetTransactionsByPayeeResponse, error)
ParseGetTransactionsByPayeeResponse parses an HTTP response from a GetTransactionsByPayeeWithResponse call
func (GetTransactionsByPayeeResponse) Status ¶
func (r GetTransactionsByPayeeResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionsByPayeeResponse) StatusCode ¶
func (r GetTransactionsByPayeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionsParams ¶
type GetTransactionsParams struct {
// SinceDate If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
SinceDate *openapi_types.Date `form:"since_date,omitempty" json:"since_date,omitempty"`
// Type If specified, only transactions of the specified type will be included. "uncategorized" and "unapproved" are currently supported.
Type *GetTransactionsParamsType `form:"type,omitempty" json:"type,omitempty"`
// LastKnowledgeOfServer The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
LastKnowledgeOfServer *int64 `form:"last_knowledge_of_server,omitempty" json:"last_knowledge_of_server,omitempty"`
}
GetTransactionsParams defines parameters for GetTransactions.
type GetTransactionsParamsType ¶
type GetTransactionsParamsType string
GetTransactionsParamsType defines parameters for GetTransactions.
const ( GetTransactionsParamsTypeUnapproved GetTransactionsParamsType = "unapproved" GetTransactionsParamsTypeUncategorized GetTransactionsParamsType = "uncategorized" )
Defines values for GetTransactionsParamsType.
type GetTransactionsResponse ¶
type GetTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionsResponse
JSON400 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseGetTransactionsResponse ¶
func ParseGetTransactionsResponse(rsp *http.Response) (*GetTransactionsResponse, error)
ParseGetTransactionsResponse parses an HTTP response from a GetTransactionsWithResponse call
func (GetTransactionsResponse) Status ¶
func (r GetTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionsResponse) StatusCode ¶
func (r GetTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserResponse
JSONDefault *ErrorResponse
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HybridTransaction ¶
type HybridTransaction struct {
AccountId openapi_types.UUID `json:"account_id"`
AccountName string `json:"account_name"`
// Amount The transaction amount in milliunits format
Amount int64 `json:"amount"`
// Approved Whether or not the transaction is approved
Approved bool `json:"approved"`
CategoryId *openapi_types.UUID `json:"category_id"`
// CategoryName The name of the category. If a split transaction, this will be 'Split'.
CategoryName *string `json:"category_name,omitempty"`
// Cleared The cleared status of the transaction
Cleared TransactionClearedStatus `json:"cleared"`
// Date The transaction date in ISO format (e.g. 2016-12-01)
Date openapi_types.Date `json:"date"`
// DebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
DebtTransactionType *HybridTransactionDebtTransactionType `json:"debt_transaction_type"`
// Deleted Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
Deleted bool `json:"deleted"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Id string `json:"id"`
// ImportId If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
ImportId *string `json:"import_id"`
// ImportPayeeName If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
ImportPayeeName *string `json:"import_payee_name"`
// ImportPayeeNameOriginal If the transaction was imported, the original payee name as it appeared on the statement
ImportPayeeNameOriginal *string `json:"import_payee_name_original"`
// MatchedTransactionId If transaction is matched, the id of the matched transaction
MatchedTransactionId *string `json:"matched_transaction_id"`
Memo *string `json:"memo"`
// ParentTransactionId For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null.
ParentTransactionId *string `json:"parent_transaction_id"`
PayeeId *openapi_types.UUID `json:"payee_id"`
PayeeName *string `json:"payee_name"`
// TransferAccountId If a transfer transaction, the account to which it transfers
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
// TransferTransactionId If a transfer transaction, the id of transaction on the other side of the transfer
TransferTransactionId *string `json:"transfer_transaction_id"`
// Type Whether the hybrid transaction represents a regular transaction or a subtransaction
Type HybridTransactionType `json:"type"`
}
HybridTransaction defines model for HybridTransaction.
type HybridTransactionDebtTransactionType ¶
type HybridTransactionDebtTransactionType string
HybridTransactionDebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
const ( HybridTransactionDebtTransactionTypeBalanceAdjustment HybridTransactionDebtTransactionType = "balanceAdjustment" HybridTransactionDebtTransactionTypeCharge HybridTransactionDebtTransactionType = "charge" HybridTransactionDebtTransactionTypeCredit HybridTransactionDebtTransactionType = "credit" HybridTransactionDebtTransactionTypeEscrow HybridTransactionDebtTransactionType = "escrow" HybridTransactionDebtTransactionTypeFee HybridTransactionDebtTransactionType = "fee" HybridTransactionDebtTransactionTypeInterest HybridTransactionDebtTransactionType = "interest" HybridTransactionDebtTransactionTypeNil HybridTransactionDebtTransactionType = "<nil>" HybridTransactionDebtTransactionTypePayment HybridTransactionDebtTransactionType = "payment" HybridTransactionDebtTransactionTypeRefund HybridTransactionDebtTransactionType = "refund" )
Defines values for HybridTransactionDebtTransactionType.
type HybridTransactionType ¶
type HybridTransactionType string
HybridTransactionType Whether the hybrid transaction represents a regular transaction or a subtransaction
const ( Subtransaction HybridTransactionType = "subtransaction" Transaction HybridTransactionType = "transaction" )
Defines values for HybridTransactionType.
type HybridTransactionsResponse ¶
type HybridTransactionsResponse struct {
Data struct {
// ServerKnowledge The knowledge of the server
ServerKnowledge *int64 `json:"server_knowledge,omitempty"`
Transactions []HybridTransaction `json:"transactions"`
} `json:"data"`
}
HybridTransactionsResponse defines model for HybridTransactionsResponse.
type ImportTransactionsResponse ¶
type ImportTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionsImportResponse
JSON201 *TransactionsImportResponse
JSON400 *ErrorResponse
}
func ParseImportTransactionsResponse ¶
func ParseImportTransactionsResponse(rsp *http.Response) (*ImportTransactionsResponse, error)
ParseImportTransactionsResponse parses an HTTP response from a ImportTransactionsWithResponse call
func (ImportTransactionsResponse) Status ¶
func (r ImportTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ImportTransactionsResponse) StatusCode ¶
func (r ImportTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LoanAccountPeriodicValue ¶
LoanAccountPeriodicValue defines model for LoanAccountPeriodicValue.
type MonthDetail ¶
type MonthDetail struct {
// Activity The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign'
Activity int64 `json:"activity"`
// AgeOfMoney The Age of Money as of the month
AgeOfMoney *int32 `json:"age_of_money"`
// Budgeted The total amount budgeted in the month
Budgeted int64 `json:"budgeted"`
// Categories The budget month categories. Amounts (budgeted, activity, balance, etc.) are specific to the {month} parameter specified.
Categories []Category `json:"categories"`
// Deleted Whether or not the month has been deleted. Deleted months will only be included in delta requests.
Deleted bool `json:"deleted"`
// Income The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
Income int64 `json:"income"`
Month openapi_types.Date `json:"month"`
Note *string `json:"note"`
// ToBeBudgeted The available amount for 'Ready to Assign'
ToBeBudgeted int64 `json:"to_be_budgeted"`
}
MonthDetail defines model for MonthDetail.
type MonthDetailResponse ¶
type MonthDetailResponse struct {
Data struct {
Month MonthDetail `json:"month"`
} `json:"data"`
}
MonthDetailResponse defines model for MonthDetailResponse.
type MonthSummariesResponse ¶
type MonthSummariesResponse struct {
Data struct {
Months []MonthSummary `json:"months"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
MonthSummariesResponse defines model for MonthSummariesResponse.
type MonthSummary ¶
type MonthSummary struct {
// Activity The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign'
Activity int64 `json:"activity"`
// AgeOfMoney The Age of Money as of the month
AgeOfMoney *int32 `json:"age_of_money"`
// Budgeted The total amount budgeted in the month
Budgeted int64 `json:"budgeted"`
// Deleted Whether or not the month has been deleted. Deleted months will only be included in delta requests.
Deleted bool `json:"deleted"`
// Income The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
Income int64 `json:"income"`
Month openapi_types.Date `json:"month"`
Note *string `json:"note"`
// ToBeBudgeted The available amount for 'Ready to Assign'
ToBeBudgeted int64 `json:"to_be_budgeted"`
}
MonthSummary defines model for MonthSummary.
type PatchCategoryWrapper ¶
type PatchCategoryWrapper struct {
Category SaveCategory `json:"category"`
}
PatchCategoryWrapper defines model for PatchCategoryWrapper.
type PatchMonthCategoryWrapper ¶
type PatchMonthCategoryWrapper struct {
Category SaveMonthCategory `json:"category"`
}
PatchMonthCategoryWrapper defines model for PatchMonthCategoryWrapper.
type PatchTransactionsWrapper ¶
type PatchTransactionsWrapper struct {
Transactions []SaveTransactionWithId `json:"transactions"`
}
PatchTransactionsWrapper defines model for PatchTransactionsWrapper.
type Payee ¶
type Payee struct {
// Deleted Whether or not the payee has been deleted. Deleted payees will only be included in delta requests.
Deleted bool `json:"deleted"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
// TransferAccountId If a transfer payee, the `account_id` to which this payee transfers to
TransferAccountId *string `json:"transfer_account_id"`
}
Payee defines model for Payee.
type PayeeLocation ¶
type PayeeLocation struct {
// Deleted Whether or not the payee location has been deleted. Deleted payee locations will only be included in delta requests.
Deleted bool `json:"deleted"`
Id openapi_types.UUID `json:"id"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
PayeeId openapi_types.UUID `json:"payee_id"`
}
PayeeLocation defines model for PayeeLocation.
type PayeeLocationResponse ¶
type PayeeLocationResponse struct {
Data struct {
PayeeLocation PayeeLocation `json:"payee_location"`
} `json:"data"`
}
PayeeLocationResponse defines model for PayeeLocationResponse.
type PayeeLocationsResponse ¶
type PayeeLocationsResponse struct {
Data struct {
PayeeLocations []PayeeLocation `json:"payee_locations"`
} `json:"data"`
}
PayeeLocationsResponse defines model for PayeeLocationsResponse.
type PayeeResponse ¶
type PayeeResponse struct {
Data struct {
Payee Payee `json:"payee"`
} `json:"data"`
}
PayeeResponse defines model for PayeeResponse.
type PayeesResponse ¶
type PayeesResponse struct {
Data struct {
Payees []Payee `json:"payees"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
PayeesResponse defines model for PayeesResponse.
type PostAccountWrapper ¶
type PostAccountWrapper struct {
Account SaveAccount `json:"account"`
}
PostAccountWrapper defines model for PostAccountWrapper.
type PostTransactionsWrapper ¶
type PostTransactionsWrapper struct {
Transaction *SaveTransaction `json:"transaction,omitempty"`
Transactions *[]SaveTransaction `json:"transactions,omitempty"`
}
PostTransactionsWrapper defines model for PostTransactionsWrapper.
type PutTransactionWrapper ¶
type PutTransactionWrapper struct {
Transaction SaveTransaction `json:"transaction"`
}
PutTransactionWrapper defines model for PutTransactionWrapper.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SaveAccount ¶
type SaveAccount struct {
// Balance The current balance of the account in milliunits format
Balance int64 `json:"balance"`
// Name The name of the account
Name string `json:"name"`
// Type The type of account
Type AccountType `json:"type"`
}
SaveAccount defines model for SaveAccount.
type SaveCategory ¶
type SaveCategory struct {
CategoryGroupId *openapi_types.UUID `json:"category_group_id,omitempty"`
Name *string `json:"name"`
Note *string `json:"note"`
}
SaveCategory defines model for SaveCategory.
type SaveCategoryResponse ¶
type SaveCategoryResponse struct {
Data struct {
Category Category `json:"category"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
SaveCategoryResponse defines model for SaveCategoryResponse.
type SaveMonthCategory ¶
type SaveMonthCategory struct {
// Budgeted Budgeted amount in milliunits format
Budgeted int64 `json:"budgeted"`
}
SaveMonthCategory defines model for SaveMonthCategory.
type SaveSubTransaction ¶
type SaveSubTransaction struct {
// Amount The subtransaction amount in milliunits format.
Amount int64 `json:"amount"`
// CategoryId The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.
CategoryId *openapi_types.UUID `json:"category_id"`
Memo *string `json:"memo"`
// PayeeId The payee for the subtransaction.
PayeeId *openapi_types.UUID `json:"payee_id"`
// PayeeName The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.
PayeeName *string `json:"payee_name"`
}
SaveSubTransaction defines model for SaveSubTransaction.
type SaveTransaction ¶
type SaveTransaction struct {
AccountId *openapi_types.UUID `json:"account_id,omitempty"`
// Amount The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
Amount *int64 `json:"amount,omitempty"`
// Approved Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
Approved *bool `json:"approved,omitempty"`
// CategoryId The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
CategoryId *openapi_types.UUID `json:"category_id"`
// Cleared The cleared status of the transaction
Cleared *TransactionClearedStatus `json:"cleared,omitempty"`
// Date The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
Date *openapi_types.Date `json:"date,omitempty"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
// ImportId If specified, the new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
ImportId *string `json:"import_id"`
Memo *string `json:"memo"`
// PayeeId The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
PayeeId *openapi_types.UUID `json:"payee_id"`
// PayeeName The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
PayeeName *string `json:"payee_name"`
// Subtransactions An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
Subtransactions *[]SaveSubTransaction `json:"subtransactions,omitempty"`
}
SaveTransaction defines model for SaveTransaction.
type SaveTransactionWithId ¶
type SaveTransactionWithId struct {
AccountId *openapi_types.UUID `json:"account_id,omitempty"`
// Amount The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
Amount *int64 `json:"amount,omitempty"`
// Approved Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
Approved *bool `json:"approved,omitempty"`
// CategoryId The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
CategoryId *openapi_types.UUID `json:"category_id"`
// Cleared The cleared status of the transaction
Cleared *TransactionClearedStatus `json:"cleared,omitempty"`
// Date The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
Date *openapi_types.Date `json:"date,omitempty"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Id *string `json:"id,omitempty"`
// ImportId If specified, the new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
ImportId *string `json:"import_id"`
Memo *string `json:"memo"`
// PayeeId The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
PayeeId *openapi_types.UUID `json:"payee_id"`
// PayeeName The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
PayeeName *string `json:"payee_name"`
// Subtransactions An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
Subtransactions *[]SaveSubTransaction `json:"subtransactions,omitempty"`
}
SaveTransactionWithId defines model for SaveTransactionWithId.
type SaveTransactionWithOptionalFields ¶
type SaveTransactionWithOptionalFields struct {
AccountId *openapi_types.UUID `json:"account_id,omitempty"`
// Amount The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
Amount *int64 `json:"amount,omitempty"`
// Approved Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
Approved *bool `json:"approved,omitempty"`
// CategoryId The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
CategoryId *openapi_types.UUID `json:"category_id"`
// Cleared The cleared status of the transaction
Cleared *TransactionClearedStatus `json:"cleared,omitempty"`
// Date The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
Date *openapi_types.Date `json:"date,omitempty"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
// ImportId If specified, the new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
ImportId *string `json:"import_id"`
Memo *string `json:"memo"`
// PayeeId The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
PayeeId *openapi_types.UUID `json:"payee_id"`
// PayeeName The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
PayeeName *string `json:"payee_name"`
// Subtransactions An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
Subtransactions *[]SaveSubTransaction `json:"subtransactions,omitempty"`
}
SaveTransactionWithOptionalFields defines model for SaveTransactionWithOptionalFields.
type SaveTransactionsResponse ¶
type SaveTransactionsResponse struct {
Data struct {
// DuplicateImportIds If multiple transactions were specified, a list of import_ids that were not created because of an existing `import_id` found on the same account
DuplicateImportIds *[]string `json:"duplicate_import_ids,omitempty"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
Transaction *TransactionDetail `json:"transaction,omitempty"`
// TransactionIds The transaction ids that were saved
TransactionIds []string `json:"transaction_ids"`
// Transactions If multiple transactions were specified, the transactions that were saved
Transactions *[]TransactionDetail `json:"transactions,omitempty"`
} `json:"data"`
}
SaveTransactionsResponse defines model for SaveTransactionsResponse.
type ScheduledSubTransaction ¶
type ScheduledSubTransaction struct {
// Amount The scheduled subtransaction amount in milliunits format
Amount int64 `json:"amount"`
CategoryId *openapi_types.UUID `json:"category_id"`
// Deleted Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
Deleted bool `json:"deleted"`
Id openapi_types.UUID `json:"id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
ScheduledTransactionId openapi_types.UUID `json:"scheduled_transaction_id"`
// TransferAccountId If a transfer, the account_id which the scheduled subtransaction transfers to
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
}
ScheduledSubTransaction defines model for ScheduledSubTransaction.
type ScheduledTransactionDetail ¶
type ScheduledTransactionDetail struct {
AccountId openapi_types.UUID `json:"account_id"`
AccountName string `json:"account_name"`
// Amount The scheduled transaction amount in milliunits format
Amount int64 `json:"amount"`
CategoryId *openapi_types.UUID `json:"category_id"`
// CategoryName The name of the category. If a split scheduled transaction, this will be 'Split'.
CategoryName *string `json:"category_name"`
// DateFirst The first date for which the Scheduled Transaction was scheduled.
DateFirst openapi_types.Date `json:"date_first"`
// DateNext The next date for which the Scheduled Transaction is scheduled.
DateNext openapi_types.Date `json:"date_next"`
// Deleted Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
Deleted bool `json:"deleted"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Frequency ScheduledTransactionDetailFrequency `json:"frequency"`
Id openapi_types.UUID `json:"id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
PayeeName *string `json:"payee_name"`
// Subtransactions If a split scheduled transaction, the subtransactions.
Subtransactions []ScheduledSubTransaction `json:"subtransactions"`
// TransferAccountId If a transfer, the account_id which the scheduled transaction transfers to
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
}
ScheduledTransactionDetail defines model for ScheduledTransactionDetail.
type ScheduledTransactionDetailFrequency ¶
type ScheduledTransactionDetailFrequency string
ScheduledTransactionDetailFrequency defines model for ScheduledTransactionDetail.Frequency.
const ( ScheduledTransactionDetailFrequencyDaily ScheduledTransactionDetailFrequency = "daily" ScheduledTransactionDetailFrequencyEvery3Months ScheduledTransactionDetailFrequency = "every3Months" ScheduledTransactionDetailFrequencyEvery4Months ScheduledTransactionDetailFrequency = "every4Months" ScheduledTransactionDetailFrequencyEvery4Weeks ScheduledTransactionDetailFrequency = "every4Weeks" ScheduledTransactionDetailFrequencyEveryOtherMonth ScheduledTransactionDetailFrequency = "everyOtherMonth" ScheduledTransactionDetailFrequencyEveryOtherWeek ScheduledTransactionDetailFrequency = "everyOtherWeek" ScheduledTransactionDetailFrequencyEveryOtherYear ScheduledTransactionDetailFrequency = "everyOtherYear" ScheduledTransactionDetailFrequencyMonthly ScheduledTransactionDetailFrequency = "monthly" ScheduledTransactionDetailFrequencyNever ScheduledTransactionDetailFrequency = "never" ScheduledTransactionDetailFrequencyTwiceAMonth ScheduledTransactionDetailFrequency = "twiceAMonth" ScheduledTransactionDetailFrequencyTwiceAYear ScheduledTransactionDetailFrequency = "twiceAYear" ScheduledTransactionDetailFrequencyWeekly ScheduledTransactionDetailFrequency = "weekly" ScheduledTransactionDetailFrequencyYearly ScheduledTransactionDetailFrequency = "yearly" )
Defines values for ScheduledTransactionDetailFrequency.
type ScheduledTransactionResponse ¶
type ScheduledTransactionResponse struct {
Data struct {
ScheduledTransaction ScheduledTransactionDetail `json:"scheduled_transaction"`
} `json:"data"`
}
ScheduledTransactionResponse defines model for ScheduledTransactionResponse.
type ScheduledTransactionSummary ¶
type ScheduledTransactionSummary struct {
AccountId openapi_types.UUID `json:"account_id"`
// Amount The scheduled transaction amount in milliunits format
Amount int64 `json:"amount"`
CategoryId *openapi_types.UUID `json:"category_id"`
// DateFirst The first date for which the Scheduled Transaction was scheduled.
DateFirst openapi_types.Date `json:"date_first"`
// DateNext The next date for which the Scheduled Transaction is scheduled.
DateNext openapi_types.Date `json:"date_next"`
// Deleted Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
Deleted bool `json:"deleted"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Frequency ScheduledTransactionSummaryFrequency `json:"frequency"`
Id openapi_types.UUID `json:"id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
// TransferAccountId If a transfer, the account_id which the scheduled transaction transfers to
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
}
ScheduledTransactionSummary defines model for ScheduledTransactionSummary.
type ScheduledTransactionSummaryFrequency ¶
type ScheduledTransactionSummaryFrequency string
ScheduledTransactionSummaryFrequency defines model for ScheduledTransactionSummary.Frequency.
const ( ScheduledTransactionSummaryFrequencyDaily ScheduledTransactionSummaryFrequency = "daily" ScheduledTransactionSummaryFrequencyEvery3Months ScheduledTransactionSummaryFrequency = "every3Months" ScheduledTransactionSummaryFrequencyEvery4Months ScheduledTransactionSummaryFrequency = "every4Months" ScheduledTransactionSummaryFrequencyEvery4Weeks ScheduledTransactionSummaryFrequency = "every4Weeks" ScheduledTransactionSummaryFrequencyEveryOtherMonth ScheduledTransactionSummaryFrequency = "everyOtherMonth" ScheduledTransactionSummaryFrequencyEveryOtherWeek ScheduledTransactionSummaryFrequency = "everyOtherWeek" ScheduledTransactionSummaryFrequencyEveryOtherYear ScheduledTransactionSummaryFrequency = "everyOtherYear" ScheduledTransactionSummaryFrequencyMonthly ScheduledTransactionSummaryFrequency = "monthly" ScheduledTransactionSummaryFrequencyNever ScheduledTransactionSummaryFrequency = "never" ScheduledTransactionSummaryFrequencyTwiceAMonth ScheduledTransactionSummaryFrequency = "twiceAMonth" ScheduledTransactionSummaryFrequencyTwiceAYear ScheduledTransactionSummaryFrequency = "twiceAYear" ScheduledTransactionSummaryFrequencyWeekly ScheduledTransactionSummaryFrequency = "weekly" ScheduledTransactionSummaryFrequencyYearly ScheduledTransactionSummaryFrequency = "yearly" )
Defines values for ScheduledTransactionSummaryFrequency.
type ScheduledTransactionsResponse ¶
type ScheduledTransactionsResponse struct {
Data struct {
ScheduledTransactions []ScheduledTransactionDetail `json:"scheduled_transactions"`
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
} `json:"data"`
}
ScheduledTransactionsResponse defines model for ScheduledTransactionsResponse.
type SubTransaction ¶
type SubTransaction struct {
// Amount The subtransaction amount in milliunits format
Amount int64 `json:"amount"`
CategoryId *openapi_types.UUID `json:"category_id"`
CategoryName *string `json:"category_name"`
// Deleted Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
Deleted bool `json:"deleted"`
Id string `json:"id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
PayeeName *string `json:"payee_name"`
TransactionId string `json:"transaction_id"`
// TransferAccountId If a transfer, the account_id which the subtransaction transfers to
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
// TransferTransactionId If a transfer, the id of transaction on the other side of the transfer
TransferTransactionId *string `json:"transfer_transaction_id"`
}
SubTransaction defines model for SubTransaction.
type TransactionClearedStatus ¶
type TransactionClearedStatus string
TransactionClearedStatus The cleared status of the transaction
const ( Cleared TransactionClearedStatus = "cleared" Reconciled TransactionClearedStatus = "reconciled" Uncleared TransactionClearedStatus = "uncleared" )
Defines values for TransactionClearedStatus.
type TransactionDetail ¶
type TransactionDetail struct {
AccountId openapi_types.UUID `json:"account_id"`
AccountName string `json:"account_name"`
// Amount The transaction amount in milliunits format
Amount int64 `json:"amount"`
// Approved Whether or not the transaction is approved
Approved bool `json:"approved"`
CategoryId *openapi_types.UUID `json:"category_id"`
// CategoryName The name of the category. If a split transaction, this will be 'Split'.
CategoryName *string `json:"category_name"`
// Cleared The cleared status of the transaction
Cleared TransactionClearedStatus `json:"cleared"`
// Date The transaction date in ISO format (e.g. 2016-12-01)
Date openapi_types.Date `json:"date"`
// DebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
DebtTransactionType *TransactionDetailDebtTransactionType `json:"debt_transaction_type"`
// Deleted Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
Deleted bool `json:"deleted"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Id string `json:"id"`
// ImportId If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
ImportId *string `json:"import_id"`
// ImportPayeeName If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
ImportPayeeName *string `json:"import_payee_name"`
// ImportPayeeNameOriginal If the transaction was imported, the original payee name as it appeared on the statement
ImportPayeeNameOriginal *string `json:"import_payee_name_original"`
// MatchedTransactionId If transaction is matched, the id of the matched transaction
MatchedTransactionId *string `json:"matched_transaction_id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
PayeeName *string `json:"payee_name"`
// Subtransactions If a split transaction, the subtransactions.
Subtransactions []SubTransaction `json:"subtransactions"`
// TransferAccountId If a transfer transaction, the account to which it transfers
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
// TransferTransactionId If a transfer transaction, the id of transaction on the other side of the transfer
TransferTransactionId *string `json:"transfer_transaction_id"`
}
TransactionDetail defines model for TransactionDetail.
type TransactionDetailDebtTransactionType ¶
type TransactionDetailDebtTransactionType string
TransactionDetailDebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
const ( TransactionDetailDebtTransactionTypeBalanceAdjustment TransactionDetailDebtTransactionType = "balanceAdjustment" TransactionDetailDebtTransactionTypeCharge TransactionDetailDebtTransactionType = "charge" TransactionDetailDebtTransactionTypeCredit TransactionDetailDebtTransactionType = "credit" TransactionDetailDebtTransactionTypeEscrow TransactionDetailDebtTransactionType = "escrow" TransactionDetailDebtTransactionTypeFee TransactionDetailDebtTransactionType = "fee" TransactionDetailDebtTransactionTypeInterest TransactionDetailDebtTransactionType = "interest" TransactionDetailDebtTransactionTypeNil TransactionDetailDebtTransactionType = "<nil>" TransactionDetailDebtTransactionTypePayment TransactionDetailDebtTransactionType = "payment" TransactionDetailDebtTransactionTypeRefund TransactionDetailDebtTransactionType = "refund" )
Defines values for TransactionDetailDebtTransactionType.
type TransactionFlagColor ¶
type TransactionFlagColor string
TransactionFlagColor The transaction flag
const ( TransactionFlagColorBlue TransactionFlagColor = "blue" TransactionFlagColorGreen TransactionFlagColor = "green" TransactionFlagColorNil TransactionFlagColor = "<nil>" TransactionFlagColorOrange TransactionFlagColor = "orange" TransactionFlagColorPurple TransactionFlagColor = "purple" TransactionFlagColorRed TransactionFlagColor = "red" TransactionFlagColorYellow TransactionFlagColor = "yellow" )
Defines values for TransactionFlagColor.
type TransactionResponse ¶
type TransactionResponse struct {
Data struct {
Transaction TransactionDetail `json:"transaction"`
} `json:"data"`
}
TransactionResponse defines model for TransactionResponse.
type TransactionSummary ¶
type TransactionSummary struct {
AccountId openapi_types.UUID `json:"account_id"`
// Amount The transaction amount in milliunits format
Amount int64 `json:"amount"`
// Approved Whether or not the transaction is approved
Approved bool `json:"approved"`
CategoryId *openapi_types.UUID `json:"category_id"`
// Cleared The cleared status of the transaction
Cleared TransactionClearedStatus `json:"cleared"`
// Date The transaction date in ISO format (e.g. 2016-12-01)
Date openapi_types.Date `json:"date"`
// DebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
DebtTransactionType *TransactionSummaryDebtTransactionType `json:"debt_transaction_type"`
// Deleted Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
Deleted bool `json:"deleted"`
// FlagColor The transaction flag
FlagColor *TransactionFlagColor `json:"flag_color"`
Id string `json:"id"`
// ImportId If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
ImportId *string `json:"import_id"`
// ImportPayeeName If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
ImportPayeeName *string `json:"import_payee_name"`
// ImportPayeeNameOriginal If the transaction was imported, the original payee name as it appeared on the statement
ImportPayeeNameOriginal *string `json:"import_payee_name_original"`
// MatchedTransactionId If transaction is matched, the id of the matched transaction
MatchedTransactionId *string `json:"matched_transaction_id"`
Memo *string `json:"memo"`
PayeeId *openapi_types.UUID `json:"payee_id"`
// TransferAccountId If a transfer transaction, the account to which it transfers
TransferAccountId *openapi_types.UUID `json:"transfer_account_id"`
// TransferTransactionId If a transfer transaction, the id of transaction on the other side of the transfer
TransferTransactionId *string `json:"transfer_transaction_id"`
}
TransactionSummary defines model for TransactionSummary.
type TransactionSummaryDebtTransactionType ¶
type TransactionSummaryDebtTransactionType string
TransactionSummaryDebtTransactionType If the transaction is a debt/loan account transaction, the type of transaction
const ( BalanceAdjustment TransactionSummaryDebtTransactionType = "balanceAdjustment" Charge TransactionSummaryDebtTransactionType = "charge" Credit TransactionSummaryDebtTransactionType = "credit" Escrow TransactionSummaryDebtTransactionType = "escrow" Fee TransactionSummaryDebtTransactionType = "fee" Interest TransactionSummaryDebtTransactionType = "interest" Nil TransactionSummaryDebtTransactionType = "<nil>" Payment TransactionSummaryDebtTransactionType = "payment" Refund TransactionSummaryDebtTransactionType = "refund" )
Defines values for TransactionSummaryDebtTransactionType.
type TransactionsImportResponse ¶
type TransactionsImportResponse struct {
Data struct {
// TransactionIds The list of transaction ids that were imported.
TransactionIds []string `json:"transaction_ids"`
} `json:"data"`
}
TransactionsImportResponse defines model for TransactionsImportResponse.
type TransactionsResponse ¶
type TransactionsResponse struct {
Data struct {
// ServerKnowledge The knowledge of the server
ServerKnowledge int64 `json:"server_knowledge"`
Transactions []TransactionDetail `json:"transactions"`
} `json:"data"`
}
TransactionsResponse defines model for TransactionsResponse.
type UpdateCategoryJSONRequestBody ¶
type UpdateCategoryJSONRequestBody = PatchCategoryWrapper
UpdateCategoryJSONRequestBody defines body for UpdateCategory for application/json ContentType.
type UpdateCategoryResponse ¶
type UpdateCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SaveCategoryResponse
JSON400 *ErrorResponse
}
func ParseUpdateCategoryResponse ¶
func ParseUpdateCategoryResponse(rsp *http.Response) (*UpdateCategoryResponse, error)
ParseUpdateCategoryResponse parses an HTTP response from a UpdateCategoryWithResponse call
func (UpdateCategoryResponse) Status ¶
func (r UpdateCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCategoryResponse) StatusCode ¶
func (r UpdateCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMonthCategoryJSONRequestBody ¶
type UpdateMonthCategoryJSONRequestBody = PatchMonthCategoryWrapper
UpdateMonthCategoryJSONRequestBody defines body for UpdateMonthCategory for application/json ContentType.
type UpdateMonthCategoryResponse ¶
type UpdateMonthCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SaveCategoryResponse
JSON400 *ErrorResponse
}
func ParseUpdateMonthCategoryResponse ¶
func ParseUpdateMonthCategoryResponse(rsp *http.Response) (*UpdateMonthCategoryResponse, error)
ParseUpdateMonthCategoryResponse parses an HTTP response from a UpdateMonthCategoryWithResponse call
func (UpdateMonthCategoryResponse) Status ¶
func (r UpdateMonthCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMonthCategoryResponse) StatusCode ¶
func (r UpdateMonthCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTransactionJSONRequestBody ¶
type UpdateTransactionJSONRequestBody = PutTransactionWrapper
UpdateTransactionJSONRequestBody defines body for UpdateTransaction for application/json ContentType.
type UpdateTransactionResponse ¶
type UpdateTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionResponse
JSON400 *ErrorResponse
}
func ParseUpdateTransactionResponse ¶
func ParseUpdateTransactionResponse(rsp *http.Response) (*UpdateTransactionResponse, error)
ParseUpdateTransactionResponse parses an HTTP response from a UpdateTransactionWithResponse call
func (UpdateTransactionResponse) Status ¶
func (r UpdateTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTransactionResponse) StatusCode ¶
func (r UpdateTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTransactionsJSONRequestBody ¶
type UpdateTransactionsJSONRequestBody = PatchTransactionsWrapper
UpdateTransactionsJSONRequestBody defines body for UpdateTransactions for application/json ContentType.
type UpdateTransactionsResponse ¶
type UpdateTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON209 *SaveTransactionsResponse
JSON400 *ErrorResponse
}
func ParseUpdateTransactionsResponse ¶
func ParseUpdateTransactionsResponse(rsp *http.Response) (*UpdateTransactionsResponse, error)
ParseUpdateTransactionsResponse parses an HTTP response from a UpdateTransactionsWithResponse call
func (UpdateTransactionsResponse) Status ¶
func (r UpdateTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTransactionsResponse) StatusCode ¶
func (r UpdateTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserResponse ¶
type UserResponse struct {
Data struct {
User User `json:"user"`
} `json:"data"`
}
UserResponse defines model for UserResponse.