@spartacus/core
Version:
Spartacus - the core framework
18 lines (17 loc) • 816 B
TypeScript
import { PromotionResult } from '../../../../model/cart.model';
import { PromotionOrderEntryConsumed } from '../../../../model/order.model';
import { Occ } from '../../../occ-models/occ.models';
import * as i0 from "@angular/core";
export declare class OrderEntryPromotionsService {
/**
* Get consumed promotions for the given order entry
*
* @param item
* @param promotions
* @returns consumed promotions for this entry
*/
getProductPromotion(item?: Occ.OrderEntry, promotions?: PromotionResult[]): PromotionResult[];
protected isConsumedByEntry(consumedEntry: PromotionOrderEntryConsumed, entry: any): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<OrderEntryPromotionsService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OrderEntryPromotionsService>;
}