sends a first PayPal Api call
This commit is contained in:
parent
f04c60d5f2
commit
b3d5233d90
13 changed files with 2302 additions and 44 deletions
12
Yavsc/Helpers/BillingHelpers.cs
Normal file
12
Yavsc/Helpers/BillingHelpers.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using YavscLib.Billing;
|
||||
|
||||
namespace Yavsc.Helpers
|
||||
{
|
||||
public static class BillingHelpers
|
||||
{
|
||||
public static decimal Addition(this List<IBillItem> items) => items.Aggregate<IBillItem, decimal>(0m, (t, l) => t + l.Count * l.UnitaryCost);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue