taxtank-core 0.29.23 → 0.29.26
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.
- package/bundles/taxtank-core.umd.js +36 -16
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/subscription/subscription-item.collection.js +5 -1
- package/esm2015/lib/db/Models/subscription/service-subscription.js +1 -1
- package/esm2015/lib/forms/address/address.form.js +3 -3
- package/esm2015/lib/models/endpoint/endpoints.const.js +5 -6
- package/esm2015/lib/models/service-subscription/service-price.js +5 -1
- package/esm2015/lib/models/service-subscription/service-subscription.js +7 -1
- package/esm2015/lib/services/http/subscription/service-subscription/subscription.service.js +6 -1
- package/fesm2015/taxtank-core.js +32 -16
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/subscription/subscription-item.collection.d.ts +2 -0
- package/lib/db/Models/subscription/service-subscription.d.ts +1 -0
- package/lib/models/service-subscription/service-price.d.ts +1 -0
- package/lib/models/service-subscription/service-subscription.d.ts +2 -0
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Collection } from '../collection';
|
|
2
2
|
import { ServiceProduct, ServiceSubscriptionItem } from '../../models';
|
|
3
|
+
import { ServicePriceCollection } from './service-price.collection';
|
|
3
4
|
export declare class SubscriptionItemCollection extends Collection<ServiceSubscriptionItem> {
|
|
4
5
|
get propertiesItem(): ServiceSubscriptionItem;
|
|
5
6
|
get propertyQuantity(): number;
|
|
6
7
|
hasProduct(product: ServiceProduct): boolean;
|
|
8
|
+
getPrices(): ServicePriceCollection;
|
|
7
9
|
}
|
|
@@ -7,6 +7,7 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
|
|
|
7
7
|
endDate: Date;
|
|
8
8
|
items: ServiceSubscriptionItem[];
|
|
9
9
|
lastTrialDays: number;
|
|
10
|
+
get frequency(): 'month' | 'year';
|
|
10
11
|
get isTrial(): boolean;
|
|
11
12
|
get isPaid(): boolean;
|
|
12
13
|
get price(): number;
|
|
@@ -49,6 +50,7 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
|
|
|
49
50
|
hasItem(itemToCheck: ServiceSubscriptionItem): boolean;
|
|
50
51
|
hasProduct(product: ServiceProduct): boolean;
|
|
51
52
|
isPackage(): boolean;
|
|
53
|
+
isAnnual(): boolean;
|
|
52
54
|
/**
|
|
53
55
|
* Recommended number of properties to buy,
|
|
54
56
|
* based on the property service product and the number of properties the user has
|
|
@@ -28,10 +28,12 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
|
|
|
28
28
|
getTrials(): Observable<ServiceSubscriptionCollection>;
|
|
29
29
|
getActiveTrials(): Observable<ServiceSubscriptionCollection>;
|
|
30
30
|
/**
|
|
31
|
+
* @TODO remove
|
|
31
32
|
* redirect to stripe payment page
|
|
32
33
|
*/
|
|
33
34
|
checkoutRedirect(subscription: ServiceSubscription): Promise<any>;
|
|
34
35
|
/**
|
|
36
|
+
* @TODO remove
|
|
35
37
|
* redirect to stripe billing page
|
|
36
38
|
*/
|
|
37
39
|
billingRedirect(returnUrl: string): void;
|
|
@@ -43,6 +45,7 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
|
|
|
43
45
|
* Change subscription plan
|
|
44
46
|
*/
|
|
45
47
|
changeSubscription(subscription: ServiceSubscription): Observable<object>;
|
|
48
|
+
cancel(subscription: ServiceSubscription): Observable<object>;
|
|
46
49
|
private listenSubscriptions;
|
|
47
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
|
|
48
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
|