Add support for credit card expenses and public procurement ownership act attachments in loan creation

Summary

This update enhances the POST /loans endpoint by allowing attachments of new types, including credit card expenses and public procurement ownership act documents, with optional PDF content in some cases.

Updated Endpoints

  • POST /loans
    • Added support for an attachments array to include new types of documents such as credit card expenses and public procurement ownership acts.
    • Introduced new complex data structures for credit card expense details, invoice information, loan attachments, and various document types.
    • Modified document types enumeration and related schemas to include new attachment categories like credit_card_expenses and public_procurement_ownership_act.
    • Attachments now support additional structured data depending on the attachment type, enabling richer context and metadata.

This change allows for more detailed and structured loan requests involving various relevant document attachments, facilitating better data capture and processing aligned with the credit card expenses and public procurement domain.