Quarterly report pursuant to Section 13 or 15(d)

Derivative Instruments and Hedging Activities - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details)

v3.19.1
Derivative Instruments and Hedging Activities - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Mar. 31, 2019
Mar. 31, 2018
Mar. 31, 2019
Mar. 31, 2018
Derivative Instruments        
Revenues $ 1,097,311 $ 1,021,294 $ 3,310,469 $ 2,966,697
Costs of revenues 486,945 368,356 1,276,592 1,068,475
Interest expense 31,187 28,119 84,087 86,067
Other expense (income), net (9,282) (7,640) (28,535) (19,847)
Amount of gains (losses) reclassified from accumulated OCI to earnings 946   3,719  
Amount of gains (losses) reclassified from accumulated OCI to earnings   694   3,775
Revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring   0   0
Costs of revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring   0   0
Interest expense        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring   0   0
Other expense (income), net        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring   0   0
Rate lock contracts | Revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 0   0  
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0   0  
Rate lock contracts | Costs of revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 0   0  
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0   0  
Rate lock contracts | Interest expense        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 150   527  
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0   0  
Rate lock contracts | Other expense (income), net        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 0   0  
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0   0  
Foreign exchange contracts | Revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 655   3,343  
Amount of gains (losses) reclassified from accumulated OCI to earnings   (65)   1,300
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0   80  
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach   0   0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0   0  
Foreign exchange contracts | Costs of revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings (17)   (309)  
Amount of gains (losses) reclassified from accumulated OCI to earnings   570   1,908
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0   (8)  
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach   0   0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0   0  
Foreign exchange contracts | Interest expense        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 0   0  
Amount of gains (losses) reclassified from accumulated OCI to earnings   189   567
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0   0  
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach   0   0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0   0  
Foreign exchange contracts | Other expense (income), net        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings 158   158  
Amount of gains (losses) reclassified from accumulated OCI to earnings   0   0
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0   0  
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach   0   0
Amount excluded from the assessment of effectiveness (121) (374) (208) (603)
Amount of gains (losses) recognized in earnings $ 513   $ 576  
Derivatives designated as hedging instruments | Rate lock contracts | Revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings   0   0
Derivatives designated as hedging instruments | Rate lock contracts | Costs of revenues        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings   0   0
Derivatives designated as hedging instruments | Rate lock contracts | Interest expense        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings   0   0
Derivatives designated as hedging instruments | Rate lock contracts | Other expense (income), net        
Derivative Instruments        
Amount of gains (losses) reclassified from accumulated OCI to earnings   0   0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Revenues        
Derivative Instruments        
Amount of gains (losses) recognized in earnings   0   0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Costs of revenues        
Derivative Instruments        
Amount of gains (losses) recognized in earnings   0   0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Interest expense        
Derivative Instruments        
Amount of gains (losses) recognized in earnings   0   0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Other expense (income), net        
Derivative Instruments        
Amount of gains (losses) recognized in earnings   $ (7,484)   $ (3,808)