/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; import { IMoney, Money } from './money.model'; export interface ILimitAmount { amount?: IMoney; typeSelector?: string; } export class LimitAmount extends BaseModel implements ILimitAmount { static TYPE_SELECTOR = 'LimitAmount'; static AMOUNT_FIELD_NAME = 'amount'; static TYPE_SELECTOR_FIELD_NAME = 'typeSelector'; amount: Money; typeSelector: string; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); this.typeSelector = LimitAmount.TYPE_SELECTOR; this.amount = new Money(); 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) { const rawValues = values this.amount.setValues(rawValues.amount); this.typeSelector = this.getValue(rawValues, LimitAmount.TYPE_SELECTOR_FIELD_NAME); } } }