import { AbstractEntity } from '../../abstractEntity'; export declare enum SubscriptionFields { COLUMN_SUBSCRIPTION_ID = "subscriptionId", COLUMN_PARTNER_TAG_LABELS = "partnerTagLabels", COLUMN_WORKGROUP_CODE = "workgroupCode", COLUMN_COMPANY_NAME = "companyName", COLUMN_SUBSCRIPTION = "subscription", COLUMN_START_DATE = "startDate", COLUMN_END_DATE = "endDate", COLUMN_LAST_UPDATE = "lastUpdate", COLUMN_STATUS = "status", COLUMN_SUBSCRIPTION_DATEVALIDATION = "subscriptionDateValidation", COLUMN_SUBSCRIPTION_DATEDEMAND = "subscriptionDateDemand", COLUMN_CLICK_TO_ACCEPT = "clickToAccept", COLUMN_UNVALIDATED = "unvalidated", COLUMN_VERSION = "version", COLUMN_NUMBER = "number" } export declare type SubscriptionData = { [SubscriptionFields.COLUMN_SUBSCRIPTION_ID]: number; [SubscriptionFields.COLUMN_PARTNER_TAG_LABELS]: string; [SubscriptionFields.COLUMN_WORKGROUP_CODE]: string; [SubscriptionFields.COLUMN_COMPANY_NAME]: string; [SubscriptionFields.COLUMN_SUBSCRIPTION]: string; [SubscriptionFields.COLUMN_START_DATE]: string; [SubscriptionFields.COLUMN_END_DATE]: string; [SubscriptionFields.COLUMN_LAST_UPDATE]: string; [SubscriptionFields.COLUMN_STATUS]: string; [SubscriptionFields.COLUMN_SUBSCRIPTION_DATEVALIDATION]: string; [SubscriptionFields.COLUMN_SUBSCRIPTION_DATEDEMAND]: string; [SubscriptionFields.COLUMN_CLICK_TO_ACCEPT]: boolean; [SubscriptionFields.COLUMN_UNVALIDATED]: boolean; [SubscriptionFields.COLUMN_VERSION]: number; [SubscriptionFields.COLUMN_NUMBER]: number; }; /** * Subscription entity */ export declare class Subscription extends AbstractEntity { #private; protected VALIDATION_RULES: { subscriptionId: string; partnerTagLabels: string; workgroupCode: string; companyName: string; subscription: string; startDate: string; endDate: string; lastUpdate: string; status: string; subscriptionDateValidation: string; subscriptionDateDemand: string; clickToAccept: string; unvalidated: string; version: string; number: string; }; /** * Subscription entity constructor * @param data - Subscription data to validate and construct the entity from */ constructor(data: SubscriptionData); get subscriptionId(): number; get partnerTagLabels(): string; get workgroupCode(): string; get companyName(): string; get subscription(): string; get startDate(): string; get endDate(): string; get lastUpdate(): string; get status(): string; get subscriptionDateValidation(): string; get subscriptionDateDemand(): string; get clickToAccept(): boolean; get unvalidated(): boolean; get version(): number; get number(): number; /** * Plain JSON object representation of the subscription entity. */ toJSON(): SubscriptionData; }