README.md in xeroizer-2.15.8 vs README.md in xeroizer-2.15.9

- old
+ new

@@ -550,17 +550,31 @@ ``` Logging --------------- -You can add an optional paramater to the Xeroizer Application initialization, to pass a logger object that will need to respond_to :info. For example, in a rails app: +You can add an optional parameter to the Xeroizer Application initialization, to pass a logger object that will need to respond_to :info. For example, in a rails app: ```ruby XeroLogger = Logger.new('log/xero.log', 'weekly') client = Xeroizer::PublicApplication.new(YOUR_OAUTH_CONSUMER_KEY, YOUR_OAUTH_CONSUMER_SECRET, :logger => XeroLogger) ``` + +Unit Price Precision +-------------------- + +By default, the API accepts unit prices (UnitAmount) to two decimals places. If you require greater precision, you can opt-in to 4 decimal places by setting an optional parameter when initializing an application: + + +```ruby +client = Xeroizer::PublicApplication.new(YOUR_OAUTH_CONSUMER_KEY, + YOUR_OAUTH_CONSUMER_SECRET, + :unitdp => 4) +``` + +This option adds the unitdp=4 query string parameter to all requests for models with line items - invoices, credit notes, bank transactions and receipts. ### Contributors Xeroizer was inspired by the https://github.com/tlconnor/xero_gateway gem created by Tim Connor and Nik Wakelin and portions of the networking and authentication code are based completely off this project. Copyright for these components remains held in the name of Tim Connor.