mirror of
https://github.com/we-promise/sure.git
synced 2026-05-09 13:45:01 +00:00
feat(api): expose family settings (#1645)
* feat(api): expose family settings * test(api): assert family settings moniker * test(api): align family settings api key helper * fix(api): tighten family settings schema
This commit is contained in:
16
app/views/api/v1/family_settings/show.json.jbuilder
Normal file
16
app/views/api/v1/family_settings/show.json.jbuilder
Normal file
@@ -0,0 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
json.id @family.id
|
||||
json.name @family.name
|
||||
json.currency @family.currency
|
||||
json.locale @family.locale
|
||||
json.date_format @family.date_format
|
||||
json.country @family.country
|
||||
json.timezone @family.timezone
|
||||
json.month_start_day @family.month_start_day
|
||||
json.moniker @family.moniker
|
||||
json.default_account_sharing @family.default_account_sharing
|
||||
json.custom_enabled_currencies @family.custom_enabled_currencies?
|
||||
json.enabled_currencies @family.enabled_currency_codes
|
||||
json.created_at @family.created_at.iso8601
|
||||
json.updated_at @family.updated_at.iso8601
|
||||
Reference in New Issue
Block a user