taxtank-core 0.31.55 → 0.31.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,14 +21,15 @@ export declare class BankAccount extends BankAccountBase {
21
21
  * Get last digits of account number
22
22
  */
23
23
  get partialAccountNumber(): string;
24
+ get balance(): number;
24
25
  /**
25
26
  * Get current opening balance amount
26
27
  */
27
- getOpeningBalance(): number;
28
+ getOpeningBalance(year?: number): number;
28
29
  /**
29
30
  * Get bank account balance for current financial year
30
31
  */
31
- getCurrentYearBalance(): BankAccountBalance;
32
+ getBalanceByYear(year: number): BankAccountBalance;
32
33
  /**
33
34
  * check if bank account type is one of savings accounts
34
35
  */
@@ -2,12 +2,14 @@ export declare class FinancialYear {
2
2
  static weeksInYear: number;
3
3
  static monthsInYear: number;
4
4
  static startMonthIndex: number;
5
+ static year: number;
5
6
  year: number;
6
7
  startDate: Date;
7
8
  endDate: Date;
8
9
  private yearStartDate;
9
10
  private yearEndDate;
10
11
  constructor(date?: Date | number);
12
+ static isCurrent(year?: number): boolean;
11
13
  includes(date: Date): boolean;
12
14
  static toFinYear(date: Date): number;
13
15
  get prevFinYear(): FinancialYear;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.31.55",
3
+ "version": "0.31.59",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",