Skip to content

Commit

Permalink
feat(CompareComplyV1): Add importance to Parties
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Oliveri committed Feb 12, 2019
1 parent 35a773a commit 96eb790
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/CompareComplyV1/Models/Parties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,24 @@ import Foundation
*/
public struct Parties: Codable, Equatable {

/**
A string that identifies the importance of the party.
*/
public enum Importance: String {
case primary = "Primary"
case unknown = "Unknown"
}

/**
A string identifying the party.
*/
public var party: String?

/**
A string that identifies the importance of the party.
*/
public var importance: String?

/**
A string identifying the party's role.
*/
Expand All @@ -44,6 +57,7 @@ public struct Parties: Codable, Equatable {
// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case party = "party"
case importance = "importance"
case role = "role"
case addresses = "addresses"
case contacts = "contacts"
Expand Down

0 comments on commit 96eb790

Please sign in to comment.