/** * 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 IBomCommissionTableEntry { commissionPercentage?: string; lossPercentage?: string; } export class BomCommissionTableEntry extends BaseModel implements IBomCommissionTableEntry { static COMMISSION_PERCENTAGE_FIELD_NAME = 'commissionPercentage'; static LOSS_PERCENTAGE_FIELD_NAME = 'lossPercentage'; commissionPercentage: string; lossPercentage: 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.commissionPercentage = this.getValue(rawValues, BomCommissionTableEntry.COMMISSION_PERCENTAGE_FIELD_NAME); this.lossPercentage = this.getValue(rawValues, BomCommissionTableEntry.LOSS_PERCENTAGE_FIELD_NAME); } } }