mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
51 lines
1.2 KiB
Go
51 lines
1.2 KiB
Go
package wise
|
|
|
|
import "github.com/formancehq/payments/internal/models"
|
|
|
|
const (
|
|
fetchProfileName = "fetch_profiles"
|
|
)
|
|
|
|
func workflow() models.ConnectorTasksTree {
|
|
return []models.ConnectorTaskTree{
|
|
{
|
|
TaskType: models.TASK_FETCH_OTHERS,
|
|
Name: fetchProfileName,
|
|
Periodically: true,
|
|
NextTasks: []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_EXTERNAL_ACCOUNTS,
|
|
Name: "fetch_recipient_accounts",
|
|
Periodically: true,
|
|
NextTasks: []models.ConnectorTaskTree{},
|
|
},
|
|
{
|
|
TaskType: models.TASK_CREATE_WEBHOOKS,
|
|
Name: "create_webhooks",
|
|
Periodically: false,
|
|
NextTasks: []models.ConnectorTaskTree{},
|
|
},
|
|
{
|
|
TaskType: models.TASK_FETCH_PAYMENTS,
|
|
Name: "fetch_payments",
|
|
Periodically: false,
|
|
NextTasks: []models.ConnectorTaskTree{},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|