This pull request introduces the AI class, which extends BaseAPI to support AI-powered invoice generation via Chimoney's /v0.2/ai/invoice/generate endpoint. The invoice_gen method allows users to create invoices by providing specific instructions on invoice structure and content, enhancing automation and customization options.
Key updates:
AI Class: New class extending BaseAPI.
invoice_gen Method: Accepts an instruction string, raises a ValueError if empty, and posts payload to Chimoney API.
Comprehensive Docstrings: Added docstrings for class and method, detailing functionality, parameters, return type, and error handling.
This addition streamlines the creation of structured invoices, supporting broader use cases for invoice customization within the Chimoney API integration.
This pull request introduces the AI class, which extends BaseAPI to support AI-powered invoice generation via Chimoney's /v0.2/ai/invoice/generate endpoint. The invoice_gen method allows users to create invoices by providing specific instructions on invoice structure and content, enhancing automation and customization options.
Key updates:
invoice_gen
Method: Accepts an instruction string, raises a ValueError if empty, and posts payload to Chimoney API.This addition streamlines the creation of structured invoices, supporting broader use cases for invoice customization within the Chimoney API integration.