Skip to content

feat(compare-comply): add ContractCurrentcies model #586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Scripts/Services/CompareComply/V1/CompareComplyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,9 @@ private void OnAddFeedbackResponse(RESTConnector.Request req, RESTConnector.Resp
/// `model_id`. The only permitted value is `contracts`. (optional)</param>
/// <param name="modelVersion">An optional string that filters the output to include only feedback with the
/// specified `model_version`. (optional)</param>
/// <param name="categoryRemoved">An optional string in the form of a comma-separated list of categories. If
/// this is specified, the service filters the output to include only feedback that has at least one category
/// from the list removed. (optional)</param>
/// <param name="categoryRemoved">An optional string in the form of a comma-separated list of categories. If it
/// is specified, the service filters the output to include only feedback that has at least one category from
/// the list removed. (optional)</param>
/// <param name="categoryAdded">An optional string in the form of a comma-separated list of categories. If this
/// is specified, the service filters the output to include only feedback that has at least one category from
/// the list added. (optional)</param>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Services/CompareComply/V1/Model/AlignedElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class AlignedElement
[JsonProperty("identical_text", NullValueHandling = NullValueHandling.Ignore)]
public bool? IdenticalText { get; set; }
/// <summary>
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
Expand Down
26 changes: 14 additions & 12 deletions Scripts/Services/CompareComply/V1/Model/BodyCells.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,35 +62,37 @@ public class BodyCells
[JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
public long? ColumnIndexEnd { get; set; }
/// <summary>
/// Gets or Sets RowHeaderIds
/// An array that contains the `id` value of a row header that is applicable to this body cell.
/// </summary>
[JsonProperty("row_header_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<RowHeaderIds> RowHeaderIds { get; set; }
public List<string> RowHeaderIds { get; set; }
/// <summary>
/// Gets or Sets RowHeaderTexts
/// An array that contains the `text` value of a row header that is applicable to this body cell.
/// </summary>
[JsonProperty("row_header_texts", NullValueHandling = NullValueHandling.Ignore)]
public List<RowHeaderTexts> RowHeaderTexts { get; set; }
public List<string> RowHeaderTexts { get; set; }
/// <summary>
/// Gets or Sets RowHeaderTextsNormalized
/// If you provide customization input, the normalized version of the row header texts according to the
/// customization; otherwise, the same value as `row_header_texts`.
/// </summary>
[JsonProperty("row_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
public List<RowHeaderTextsNormalized> RowHeaderTextsNormalized { get; set; }
public List<string> RowHeaderTextsNormalized { get; set; }
/// <summary>
/// Gets or Sets ColumnHeaderIds
/// An array that contains the `id` value of a column header that is applicable to the current cell.
/// </summary>
[JsonProperty("column_header_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<ColumnHeaderIds> ColumnHeaderIds { get; set; }
public List<string> ColumnHeaderIds { get; set; }
/// <summary>
/// Gets or Sets ColumnHeaderTexts
/// An array that contains the `text` value of a column header that is applicable to the current cell.
/// </summary>
[JsonProperty("column_header_texts", NullValueHandling = NullValueHandling.Ignore)]
public List<ColumnHeaderTexts> ColumnHeaderTexts { get; set; }
public List<string> ColumnHeaderTexts { get; set; }
/// <summary>
/// Gets or Sets ColumnHeaderTextsNormalized
/// If you provide customization input, the normalized version of the column header texts according to the
/// customization; otherwise, the same value as `column_header_texts`.
/// </summary>
[JsonProperty("column_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
public List<ColumnHeaderTextsNormalized> ColumnHeaderTextsNormalized { get; set; }
public List<string> ColumnHeaderTextsNormalized { get; set; }
/// <summary>
/// Gets or Sets Attributes
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Services/CompareComply/V1/Model/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public class LabelValue
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
public string Label { get; set; }
/// <summary>
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
Expand Down
13 changes: 9 additions & 4 deletions Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,31 @@ public class ClassifyReturn
[JsonProperty("contract_amounts", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractAmts> ContractAmounts { get; set; }
/// <summary>
/// The date or dates on which the document is to be terminated.
/// The dates on which the document is to be terminated.
/// </summary>
[JsonProperty("termination_dates", NullValueHandling = NullValueHandling.Ignore)]
public List<TerminationDates> TerminationDates { get; set; }
/// <summary>
/// The document's contract type or types as declared in the document.
/// The contract type as declared in the document.
/// </summary>
[JsonProperty("contract_types", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractTypes> ContractTypes { get; set; }
/// <summary>
/// The duration or durations of the contract.
/// The durations of the contract.
/// </summary>
[JsonProperty("contract_terms", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractTerms> ContractTerms { get; set; }
/// <summary>
/// The document's payment duration or durations.
/// The document's payment durations.
/// </summary>
[JsonProperty("payment_terms", NullValueHandling = NullValueHandling.Ignore)]
public List<PaymentTerms> PaymentTerms { get; set; }
/// <summary>
/// The contract currencies as declared in the document.
/// </summary>
[JsonProperty("contract_currencies", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractCurrencies> ContractCurrencies { get; set; }
/// <summary>
/// Definition of tables identified in the input document.
/// </summary>
[JsonProperty("tables", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
33 changes: 0 additions & 33 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs.meta

This file was deleted.

33 changes: 0 additions & 33 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderTexts.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderTexts.cs.meta

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions Scripts/Services/CompareComply/V1/Model/ContractAmts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ public class ConfidenceLevelValue
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }
/// <summary>
/// The normalized form of the amount, which is listed as a string. This element is optional; that is, the
/// service output lists it only if normalized text exists.
/// The normalized form of the amount, which is listed as a string. This element is optional; it is returned
/// only if normalized text exists.
/// </summary>
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
public string TextNormalized { get; set; }
/// <summary>
/// The details of the normalized text, if applicable. This element is optional; that is, the service output
/// lists it only if normalized text exists.
/// The details of the normalized text, if applicable. This element is optional; it is returned only if
/// normalized text exists.
/// </summary>
[JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
public Interpretation Interpretation { get; set; }
/// <summary>
/// One or more hash values that you can send to IBM to provide feedback or receive support.
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
Expand Down
78 changes: 78 additions & 0 deletions Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/**
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using System.Collections.Generic;
using Newtonsoft.Json;

namespace IBM.Watson.CompareComply.V1.Model
{
/// <summary>
/// The contract currencies that are declared in the document.
/// </summary>
public class ContractCurrencies
{
/// <summary>
/// The confidence level in the identification of the contract currency.
/// </summary>
public class ConfidenceLevelValue
{
/// <summary>
/// Constant HIGH for High
/// </summary>
public const string HIGH = "High";
/// <summary>
/// Constant MEDIUM for Medium
/// </summary>
public const string MEDIUM = "Medium";
/// <summary>
/// Constant LOW for Low
/// </summary>
public const string LOW = "Low";

}

/// <summary>
/// The confidence level in the identification of the contract currency.
/// Constants for possible values can be found using ContractCurrencies.ConfidenceLevelValue
/// </summary>
[JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
public string ConfidenceLevel { get; set; }
/// <summary>
/// The contract currency.
/// </summary>
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }
/// <summary>
/// The normalized form of the contract currency, which is listed as a string in
/// [ISO-4217](https://www.iso.org/iso-4217-currency-codes.html) format. This element is optional; it is
/// returned only if normalized text exists.
/// </summary>
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
public string TextNormalized { get; set; }
/// <summary>
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
/// <summary>
/// The numeric location of the identified element in the document, represented with two integers labeled
/// `begin` and `end`.
/// </summary>
[JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
public Location Location { get; set; }
}
}
10 changes: 5 additions & 5 deletions Scripts/Services/CompareComply/V1/Model/ContractTerms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ public class ConfidenceLevelValue
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }
/// <summary>
/// The normalized form of the contract term, which is listed as a string. This element is optional; that is,
/// the service output lists it only if normalized text exists.
/// The normalized form of the contract term, which is listed as a string. This element is optional; it is
/// returned only if normalized text exists.
/// </summary>
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
public string TextNormalized { get; set; }
/// <summary>
/// The details of the normalized text, if applicable. This element is optional; that is, the service output
/// lists it only if normalized text exists.
/// The details of the normalized text, if applicable. This element is optional; it is returned only if
/// normalized text exists.
/// </summary>
[JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
public Interpretation Interpretation { get; set; }
/// <summary>
/// One or more hash values that you can send to IBM to provide feedback or receive support.
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Services/CompareComply/V1/Model/ContractTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class ConfidenceLevelValue
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }
/// <summary>
/// One or more hash values that you can send to IBM to provide feedback or receive support.
/// Hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
Expand Down
Loading