import { Basemodel } from "../base/basemodel"; import { IDiscount } from "../discount/discount-model"; import { IPromotion } from "../discount/promotion-model"; import { IFlatProperty } from "../flat-type/flat-type-details.model"; export interface IComplexProperty { readonly id: number; readonly title: string; readonly dateBuild: string; readonly url: string; readonly district: { readonly id: number; readonly name: string; }; } export interface IBuildingDetails { readonly id: number; readonly name: string; } export interface IUnit { readonly address: string; readonly buildingId: number; readonly buildingNumber: number; readonly buildingStatus: string; readonly buildingStatusDetails: IBuildingDetails; readonly complex: IComplexProperty; readonly dateToRelease: Date | string; readonly discountTypeId: number; readonly discounts: IDiscount[]; readonly promotion: IPromotion; readonly flatTypeId: number; readonly floorId: number; readonly floorNumber: string; readonly id: number; readonly imageUrl: string; readonly isHotSale: boolean; readonly isPromotion: boolean; readonly isReserved: boolean; readonly levelCount: number; readonly maxDiscount: IDiscount; readonly percentDiscount: number; readonly planType: string; readonly priceM2: number; readonly priceM2Actual: number; readonly priceM2Discount: number; readonly priceTotal: number; readonly priceTotalActual: number; readonly priceTotalDiscount: number; readonly properties: IFlatProperty[]; readonly roomCount: number; readonly sectionId: number; readonly sectionNumber: number; readonly totalArea: number; readonly unitNumber: number; readonly unitTypeId: number; readonly unitTypeName: string; } export declare class ModelUnit extends Basemodel implements IUnit { readonly address: string; readonly buildingId: number; readonly buildingNumber: number; readonly buildingStatus: string; readonly buildingStatusDetails: IBuildingDetails; readonly complex: IComplexProperty; readonly dateToRelease: Date | string; readonly discountTypeId: number; readonly discounts: IDiscount[]; readonly promotion: IPromotion; readonly flatTypeId: number; readonly floorId: number; readonly floorNumber: string; readonly id: number; readonly imageUrl: string; readonly isHotSale: boolean; readonly isPromotion: boolean; readonly isReserved: boolean; readonly levelCount: number; readonly maxDiscount: IDiscount; readonly percentDiscount: number; readonly planType: string; readonly priceM2: number; readonly priceM2Actual: number; readonly priceM2Discount: number; readonly priceTotal: number; readonly priceTotalActual: number; readonly priceTotalDiscount: number; readonly properties: IFlatProperty[]; readonly roomCount: number; readonly sectionId: number; readonly sectionNumber: number; readonly totalArea: number; readonly unitNumber: number; readonly unitTypeId: number; readonly unitTypeName: string; constructor({ address, buildingId, buildingNumber, buildingStatus, buildingStatusDetails, complex, dateToRelease, discountTypeId, discounts, promotion, flatTypeId, floorId, floorNumber, id, imageUrl, isHotSale, isPromotion, isReserved, levelCount, maxDiscount, percentDiscount, planType, priceM2, priceM2Actual, priceM2Discount, priceTotal, priceTotalActual, priceTotalDiscount, properties, roomCount, sectionId, sectionNumber, totalArea, unitNumber, unitTypeId, unitTypeName, }?: Partial); clone(): ModelUnit; serialize(): IUnit; }