/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { IPerPeriodLimit, PerPeriodLimit } from './per-period-limit.model'; import { IBoundedPeriod, BoundedPeriod } from './bounded-period.model'; export interface ICustomPeriodLimit extends IPerPeriodLimit{ effectivePeriod?: IBoundedPeriod; } export class CustomPeriodLimit extends PerPeriodLimit implements ICustomPeriodLimit { static TYPE_SELECTOR = 'CustomPeriodLimit'; static EFFECTIVE_PERIOD_FIELD_NAME = 'effectivePeriod'; effectivePeriod: BoundedPeriod; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.typeSelector = CustomPeriodLimit.TYPE_SELECTOR; this.effectivePeriod = new BoundedPeriod(); if (values) { this.setValues(values); } } /** * set the values. * @param values Can be used to set a webapi response to this newly constructed model */ setValues(values: Partial): void { if (values) { super.setValues(values) const rawValues = values this.effectivePeriod.setValues(rawValues.effectivePeriod); } } }