taxtank-core 0.28.99 → 0.28.100

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.
@@ -1,5 +1,12 @@
1
1
  import { ServicePayment as BaseServicePayment } from '../../db/Models/subscription/service-payment';
2
2
  import { ServiceSubscription } from './service-subscription';
3
3
  export declare class ServicePayment extends BaseServicePayment {
4
+ static daysToInvoiceUrlExpired: number;
4
5
  subscription: ServiceSubscription;
6
+ date: Date;
7
+ /**
8
+ * Stripe stores actual links to payment invoices for 30 days.
9
+ * Link expires after 30 days
10
+ */
11
+ isInvoiceLinkExpired(): boolean;
5
12
  }
@@ -41,6 +41,10 @@ export declare class SubscriptionService {
41
41
  */
42
42
  changeSubscription(items: ServiceSubscriptionItem[]): Observable<object>;
43
43
  private listenSubscriptions;
44
+ /**
45
+ * Stripe stores actual links to payment invoices for 30 days. After that, we need to request an actual link
46
+ */
47
+ getPaymentInvoiceUrl(payment: ServicePayment): Observable<string>;
44
48
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
45
49
  static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
46
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.99",
3
+ "version": "0.28.100",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",