{
  "id": "LC-009",
  "name": "Opportunity line items should display full columns (Name/Quantity/UnitPrice/Discount)",
  "description": "OpportunityLineItem query should return all required columns.",
  "object": "Opportunity",
  "method": "GET",
  "endpoint": "/services/data/v63.0/sobjects/Opportunity/{opportunity_id}/OpportunityLineItems",
  "expects": {
    "status_code": 200
  },
  "setup": [
    {
      "type": "sql",
      "sql": "DELETE FROM `Opportunity` WHERE Name = 'LC009 Test Opp'",
      "expected_status": 200
    },
    {
      "type": "sql",
      "sql": "INSERT INTO `Opportunity` (Id, Name, StageName, CloseDate, AccountId, Amount) VALUES ('lcmrs-lc009-opp-001', 'LC009 Test Opp', 'Prospecting', '2026-12-31', '{seed_Account_0}', 100000)",
      "expected_status": 200,
      "id_var": "opportunity_id",
      "id_value": "lcmrs-lc009-opp-001"
    },
    {
      "type": "sql",
      "sql": "DELETE FROM `OpportunityLineItem` WHERE OpportunityId = 'lcmrs-lc009-opp-001'",
      "expected_status": 200
    },
    {
      "type": "sql",
      "sql": "INSERT INTO `OpportunityLineItem` (Id, OpportunityId, PricebookEntryId, Quantity, UnitPrice, Discount) SELECT 'lcmrs-lc009-li-001', 'lcmrs-lc009-opp-001', Id, 10, 1000, 0 FROM `PricebookEntry` WHERE IsActive = true LIMIT 1",
      "expected_status": 200
    }
  ],
  "priority": "P0",
  "scene": "lead_convert"
}
