
export class PayInModel {
  public Id: number;
  public Amount: number;
  public Balance: number;
  public Lender: string;
  public LoanId: string;
  public LoanNumber: string;
  public OffsetBalance: number;
  public Settlement: Date;
  public Trail: number;
  public Ts: Date;
  public UploadId: number;
  constructor(payload: Partial<PayInModel>){
    if ( payload === null ) {
      payload = {};
    }
    this.Id = payload.Id || 0;
    this.Amount = payload.Amount || 0;
    this.Balance = payload.Balance || 0;
    this.Lender = payload.Lender || '';
    this.LoanId = payload.LoanId || '' ;
    this.LoanNumber = payload.LoanNumber || '';
    this.OffsetBalance = payload.OffsetBalance || 0;
    this.Settlement = new Date(payload.Settlement);
    this.Trail = payload.Trail || 0 ;
    this.Ts = new Date(payload.Ts);
    this.UploadId = payload.UploadId;
  }
}
