avadev / AvaTax-REST-V2-Ruby-SDK

Sales Tax API SDK for Ruby and AvaTax REST
https://developer.avalara.com/sdk/
Apache License 2.0
36 stars 56 forks source link

DEVCON3049 #24

Closed han8909227 closed 6 years ago

han8909227 commented 6 years ago

for issue #22, we determined there is a little use case for big_decimal(https://ruby-doc.org/stdlib-1.9.3/libdoc/bigdecimal/rdoc/BigDecimal.html). The default behavior for parsing decimals in all JSON response object will be to regular decimal.

To have all decimal in respose to be big_decimal object(string) @client = AvaTax::Client.new(:response_big_decimal_conversion => true) on new Client object @client.response_big_decimal_conversion = true on existing Client object