billing
This commit is contained in:
parent
7b9078c6da
commit
42c08797e3
44 changed files with 2798 additions and 350 deletions
13
YavscLib/Billing/IBillItem.cs
Normal file
13
YavscLib/Billing/IBillItem.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
10
YavscLib/Billing/IBillable.cs
Normal file
10
YavscLib/Billing/IBillable.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace YavscLib.Billing
|
||||
{
|
||||
public interface IBillable {
|
||||
string Description { get; set; }
|
||||
List<IBillItem> GetBillItems();
|
||||
|
||||
}
|
||||
}
|
||||
8
YavscLib/Billing/IBillingImpacter.cs
Normal file
8
YavscLib/Billing/IBillingImpacter.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
namespace YavscLib.Billing
|
||||
{
|
||||
public interface IBillingImpacter {
|
||||
decimal Impact(decimal orgValue);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
|
||||
|
||||
public interface IBillingImpacter {
|
||||
decimal Impact(decimal orgValue);
|
||||
|
||||
}
|
||||
|
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue