Browse Source

fix(client): enforce encapsulation

pull/6806/head
KenTandrian 4 weeks ago
parent
commit
d2ef7c4d85
  1. 37
      apps/client/src/app/pages/pricing/pricing-page.component.ts

37
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -48,30 +48,28 @@ import { catchError } from 'rxjs/operators';
templateUrl: './pricing-page.html' templateUrl: './pricing-page.html'
}) })
export class GfPricingPageComponent implements OnInit { export class GfPricingPageComponent implements OnInit {
public baseCurrency: string; protected baseCurrency: string;
public coupon: number | undefined; protected coupon: number | undefined;
public couponId: string | undefined; protected durationExtension: StringValue | undefined;
public durationExtension: StringValue | undefined; protected hasPermissionToCreateUser: boolean;
public hasPermissionToCreateUser: boolean; protected hasPermissionToUpdateUserSettings: boolean;
public hasPermissionToUpdateUserSettings: boolean;
protected readonly importAndExportTooltipBasic = translate(
public readonly importAndExportTooltipBasic = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC'
); );
public readonly importAndExportTooltipOSS = translate( protected readonly importAndExportTooltipOSS = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS'
); );
public label: string | undefined; protected label: string | undefined;
public price: number | undefined; protected price: number | undefined;
public priceId: string;
public readonly professionalDataProviderTooltipPremium = translate( protected readonly professionalDataProviderTooltipPremium = translate(
'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM' 'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM'
); );
public readonly referralBrokers = [ protected readonly referralBrokers = [
'Alpian', 'Alpian',
'DEGIRO', 'DEGIRO',
'finpension', 'finpension',
@ -84,9 +82,12 @@ export class GfPricingPageComponent implements OnInit {
'Zak' 'Zak'
] as const; ] as const;
public readonly routerLinkFeatures = publicRoutes.features.routerLink; protected readonly routerLinkFeatures = publicRoutes.features.routerLink;
public readonly routerLinkRegister = publicRoutes.register.routerLink; protected readonly routerLinkRegister = publicRoutes.register.routerLink;
public user: User; protected user: User;
private couponId: string | undefined;
private priceId: string;
public constructor( public constructor(
private readonly changeDetectorRef: ChangeDetectorRef, private readonly changeDetectorRef: ChangeDetectorRef,
@ -142,7 +143,7 @@ export class GfPricingPageComponent implements OnInit {
}); });
} }
public onCheckout() { protected onCheckout() {
this.dataService this.dataService
.createStripeCheckoutSession({ .createStripeCheckoutSession({
couponId: this.couponId, couponId: this.couponId,

Loading…
Cancel
Save