public NegativeRevenue( NegativeAmount netValue, NonPositiveAmount vatValue, TaxType taxType, RevenueType revenueType, VatExemptionType?vatExemption = null) : base(netValue, vatValue, taxType, revenueType, vatExemption) { }
private NegativeRevenue(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info) { NetValue = netValue; VatValue = vatValue; Info = info; }
public static ITry <NegativeRevenue, IEnumerable <Error> > Create(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info) { return(Try.Aggregate( ObjectValidations.NotNull(netValue), ObjectValidations.NotNull(vatValue), ObjectValidations.NotNull(info), (n, v, i) => new NegativeRevenue(n, v, i) )); }