public NegativeRevenue( NegativeAmount netValue, NonPositiveAmount vatValue, TaxType taxType, RevenueType revenueType, VatExemptionType?vatExemption = null) : base(netValue, vatValue, taxType, revenueType, vatExemption) { }
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) )); }
private NegativeRevenue(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info) { NetValue = netValue; VatValue = vatValue; Info = info; }
private NegativePayment(NegativeAmount amount, PaymentType paymentType) { Amount = amount; PaymentType = paymentType; }
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) { }