@spartacus/core
Version:
Spartacus - the core framework
19 lines (18 loc) • 863 B
TypeScript
import { Cart } from '../../../../model/cart.model';
import { Converter, ConverterService } from '../../../../util/converter.service';
import { Occ } from '../../../occ-models/occ.models';
import { OrderEntryPromotionsService } from './order-entry-promotions-service';
import * as i0 from "@angular/core";
export declare class OccCartNormalizer implements Converter<Occ.Cart, Cart> {
private converter;
private entryPromotionService?;
constructor(converter: ConverterService, entryPromotionService?: OrderEntryPromotionsService);
convert(source: Occ.Cart, target?: Cart): Cart;
/**
* Remove all duplicate promotions
*/
private removeDuplicatePromotions;
private removeDuplicateItems;
static ɵfac: i0.ɵɵFactoryDeclaration<OccCartNormalizer, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccCartNormalizer>;
}