/** * @Component Name: CustomerComponent * @Module: Home * @Module Functionality : To display the customer information * @Creation Date: August 12,2017 * @Author: sbaireddy * @Version: 1.0 */ import { OnInit, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { IDormantProperties } from '../lib/shared/modal/common'; import { Customer, ICreditEligibilityReq } from '../lib/shared/modal/customer'; import { Cart } from '../lib/shared/modal/cart'; import { User } from '../lib/shared/modal/user'; import { SharedService } from '../lib/shared/shared.service'; import { CustomerService } from '../lib/services/customer.service'; import { CartService } from '../lib/services/cart.service'; import { UserService } from '../lib/services/user.service'; export declare class ConsumercreditComponent implements OnInit, OnDestroy { sharedService: SharedService; userService: UserService; customerService: CustomerService; cartService: CartService; router: Router; private COMPONENT_NAME; clearAllStatus: boolean; stateItems: any[]; customerModel: any; disableFields: boolean; cartSummaryData: any; conflictModel: any; manualReviewModel: any; storeId: number; hasItemsInCart: boolean; creditType: string; bdStoreId: number; rtStoreId: number; cdStoreId: number; csStoreId: number; creditClassS: string; cart: Cart; subscription: any; customer: any; user: User; KarmaTestResult: any; showCreditDetail: boolean; hasPOAddress: boolean; bannerName: string; dormantProperties: IDormantProperties; suucessmsg: string; customerModelpin: string; eligibilityReq: ICreditEligibilityReq; isValidated: boolean; disable4ssn: boolean; eligibilityErrorMsg: string; eligibilityMsg: string; isAALOrder: boolean; type: string; prescreenEnabled: boolean; showSpinner: boolean; constructor(sharedService: SharedService, userService: UserService, customerService: CustomerService, cartService: CartService, router: Router); /** * This function is used to initialize the directive/component after Angular * first displays the data-bound properties.It is invoked only once when the * directive is instantiated.Here it is initializing all the states, payment methods and card types * @returns void */ ngOnInit(): void; employeeClick(data: any): void; checkAgeLimit(): void; /** * Cleanup just before Angular destroys the directive/component. * Unsubscribe Observables and detach event handlers to avoid memory leaks. * @returns void */ ngOnDestroy(): void; /**initializing the customer component */ /** * This function is used to update customer using updateCustomerModel() * @returns void */ initializeCustomer(): void; /** *This function is used to update customer model with customer details. * @returns void */ updateCustomerModel(): void; /**switch credit type */ /**switch credit type */ /** * This function is used to set the credit type * @param {string} creditType contains valid credit type. * @returns void */ switchCreditType(creditType: string): void; /** * This function is used to revert back credit type based on credit type * @param {string} creditType contains valid credit type * @returns void */ revertBackCreditType(creditType: string): void; /** * This function is used to update the customer in cart using customer and cart services. * @param {Customer} customer * @returns void */ assosiateCustomerToCart(customer: Customer): void; /** * This function is used to update revert back credit type. * @param {number} orderId contains valid order number * @param {string} creditType contains valid credit type * @returns void */ updateCreditType(orderId: number, creditType: string): void; /** * This function is used to get cart summary and to update cart. * @param {string} resolveType contains valid resolve type. * @returns void */ removeConflicts(resolveType: string): void; /** * This function is used to validate dealer code using user service and to update dealer code. * @param {any} element * @returns void */ validateDealerCode(element: any): void; /** * This function is used to create customer using customer service and update in the cart. * @returns void */ saveCustomerProfile(): void; /**update cart with web order#,company name, copr node and dealer code */ /** * This function is used to update cart with web order#, * company name, copr node and dealer code * @param {any} element * @returns void */ updateCart(element: any): void; /** * This function is used to save fields * where there is customer data entered by agent * @param {any} element * @returns void */ saveFields(element: any): void; /** * This function is used to update creditType * @param {string} type * @returns void */ acceptCreditSwitch(type: string): void; /** key press handler event */ /** * This function is used to prevent the user enter to enter charactes by using keypress handler. * @param {} event * @returns void */ keypresshandler(event: any): void; validatePOAdress(address: any): void; /** * This function is used to check if the zip code has eligible promotions. * @param {any} element * @returns void */ isZipCodePromoEligible(): void; validateEligibility(nonTMOMobileNumber: any, nonTMOMobilePin: any): void; onResetForm(): void; /** * This function is used to validate the passcodes in customer credit check * @param {any} element1 - contains the passcode * @param {any} element2 - contains the confirm passcode * @return void */ validatePasscode(element1: any, element2: any): void; }