import { ToastrService } from 'ngx-toastr'; import { OnInit, ElementRef } from '@angular/core'; import { CheckoutService } from '../services/checkout.service'; import { Router } from '@angular/router'; import { CompleteGuardCheckout } from '../checkout-guard/completeGuard'; import { FormBuilder, FormGroup } from '@angular/forms'; import { DomSanitizer, Title } from '@angular/platform-browser'; import { WeAcceptService } from '../services/weAccept.service'; import { LanguageService, ConfService } from '../../../services'; import { CartService } from '../../services/cart.service'; import { Checkout, ShippingAddress } from '../models/checkout.modal'; import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { Currency } from '../../classes/currency'; import * as i0 from "@angular/core"; declare var Checkout: any; export declare class PaymentComponent implements OnInit { private languageService; private checkoutService; private router; private completeGuard; private _formBuilder; private domSanitizer; private title; private weAcceptSrevice; private cartService; private confService; private toastr; private http; logo$: Observable; contact: FormGroup; payFortPaymentMethodForm: {}; language: any; paymentMethods: any; getSelectedPayment: any; loading: boolean; orders: Checkout; shippingAddress: ShippingAddress; cartItemsSummary: any; adjustments: any[]; showCreditCard: boolean; creditCard: FormGroup; paymentToken: string; loadingSummary: boolean; iframeUrl: any; noPaymentMethodFound: boolean; notWeAccept: boolean; storeIsActivated: any; storeEnabledTestOrder: any; scrolled: boolean; errMsg: any; errorFromReq: boolean; mpgsMisrData: any; aaibData: any; notkashier: boolean; kashierIframe: any; showKashier: boolean; mpgsQNBData: any; cibData: any; nbeData: any; notCOD: boolean; lastMethod: number; itemUnAvaliable: boolean; defaultCurrency: Currency; canPlaceOrder: boolean; AABbaseUrl: String; payFortForm: ElementRef; aaibForm: ElementRef; constructor(languageService: LanguageService, checkoutService: CheckoutService, router: Router, completeGuard: CompleteGuardCheckout, _formBuilder: FormBuilder, domSanitizer: DomSanitizer, title: Title, weAcceptSrevice: WeAcceptService, cartService: CartService, confService: ConfService, toastr: ToastrService, http: HttpClient); ngOnInit(): void; /** * @param paymentMethod payment method api response * @return payment Methods */ private mapPaymentMethods; /** * Represents we accept payment get the token that will be sent to display the data that will be displayed in the iframe. * also it will toggle the div that display the iframe for we accept based on the state * @returns we accept token */ private canAccessNextStep; canNotAccessNextStep(): void; backToShippingAddress(): void; backToShippingMethods(): void; sendSelectedPayment(method: any): void; /** * Represents the spinner state to be false if the data loaded * @returns false to stop the spinner */ stopSpinner(): void; /** * Represents we accept payment get the token that will be sent to display the data that will be displayed in the iframe. * also it will toggle the div that display the iframe for we accept based on the state * @returns we accept token */ handlePayment(): void; isSelectPaymentMethod(evt: any): void; /** * Represents we accept payment get the token that will be sent to display the data that will be displayed in the iframe. * also it will toggle the div that display the iframe for we accept based on the state * @returns we accept token */ selectPaymentMethod(): void; callLightbox(upgConfigurations: any): void; callUpg(upgConfigurations: any): void; callPaySky(paySkyConfigurations: any): void; callMpgEg(mpgConfigr: any): void; callMpgQNB(mpgConfigr: any): void; callMpgAAIB(mpgConfigr: any): void; createElementFromHTML(htmlString: any): ChildNode; callCIB(cibConfigr: any): void; callNBE(nbeConfigr: any): void; /** *@param non *@return non *@author Ahmed Nader this to load upg js file jsut in payment component */ loadUpg(live_credentials?: string): void; loadMpgs(src: any): void; completeCall(details: any): void; errorCall(e: any): void; cancelCall(): void; timeoutCall(): void; log(args: any): void; callKashier(configration: any): void; removeMpgs(bank: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};