This commit is contained in:
Paul Schneider 2017-05-12 12:15:57 +02:00
commit 42c08797e3
44 changed files with 2798 additions and 350 deletions

View file

@ -0,0 +1,13 @@
namespace YavscLib.Billing
{
public interface IBillItem {
string Name { get; set; }
string Description { get; set; }
int Count { get; set; }
decimal UnitaryCost { get; set; }
string Currency { get; set; }
string Reference { get; }
}
}

View file

@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace YavscLib.Billing
{
public interface IBillable {
string Description { get; set; }
List<IBillItem> GetBillItems();
}
}

View file

@ -0,0 +1,8 @@
namespace YavscLib.Billing
{
public interface IBillingImpacter { 
decimal Impact(decimal orgValue);
}
}

View file

@ -1,6 +0,0 @@
public interface IBillingImpacter { 
decimal Impact(decimal orgValue);
}

View file

@ -1,12 +1,6 @@
namespace YavscLib.Billing
{
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
@ -14,6 +8,5 @@ namespace YavscLib.Billing
// FIXME too far: perhaps no existing estimate
long EstimateId { get; set; }
}
}

View file

@ -1,6 +1,5 @@
namespace YavscLib.Models.Workflow
namespace YavscLib.Workflow
{
using System.Collections.Generic;
using YavscLib;
using YavscLib.Billing;
@ -8,9 +7,4 @@ namespace YavscLib.Models.Workflow
{
QueryStatus Status { get; set; }
}
public interface IBillable {
string Description { get; set; }
List<IBillItem> GetBillItems();
}
}