         if let externalResourceUrl = JSONHandler.attemptParseToString(json["external_resource_url"]){
             transactionDetails.externalResourceUrl = externalResourceUrl
         }
-        if let financialInstitution = JSONHandler.attemptParseToString(json["financial_institution"]){
-            transactionDetails.financialInstitution = financialInstitution
+        if let financialInstitution = json["financial_institution"] as? NSDictionary {
+            transactionDetails.financialInstitution = FinancialInstitution.fromJSON(financialInstitution)
         }
         if let installmentAmount = JSONHandler.attemptParseToDouble(json["installment_amount"]){
             transactionDetails.installmentAmount = installmentAmount

        }
        return transactionDetails
    }
}



import Foundation

open class TransactionDetails : NSObject {
    open var couponAmount : Double?
    open var externalResourceUrl : String?
    open var financialInstitution : FinancialInstitution?
    open var installmentAmount : Double?
    open var netReceivedAmount : Double?
    open var overpaidAmount : Double?
    open var totalPaidAmount : Double?
    
    override public init(){
        super.init()
