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

Method GroupTransactions

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

Retrieves refundable transactions by parent ID

(ctx context.Context, groupCriteria string, batchSize int, offset int64)

Source from the content-addressed store, hash-verified

58 GetInflightTransactionsByParentID(ctx context.Context, parentTransactionID string, batchSize int, offset int64) ([]*model.Transaction, error) // Retrieves inflight transactions by parent ID
59 GetRefundableTransactionsByParentID(ctx context.Context, parentTransactionID string, batchSize int, offset int64) ([]*model.Transaction, error) // Retrieves refundable transactions by parent ID
60 GroupTransactions(ctx context.Context, groupCriteria string, batchSize int, offset int64) (map[string][]*model.Transaction, error) // Groups transactions based on specified criteria
61 UpdateLedgerMetadata(id string, metadata map[string]interface{}) error
62 UpdateTransactionMetadata(ctx context.Context, id string, metadata map[string]interface{}) error
63 UpdateBalanceMetadata(ctx context.Context, id string, metadata map[string]interface{}) error

Callers 1

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected