def METHOD_NAME(self, line_item_status):
    """Calculate and return the order's amounts as an OrderAmounts tuple."""
    base_amount = Decimal(0)
    discounted_amount = Decimal(0)
    final_amount = Decimal(0)
    confirmed_amount = Decimal(0)
    for line_item in self.line_items:
        if line_item.status == line_item_status:
            base_amount += line_item.base_amount
            discounted_amount += line_item.discounted_amount
            final_amount += line_item.final_amount
        if line_item.is_confirmed:
            confirmed_amount += line_item.final_amount
    return OrderAmounts(
        base_amount, discounted_amount, final_amount, confirmed_amount
    )