Skip to content

Commit e22ff45

Browse files
authored
Merge pull request #586 from watson-developer-cloud/fix/cnc-regen
feat(compare-comply): add ContractCurrentcies model
2 parents 7282cf6 + ed80152 commit e22ff45

30 files changed

+280
-335
lines changed

Scripts/Services/CompareComply/V1/CompareComplyService.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,9 @@ private void OnAddFeedbackResponse(RESTConnector.Request req, RESTConnector.Resp
592592
/// `model_id`. The only permitted value is `contracts`. (optional)</param>
593593
/// <param name="modelVersion">An optional string that filters the output to include only feedback with the
594594
/// specified `model_version`. (optional)</param>
595-
/// <param name="categoryRemoved">An optional string in the form of a comma-separated list of categories. If
596-
/// this is specified, the service filters the output to include only feedback that has at least one category
597-
/// from the list removed. (optional)</param>
595+
/// <param name="categoryRemoved">An optional string in the form of a comma-separated list of categories. If it
596+
/// is specified, the service filters the output to include only feedback that has at least one category from
597+
/// the list removed. (optional)</param>
598598
/// <param name="categoryAdded">An optional string in the form of a comma-separated list of categories. If this
599599
/// is specified, the service filters the output to include only feedback that has at least one category from
600600
/// the list added. (optional)</param>

Scripts/Services/CompareComply/V1/Model/AlignedElement.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class AlignedElement
3838
[JsonProperty("identical_text", NullValueHandling = NullValueHandling.Ignore)]
3939
public bool? IdenticalText { get; set; }
4040
/// <summary>
41-
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
41+
/// Hashed values that you can send to IBM to provide feedback or receive support.
4242
/// </summary>
4343
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
4444
public List<string> ProvenanceIds { get; set; }

Scripts/Services/CompareComply/V1/Model/BodyCells.cs

+14-12
Original file line numberDiff line numberDiff line change
@@ -62,35 +62,37 @@ public class BodyCells
6262
[JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
6363
public long? ColumnIndexEnd { get; set; }
6464
/// <summary>
65-
/// Gets or Sets RowHeaderIds
65+
/// An array that contains the `id` value of a row header that is applicable to this body cell.
6666
/// </summary>
6767
[JsonProperty("row_header_ids", NullValueHandling = NullValueHandling.Ignore)]
68-
public List<RowHeaderIds> RowHeaderIds { get; set; }
68+
public List<string> RowHeaderIds { get; set; }
6969
/// <summary>
70-
/// Gets or Sets RowHeaderTexts
70+
/// An array that contains the `text` value of a row header that is applicable to this body cell.
7171
/// </summary>
7272
[JsonProperty("row_header_texts", NullValueHandling = NullValueHandling.Ignore)]
73-
public List<RowHeaderTexts> RowHeaderTexts { get; set; }
73+
public List<string> RowHeaderTexts { get; set; }
7474
/// <summary>
75-
/// Gets or Sets RowHeaderTextsNormalized
75+
/// If you provide customization input, the normalized version of the row header texts according to the
76+
/// customization; otherwise, the same value as `row_header_texts`.
7677
/// </summary>
7778
[JsonProperty("row_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
78-
public List<RowHeaderTextsNormalized> RowHeaderTextsNormalized { get; set; }
79+
public List<string> RowHeaderTextsNormalized { get; set; }
7980
/// <summary>
80-
/// Gets or Sets ColumnHeaderIds
81+
/// An array that contains the `id` value of a column header that is applicable to the current cell.
8182
/// </summary>
8283
[JsonProperty("column_header_ids", NullValueHandling = NullValueHandling.Ignore)]
83-
public List<ColumnHeaderIds> ColumnHeaderIds { get; set; }
84+
public List<string> ColumnHeaderIds { get; set; }
8485
/// <summary>
85-
/// Gets or Sets ColumnHeaderTexts
86+
/// An array that contains the `text` value of a column header that is applicable to the current cell.
8687
/// </summary>
8788
[JsonProperty("column_header_texts", NullValueHandling = NullValueHandling.Ignore)]
88-
public List<ColumnHeaderTexts> ColumnHeaderTexts { get; set; }
89+
public List<string> ColumnHeaderTexts { get; set; }
8990
/// <summary>
90-
/// Gets or Sets ColumnHeaderTextsNormalized
91+
/// If you provide customization input, the normalized version of the column header texts according to the
92+
/// customization; otherwise, the same value as `column_header_texts`.
9193
/// </summary>
9294
[JsonProperty("column_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
93-
public List<ColumnHeaderTextsNormalized> ColumnHeaderTextsNormalized { get; set; }
95+
public List<string> ColumnHeaderTextsNormalized { get; set; }
9496
/// <summary>
9597
/// Gets or Sets Attributes
9698
/// </summary>

Scripts/Services/CompareComply/V1/Model/Category.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public class LabelValue
140140
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
141141
public string Label { get; set; }
142142
/// <summary>
143-
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
143+
/// Hashed values that you can send to IBM to provide feedback or receive support.
144144
/// </summary>
145145
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
146146
public List<string> ProvenanceIds { get; set; }

Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs

+9-4
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,31 @@ public class ClassifyReturn
5858
[JsonProperty("contract_amounts", NullValueHandling = NullValueHandling.Ignore)]
5959
public List<ContractAmts> ContractAmounts { get; set; }
6060
/// <summary>
61-
/// The date or dates on which the document is to be terminated.
61+
/// The dates on which the document is to be terminated.
6262
/// </summary>
6363
[JsonProperty("termination_dates", NullValueHandling = NullValueHandling.Ignore)]
6464
public List<TerminationDates> TerminationDates { get; set; }
6565
/// <summary>
66-
/// The document's contract type or types as declared in the document.
66+
/// The contract type as declared in the document.
6767
/// </summary>
6868
[JsonProperty("contract_types", NullValueHandling = NullValueHandling.Ignore)]
6969
public List<ContractTypes> ContractTypes { get; set; }
7070
/// <summary>
71-
/// The duration or durations of the contract.
71+
/// The durations of the contract.
7272
/// </summary>
7373
[JsonProperty("contract_terms", NullValueHandling = NullValueHandling.Ignore)]
7474
public List<ContractTerms> ContractTerms { get; set; }
7575
/// <summary>
76-
/// The document's payment duration or durations.
76+
/// The document's payment durations.
7777
/// </summary>
7878
[JsonProperty("payment_terms", NullValueHandling = NullValueHandling.Ignore)]
7979
public List<PaymentTerms> PaymentTerms { get; set; }
8080
/// <summary>
81+
/// The contract currencies as declared in the document.
82+
/// </summary>
83+
[JsonProperty("contract_currencies", NullValueHandling = NullValueHandling.Ignore)]
84+
public List<ContractCurrencies> ContractCurrencies { get; set; }
85+
/// <summary>
8186
/// Definition of tables identified in the input document.
8287
/// </summary>
8388
[JsonProperty("tables", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs

-33
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs.meta

-11
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ColumnHeaderTexts.cs

-33
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ColumnHeaderTexts.cs.meta

-11
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ColumnHeaderTextsNormalized.cs

-34
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ColumnHeaderTextsNormalized.cs.meta

-11
This file was deleted.

Scripts/Services/CompareComply/V1/Model/ContractAmts.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ public class ConfidenceLevelValue
5757
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
5858
public string Text { get; set; }
5959
/// <summary>
60-
/// The normalized form of the amount, which is listed as a string. This element is optional; that is, the
61-
/// service output lists it only if normalized text exists.
60+
/// The normalized form of the amount, which is listed as a string. This element is optional; it is returned
61+
/// only if normalized text exists.
6262
/// </summary>
6363
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
6464
public string TextNormalized { get; set; }
6565
/// <summary>
66-
/// The details of the normalized text, if applicable. This element is optional; that is, the service output
67-
/// lists it only if normalized text exists.
66+
/// The details of the normalized text, if applicable. This element is optional; it is returned only if
67+
/// normalized text exists.
6868
/// </summary>
6969
[JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
7070
public Interpretation Interpretation { get; set; }
7171
/// <summary>
72-
/// One or more hash values that you can send to IBM to provide feedback or receive support.
72+
/// Hashed values that you can send to IBM to provide feedback or receive support.
7373
/// </summary>
7474
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
7575
public List<string> ProvenanceIds { get; set; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/**
2+
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.CompareComply.V1.Model
22+
{
23+
/// <summary>
24+
/// The contract currencies that are declared in the document.
25+
/// </summary>
26+
public class ContractCurrencies
27+
{
28+
/// <summary>
29+
/// The confidence level in the identification of the contract currency.
30+
/// </summary>
31+
public class ConfidenceLevelValue
32+
{
33+
/// <summary>
34+
/// Constant HIGH for High
35+
/// </summary>
36+
public const string HIGH = "High";
37+
/// <summary>
38+
/// Constant MEDIUM for Medium
39+
/// </summary>
40+
public const string MEDIUM = "Medium";
41+
/// <summary>
42+
/// Constant LOW for Low
43+
/// </summary>
44+
public const string LOW = "Low";
45+
46+
}
47+
48+
/// <summary>
49+
/// The confidence level in the identification of the contract currency.
50+
/// Constants for possible values can be found using ContractCurrencies.ConfidenceLevelValue
51+
/// </summary>
52+
[JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
53+
public string ConfidenceLevel { get; set; }
54+
/// <summary>
55+
/// The contract currency.
56+
/// </summary>
57+
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
58+
public string Text { get; set; }
59+
/// <summary>
60+
/// The normalized form of the contract currency, which is listed as a string in
61+
/// [ISO-4217](https://www.iso.org/iso-4217-currency-codes.html) format. This element is optional; it is
62+
/// returned only if normalized text exists.
63+
/// </summary>
64+
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
65+
public string TextNormalized { get; set; }
66+
/// <summary>
67+
/// Hashed values that you can send to IBM to provide feedback or receive support.
68+
/// </summary>
69+
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
70+
public List<string> ProvenanceIds { get; set; }
71+
/// <summary>
72+
/// The numeric location of the identified element in the document, represented with two integers labeled
73+
/// `begin` and `end`.
74+
/// </summary>
75+
[JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
76+
public Location Location { get; set; }
77+
}
78+
}

Scripts/Services/CompareComply/V1/Model/ContractTerms.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ public class ConfidenceLevelValue
5757
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
5858
public string Text { get; set; }
5959
/// <summary>
60-
/// The normalized form of the contract term, which is listed as a string. This element is optional; that is,
61-
/// the service output lists it only if normalized text exists.
60+
/// The normalized form of the contract term, which is listed as a string. This element is optional; it is
61+
/// returned only if normalized text exists.
6262
/// </summary>
6363
[JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
6464
public string TextNormalized { get; set; }
6565
/// <summary>
66-
/// The details of the normalized text, if applicable. This element is optional; that is, the service output
67-
/// lists it only if normalized text exists.
66+
/// The details of the normalized text, if applicable. This element is optional; it is returned only if
67+
/// normalized text exists.
6868
/// </summary>
6969
[JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
7070
public Interpretation Interpretation { get; set; }
7171
/// <summary>
72-
/// One or more hash values that you can send to IBM to provide feedback or receive support.
72+
/// Hashed values that you can send to IBM to provide feedback or receive support.
7373
/// </summary>
7474
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
7575
public List<string> ProvenanceIds { get; set; }

Scripts/Services/CompareComply/V1/Model/ContractTypes.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ConfidenceLevelValue
5757
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
5858
public string Text { get; set; }
5959
/// <summary>
60-
/// One or more hash values that you can send to IBM to provide feedback or receive support.
60+
/// Hashed values that you can send to IBM to provide feedback or receive support.
6161
/// </summary>
6262
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
6363
public List<string> ProvenanceIds { get; set; }

0 commit comments

Comments
 (0)