Documentation ¶
Index ¶
- func NewSubstitutes(ownerId int, substituteIds []int) *[]entity.Substitute
- type AmountOptions
- type Connector
- func (c *Connector) AddUserSubstitutes(ctx goContext.Context, ownerId int, substituteIds []int) ([]int, error)
- func (c *Connector) CreateInvoice(ctx goContext.Context, invoice *entity.Invoice) error
- func (c *Connector) DeleteOldTestInvoices(ctx goContext.Context, expiration time.Duration) ([]string, error)
- func (c *Connector) GetAndUpdateNotNotifiedInvoices(ctx goContext.Context, limit int) ([]entity.Invoice, error)
- func (c *Connector) GetInvoice(ctx goContext.Context, id string) (*entity.Invoice, error)
- func (c *Connector) GetOrCreateUser(ctx goContext.Context, upvsUri, name string) (*entity.User, error)
- func (c *Connector) GetPublicInvoices(ctx goContext.Context, options *PublicInvoicesOptions) ([]entity.Invoice, error)
- func (c *Connector) GetUser(ctx goContext.Context, id int) (*entity.User, error)
- func (c *Connector) GetUserInvoices(ctx goContext.Context, options *UserInvoicesOptions) ([]entity.Invoice, error)
- func (c *Connector) GetUserOrganizationIds(ctx goContext.Context, userId int) ([]string, error)
- func (c *Connector) GetUserSubstitutes(ctx goContext.Context, ownerId int) ([]int, error)
- func (c *Connector) GetUserUris(ctx goContext.Context, icos []string) ([]string, error)
- func (c *Connector) IsValidSubstitute(ctx goContext.Context, userId int, ico string) error
- func (c *Connector) RemoveUserSubstitutes(ctx goContext.Context, ownerId int, substituteIds []int) ([]int, error)
- func (c *Connector) UpdateNotificationStatus(ctx goContext.Context, invoiceIds []string, status string) error
- func (c *Connector) UpdateUser(ctx goContext.Context, updatedData *entity.User) (*entity.User, error)
- func (c *Connector) UpdateVisualizationCreatedStatus(ctx goContext.Context, invoiceId string, status bool) error
- type DateOptions
- type PublicInvoicesOptions
- type TimeOptions
- type UserInvoicesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSubstitutes ¶
func NewSubstitutes(ownerId int, substituteIds []int) *[]entity.Substitute
Types ¶
type AmountOptions ¶
type Connector ¶
func NewConnector ¶
func NewConnector(dbConfig dbutil.Configuration) *Connector
func (*Connector) AddUserSubstitutes ¶
func (*Connector) CreateInvoice ¶
func (*Connector) DeleteOldTestInvoices ¶
func (*Connector) GetAndUpdateNotNotifiedInvoices ¶
func (*Connector) GetInvoice ¶
func (*Connector) GetOrCreateUser ¶
func (*Connector) GetPublicInvoices ¶
func (*Connector) GetUserInvoices ¶
func (*Connector) GetUserOrganizationIds ¶
func (*Connector) GetUserSubstitutes ¶
func (*Connector) GetUserUris ¶
func (*Connector) IsValidSubstitute ¶
func (*Connector) RemoveUserSubstitutes ¶
func (*Connector) UpdateNotificationStatus ¶
func (*Connector) UpdateUser ¶
type PublicInvoicesOptions ¶
type PublicInvoicesOptions struct { Formats []string StartId string Limit int Test bool Order string Amount AmountOptions AmountWithoutVat AmountOptions IssueDate DateOptions CreatedAt TimeOptions CustomerName string SupplierName string CustomerIco string SupplierIco string }
func (*PublicInvoicesOptions) Validate ¶
func (o *PublicInvoicesOptions) Validate(maxLimit int) error
type UserInvoicesOptions ¶
type UserInvoicesOptions struct { UserId int *PublicInvoicesOptions }
Click to show internal directories.
Click to hide internal directories.