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

Method IsTransactionRefunded

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

Retrieves transactions by parent ID with pagination

(ctx context.Context, transaction *model.Transaction)

Source from the content-addressed store, hash-verified

65 TransactionExistsByIDOrParentID(ctx context.Context, id string) (bool, error)
66 GetTransactionsByParent(ctx context.Context, parentID string, limit int, offset int64) ([]*model.Transaction, error) // Retrieves transactions by parent ID with pagination
67 IsTransactionRefunded(ctx context.Context, transaction *model.Transaction) (bool, error) // Checks if a transaction has already been refunded
68 GetTransactionsByCriteria(ctx context.Context, minAmount, maxAmount *float64, currency *string, minDate, maxDate *time.Time, limit int, offset int64) ([]*model.Transaction, error)
69 GetTransactionsByShadowFor(ctx context.Context, parentTransactionID string) ([]model.Transaction, error) // Retrieves shadow transactions by parent transaction ID
70 GetStuckQueuedTransactions(ctx context.Context, threshold time.Duration, batchSize int) ([]*model.Transaction, error) // Retrieves stuck QUEUED transactions with no child

Callers 1

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected