Skip to content

Commit

Permalink
feat(CompareComplyV1): Add properties to AlignedElements and Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Oliveri committed Dec 6, 2018
1 parent 4b1af08 commit 0fbeb6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Source/CompareComplyV1/Models/AlignedElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public struct AlignedElement: Codable, Equatable {
*/
public var identicalText: Bool?

/**
Indicates that the elements aligned are contractual clauses of significance.
*/
public var significantElements: Bool?

/**
One or more hashed values that you can send to IBM to provide feedback or receive support.
*/
Expand All @@ -38,6 +43,7 @@ public struct AlignedElement: Codable, Equatable {
private enum CodingKeys: String, CodingKey {
case elementPair = "element_pair"
case identicalText = "identical_text"
case significantElements = "significant_elements"
case provenanceIDs = "provenance_ids"
}

Expand Down
10 changes: 6 additions & 4 deletions Source/CompareComplyV1/Models/Attribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ import Foundation
public struct Attribute: Codable, Equatable {

/**
The type of attribute. Possible values are `Currency`, `DateTime`, and `Location`.
The type of attribute. Possible values are `Currency`, `DateTime`, `Location`, `Organization`, and `Person`.
*/
public enum ModelType: String {
public enum TypeEnum: String {
case currency = "Currency"
case dateTime = "DateTime"
case datetime = "DateTime"
case location = "Location"
case organization = "Organization"
case person = "Person"
}

/**
The type of attribute. Possible values are `Currency`, `DateTime`, and `Location`.
The type of attribute. Possible values are `Currency`, `DateTime`, `Location`, `Organization`, and `Person`.
*/
public var type: String?

Expand Down

0 comments on commit 0fbeb6d

Please sign in to comment.