/** * @Component Name: DummyCheckComponent * @Module: Home * @Module Functionality : To display the customer dummy check information * @Creation Date: August 16,2018 * @Author: sbaireddy * @Version: 1.0 */ import { OnInit, OnChanges, OnDestroy } from '@angular/core'; import { NgForm } from '@angular/forms'; import { User } from '../shared/modal/user'; import { Cart } from '../shared/modal/cart'; import { Customer } from '../shared/modal/customer'; import { SharedService } from '../shared/shared.service'; import { UserService } from '../services/user.service'; import { CartService } from '../services/cart.service'; import { CustomerService } from '../services/customer.service'; export declare class DummyCheckComponent implements OnInit, OnChanges, OnDestroy { sharedService: SharedService; userService: UserService; cartService: CartService; customerService: CustomerService; private COMPONENT_NAME; karmaTestResult: any; storeId: number; creditType: string; customerModel: any; customerForm: any; conflictModel: any; creditDetails: any; dummyCheckModel: any; user: User; cart: Cart; customer: Customer; subscription: any; hasItemsInCart: boolean; creditTypeNoCredit: string; constructor(sharedService: SharedService, userService: UserService, cartService: CartService, customerService: CustomerService); /** * 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, ID Types, user and cart informations * @return {void} */ ngOnInit(): void; /** * This function is called whenever one or more data-bound input properties change * @return {void} */ ngOnChanges(): void; /** * Cleanup just before Angular destroys the directive/component. * Unsubscribe Observables and detach event handlers to avoid memory leaks. * @return void */ ngOnDestroy(): void; initCreditDetails(): void; /** * This function is used to check the credit eligibility of a customer based on their * credit history * @return void */ checkEligibility(): void; /** * This function is used to perform the customer credit check through * creditCheck function in customer service * @param {number} orderId - order id to refer the order details * @return void */ processDummyCheck(orderId: number): void; /** * This function is used for clearing the form elements * @returns void */ submitCustomerDetail(orderId: number): void; /** * This function is used for clearing the form elements * @returns void */ resetDummyCheck(frm: NgForm): void; /** * This function is used to resolve the conflicted data after * the process credit check * @return void */ removeConflicts(): void; /** * This function is used to resolve conflicts * @returns void */ resolveConflicts(): void; }