What is REGULATION Z The Truth in Lending Act requires lenders to advise the borrower in writing of all costs that are associated with the credit portion of a financial transaction .