taxtank-core 0.28.85 → 0.28.86

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.
@@ -25,20 +25,12 @@ export declare class TransactionCollection extends ExportableCollection<Transact
25
25
  * Difference between allocated amount and total amount
26
26
  */
27
27
  getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
28
- /**
29
- * Get cash position
30
- * Cash Position = Income - Expenses
31
- * Cash position is equal to Total Amount because income is positive and expense is negative,
32
- */
33
- get cashPosition(): number;
34
28
  /**
35
29
  * get date of the last transaction
36
30
  */
37
31
  getLastTransactionDate(): Date;
38
- /**
39
- * Get summary of claim amounts
40
- */
41
32
  get claimAmount(): number;
33
+ get grossClaimAmount(): number;
42
34
  get grossAmount(): number;
43
35
  getByChartAccountsCategories(categories: ChartAccountsCategoryEnum[]): TransactionCollection;
44
36
  /**
@@ -1,25 +1,27 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
3
- import { ServiceSubscriptionCollection } from '../../../collections/subscription/service-subscription.collection';
2
+ import { Observable, ReplaySubject } from 'rxjs';
4
3
  import { ServiceSubscription } from '../../../models/service-subscription/service-subscription';
5
4
  import { ServicePayment } from '../../../models/service-subscription/service-payment';
6
5
  import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
6
  import { ServiceSubscriptionItem } from '../../../models/service-subscription/service-subscription-item';
8
7
  import { SseService } from '../../event/sse.service';
8
+ import { ToastService } from '../../toast/toast.service';
9
9
  import * as i0 from "@angular/core";
10
+ /**
11
+ * @TODO Alex refactor
12
+ */
10
13
  export declare class SubscriptionService {
11
14
  private http;
12
15
  private eventDispatcherService;
13
16
  private sseService;
17
+ private toastService;
14
18
  private environment;
15
19
  _serviceSubscription: ServiceSubscription;
16
20
  serviceSubscriptionSubject: ReplaySubject<ServiceSubscription>;
17
- serviceSubscriptionsSubject: ReplaySubject<ServiceSubscriptionCollection>;
18
21
  stripe: any;
19
22
  servicePaymentsSubject: ReplaySubject<ServicePayment[]>;
20
23
  _servicePayments: ServicePayment[];
21
- subscriptionChangeSubject: BehaviorSubject<ServiceSubscription>;
22
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
24
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, toastService: ToastService, environment: any);
23
25
  getSubscription(force?: boolean): Observable<ServiceSubscription>;
24
26
  /**
25
27
  * redirect to stripe payment page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.85",
3
+ "version": "0.28.86",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",