+implementation of settlement step execution
This commit is contained in:
@@ -19,6 +19,7 @@ func requiredIndexes() []*indexDefinition {
|
||||
Keys: []ri.Key{
|
||||
{Field: "paymentRef", Sort: ri.Asc},
|
||||
},
|
||||
Unique: true,
|
||||
},
|
||||
{
|
||||
Keys: []ri.Key{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user