making pay, & refactoring

This commit is contained in:
2017-05-05 23:37:07 +02:00
parent d590df1c92
commit 5bbe8bdfbd
34 changed files with 617 additions and 230 deletions

View File

@ -1,11 +1,18 @@
namespace YavscLib.Billing
{
public interface ICommandLine
public interface IBillItem {
string Description { get; set; }
int Count { get; set; }
decimal UnitaryCost { get; set; }
string Currency { get; set; }
}
public interface ICommandLine : IBillItem
{
// FIXME too hard: no such generic name in any interface
long Id { get; set; }
string Description { get; set; }
int Count { get; set; }
decimal UnitaryCost { get; set; }
// FIXME too far: perhaps no existing estimate
long EstimateId { get; set; }
}

View File

@ -1,10 +1,16 @@
namespace YavscLib.Models.Workflow
{
using System.Collections.Generic;
using YavscLib;
using YavscLib.Billing;
public interface IQuery: IBaseTrackedEntity
public interface IQuery: IBaseTrackedEntity, IBillable
{
QueryStatus Status { get; set; }
}
public interface IBillable {
string Description { get; set; }
List<IBillItem> GetBillItems();
}
}