mirror of
https://github.com/we-promise/sure.git
synced 2026-05-10 06:05:00 +00:00
* feat(api): expose balance history * fix(api): address balance history review * fix(api): address balance history review * fix(api): tighten balance history docs * fix(exports): preserve balance chronology * fix(api): guard nullable balance account type * test(api): align balances api key helper * fix(api): use shared pagination clamp * test(export): set explicit balance flows factor
13 lines
251 B
Ruby
13 lines
251 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.balances @balances do |balance|
|
|
json.partial! "balance", balance: balance
|
|
end
|
|
|
|
json.pagination do
|
|
json.page @pagy.page
|
|
json.per_page @per_page
|
|
json.total_count @pagy.count
|
|
json.total_pages @pagy.pages
|
|
end
|