We would like you to create a library in (Python, PHP or nodeJS) that will be used to validate transactions with different formats (JSON, XML, Associative Array or gRPC). The attached .zip file contains transaction samples in JSON and XML formats. There is no need to validate the whole transaction as it is big, at least show how it works, on taxes for example. We are interested in how you design it and make it support multiple formats (JSON, XML, Associative Array or gRPC) instead of being fully functional.
Tip: net_sales_money is the item net price (without tax