Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add AI-based Invoice Generation Method to Chimoney API Integration #460

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

Cyber-Freak999
Copy link
Contributor

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.

@Cyber-Freak999
Copy link
Contributor Author

@todak2000 @phyleria
Please have a look

@phyleria phyleria added the hacktoberfest Hacktoberfest issues label Oct 30, 2024
@phyleria phyleria requested review from todak2000 and removed request for todak2000 October 30, 2024 16:41
@phyleria phyleria merged commit 11c297e into Chimoney:main Oct 31, 2024
Copy link

chimoneybot bot commented Oct 31, 2024

@phyleria, PR merged. Please send a chimoney.io reward to @Cyber-Freak999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants