package quotation

import (
	"github.com/tech/sendico/payments/quotation/internal/service/plan"
	"github.com/tech/sendico/payments/storage/model"
)

func railFromEndpoint(endpoint model.PaymentEndpoint, attrs map[string]string, isSource bool) (model.Rail, string, error) {
	return plan.RailFromEndpoint(endpoint, attrs, isSource)
}
