- Assumptions:
- id: a string.
- name: can be one of these [’Sales Tax’, ‘Income Tax’, ‘Value Added Tax’]
- rate: a float, less 100 and greater than 0.
- Inclusion type: can be one of these [‘INCLUSIVE’, ‘EXCLUSIVE’]
- is_custom_amount: a boolean
- applied_money: should not null
- amount: should be greater than 0.
- currency: should be any of given [‘JOD’, ‘USD’, ‘GBP']
- How to run:
python3 validate.py transaction.json