package appversion

import (
	"github.com/tech/sendico/pkg/version"
	vf "github.com/tech/sendico/pkg/version/factory"
)

// Build information populated via ldflags.
var (
	Version   string
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
)

// Create returns a printer configured for the payment methods service.
func Create() version.Printer {
	vi := version.Info{
		Program:   "Sendico Payment Methods Service",
		Revision:  Revision,
		Branch:    Branch,
		BuildUser: BuildUser,
		BuildDate: BuildDate,
		Version:   Version,
	}
	return vf.Create(&vi)
}
