MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / RecordExternalTransaction

Method RecordExternalTransaction

database/repository.go:160–160  ·  view source on GitHub ↗

Retrieves external transactions in a paginated manner

(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string)

Source from the content-addressed store, hash-verified

158 GetMatchesByReconciliationID(ctx context.Context, reconciliationID string) ([]*model.Match, error) // Retrieves matches by reconciliation ID
159 GetExternalTransactionsPaginated(ctx context.Context, uploadID string, batchSize int, offset int64) ([]*model.ExternalTransaction, error) // Retrieves external transactions in a paginated manner
160 RecordExternalTransaction(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string) error // Records an external transaction
161 RecordMatchingRule(ctx context.Context, rule *model.MatchingRule) error // Records a matching rule
162 GetMatchingRules(ctx context.Context) ([]*model.MatchingRule, error) // Retrieves all matching rules
163 GetMatchingRule(ctx context.Context, id string) (*model.MatchingRule, error) // Retrieves a matching rule by ID

Callers 1

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected