74 lines
2.2 KiB
C#
74 lines
2.2 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using webapi.Domain.Events;
|
|
using webapi.Domain.SeedWork;
|
|
|
|
namespace webapi.Domain.AggregatesModel.FlatAggregate
|
|
{
|
|
[Table("mdbMaintenanceFees")]
|
|
public class MaintenanceFee: Entity, IAggregateRoot
|
|
{
|
|
public MaintenanceFee() { }
|
|
|
|
public MaintenanceFee(Guid taloyhtioPMCId, string pmsCondoName, string flatTitle, Guid id)
|
|
{
|
|
PMCTaloyhtioId = taloyhtioPMCId;
|
|
PMSCondoName = pmsCondoName;
|
|
FlatTitle = flatTitle;
|
|
|
|
Id = id;
|
|
PartitionKey = PMCTaloyhtioId.ToString();
|
|
//RowKey = Id.ToString();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Condo name as it is stored in PMS.
|
|
/// Note: condo name in PMS may differ from condo name in Taloyhtio.Info.PM should approve relation between condos in PMS and Taloyhtio.Info separately(see 6. Mapping PMS condo on Taloyhtio.Info condo)
|
|
/// </summary>
|
|
public string PMSCondoName { get; set; }
|
|
|
|
/// <summary>
|
|
/// A1, B2, etc.
|
|
/// </summary>
|
|
public string FlatTitle { get; set; }
|
|
|
|
/// <summary>
|
|
/// Flat identifier from mdbFlats table
|
|
/// </summary>
|
|
public Guid FlatId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Maintenance fee for particular flat and payment type
|
|
/// </summary>
|
|
public double Fee { get; set; }
|
|
|
|
/// <summary>
|
|
/// Those period of time for which specified maintenance fee is provided
|
|
/// </summary>
|
|
public string PeriodOfTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Taloyhtio PMC Id of condo to which current flat belongs to
|
|
/// </summary>
|
|
public Guid PMCTaloyhtioId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Payment type name
|
|
/// </summary>
|
|
public string PaymentType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Three-digit payment type code (non-equal for different condo sites)
|
|
/// </summary>
|
|
public string PaymentCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Person
|
|
/// </summary>
|
|
public string Payer { get; set; }
|
|
}
|
|
} |