Documentation ¶
Index ¶
- Variables
- type AccountType
- type AddContactInput
- type Amount
- type AmountInput
- type App
- type CreateAccountInput
- type CreateInvoiceInput
- type FindInvoiceByPeriod
- type InvoiceStatus
- type InvoiceType
- type InvoicesOrderBy
- type Mutation
- type OrderBy
- type PlanRepeatInterval
- type QRCodeInput
- type Query
- type RepeatPlannerInput
- type UpdateAccountInput
- type UpdateInvoiceInput
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAccountType = []AccountType{ AccountTypeCash, AccountTypeCredit, AccountTypeDebit, }
View Source
var AllInvoiceStatus = []InvoiceStatus{ InvoiceStatusPending, InvoiceStatusPaid, }
View Source
var AllInvoiceType = []InvoiceType{ InvoiceTypeIncome, InvoiceTypeExpense, }
View Source
var AllInvoicesOrderBy = []InvoicesOrderBy{ InvoicesOrderByDateAsc, InvoicesOrderByDateDesc, }
View Source
var AllOrderBy = []OrderBy{ OrderByAsc, OrderByDesc, }
View Source
var AllPlanRepeatInterval = []PlanRepeatInterval{ PlanRepeatIntervalDaily, PlanRepeatIntervalWeekly, PlanRepeatIntervalMonthly, PlanRepeatIntervalYearly, }
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType string
const ( AccountTypeCash AccountType = "CASH" AccountTypeCredit AccountType = "CREDIT" AccountTypeDebit AccountType = "DEBIT" )
func (AccountType) IsValid ¶
func (e AccountType) IsValid() bool
func (AccountType) MarshalGQL ¶
func (e AccountType) MarshalGQL(w io.Writer)
func (AccountType) String ¶
func (e AccountType) String() string
func (*AccountType) UnmarshalGQL ¶
func (e *AccountType) UnmarshalGQL(v interface{}) error
type AddContactInput ¶
type AmountInput ¶
type CreateAccountInput ¶
type CreateAccountInput struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Type AccountType `json:"type"` Balance *AmountInput `json:"balance"` }
type CreateInvoiceInput ¶
type CreateInvoiceInput struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Plan *RepeatPlannerInput `json:"plan,omitempty"` Type InvoiceType `json:"type"` Amount *AmountInput `json:"amount"` ContactID uint64 `json:"contactId"` Date gql.DateTime `json:"date"` }
type FindInvoiceByPeriod ¶
type InvoiceStatus ¶
type InvoiceStatus string
const ( InvoiceStatusPending InvoiceStatus = "Pending" InvoiceStatusPaid InvoiceStatus = "Paid" )
func (InvoiceStatus) IsValid ¶
func (e InvoiceStatus) IsValid() bool
func (InvoiceStatus) MarshalGQL ¶
func (e InvoiceStatus) MarshalGQL(w io.Writer)
func (InvoiceStatus) String ¶
func (e InvoiceStatus) String() string
func (*InvoiceStatus) UnmarshalGQL ¶
func (e *InvoiceStatus) UnmarshalGQL(v interface{}) error
type InvoiceType ¶
type InvoiceType string
const ( InvoiceTypeIncome InvoiceType = "Income" InvoiceTypeExpense InvoiceType = "Expense" )
func (InvoiceType) IsValid ¶
func (e InvoiceType) IsValid() bool
func (InvoiceType) MarshalGQL ¶
func (e InvoiceType) MarshalGQL(w io.Writer)
func (InvoiceType) String ¶
func (e InvoiceType) String() string
func (*InvoiceType) UnmarshalGQL ¶
func (e *InvoiceType) UnmarshalGQL(v interface{}) error
type InvoicesOrderBy ¶
type InvoicesOrderBy string
const ( InvoicesOrderByDateAsc InvoicesOrderBy = "Date_ASC" InvoicesOrderByDateDesc InvoicesOrderBy = "Date_DESC" )
func (InvoicesOrderBy) IsValid ¶
func (e InvoicesOrderBy) IsValid() bool
func (InvoicesOrderBy) MarshalGQL ¶
func (e InvoicesOrderBy) MarshalGQL(w io.Writer)
func (InvoicesOrderBy) String ¶
func (e InvoicesOrderBy) String() string
func (*InvoicesOrderBy) UnmarshalGQL ¶
func (e *InvoicesOrderBy) UnmarshalGQL(v interface{}) error
type PlanRepeatInterval ¶
type PlanRepeatInterval string
const ( PlanRepeatIntervalDaily PlanRepeatInterval = "Daily" PlanRepeatIntervalWeekly PlanRepeatInterval = "Weekly" PlanRepeatIntervalMonthly PlanRepeatInterval = "Monthly" PlanRepeatIntervalYearly PlanRepeatInterval = "Yearly" )
func (PlanRepeatInterval) IsValid ¶
func (e PlanRepeatInterval) IsValid() bool
func (PlanRepeatInterval) MarshalGQL ¶
func (e PlanRepeatInterval) MarshalGQL(w io.Writer)
func (PlanRepeatInterval) String ¶
func (e PlanRepeatInterval) String() string
func (*PlanRepeatInterval) UnmarshalGQL ¶
func (e *PlanRepeatInterval) UnmarshalGQL(v interface{}) error
type QRCodeInput ¶
type RepeatPlannerInput ¶
type UpdateAccountInput ¶
type UpdateAccountInput struct { ID uint64 `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` Balance *AmountInput `json:"balance"` }
type UpdateInvoiceInput ¶
type UpdateInvoiceInput struct { ID uint64 `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` Plan *RepeatPlannerInput `json:"plan,omitempty"` Type InvoiceType `json:"type"` Amount *AmountInput `json:"amount"` ContactID uint64 `json:"contactId"` Date gql.DateTime `json:"date"` }
Click to show internal directories.
Click to hide internal directories.