import { HttpClient } from '@angular/common/http'; import { FormBuilder } from '@angular/forms'; import { Observable } from 'rxjs/Observable'; import { Router } from '@angular/router'; import { CookieService } from '../../services/cookie.service'; import { ApiConstant } from '../../utils/api-constant/api-constant.service'; import { TransformObjectFormService } from '../../utils/transform-object-form/transform-object-form.service'; import 'rxjs/add/operator/map'; import { AuthTokenService } from '../../services/authToken.service'; import { TNKLoanForm, InitRegions } from './auth-loan-form.model'; export declare class TNKAuthLoanFormService { private fb; private http; private apiConstant; private router; private transformObject; private cookieService; private authService; data: Observable; isFraudAttemptAlert: boolean; private dispatcher; private store; obsInitRegions: Observable; private dispatcherInitRegions; private initRegions; private formData; contactSameAsKTP: boolean; cashtreeRefcodeFormat: string; currencyOptions: any; private affiliateCookieName; transformKtpData: any; constructor(fb: FormBuilder, http: HttpClient, apiConstant: ApiConstant, router: Router, transformObject: TransformObjectFormService, cookieService: CookieService, authService: AuthTokenService); validationMessages: any; setStore(obj: any): void; /** ** @description to show separated number with dots on input type tel ** @example 1000 to 1.000 ** @arg type are formControlName from the input type hidden, ex: 'housing_monthlyCost' */ showDelimiter(type: string, event: KeyboardEvent): void; getProfileData(token: string): Observable; getBank(): void; setBirthPlace(event: any, type: string): void; getBirthCity(cityId: any): void; transformRegionValue(value: string, arr: any[], prefix: any, type: any): any; private assignContactAddressObject(contactAdressData); private assignDomicileAddressObject(domicileAddressData); private isObjectEmpty(obj); getInitRegions(formData: any, addressType: string, isCookie?: any): void; private validateNullData(inputValue); getRegions(data: any, type: any, methodType?: any, objType?: string, onChange?: boolean): Observable; calcInitMonthly(loanAmount: number, loanPeriod: number): number; setDomicileAsContact(bool: any): void; checkUserKTP(ktp?: string): void; deleteUnwantedObject(obj: any): void; stepHandler(step: number, type: string): void; private submitRepeatLoan(); private handleNewLoanError(error); private logout(); private removeCookies(); /** * Create cookie contained with affiliate tracking links * @param {string} ktp */ private handleAffiliateTracking(ktp, data); private setCashTreeCallback(data, clickId); confirmPINDataChanges(bool: any): void; setServiceArea(status: string): void; stepValidator(step: number, type?: string): boolean; buildForm(group?: any, isCookie?: boolean): void; private clearValidatorEntrepreneurField(); private updateValueAndValidityEntrepreneurField(); private validateJob(data, type?); private validityCost(data); private validateNumOfPeople(); private spouseValidity(val); private onNameChanged(data); private onChangedValue(data); spouseDob(spousePin: any): void; setBirthDate(value: any, type: any): void; findBankByCode(code: string): void; confirmEditReview(): void; handleLoanSlider(type: any, data: any): void; agreeToFormPrivacy(evt: any): void; private transformReactiveToJSON(data, additionalData, isCookie?); }