v3.22.0.1

Fair Value Measurement and Financial Instruments (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Fair Value Disclosures [Abstract] |
Schedule of Fair Value Hierarchy for Financial Assets and Liabilities Measured at Fair Value | The following table summarizes the Company’s financial assets and liabilities measured at fair value on a recurring basis (in thousands):
| As of December 31, 2020
| Level 1 | Level 2 | Level 3 | Total
Assets |  |  |  |
Cash equivalents: |  |  |  |
Money market funds | $ | 22,676 |  | $ | — |  | $ | — |  | $ | 22,676 |
Certificates of deposit | 278,281 |  | — |  | — |  | 278,281 |
U.S. government debt securities | — |  | 1,392,966 |  | — |  | 1,392,966 |
Commercial paper | — |  | 779,527 |  | — |  | 779,527 |
Corporate debt securities | — |  | 229,633 |  | — |  | 229,633 |
| 300,957 |  | 2,402,126 |  | — |  | 2,703,083 |
Marketable securities: |  |  |  |
Certificates of deposit | 142,991 |  | — |  | — |  | 142,991 |
U.S. government and government agency debt securities | — |  | 65,867 |  | — |  | 65,867 |
Commercial paper | — |  | 241,623 |  | — |  | 241,623 |
Corporate debt securities | — |  | 267,618 |  | — |  | 267,618 |
Mortgage-backed and asset-backed securities | — |  | 37,353 |  | — |  | 37,353 |
Mutual funds | — |  | 155,248 |  | — |  | 155,248 |
| 142,991 |  | 767,709 |  | — |  | 910,700 |
Funds receivable and amounts held on behalf of customers: |  |  |  |
U.S. government and government agency debt securities | — |  | 466,219 |  | — |  | 466,219 |
Prepaids and other current assets: |  |  |  |
Foreign exchange derivative assets | — |  | 12,478 |  | — |  | 12,478 |
Other assets, noncurrent: |  |  |  |
Corporate debt securities | — |  | — |  | 11,490 |  | 11,490 |
Total assets at fair value | $ | 443,948 |  | $ | 3,648,532 |  | $ | 11,490 |  | $ | 4,103,970 |
Liabilities |  |  |  |
Accrued expenses and other current liabilities: |  |  |  |
Foreign exchange derivative liabilities | $ | — |  | $ | 32,250 |  | $ | — |  | $ | 32,250 |
Derivative warrant liability (Note 10) | — |  | — |  | 985,181 |  | 985,181 |
Total liabilities at fair value | $ | — |  | $ | 32,250 |  | $ | 985,181 |  | $ | 1,017,431 |
| As of December 31, 2021
| Level 1 | Level 2 | Level 3 | Total
Assets |  |  |  |
Cash equivalents: |  |  |  |
Money market funds | $ | 1,923,184 |  | $ | — |  | $ | — |  | $ | 1,923,184 |
Certificates of deposit | 31,117 |  | — |  | — |  | 31,117 |
Commercial paper | — |  | 163,959 |  | — |  | 163,959 |
Corporate debt securities | — |  | 41,439 |  | — |  | 41,439 |
| 1,954,301 |  | 205,398 |  | — |  | 2,159,699 |
Marketable securities: |  |  |  |
Certificates of deposit | 364,234 |  | — |  | — |  | 364,234 |
U.S. government and government agency debt securities | — |  | 863 |  | — |  | 863 |
Commercial paper | — |  | 993,004 |  | — |  | 993,004 |
Corporate debt securities | — |  | 862,901 |  | — |  | 862,901 |
Mortgage-backed and asset-backed securities | — |  | 34,036 |  | — |  | 34,036 |
| 364,234 |  | 1,890,804 |  | — |  | 2,255,038 |
Funds receivable and amounts held on behalf of customers: |  |  |  |
Money market funds | 466,319 |  | — |  | — |  | 466,319 |
Prepaids and other current assets: |  |  |  |
Foreign exchange derivative assets | — |  | 25,918 |  | — |  | 25,918 |
Other assets, noncurrent: |  |  |  |
Corporate debt securities | — |  | — |  | 10,451 |  | 10,451 |
Total assets at fair value | $ | 2,784,854 |  | $ | 2,122,120 |  | $ | 10,451 |  | $ | 4,917,425 |
Liabilities |  |  |  |
Accrued expenses and other current liabilities: |  |  |  |
Foreign exchange derivative liabilities | $ | — |  | $ | 10,280 |  | $ | — |  | $ | 10,280 |
Total liabilities at fair value | $ | — |  | $ | 10,280 |  | $ | — |  | $ | 10,280 |
Schedule of Fair Value Assets Measured on Recurring Basis, Rollforward | The following table presents additional information about investments that are measured at fair value for which the Company has utilized Level 3 inputs to determine fair value (in thousands):
| December 31,
| 2020 |  | 2021
| Derivative Warrant Liability | Other Assets, Noncurrent |  | Derivative Warrant Liability | Other Assets, Noncurrent
Balance, beginning of year | $ | — |  | $ | 13,029 |  |  | $ | 985,181 |  | $ | 11,490 |
Additions | 116,641 |  | — |  |  | — |  | — |
Reclassifications to equity | — |  | — |  |  | (1,277,168) |  | — |
Total realized and unrealized gains (losses): |  |  |  |  |
Included in earnings | 868,540 |  | — |  |  | 291,987 |  | — |
Included in other comprehensive income (loss) | — |  | (1,539) |  |  | — |  | (1,039) |
Balance, end of year | $ | 985,181 |  | $ | 11,490 |  |  | $ | — |  | $ | 10,451 |
Changes in unrealized gains or losses included in other comprehensive income (loss) related to investments held at the reporting date | $ | — |  | $ | (1,539) |  |  | $ | — |  | $ | (1,039) |
Schedule of Fair Value Liabilities Measured on Recurring Basis, Rollforward | The following table presents additional information about investments that are measured at fair value for which the Company has utilized Level 3 inputs to determine fair value (in thousands):
| December 31,
| 2020 |  | 2021
| Derivative Warrant Liability | Other Assets, Noncurrent |  | Derivative Warrant Liability | Other Assets, Noncurrent
Balance, beginning of year | $ | — |  | $ | 13,029 |  |  | $ | 985,181 |  | $ | 11,490 |
Additions | 116,641 |  | — |  |  | — |  | — |
Reclassifications to equity | — |  | — |  |  | (1,277,168) |  | — |
Total realized and unrealized gains (losses): |  |  |  |  |
Included in earnings | 868,540 |  | — |  |  | 291,987 |  | — |
Included in other comprehensive income (loss) | — |  | (1,539) |  |  | — |  | (1,039) |
Balance, end of year | $ | 985,181 |  | $ | 11,490 |  |  | $ | — |  | $ | 10,451 |
Changes in unrealized gains or losses included in other comprehensive income (loss) related to investments held at the reporting date | $ | — |  | $ | (1,539) |  |  | $ | — |  | $ | (1,039) |
Schedule of Fair Value Measurement Inputs and Valuation Techniques | The following table presents additional information about valuation techniques and inputs used for investments that are measured at fair value and categorized within Level 3 as of December 31, 2020 (fair value amounts in thousands):
| Fair Value | Valuation Technique | Unobservable Inputs | Inputs Value
Liability |  |  |  |
Derivative warrant liability | $ | 985,181 |  | Black-Scholes option-pricing model | Stock volatility | 44.4 | %
|  |  | Risk-free rate | 0.9 | %
|  |  | Expected term | 9.3 years

X
- Definition Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258 + Details
Name: | us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 + Details
Name: | us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration