Skip to content

Commit

Permalink
feat(CompareComplyV1): Add confidence level for the identification of…
Browse files Browse the repository at this point in the history
… the contract amount
  • Loading branch information
Anthony Oliveri committed Feb 12, 2019
1 parent 3302504 commit 35a773a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Source/CompareComplyV1/Models/ContractAmts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,25 @@ import Foundation
*/
public struct ContractAmts: Codable, Equatable {

/**
The confidence level in the identification of the contract amount.
*/
public enum ConfidenceLevel: String {
case high = "High"
case medium = "Medium"
case low = "Low"
}

/**
The monetary amount.
*/
public var text: String?

/**
The confidence level in the identification of the contract amount.
*/
public var confidenceLevel: String?

/**
The numeric location of the identified element in the document, represented with two integers labeled `begin` and
`end`.
Expand All @@ -35,6 +49,7 @@ public struct ContractAmts: Codable, Equatable {
// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case text = "text"
case confidenceLevel = "confidence_level"
case location = "location"
}

Expand Down
15 changes: 15 additions & 0 deletions Source/CompareComplyV1/Models/EffectiveDates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,25 @@ import Foundation
*/
public struct EffectiveDates: Codable, Equatable {

/**
The confidence level in the identification of the effective date.
*/
public enum ConfidenceLevel: String {
case high = "High"
case medium = "Medium"
case low = "Low"
}

/**
The effective date, listed as a string.
*/
public var text: String?

/**
The confidence level in the identification of the effective date.
*/
public var confidenceLevel: String?

/**
The numeric location of the identified element in the document, represented with two integers labeled `begin` and
`end`.
Expand All @@ -35,6 +49,7 @@ public struct EffectiveDates: Codable, Equatable {
// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case text = "text"
case confidenceLevel = "confidence_level"
case location = "location"
}

Expand Down
15 changes: 15 additions & 0 deletions Source/CompareComplyV1/Models/TerminationDates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,25 @@ import Foundation
*/
public struct TerminationDates: Codable, Equatable {

/**
The confidence level in the identification of the termination date.
*/
public enum ConfidenceLevel: String {
case high = "High"
case medium = "Medium"
case low = "Low"
}

/**
The termination date.
*/
public var text: String?

/**
The confidence level in the identification of the termination date.
*/
public var confidenceLevel: String?

/**
The numeric location of the identified element in the document, represented with two integers labeled `begin` and
`end`.
Expand All @@ -35,6 +49,7 @@ public struct TerminationDates: Codable, Equatable {
// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case text = "text"
case confidenceLevel = "confidence_level"
case location = "location"
}

Expand Down

0 comments on commit 35a773a

Please sign in to comment.