Added
- Pydantic v2 to project dependencies.
- Utility methods for fees calculation `calculate_fee`, `to_base_unit`, `to_subunit`.
- `ClientNetworkError`. An exception raised for all network related errors.
Changed
- `auth_key` parameter to `secret_key`.
- secret key environmental variable name from `PAYSTACK_AUTHORIZATION_KEY` to `PAYSTACK_SECRET_KEY`
- `MissingAuthKeyException` to `MissingSecretKeyException`
- Rename wrappers to clients. All usages of wrappers are now deprecated in favour of clients.
`Paystack` wrapper class in the past is now `PaystackClient` likewise all other api wrappers
are now sub clients e.g. `ApplePay` is now `ApplePayClient`
Fixed
- Unused `amount` parameter in `TransactionClient.export`
Removed
- Support for `python<=3.10`
- Package defined `HTTPMethod` enum. Now using `HTTPMethod` from the standard lib.
- `validate_amount` and `validate_interval` helper methods
- `InvalidMethodException`, `InvalidDataException`