/** * 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'; import { ClaimAmountType } from './enums'; export interface IClaimAmount { amount?: IMoney; amountType?: ClaimAmountType; } export class ClaimAmount extends BaseModel implements IClaimAmount { static AMOUNT_FIELD_NAME = 'amount'; static AMOUNT_TYPE_FIELD_NAME = 'amountType'; amount: Money; amountType: ClaimAmountType; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); 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.amountType = this.getValue(rawValues, ClaimAmount.AMOUNT_TYPE_FIELD_NAME); } } }