XML 52 R38.htm IDEA: XBRL DOCUMENT
v3.19.1

FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details) - USD ($) $ in Thousands | Apr. 30, 2019 | Jul. 31, 2018
--- | --- | ---
Financial Assets: |  |
Short-term investments: | $ 495,633 | $ 628,328
Recurring |  |
Financial Assets: |  |
Total measured at fair value | 675,779 | 752,894
Cash | 264,973 | 181,409
Total cash, cash equivalents and short-term investments | 940,752 | 934,303
Recurring | Commitments |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability |  | 1,872
Recurring | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 355,259 | 448,458
Recurring | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 96,214 | 120,772
Recurring | U.S. government securities |  |
Financial Assets: |  |
Short-term investments: | 44,160 | 59,098
Recurring | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 61,373 | 41,763
Recurring | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 118,773 | 77,818
Recurring | U.S. government securities |  |
Financial Assets: |  |
Cash equivalents: |  | 4,985
Recurring | Level I |  |
Financial Assets: |  |
Total measured at fair value | 61,373 | 41,763
Recurring | Level I | Commitments |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability |  | 0
Recurring | Level I | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level I | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level I | U.S. government securities |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level I | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 61,373 | 41,763
Recurring | Level I | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 0 | 0
Recurring | Level I | U.S. government securities |  |
Financial Assets: |  |
Cash equivalents: |  | 0
Recurring | Level II |  |
Financial Assets: |  |
Total measured at fair value | 614,406 | 711,131
Recurring | Level II | Commitments |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability |  | 0
Recurring | Level II | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 355,259 | 448,458
Recurring | Level II | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 96,214 | 120,772
Recurring | Level II | U.S. government securities |  |
Financial Assets: |  |
Short-term investments: | 44,160 | 59,098
Recurring | Level II | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 0 | 0
Recurring | Level II | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 118,773 | 77,818
Recurring | Level II | U.S. government securities |  |
Financial Assets: |  |
Cash equivalents: |  | 4,985
Recurring | Level III |  |
Financial Assets: |  |
Total measured at fair value | 0 | 0
Recurring | Level III | Commitments |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability |  | 1,872
Recurring | Level III | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level III | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level III | U.S. government securities |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level III | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 0 | 0
Recurring | Level III | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | $ 0 | 0
Recurring | Level III | U.S. government securities |  |
Financial Assets: |  |
Cash equivalents: |  | $ 0

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

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as current. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109979856&loc=d3e26626-111562 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation. + 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.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_Cash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cash includes currency on hand as well as demand deposits with banks or financial institutions. It also includes other kinds of accounts that have the general characteristics of demand deposits in that the customer may deposit additional funds at any time and effectively may withdraw funds at any time without prior notice or penalty. Cash equivalents, excluding items classified as marketable securities, include short-term, highly liquid Investments that are both readily convertible to known amounts of cash, and so near their maturity that they present minimal risk of changes in value because of changes in interest rates. Generally, only investments with original maturities of three months or less qualify under that definition. Original maturity means original maturity to the entity holding the investment. For example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents. However, a Treasury note purchased three years ago does not become a cash equivalent when its remaining maturity is three months. Short-term investments, exclusive of cash equivalents, generally consist of marketable securities intended to be sold within one year (or the normal operating cycle if longer) and may include trading securities, available-for-sale securities, or held-to-maturity securities (if maturing within one year), as applicable. + 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.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CashCashEquivalentsAndShortTermInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 + Details
Name: | us-gaap_DerivativeLiabilitiesNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + 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 (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=us-gaap_CommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_USGovernmentDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |