import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';

class OrderValidationService {
    isProductHasDiscount(productBeforeDiscount, productAfterDiscount, billingCycle) {
        return (productBeforeDiscount?.pricing.egp[billingCycle] !=
            productAfterDiscount?.pricing.egp[billingCycle]);
    }
    isOrderWithoutDomainOrProduct(order) {
        return (order.placedProductDTO.Domain.domain == '' ||
            order.placedProductDTO.Product.pid == 0);
    }
    isOrderWithoutDomainOrListOfProducts(orderItem, productsSelected) {
        return (orderItem.placedProductDTO.Domain.domain == '' ||
            productsSelected.length == 0);
    }
    isDomainFromCartHasNoProduct(isDomainFromCart, orderItemsFromCart) {
        return (isDomainFromCart && orderItemsFromCart.placedProductDTO.Product.pid == 0);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
    static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderValidationService, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderValidationService, decorators: [{
            type: Injectable,
            args: [{
                    providedIn: 'root',
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { OrderValidationService };
//# sourceMappingURL=testlocallibrary-shared-kernel-services-order.mjs.map
