Refactored InvoiceParams class with properties. Changed KeyValuePair to Dictionary and other minor changes.