sparkplug / momoapi-python

MTN MoMo API Client Library for Python
MIT License
47 stars 55 forks source link

Add Validation #10

Closed raybesiga closed 5 years ago

raybesiga commented 5 years ago

Is your feature request related to a problem? Please describe.

Currently, we don't have any validation to ensure users are invoking functions with the right parameters. The only validation we get is from the API. Ideally, we should identify errors and fail fast before they reach the API

Describe the solution you'd like

We need to add assertions on functions and constructors to ensure that the correct information is being given.