v3.19.3

CUSTOMER FUNDS (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2019
Investments, Debt and Equity Securities [Abstract] |
Assets Underlying Customer Funds | The following table presents the assets underlying customer funds (in thousands):
| September 30, 2019 |  | December 31, 2018
Cash | $ | 407,719 |  |  | $ | 158,697 |
Cash Equivalents: |  |  |
Money market funds | 388 |  |  | 18 |
U.S. agency securities | 21,667 |  |  | 39,991 |
U.S. government securities | 6,999 |  |  | 35,349 |
Short-term debt securities: |  |  |
U.S. agency securities | 1,654 |  |  | 27,291 |
U.S. government securities | 222,172 |  |  | 72,671 |
Total | $ | 660,599 |  |  | $ | 334,017 |
Investments within Customer Funds | The Company's investments within customer funds as of December 31, 2018 are as follows (in thousands):
| Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Short-term debt securities: |  |  |  |  |  |  |
U.S. agency securities | $ | 27,293 |  |  | $ | 2 |  |  | $ | (4 | ) |  | $ | 27,291 |
U.S. government securities | 72,662 |  |  | 12 |  |  | (3 | ) |  | 72,671 |
Total | $ | 99,955 |  |  | $ | 14 |  |  | $ | (7 | ) |  | $ | 99,962 |
The Company's investments within customer funds as of September 30, 2019 are as follows (in thousands):
| Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Short-term debt securities: |  |  |  |  |  |  |
U.S. agency securities | $ | 1,657 |  |  | $ | — |  |  | $ | (3 | ) |  | $ | 1,654 |
U.S. government securities | 222,193 |  |  | 39 |  |  | (60 | ) |  | 222,172 |
Total | $ | 223,850 |  |  | $ | 39 |  |  | $ | (63 | ) |  | $ | 223,826 |
Contractual Maturities of Investments within Customer Funds | The contractual maturities of the Company's short-term and long-term investments as of September 30, 2019 are as follows (in thousands):
| Amortized Cost |  | Fair Value
Due in one year or less | $ | 557,380 |  |  | $ | 557,656 |
Due in one to five years | 564,889 |  |  | 564,508 |
Total | $ | 1,122,269 |  |  | $ | 1,122,164 |
The contractual maturities of the Company's investments within customer funds as of September 30, 2019 are as follows (in thousands):
| Amortized Cost |  | Fair Value
Due in one year or less | $ | 223,850 |  |  | $ | 223,826 |
Total | $ | 223,850 |  |  | $ | 223,826 |

X
- Definition Tabular disclosure of the amounts paid in advance for capitalized costs that will be expensed with the passage of time or the occurrence of a triggering event, and will be charged against earnings within one year or the normal operating cycle, if longer; the aggregate carrying amount of current assets, not separately presented elsewhere in the balance sheet; and other deferred costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments. + References No definition available. + Details
Name: | us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value. + References No definition available. + Details
Name: | us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration