Skip to content

Commit

Permalink
Merge pull request #18 from brunomvsouza/api-documentation-sync
Browse files Browse the repository at this point in the history
Synchronizes latest API changes
  • Loading branch information
Bruno Souza committed Dec 20, 2018
2 parents 41e6e06 + e396d41 commit 76d82d5
Show file tree
Hide file tree
Showing 10 changed files with 944 additions and 63 deletions.
31 changes: 24 additions & 7 deletions api/budget/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ import (

// Budget represents a budget
type Budget struct {
ID string `json:"id"`
Name string `json:"name"`
DateFormat DateFormat `json:"date_format"`
CurrencyFormat CurrencyFormat `json:"currency_format"`
ID string `json:"id"`
Name string `json:"name"`

Accounts []*account.Account `json:"accounts"`
Payees []*payee.Payee `json:"payees"`
Expand All @@ -34,6 +32,15 @@ type Budget struct {
ScheduledTransactions []*transaction.ScheduledSummary `json:"scheduled_transactions"`
ScheduledSubTransactions []*transaction.ScheduledSubTransaction `json:"scheduled_sub_transactions"`

// 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"`
// 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"`
// 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"`
// FirstMonth undocumented field
FirstMonth *api.Date `json:"first_month"`
Expand All @@ -46,8 +53,13 @@ type Summary struct {
ID string `json:"id"`
Name string `json:"name"`

// 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"`
// 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 *DateFormat `json:"date_format"`
// 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"`
Expand All @@ -65,8 +77,13 @@ type Snapshot struct {

// Settings represents the settings for a budget
type Settings struct {
DateFormat DateFormat `json:"date_format"`
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"`
// 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 represents date format for a budget
Expand Down
Loading

0 comments on commit 76d82d5

Please sign in to comment.