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