package billing

// Line is one invoice line in cents.
type Line struct {
	Quantity  int
	UnitCents int
}

// Total sums the invoice lines.
func Total(lines []Line) int {
	total := 0
	for _, line := range lines {
		total += line.Quantity * line.UnitCents
	}
	return total
}
