public NegativeRevenue(
     NegativeAmount netValue,
     NonPositiveAmount vatValue,
     TaxType taxType,
     RevenueType revenueType,
     VatExemptionType?vatExemption = null)
     : base(netValue, vatValue, taxType, revenueType, vatExemption)
 {
 }
Example #2
0
 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)
                ));
 }
Example #3
0
 private NegativeRevenue(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info)
 {
     NetValue = netValue;
     VatValue = vatValue;
     Info     = info;
 }
Example #4
0
 private NegativePayment(NegativeAmount amount, PaymentType paymentType)
 {
     Amount      = amount;
     PaymentType = paymentType;
 }
Example #5
0
 public static ITry <NegativePayment, INonEmptyEnumerable <Error> > Create(NegativeAmount amount, PaymentType paymentType)
 {
     return(ObjectValidations.NotNull(amount).Map(a => new NegativePayment(a, paymentType)));
 }
 public NegativePayment(NegativeAmount amount, PaymentType paymentType)
     : base(amount, paymentType)
 {
 }
 public NegativeRevenue(NegativeAmount netValue, TaxType taxType, NegativeAmount vatValue, ClassificationType classificationType, ClassificationCategory classificationCategory, PositiveInt lineNumber = null, VatExemptionType?vatExemption = null, CityTax cityTax = null)
     : base(netValue, taxType, vatValue, new[] { new ItemIncomeClassification(classificationType, classificationCategory, netValue) }, lineNumber, vatExemption, cityTax)
 {
 }
 public NegativeRevenue(NegativeAmount netValue, TaxType taxType, NegativeAmount vatValue, IEnumerable <ItemIncomeClassification> incomeClassifications, PositiveInt lineNumber = null, VatExemptionType?vatExemption = null, CityTax cityTax = null)
     : base(netValue, taxType, vatValue, incomeClassifications, lineNumber, vatExemption, cityTax)
 {
 }