UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

28 lines (27 loc) 1.74 kB
import { HttpClient } from '@angular/common/http'; import { CheckoutPaymentAdapter } from '@spartacus/checkout/core'; import { CardType, ConverterService, OccEndpointsService, PaymentDetails } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class OccCheckoutPaymentAdapter implements CheckoutPaymentAdapter { protected http: HttpClient; protected occEndpoints: OccEndpointsService; protected converter: ConverterService; constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService); private domparser; protected getSetPaymentDetailsEndpoint(userId: string, cartId: string, paymentDetailsId: string): string; protected getPaymentProviderSubInfoEndpoint(userId: string, cartId: string): string; protected getCreatePaymentDetailsEndpoint(userId: string, cartId: string): string; protected getCardTypesEndpoint(): string; create(userId: string, cartId: string, paymentDetails: PaymentDetails): Observable<PaymentDetails>; set(userId: string, cartId: string, paymentDetailsId: string): Observable<any>; loadCardTypes(): Observable<CardType[]>; protected getProviderSubInfo(userId: string, cartId: string): Observable<any>; protected createSubWithProvider(postUrl: string, parameters: any): Observable<any>; protected createDetailsWithParameters(userId: string, cartId: string, parameters: any): Observable<PaymentDetails>; private getParamsForPaymentProvider; private extractPaymentDetailsFromHtml; private convertToMap; static ɵfac: i0.ɵɵFactoryDeclaration<OccCheckoutPaymentAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccCheckoutPaymentAdapter>; }