/// <summary> /// Initializes a new instance of the <see cref="DetectInvoiceResponse" /> class. /// </summary> /// <param name="DocumentResolution">Resolution of the original document in dpi..</param> /// <param name="Language">Resolution of the original document in dpi..</param> /// <param name="InvoiceDetailTypePredictions">List of Predictions - One for each predicted invoice detail..</param> /// <param name="PredictionGroups">List of PredictionGroups - One for each predicted invoice detail<br>e.g. VatGroup, containing predictions for Vat Rate, Net Amount and Vat Amount.</param> /// <param name="LineItems">List of predicted line items.</param> /// <param name="Sender">The sender of the invoice.</param> /// <param name="Receiver">The receiver of the invoice.</param> /// <param name="FormattedResult">Special invoice format. (for future use only).</param> /// <param name="IsQualityOk">Invoice quality flag. (for future use only).</param> /// <param name="OcrWordQuality">Measures ratio of word certainty (certainty vs. uncertainty). The higher the value the better.</param> /// <param name="MeanCharacterConfidenceValue">Mean character confidence value. 0 is very confident 100 is very incofident.</param> /// <param name="StdDevCharacterConfidenceValue">Standard deviation of character confidence value..</param> /// <param name="MaxCharacterConfidenceValue">Max character confidence value. 0 is very confident 100 is very incofident.</param> /// <param name="OcrResult">OCR-result as json string.</param> /// <param name="ResultPdf">Result pdf-document with marked predictions. (encoded as base64 string).</param> /// <param name="InvoiceState">Describes the state of the processed invoice. 0 = Ok.</param> /// <param name="Measurements">Measurements.</param> public DetectInvoiceResponse(int?DocumentResolution = default(int?), string Language = default(string), List <DetectionResponse> InvoiceDetailTypePredictions = default(List <DetectionResponse>), List <DetectionGroupResponse> PredictionGroups = default(List <DetectionGroupResponse>), List <LineItemGroupResponse> LineItems = default(List <LineItemGroupResponse>), ContactResponse Sender = default(ContactResponse), ContactResponse Receiver = default(ContactResponse), string FormattedResult = default(string), bool?IsQualityOk = default(bool?), float?OcrWordQuality = default(float?), float?MeanCharacterConfidenceValue = default(float?), float?StdDevCharacterConfidenceValue = default(float?), int?MaxCharacterConfidenceValue = default(int?), string OcrResult = default(string), string ResultPdf = default(string), int?InvoiceState = default(int?), DictionaryStringInt64 Measurements = default(DictionaryStringInt64)) { this.DocumentResolution = DocumentResolution; this.Language = Language; this.InvoiceDetailTypePredictions = InvoiceDetailTypePredictions; this.PredictionGroups = PredictionGroups; this.LineItems = LineItems; this.Sender = Sender; this.Receiver = Receiver; this.FormattedResult = FormattedResult; this.IsQualityOk = IsQualityOk; this.OcrWordQuality = OcrWordQuality; this.MeanCharacterConfidenceValue = MeanCharacterConfidenceValue; this.StdDevCharacterConfidenceValue = StdDevCharacterConfidenceValue; this.MaxCharacterConfidenceValue = MaxCharacterConfidenceValue; this.OcrResult = OcrResult; this.ResultPdf = ResultPdf; this.InvoiceState = InvoiceState; this.Measurements = Measurements; }
/// <summary> /// Initializes a new instance of the <see cref="CreateSubaccountParams" /> class. /// </summary> /// <param name="Username">Sub account password (required).</param> /// <param name="Password">Sub account password (required).</param> /// <param name="Contact">Contact Object. See below for details..</param> /// <param name="BillingContact">Contact Object for billing purposes. See below for details..</param> public CreateSubaccountParams(string Username = default(string), string Password = default(string), ContactResponse Contact = default(ContactResponse), ContactResponse BillingContact = default(ContactResponse)) { // to ensure "Username" is required (not null) if (Username == null) { throw new InvalidDataException("Username is a required property for CreateSubaccountParams and cannot be null"); } else { this.Username = Username; } // to ensure "Password" is required (not null) if (Password == null) { throw new InvalidDataException("Password is a required property for CreateSubaccountParams and cannot be null"); } else { this.Password = Password; } this.Contact = Contact; this.BillingContact = BillingContact; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentFull" /> class. /// </summary> /// <param name="Id">Payment Method ID.</param> /// <param name="VoipId">API Account ID.</param> /// <param name="Status">'primary' = primary card used for billing; 'onfile' = card on file; 'hidden' = deleted card;.</param> /// <param name="Nickname">Name of Card.</param> /// <param name="Type">'cc' for credit card.</param> /// <param name="CreatedAt">Time payment record is created.</param> /// <param name="Contact">Detail of contact person.</param> /// <param name="DeclineCount">Number of times the payment method was declined.</param> /// <param name="NextChargeDate">Next billing date.</param> /// <param name="UpdatedAt">Last time the payment method was updated.</param> /// <param name="CcToken">Encrypted credit card token to be used for billing.</param> /// <param name="CcNumber">Credit card number partially masked with xxxxxxxx.</param> /// <param name="CcExp">Credit card expiration date.</param> public PaymentFull(int?Id = default(int?), int?VoipId = default(int?), string Status = default(string), string Nickname = default(string), string Type = default(string), int?CreatedAt = default(int?), ContactResponse Contact = default(ContactResponse), int?DeclineCount = default(int?), int?NextChargeDate = default(int?), int?UpdatedAt = default(int?), string CcToken = default(string), string CcNumber = default(string), string CcExp = default(string)) { this.Id = Id; this.VoipId = VoipId; this.Status = Status; this.Nickname = Nickname; this.Type = Type; this.CreatedAt = CreatedAt; this.Contact = Contact; this.DeclineCount = DeclineCount; this.NextChargeDate = NextChargeDate; this.UpdatedAt = UpdatedAt; this.CcToken = CcToken; this.CcNumber = CcNumber; this.CcExp = CcExp; }