Skip to content

Commit 85cf79c

Browse files
committed
feat(Regeneration): This PR adds the newest generated code using API definition commit `0baaf120beb3
1 parent 10386f9 commit 85cf79c

36 files changed

+849
-139
lines changed

Scripts/Services/CompareComply/V1/CompareComplyService.cs

Lines changed: 85 additions & 79 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,21 @@ public class AlignedElement
3131
[JsonProperty("element_pair", NullValueHandling = NullValueHandling.Ignore)]
3232
public List<ElementPair> ElementPair { get; set; }
3333
/// <summary>
34-
/// Specifies whether the text is identical.
34+
/// Specifies whether the aligned element is identical. Elements are considered identical despite minor
35+
/// differences such as leading punctuation, end-of-sentence punctuation, whitespace, the presence or absence of
36+
/// definite or indefinite articles, and others.
3537
/// </summary>
3638
[JsonProperty("identical_text", NullValueHandling = NullValueHandling.Ignore)]
3739
public bool? IdenticalText { get; set; }
3840
/// <summary>
39-
/// Indicates that the elements aligned are contractual clauses of significance.
40-
/// </summary>
41-
[JsonProperty("significant_elements", NullValueHandling = NullValueHandling.Ignore)]
42-
public bool? SignificantElements { get; set; }
43-
/// <summary>
4441
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
4542
/// </summary>
4643
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
4744
public List<string> ProvenanceIds { get; set; }
45+
/// <summary>
46+
/// Indicates that the elements aligned are contractual clauses of significance.
47+
/// </summary>
48+
[JsonProperty("significant_elements", NullValueHandling = NullValueHandling.Ignore)]
49+
public bool? SignificantElements { get; set; }
4850
}
4951
}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ public class Attribute
2929
/// </summary>
3030
public class TypeValue
3131
{
32-
/// <summary>
33-
/// Constant ADDRESS for Address
34-
/// </summary>
35-
public const string ADDRESS = "Address";
3632
/// <summary>
3733
/// Constant CURRENCY for Currency
3834
/// </summary>
@@ -42,6 +38,10 @@ public class TypeValue
4238
/// </summary>
4339
public const string DATETIME = "DateTime";
4440
/// <summary>
41+
/// Constant DURATION for Duration
42+
/// </summary>
43+
public const string DURATION = "Duration";
44+
/// <summary>
4545
/// Constant LOCATION for Location
4646
/// </summary>
4747
public const string LOCATION = "Location";
@@ -50,6 +50,10 @@ public class TypeValue
5050
/// </summary>
5151
public const string ORGANIZATION = "Organization";
5252
/// <summary>
53+
/// Constant PERCENTAGE for Percentage
54+
/// </summary>
55+
public const string PERCENTAGE = "Percentage";
56+
/// <summary>
5357
/// Constant PERSON for Person
5458
/// </summary>
5559
public const string PERSON = "Person";

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

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ namespace IBM.Watson.CompareComply.V1.Model
2626
public class BodyCells
2727
{
2828
/// <summary>
29-
/// A string value in the format `columnHeader-x-y`, where `x` and `y` are the begin and end offsets of this
30-
/// column header cell in the input document.
29+
/// The unique ID of the cell in the current table.
3130
/// </summary>
3231
[JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
3332
public string CellId { get; set; }
@@ -63,37 +62,35 @@ public class BodyCells
6362
[JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
6463
public long? ColumnIndexEnd { get; set; }
6564
/// <summary>
66-
/// An array of values, each being the `id` value of a row header that is applicable to this body cell.
65+
/// Gets or Sets RowHeaderIds
6766
/// </summary>
6867
[JsonProperty("row_header_ids", NullValueHandling = NullValueHandling.Ignore)]
69-
public List<string> RowHeaderIds { get; set; }
68+
public List<RowHeaderIds> RowHeaderIds { get; set; }
7069
/// <summary>
71-
/// An array of values, each being the `text` value of a row header that is applicable to this body cell.
70+
/// Gets or Sets RowHeaderTexts
7271
/// </summary>
7372
[JsonProperty("row_header_texts", NullValueHandling = NullValueHandling.Ignore)]
74-
public List<string> RowHeaderTexts { get; set; }
73+
public List<RowHeaderTexts> RowHeaderTexts { get; set; }
7574
/// <summary>
76-
/// If you provide customization input, the normalized version of the row header texts according to the
77-
/// customization; otherwise, the same value as `row_header_texts`.
75+
/// Gets or Sets RowHeaderTextsNormalized
7876
/// </summary>
7977
[JsonProperty("row_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
80-
public List<string> RowHeaderTextsNormalized { get; set; }
78+
public List<RowHeaderTextsNormalized> RowHeaderTextsNormalized { get; set; }
8179
/// <summary>
82-
/// An array of values, each being the `id` value of a column header that is applicable to the current cell.
80+
/// Gets or Sets ColumnHeaderIds
8381
/// </summary>
8482
[JsonProperty("column_header_ids", NullValueHandling = NullValueHandling.Ignore)]
85-
public List<string> ColumnHeaderIds { get; set; }
83+
public List<ColumnHeaderIds> ColumnHeaderIds { get; set; }
8684
/// <summary>
87-
/// An array of values, each being the `text` value of a column header that is applicable to the current cell.
85+
/// Gets or Sets ColumnHeaderTexts
8886
/// </summary>
8987
[JsonProperty("column_header_texts", NullValueHandling = NullValueHandling.Ignore)]
90-
public List<string> ColumnHeaderTexts { get; set; }
88+
public List<ColumnHeaderTexts> ColumnHeaderTexts { get; set; }
9189
/// <summary>
92-
/// If you provide customization input, the normalized version of the column header texts according to the
93-
/// customization; otherwise, the same value as `column_header_texts`.
90+
/// Gets or Sets ColumnHeaderTextsNormalized
9491
/// </summary>
9592
[JsonProperty("column_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
96-
public List<string> ColumnHeaderTextsNormalized { get; set; }
93+
public List<ColumnHeaderTextsNormalized> ColumnHeaderTextsNormalized { get; set; }
9794
/// <summary>
9895
/// Gets or Sets Attributes
9996
/// </summary>
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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 Newtonsoft.Json;
19+
20+
namespace IBM.Watson.CompareComply.V1.Model
21+
{
22+
/// <summary>
23+
/// Information defining an element's subject matter.
24+
/// </summary>
25+
public class CategoryComparison
26+
{
27+
/// <summary>
28+
/// The category of the associated element.
29+
/// </summary>
30+
public class LabelValue
31+
{
32+
/// <summary>
33+
/// Constant AMENDMENTS for Amendments
34+
/// </summary>
35+
public const string AMENDMENTS = "Amendments";
36+
/// <summary>
37+
/// Constant ASSET_USE for Asset Use
38+
/// </summary>
39+
public const string ASSET_USE = "Asset Use";
40+
/// <summary>
41+
/// Constant ASSIGNMENTS for Assignments
42+
/// </summary>
43+
public const string ASSIGNMENTS = "Assignments";
44+
/// <summary>
45+
/// Constant AUDITS for Audits
46+
/// </summary>
47+
public const string AUDITS = "Audits";
48+
/// <summary>
49+
/// Constant BUSINESS_CONTINUITY for Business Continuity
50+
/// </summary>
51+
public const string BUSINESS_CONTINUITY = "Business Continuity";
52+
/// <summary>
53+
/// Constant COMMUNICATION for Communication
54+
/// </summary>
55+
public const string COMMUNICATION = "Communication";
56+
/// <summary>
57+
/// Constant CONFIDENTIALITY for Confidentiality
58+
/// </summary>
59+
public const string CONFIDENTIALITY = "Confidentiality";
60+
/// <summary>
61+
/// Constant DELIVERABLES for Deliverables
62+
/// </summary>
63+
public const string DELIVERABLES = "Deliverables";
64+
/// <summary>
65+
/// Constant DELIVERY for Delivery
66+
/// </summary>
67+
public const string DELIVERY = "Delivery";
68+
/// <summary>
69+
/// Constant DISPUTE_RESOLUTION for Dispute Resolution
70+
/// </summary>
71+
public const string DISPUTE_RESOLUTION = "Dispute Resolution";
72+
/// <summary>
73+
/// Constant FORCE_MAJEURE for Force Majeure
74+
/// </summary>
75+
public const string FORCE_MAJEURE = "Force Majeure";
76+
/// <summary>
77+
/// Constant INDEMNIFICATION for Indemnification
78+
/// </summary>
79+
public const string INDEMNIFICATION = "Indemnification";
80+
/// <summary>
81+
/// Constant INSURANCE for Insurance
82+
/// </summary>
83+
public const string INSURANCE = "Insurance";
84+
/// <summary>
85+
/// Constant INTELLECTUAL_PROPERTY for Intellectual Property
86+
/// </summary>
87+
public const string INTELLECTUAL_PROPERTY = "Intellectual Property";
88+
/// <summary>
89+
/// Constant LIABILITY for Liability
90+
/// </summary>
91+
public const string LIABILITY = "Liability";
92+
/// <summary>
93+
/// Constant PAYMENT_TERMS_BILLING for Payment Terms & Billing
94+
/// </summary>
95+
public const string PAYMENT_TERMS_BILLING = "Payment Terms & Billing";
96+
/// <summary>
97+
/// Constant PRICING_TAXES for Pricing & Taxes
98+
/// </summary>
99+
public const string PRICING_TAXES = "Pricing & Taxes";
100+
/// <summary>
101+
/// Constant PRIVACY for Privacy
102+
/// </summary>
103+
public const string PRIVACY = "Privacy";
104+
/// <summary>
105+
/// Constant RESPONSIBILITIES for Responsibilities
106+
/// </summary>
107+
public const string RESPONSIBILITIES = "Responsibilities";
108+
/// <summary>
109+
/// Constant SAFETY_AND_SECURITY for Safety and Security
110+
/// </summary>
111+
public const string SAFETY_AND_SECURITY = "Safety and Security";
112+
/// <summary>
113+
/// Constant SCOPE_OF_WORK for Scope of Work
114+
/// </summary>
115+
public const string SCOPE_OF_WORK = "Scope of Work";
116+
/// <summary>
117+
/// Constant SUBCONTRACTS for Subcontracts
118+
/// </summary>
119+
public const string SUBCONTRACTS = "Subcontracts";
120+
/// <summary>
121+
/// Constant TERM_TERMINATION for Term & Termination
122+
/// </summary>
123+
public const string TERM_TERMINATION = "Term & Termination";
124+
/// <summary>
125+
/// Constant WARRANTIES for Warranties
126+
/// </summary>
127+
public const string WARRANTIES = "Warranties";
128+
129+
}
130+
131+
/// <summary>
132+
/// The category of the associated element.
133+
/// Constants for possible values can be found using CategoryComparison.LabelValue
134+
/// </summary>
135+
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
136+
public string Label { get; set; }
137+
}
138+
}

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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace IBM.Watson.CompareComply.V1.Model
2222
{
2323
/// <summary>
24-
/// The analysis of objects returned by the `/v1/element_classification` method.
24+
/// The analysis of objects returned by the **Element classification** method.
2525
/// </summary>
2626
public class ClassifyReturn
2727
{
@@ -31,8 +31,8 @@ public class ClassifyReturn
3131
[JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
3232
public Document Document { get; set; }
3333
/// <summary>
34-
/// The analysis model used to classify the input document. For the `/v1/element_classification` method, the
35-
/// only valid value is `contracts`.
34+
/// The analysis model used to classify the input document. For the **Element classification** method, the only
35+
/// valid value is `contracts`.
3636
/// </summary>
3737
[JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
3838
public string ModelId { get; set; }
@@ -62,19 +62,25 @@ public class ClassifyReturn
6262
[JsonProperty("parties", NullValueHandling = NullValueHandling.Ignore)]
6363
public List<Parties> Parties { get; set; }
6464
/// <summary>
65-
/// The effective dates of the input document.
65+
/// The date or dates on which the document becomes effective.
6666
/// </summary>
6767
[JsonProperty("effective_dates", NullValueHandling = NullValueHandling.Ignore)]
6868
public List<EffectiveDates> EffectiveDates { get; set; }
6969
/// <summary>
70-
/// The monetary amounts identified in the input document.
70+
/// The monetary amounts that identify the total amount of the contract that needs to be paid from one party to
71+
/// another.
7172
/// </summary>
7273
[JsonProperty("contract_amounts", NullValueHandling = NullValueHandling.Ignore)]
7374
public List<ContractAmts> ContractAmounts { get; set; }
7475
/// <summary>
75-
/// The input document's termination dates.
76+
/// The date or dates on which the document is to be terminated.
7677
/// </summary>
7778
[JsonProperty("termination_dates", NullValueHandling = NullValueHandling.Ignore)]
7879
public List<TerminationDates> TerminationDates { get; set; }
80+
/// <summary>
81+
/// The document's contract type or types as declared in the document.
82+
/// </summary>
83+
[JsonProperty("contract_type", NullValueHandling = NullValueHandling.Ignore)]
84+
public List<ContractType> ContractType { get; set; }
7985
}
8086
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 Newtonsoft.Json;
19+
20+
namespace IBM.Watson.CompareComply.V1.Model
21+
{
22+
/// <summary>
23+
/// An array of values, each being the `id` value of a column header that is applicable to the current cell.
24+
/// </summary>
25+
public class ColumnHeaderIds
26+
{
27+
/// <summary>
28+
/// The `id` value of a column header.
29+
/// </summary>
30+
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
31+
public string Id { get; set; }
32+
}
33+
}

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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)