@spartacus/core
Version:
Spartacus - the core framework
19 lines (18 loc) • 1.1 kB
TypeScript
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CartVoucherAdapter } from '../../../cart/connectors/voucher/cart-voucher.adapter';
import { ConverterService } from '../../../util/converter.service';
import { OccEndpointsService } from '../../services/occ-endpoints.service';
import * as i0 from "@angular/core";
export declare class OccCartVoucherAdapter implements CartVoucherAdapter {
protected http: HttpClient;
protected occEndpoints: OccEndpointsService;
protected converter: ConverterService;
constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService);
protected getCartVoucherEndpoint(userId: string, cartId: any): string;
protected getHeaders(userId: string): HttpHeaders;
add(userId: string, cartId: string, voucherId: string): Observable<{}>;
remove(userId: string, cartId: string, voucherId: string): Observable<{}>;
static ɵfac: i0.ɵɵFactoryDeclaration<OccCartVoucherAdapter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccCartVoucherAdapter>;
}