      */
     public var name: String?
     
-    /**
-     Any additional details about the client
-     */
     public var details: String?
     
     /**
-     The currency that the client makes/recieves payments in
+     The currency that the client makes/recieves payments in. As a full length description.
+     */
+    public var currencyName: String?
+    
+    /**
+     The currency symbol representing the currency that the client makes/recieves payments in
      */
     public var currencySymbol: String?
     

import Foundation

/**
A struct representation of a client in the harvest system
*/
public struct Client {
    
    /**

        identifier = clientDictionary["id"] as? Int
        name = clientDictionary["name"] as? String
        details = clientDictionary["details"] as? String
        currencyName = clientDictionary["currency"] as? String
        currencySymbol = clientDictionary["currency_symbol"] as? String
        active = clientDictionary["active"] as? Bool
        lastInvoiceKind = clientDictionary["last_invoice_kind"] as? String
        cacheVersion = clientDictionary["cache_version"] as? Int
        
        let dateFormatter = NSDateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'"
        
        if let createdDateString = clientDictionary["created_at"] as? String {
            created = dateFormatter.dateFromString(createdDateString)
        }
        
        if let updatedDateString = clientDictionary["updated_at"] as? String {
            updated = dateFormatter.dateFromString(updatedDateString)
        }
        
        highriseId = clientDictionary["highrise_id"] as? Int
        defaultInvoiceTimeframe = clientDictionary["default_invoice_timeframe"] as? String
        statementKey = clientDictionary["statement_key"] as? String
    }
    
}