Add API operations to LineItem class