Skip to content

Conversation

@oseovie
Copy link
Collaborator

@oseovie oseovie commented Feb 12, 2026

Updated the Bulk charges touse the BulkChargesItem pydantic model for initiating bulk charges.
Refactored the bulk charge functionality to accept pydantic models in the initiate bulk charge method

Updated the Bulk Charges API to use Pydantic models for better data handling.

Changes made
- Added a `BulkChargeItem` model using Pydantic to check and validate the input data.
- The `initiate_bulk_charge` method now accepts either Pydantic model instances or dictionaries.
- If the input is a Pydantic model, it will be automatically converted to a dictionary.
- Added checks to make sure the input is not empty and has the right data type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant