Closed rafaelmillan closed 6 years ago
Same for date format.
Thanks for the report! Our swagger spec needed to be updated for these fields.
Fixed by https://github.com/ynab/ynab-sdk-ruby/pull/13, released to RubyGems as 0.7.0.
Updated format:
budget_response = ynab.budgets.get_budgets.data.budgets[0].date_format
=> #<YnabApi::DateFormat:0x00007fe3c929d920 @format="MM/DD/YYYY">
budget_response = ynab.budgets.get_budgets.data.budgets[0].currency_format
=> #<YnabApi::CurrencyFormat:0x00007fe3c926c730 @iso_code="USD", @example_format="123,456.78", @decimal_digits="2", @decimal_separator=".", @symbol_first=true, @group_separator=",", @currency_symbol="$", @display_symbol=true>
Sweet, thanks for the quick fix!
Hi,
The currency format data is returned in the raw API response but not in the
YnabApi::CurrencyFormat
objects of the client:Looking at your API docs it seems that the only field in the currency model is
locale
, so even though values such asiso_code
are returned by the API, they are skipped by the client.