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

Method RecordMatchingRule

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

Records an external transaction

(ctx context.Context, rule *model.MatchingRule)

Source from the content-addressed store, hash-verified

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
164 UpdateMatchingRule(ctx context.Context, rule *model.MatchingRule) error // Updates a matching rule

Callers 1

CreateMatchingRuleMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected