mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 06:02:22 -05:00
API Account Object (#6915)
* api change * docs * lint * release notes * spelling * [autofix.ci] apply automated fixes * spelling * whoopsie, thanks rabbit --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -161,6 +161,16 @@ export const objects = {
|
||||
</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
name: 'balance_current',
|
||||
type: 'number | null',
|
||||
description: (
|
||||
<span>
|
||||
The current balance of the account as reported by bank sync. Can also
|
||||
be set manually. Defaults to <code>null</code>
|
||||
</span>
|
||||
),
|
||||
},
|
||||
],
|
||||
|
||||
category: [
|
||||
|
||||
@@ -14,6 +14,7 @@ import * as models from './models';
|
||||
export type APIAccountEntity = Pick<AccountEntity, 'id' | 'name'> & {
|
||||
offbudget?: boolean;
|
||||
closed?: boolean;
|
||||
balance_current?: number | null;
|
||||
};
|
||||
|
||||
export const accountModel = {
|
||||
@@ -25,6 +26,7 @@ export const accountModel = {
|
||||
name: account.name,
|
||||
offbudget: account.offbudget ? true : false,
|
||||
closed: account.closed ? true : false,
|
||||
balance_current: account.balance_current ?? null,
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
6
upcoming-release-notes/6915.md
Normal file
6
upcoming-release-notes/6915.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [totallynotjon]
|
||||
---
|
||||
|
||||
The Account API now allows `balance_current` to be set, making balances visible for reconciliation when using custom importers.
|
||||
Reference in New Issue
Block a user