Loans Held for Investment and Allowance for Credit Losses - Schedule of Discount Included in Loans Held for Investment (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Finance Receivable, Loans Held For Investment, Discount [Roll Forward] | |||
| Balance at the beginning of the period | $ 102,684 | $ 98,527 | $ 96,576 |
| Additions from loans purchased or originated, net of refunds | 490,626 | 356,398 | 268,441 |
| Amortization of discount | (332,829) | (254,964) | (204,654) |
| Unamortized discount released on loans sold | (137,055) | (97,044) | (60,580) |
| Impact of foreign currency translation | (949) | (233) | (1,256) |
| Balance at the end of the period | $ 122,477 | $ 102,684 | $ 98,527 |