Annual report pursuant to Section 13 and 15(d)

Quarterly Results of Operations (Unaudited) (Details)

v3.19.3.a.u2
Quarterly Results of Operations (Unaudited) (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Effect of Fourth Quarter Events [Line Items]                      
Total Revenue $ 243,937 $ 215,542 $ 204,595 $ 194,504 $ 240,120 $ 204,960 $ 170,538 $ 144,363 $ 858,578 $ 759,981 $ 532,542
Net loss   (112,534) (104,585) (86,906) (49,515) (47,524) (71,727) (91,420) (391,022) (260,186) (287,615)
Net income attributable to common stockholders $ 12,500 $ 28,990 $ (1,293) $ (13,862) $ (5,888) $ (2,896) $ 7,409 $ 28,032 $ 26,335 $ 26,657 $ 125,489
Net income (loss) per share available to common shareholders, basic (in dollars per share) $ 0.11 $ 0.25 $ (0.01) $ (0.12) $ (0.05) $ (0.03) $ 0.07 $ 0.26 $ 0.23 $ 0.24 $ 1.19
Net income (loss) per share available to common shareholders, diluted (in dollars per share) $ 0.10 $ 0.23 $ (0.01) $ (0.12) $ (0.05) $ (0.02) $ 0.06 $ 0.25 $ 0.21 $ 0.23 $ 1.16
Customer agreements and incentives                      
Effect of Fourth Quarter Events [Line Items]                      
Cost of solar energy systems and product sales $ 72,898 $ 67,359 $ 70,594 $ 69,493 $ 65,317 $ 63,195 $ 57,769 $ 54,576 $ 280,344 $ 240,857 $ 186,435
Solar energy systems and product sales                      
Effect of Fourth Quarter Events [Line Items]                      
Total Revenue                 470,743 355,515 298,266
Cost of solar energy systems and product sales $ 109,307 $ 92,031 $ 86,348 $ 77,799 $ 89,040 $ 76,179 $ 64,268 $ 64,579 $ 365,485 $ 294,066 $ 254,131