UNPKG

@spartacus/core

Version:

Spartacus - the core framework

21 lines (20 loc) 1.18 kB
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CartAdapter } from '../../../cart/connectors/cart/cart.adapter'; import { Cart } from '../../../model/cart.model'; import { ConverterService } from '../../../util/converter.service'; import { OccEndpointsService } from '../../services/occ-endpoints.service'; import * as i0 from "@angular/core"; export declare class OccCartAdapter implements CartAdapter { protected http: HttpClient; protected occEndpointsService: OccEndpointsService; protected converterService: ConverterService; constructor(http: HttpClient, occEndpointsService: OccEndpointsService, converterService: ConverterService); loadAll(userId: string): Observable<Cart[]>; load(userId: string, cartId: string): Observable<Cart>; create(userId: string, oldCartId?: string, toMergeCartGuid?: string): Observable<Cart>; delete(userId: string, cartId: string): Observable<{}>; addEmail(userId: string, cartId: string, email: string): Observable<{}>; static ɵfac: i0.ɵɵFactoryDeclaration<OccCartAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccCartAdapter>; }