mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* Use validation library in pools creation endpoint * Return error before launching workflow if connector not found in forward bank account req * Return error before launching workflow if bank account not found in forward bank account req * Use TaskIDReference naming convention for connector install workflow * Exclude generate workflow run mock from code coverage check * Use TaskIDReference naming convention for connector uninstall workflow * Use TaskIDReference naming convention for connector reset workflow * Deduplicate Install Workflow options and test OnStart function * Add validation for Name field in Pool creation * Separate not found errors from other storage errors in bank account forwarding * Add customizable timeout to e2e test client
20 lines
497 B
Go
20 lines
497 B
Go
package engine
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
const (
|
|
IDPrefixBankAccountCreate = "create-bank-account"
|
|
IDPrefixConnectorInstall = "install"
|
|
IDPrefixConnectorUninstall = "uninstall"
|
|
IDPrefixConnectorReset = "reset"
|
|
)
|
|
|
|
func (e *engine) taskIDReferenceFor(prefix string, connectorID models.ConnectorID, objectID string) string {
|
|
withStack := fmt.Sprintf("%s-%s", prefix, e.stack)
|
|
return models.TaskIDReference(withStack, connectorID, objectID)
|
|
}
|