UNPKG

@spartacus/core

Version:

Spartacus - the core framework

19 lines (18 loc) 1.07 kB
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PaymentDetails } from '../../../model/cart.model'; import { UserPaymentAdapter } from '../../../user/connectors/payment/user-payment.adapter'; import { ConverterService } from '../../../util/converter.service'; import { OccEndpointsService } from '../../services/occ-endpoints.service'; import * as i0 from "@angular/core"; export declare class OccUserPaymentAdapter implements UserPaymentAdapter { protected http: HttpClient; protected occEndpoints: OccEndpointsService; protected converter: ConverterService; constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService); loadAll(userId: string): Observable<PaymentDetails[]>; delete(userId: string, paymentMethodID: string): Observable<{}>; setDefault(userId: string, paymentMethodID: string): Observable<{}>; static ɵfac: i0.ɵɵFactoryDeclaration<OccUserPaymentAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccUserPaymentAdapter>; }