UNPKG

@spartacus/core

Version:

Spartacus - the core framework

25 lines (24 loc) 1.46 kB
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { SaveCartAdapter } from '../../../cart/connectors/save-cart/save-cart.adapter'; import { SaveCartResult } from '../../../model/cart.model'; import { ConverterService } from '../../../util/converter.service'; import { OccEndpointsService } from '../../services/occ-endpoints.service'; import * as i0 from "@angular/core"; /** * TODO(#11938): 4.0: use OccSavedCartAdapter instead from saved-cart feature-lib of cart * * When the saved cart feature module exist, there exist a race condition between the 'saveCart' key for the default occ config * Allows wishlist to function when the key value is pulled from the saved-cart feature-lib * * Keep in mind that this adapter will be removed in 4.0 as we will delegate this functionality to the saved-cart feature-lib **/ export declare class OccSaveCartAdapter implements SaveCartAdapter { protected http: HttpClient; protected occEndpointsService: OccEndpointsService; protected converterService: ConverterService; constructor(http: HttpClient, occEndpointsService: OccEndpointsService, converterService: ConverterService); saveCart(userId: string, cartId: string, saveCartName?: string, saveCartDescription?: string): Observable<SaveCartResult>; static ɵfac: i0.ɵɵFactoryDeclaration<OccSaveCartAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccSaveCartAdapter>; }