Revenue - Changes in contract assets and contract liabilities (Details) - USD ($) $ in Thousands |
6 Months Ended | 12 Months Ended | |
|---|---|---|---|
Jun. 30, 2023 |
Jun. 30, 2022 |
Dec. 31, 2022 |
|
| Contract assets | |||
| Net change in contract assets | $ (23,807) | $ (386) | |
| Contract liabilities | |||
| Increases due to cash received, net of amounts recognized as revenue during the period | 137,526 | $ 200,347 | |
| Contract liabilities assumed as part of acquisition | 10,011 | ||
| Revenue recognized that was included in the contract liability balance as of the beginning of the period | (115,688) | (163,550) | |
| Net change in deferred revenue and contract liabilities | 21,838 | 46,808 | |
| Sales of fuel cell systems | |||
| Contract assets | |||
| Transferred to receivables from contract assets recognized at the beginning of the period | (34,966) | (33,394) | |
| Contract assets related to warrants | 6,510 | 26,455 | |
| Impairment | (9,799) | ||
| Revenue recognized and not billed as of the end of the period | 58,553 | 72,469 | |
| Net change in contract assets | $ 20,298 | $ 65,530 | |