financialstatement

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	FiscalYear string
	Period     financialsrole.PeriodType
	Statement  financialsrole.StatementType
	Limit      int
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(database *storage.Database) (Repository, error)

func (Repository) ListStatements

func (r Repository) ListStatements(ctx context.Context, company companyidentity.InspectResult, query Query) ([]financialsrole.Statement, error)

func (Repository) UpsertStatements

func (r Repository) UpsertStatements(ctx context.Context, company companyidentity.InspectResult, statements []financialsrole.Statement) (UpsertResult, error)

type UpsertResult

type UpsertResult struct {
	StatementsWritten int `json:"statements_written" csv:"statements_written"`
	LineItemsWritten  int `json:"line_items_written" csv:"line_items_written"`
}

Jump to

Keyboard shortcuts

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