package graph_path_finder

import "github.com/tech/sendico/payments/storage/model"

// Edge describes a directed route transition between rails.
type Edge struct {
	FromRail model.Rail
	ToRail   model.Rail
	Network  string
}

// FindInput defines the graph query for path discovery.
type FindInput struct {
	SourceRail      model.Rail
	DestinationRail model.Rail
	Network         string
	Edges           []Edge
}

// Path is an ordered list of rails and transitions selected by path finder.
type Path struct {
	Rails []model.Rail
	Edges []Edge
}
