model

package
v0.0.0-...-4d895cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOrderBy = []OrderBy{
	OrderByAsc,
	OrderByDesc,
}

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 AddContactInput struct {
	Name string `json:"name"`
	Text string `json:"text"`
}

type Amount

type Amount struct {
	Amount   float64      `json:"amount"`
	Currency gql.Currency `json:"currency"`
}

type AmountInput

type AmountInput struct {
	Amount   float64      `json:"amount"`
	Currency gql.Currency `json:"currency"`
}

type App

type App struct {
	Initialized  bool             `json:"initialized"`
	ActivePeriod *entities.Period `json:"activePeriod,omitempty"`
	Version      string           `json:"version"`
}

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 FindInvoiceByPeriod struct {
	PeriodID    uint64           `json:"periodId"`
	OnlyPending *bool            `json:"onlyPending,omitempty"`
	OnlyPaid    *bool            `json:"onlyPaid,omitempty"`
	Limit       *uint64          `json:"limit,omitempty"`
	Offset      *uint64          `json:"offset,omitempty"`
	OrderBy     *InvoicesOrderBy `json:"orderBy,omitempty"`
}

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 Mutation

type Mutation struct {
}

type OrderBy

type OrderBy string
const (
	OrderByAsc  OrderBy = "ASC"
	OrderByDesc OrderBy = "DESC"
)

func (OrderBy) IsValid

func (e OrderBy) IsValid() bool

func (OrderBy) MarshalGQL

func (e OrderBy) MarshalGQL(w io.Writer)

func (OrderBy) String

func (e OrderBy) String() string

func (*OrderBy) UnmarshalGQL

func (e *OrderBy) 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 QRCodeInput struct {
	File graphql.Upload `json:"file"`
	Bank string         `json:"bank"`
}

type Query

type Query struct {
}

type RepeatPlannerInput

type RepeatPlannerInput struct {
	IntervalCount uint32             `json:"intervalCount"`
	Interval      PlanRepeatInterval `json:"interval"`
	DaysOfWeek    []uint32           `json:"daysOfWeek,omitempty"`
	EndDate       *gql.Date          `json:"endDate,omitempty"`
	EndCount      *uint32            `json:"endCount,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL