public UpdateDeliveryNoteApiModel(DateTimeOffset date, IEnumerable <DeliveryNoteLineRequestApiModel> lines, string number, UpdateDocumentEntityApiModel targetEntity) { if (lines == null) { throw new ArgumentNullException(nameof(lines)); } if (number == null) { throw new ArgumentNullException(nameof(number)); } if (targetEntity == null) { throw new ArgumentNullException(nameof(targetEntity)); } Date = date; Lines = lines.ToList(); Number = number; TargetEntity = targetEntity; }
public UpdateIssuedInvoiceApiModel(DateTimeOffset date, int invoiceClass, IEnumerable <InvoiceLineRequestApiModel> lines, string number, UpdateDocumentEntityApiModel targetEntity) { if (lines == null) { throw new ArgumentNullException(nameof(lines)); } if (number == null) { throw new ArgumentNullException(nameof(number)); } if (targetEntity == null) { throw new ArgumentNullException(nameof(targetEntity)); } Date = date; InvoiceClass = invoiceClass; Lines = lines.ToList(); Number = number; TargetEntity = targetEntity; }
public UpdateReceivedInvoiceApiModel(DateTimeOffset date, int imputation, int invoiceClass, UpdateDocumentEntityApiModel issuerEntity, IEnumerable <InvoiceLineRequestApiModel> lines, string number) { if (issuerEntity == null) { throw new ArgumentNullException(nameof(issuerEntity)); } if (lines == null) { throw new ArgumentNullException(nameof(lines)); } if (number == null) { throw new ArgumentNullException(nameof(number)); } Date = date; Imputation = imputation; InvoiceClass = invoiceClass; IssuerEntity = issuerEntity; Lines = lines.ToList(); Number = number; }