+implementation of settlement step execution

This commit is contained in:
Stephan D
2026-02-25 20:09:45 +01:00
parent af4b68f4c7
commit 26bedc5743
7 changed files with 501 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ func requiredIndexes() []*indexDefinition {
Keys: []ri.Key{
{Field: "paymentRef", Sort: ri.Asc},
},
Unique: true,
},
{
Keys: []ri.Key{

View File

@@ -32,7 +32,7 @@ func TestNewWithStore_EnsuresRequiredIndexes(t *testing.T) {
}
assertIndex(t, store.indexes[0], []string{"organizationRef", "paymentRef"}, true)
assertIndex(t, store.indexes[1], []string{"paymentRef"}, false)
assertIndex(t, store.indexes[1], []string{"paymentRef"}, true)
assertIndex(t, store.indexes[2], []string{"organizationRef", "idempotencyKey"}, true)
assertIndex(t, store.indexes[3], []string{"organizationRef", "quotationRef", "createdAt"}, false)
assertIndex(t, store.indexes[4], []string{"organizationRef", "state", "createdAt"}, false)