new payment methods service

This commit is contained in:
Stephan D
2026-02-12 21:10:33 +01:00
parent b80dca0ce9
commit a862e27087
106 changed files with 3262 additions and 414 deletions

View File

@@ -21,7 +21,7 @@ type Store struct {
txFactory transaction.Factory
rates storage.RatesStore
quotes storage.QuotesStore
quotes quotestorage.QuotesStore
pairs storage.PairStore
currencies storage.CurrencyStore
}
@@ -92,7 +92,7 @@ func (s *Store) Rates() storage.RatesStore {
return s.rates
}
func (s *Store) Quotes() storage.QuotesStore {
func (s *Store) Quotes() quotestorage.QuotesStore {
return s.quotes
}

View File

@@ -23,7 +23,7 @@ type quotesStore struct {
txFactory transaction.Factory
}
func NewQuotes(logger mlogger.Logger, db *mongo.Database, txFactory transaction.Factory) (storage.QuotesStore, error) {
func NewQuotes(logger mlogger.Logger, db *mongo.Database, txFactory transaction.Factory) (quotestorage.QuotesStore, error) {
repo := repository.CreateMongoRepository(db, model.QuotesCollection)
indexes := []*ri.Definition{
{