import ITranslation from '../Translation'; import { ISEOInfo } from '../Product'; import { IImageInfo } from '../../utils/file'; import { ExternalServiceSlugEnum } from '../Space/IExternalService'; export default interface ICategory { readonly id?: string; readonly name: ITranslation[]; readonly slug: string; readonly description: ITranslation[]; readonly parent?: string; readonly image?: IImageInfo; readonly draft?: boolean; readonly seo_info?: ISEOInfo; readonly total_products?: number; readonly pricing_rules?: ICategoryPricingRule[]; readonly order?: number; readonly children?: ICategory[]; readonly created_from_external_service?: ExternalServiceSlugEnum; } export interface ICategoryPricingRule { apply_on: 'pdsf'; percent: number; amount: number; attribute_id: string; attribute_value_slug: string; buy_percent?: number; buy_amount?: number; price_range: boolean; from_price?: number; to_price?: number; apply_to?: 'regular'; type?: 'amount' | 'percent'; }