def total
  line_items.sum(&:amount)
end