Conditionals
Build an object per line item containing the product_id and the subtotal (quantity*unit_price). If either quantity or unit_price does not exist, the "subtotal" key should not exist.