Files
30b884945c feat: Column Connector for Payments (#351)
* Update PR with latest updates from `main`, fix conflicts

* Update PR with changes from main

---------

Co-authored-by: gitstart_bot <[email protected]>
2025-04-10 14:44:38 +02:00

40 lines
956 B
Go

package column
import "github.com/formancehq/payments/internal/models"
func workflow() models.ConnectorTasksTree {
return []models.ConnectorTaskTree{
{
TaskType: models.TASK_FETCH_ACCOUNTS,
Name: "fetch_accounts",
Periodically: true,
NextTasks: []models.ConnectorTaskTree{
{
TaskType: models.TASK_FETCH_BALANCES,
Name: "fetch_balances",
Periodically: true,
NextTasks: []models.ConnectorTaskTree{},
},
},
},
{
TaskType: models.TASK_FETCH_PAYMENTS,
Name: "fetch_payments",
NextTasks: []models.ConnectorTaskTree{},
},
{
TaskType: models.TASK_FETCH_EXTERNAL_ACCOUNTS,
Name: "fetch_external_accounts",
Periodically: true,
NextTasks: []models.ConnectorTaskTree{},
},
{
TaskType: models.TASK_CREATE_WEBHOOKS,
Name: "create_webhooks",
Periodically: false,
NextTasks: []models.ConnectorTaskTree{},
},
}
}