Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Invoice" /> class.
 /// </summary>
 /// <param name="InvoiceId">InvoiceId.</param>
 /// <param name="InvoiceState">InvoiceState.</param>
 /// <param name="Pages">Pages.</param>
 /// <param name="DetectInvoiceResponse">DetectInvoiceResponse.</param>
 public Invoice(string InvoiceId = default(string), string InvoiceState = default(string), List <Page> Pages = default(List <Page>), DetectInvoiceResponse DetectInvoiceResponse = default(DetectInvoiceResponse))
 {
     this.InvoiceId             = InvoiceId;
     this.InvoiceState          = InvoiceState;
     this.Pages                 = Pages;
     this.DetectInvoiceResponse = DetectInvoiceResponse;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ImportInvoiceResponse" /> class.
 /// </summary>
 /// <param name="Available">Available.</param>
 /// <param name="ApiIdentifier">ApiIdentifier.</param>
 /// <param name="InvoiceId">InvoiceId.</param>
 /// <param name="FileName">FileName.</param>
 /// <param name="File">File.</param>
 /// <param name="DetectInvoiceResponse">DetectInvoiceResponse.</param>
 /// <param name="State">0 &#x3D; Ok, 1 &#x3D; Failed (required).</param>
 /// <param name="Message">Error message in case of an error.</param>
 public ImportInvoiceResponse(bool?Available = default(bool?), string ApiIdentifier = default(string), string InvoiceId = default(string), string FileName = default(string), string File = default(string), DetectInvoiceResponse DetectInvoiceResponse = default(DetectInvoiceResponse), int?State = default(int?), string Message = default(string))
 {
     // to ensure "State" is required (not null)
     if (State == null)
     {
         throw new InvalidDataException("State is a required property for ImportInvoiceResponse and cannot be null");
     }
     else
     {
         this.State = State;
     }
     this.Available             = Available;
     this.ApiIdentifier         = ApiIdentifier;
     this.InvoiceId             = InvoiceId;
     this.FileName              = FileName;
     this.File                  = File;
     this.DetectInvoiceResponse = DetectInvoiceResponse;
     this.Message               = Message;
 }