Use classes instead of hash

* Product
* Payment
* Transaction