taxtank-core 0.30.5 → 0.30.8
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/esm2020/lib/db/Enums/subscription/service-payment-method-card-brand.enum.mjs +12 -0
- package/esm2020/lib/db/Enums/subscription/service-payment-method-type.enum.mjs +6 -0
- package/esm2020/lib/db/Models/subscription/service-payment-method.mjs +4 -0
- package/esm2020/lib/models/depreciation/depreciation-forecast.mjs +2 -2
- package/esm2020/lib/models/endpoint/endpoints.const.mjs +7 -1
- package/esm2020/lib/models/property/property.mjs +6 -6
- package/esm2020/lib/models/service-subscription/index.mjs +2 -1
- package/esm2020/lib/models/service-subscription/payment-method-brand.enum.mjs +12 -0
- package/esm2020/lib/models/service-subscription/service-payment-method.mjs +21 -0
- package/esm2020/lib/services/http/subscription/index.mjs +3 -2
- package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +62 -0
- package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +2 -2
- package/fesm2015/taxtank-core.mjs +131 -25
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +129 -25
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts +10 -0
- package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts +4 -0
- package/lib/db/Models/subscription/service-payment-method.d.ts +16 -0
- package/lib/models/endpoint/endpoints.const.d.ts +1 -0
- package/lib/models/property/property.d.ts +6 -8
- package/lib/models/service-subscription/index.d.ts +1 -0
- package/lib/models/service-subscription/payment-method-brand.enum.d.ts +10 -0
- package/lib/models/service-subscription/service-payment-method.d.ts +10 -0
- package/lib/services/http/subscription/index.d.ts +2 -1
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ServicePaymentMethodTypeEnum } from '../../Enums/subscription/service-payment-method-type.enum';
|
|
2
|
+
import { ServicePaymentMethodCardBrandEnum } from '../../Enums/subscription/service-payment-method-card-brand.enum';
|
|
3
|
+
import { User } from '../user/user';
|
|
4
|
+
import { AbstractModel } from '../abstract-model';
|
|
5
|
+
export declare class ServicePaymentMethod extends AbstractModel {
|
|
6
|
+
stripeId?: string;
|
|
7
|
+
type?: ServicePaymentMethodTypeEnum;
|
|
8
|
+
lastFourDigits?: string;
|
|
9
|
+
cardBrand?: ServicePaymentMethodCardBrandEnum;
|
|
10
|
+
cardExpirationMonth?: number;
|
|
11
|
+
cardExpirationYear?: number;
|
|
12
|
+
isDefault?: boolean;
|
|
13
|
+
id?: number;
|
|
14
|
+
deletedAt?: Date;
|
|
15
|
+
user?: User;
|
|
16
|
+
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { Property as PropertyBase } from '../../db/Models/property/property';
|
|
2
|
-
import { Documentable } from '../../interfaces
|
|
3
|
-
import { PropertyShare } from '../../db/Models
|
|
2
|
+
import { Documentable, Photoable } from '../../interfaces';
|
|
3
|
+
import { PropertyShare } from '../../db/Models';
|
|
4
4
|
import { PropertySubscription } from './property-subscription';
|
|
5
|
-
import {
|
|
6
|
-
import { Address } from '../address/address';
|
|
5
|
+
import { Address } from '../address';
|
|
7
6
|
import { PropertyCategory } from './property-category';
|
|
8
7
|
import { PropertyValuation } from './property-valuation';
|
|
9
8
|
import { PropertyForecast } from './property-forecast';
|
|
10
9
|
import { PropertyCategoryMovement } from './property-category-movement';
|
|
11
|
-
import { User } from '../user
|
|
10
|
+
import { User } from '../user';
|
|
12
11
|
import { TaxExemptionEnum } from '../../db/Enums/property/property-sale/tax-exemption.enum';
|
|
13
|
-
import { PropertySale } from './property-sale
|
|
12
|
+
import { PropertySale } from './property-sale';
|
|
14
13
|
import { unitOfTime } from 'moment';
|
|
15
|
-
import { TransactionCollection } from '../../collections
|
|
16
|
-
import { DepreciationCollection } from '../../collections/depreciation.collection';
|
|
14
|
+
import { TransactionCollection, DepreciationCollection } from '../../collections';
|
|
17
15
|
/**
|
|
18
16
|
* propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
|
|
19
17
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServicePaymentMethod as ServicePaymentMethodBase } from '../../db/Models/subscription/service-payment-method';
|
|
2
|
+
export declare class ServicePaymentMethod extends ServicePaymentMethodBase {
|
|
3
|
+
get logo(): string;
|
|
4
|
+
get brandName(): string;
|
|
5
|
+
/**
|
|
6
|
+
* Get expiration date formatted string (MM/YY)
|
|
7
|
+
*/
|
|
8
|
+
get expirationDate(): string;
|
|
9
|
+
get description(): string;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './service-price/service-price.service';
|
|
2
1
|
export * from './service-payment/service-payment.service';
|
|
2
|
+
export * from './service-payment-method/service-payment-method.service';
|
|
3
|
+
export * from './service-price/service-price.service';
|
|
3
4
|
export * from './service-subscription/subscription.service';
|
|
4
5
|
export * from './service-product/service-product.service';
|
package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RestService } from '../../rest';
|
|
2
|
+
import { ServicePaymentMethod as ServicePaymentMethodBase } from '../../../../db/Models/subscription/service-payment-method';
|
|
3
|
+
import { ServicePaymentMethod } from '../../../../models';
|
|
4
|
+
import { Collection } from '../../../../collections';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { EventDispatcherService, SseService } from '../../../event';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ServicePaymentMethodService extends RestService<ServicePaymentMethodBase, ServicePaymentMethod, Collection<ServicePaymentMethod>> {
|
|
10
|
+
protected http: HttpClient;
|
|
11
|
+
protected eventDispatcherService: EventDispatcherService;
|
|
12
|
+
protected environment: any;
|
|
13
|
+
private sseService;
|
|
14
|
+
protected endpointUri: string;
|
|
15
|
+
collectionClass: typeof Collection;
|
|
16
|
+
modelClass: typeof ServicePaymentMethod;
|
|
17
|
+
isApiPlatform: boolean;
|
|
18
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, sseService: SseService);
|
|
19
|
+
/**
|
|
20
|
+
* Get Stripe client secret required for Payment form initialization
|
|
21
|
+
*/
|
|
22
|
+
getSecret(): Observable<string>;
|
|
23
|
+
setAsDefault(paymentMethod: ServicePaymentMethod): Observable<ServicePaymentMethod>;
|
|
24
|
+
listenPaymentMethods(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServicePaymentMethodService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ServicePaymentMethodService>;
|
|
27
|
+
}
|