 import Foundation
 
 open class TransactionDetails : NSObject {
-    open var couponAmount : Double = 0
-    open var externalResourceUrl : String!
-    open var financialInstitution : String!
-    open var installmentAmount : Double = 0
-    open var netReceivedAmount : Double = 0
-    open var overpaidAmount : Double = 0
-    open var totalPaidAmount : Double = 0
+    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()

        }
        return transactionDetails
    }
}



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