UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

18 lines (17 loc) 1.11 kB
import { HttpClient } from '@angular/common/http'; import { PaymentTypeAdapter } from '@spartacus/checkout/core'; import { Cart, ConverterService, OccEndpointsService, PaymentType } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class OccCheckoutPaymentTypeAdapter implements PaymentTypeAdapter { protected http: HttpClient; protected occEndpoints: OccEndpointsService; protected converter: ConverterService; constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService); loadPaymentTypes(): Observable<PaymentType[]>; setPaymentType(userId: string, cartId: string, paymentType: string, purchaseOrderNumber?: string): Observable<Cart>; protected getPaymentTypesEndpoint(): string; protected getSetCartPaymentTypeEndpoint(userId: string, cartId: string, paymentType: string, purchaseOrderNumber?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<OccCheckoutPaymentTypeAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccCheckoutPaymentTypeAdapter>; }