Ongoing work for payment/invoicePayment APIs
* Remove RefundJson model and use new model DirectTransactionJson
* Simplify InvoicePaymentApi
* Fix glitches in payment/invoicePayment APIs