         self.last4 = try node.get("last4")
         self.routingNumber = try node.get("routing_number")
         self.status = try node.get("status")
-        self.currency = try StripeCurrency(rawValue: node.get("currency"))
+        self.customer = try node.get("customer")
+        self.defaultForCurrency = try node.get("default_for_currency")
+        if let currency = node["currency"]?.string {
+             self.currency = StripeCurrency(rawValue: currency)
+        }
+        self.metadata = try node.get("metadata")
     }
     
     public func makeNode(in context: Context?) throws -> Node {
         let object: [String : Any?] = [
             "id": self.id,
             "object": self.object,
+            "account": self.account,
             "account_holder_name": self.accountHolderName,
             "account_holder_type": self.accountHolderType,
             "bank_name": self.name,

import Vapor
import Helpers

/*
 https://stripe.com/docs/api/curl#create_bank_account_token
*/
public final class BankAccount: StripeModelProtocol {
    
    public let id: String
    public let object: String
    public let accountHolderName: String?
    public let accountHolderType: String?
    public let name: String?
    public let country: String?
    public let fingerprint: String?
    public let last4: String?
    public let routingNumber: String?
    public let status: String?
    
    public let currency: StripeCurrency?
    
    public init(node: Node) throws {
        self.id = try node.get("id")
        self.object = try node.get("object")
        self.accountHolderName = try node.get("account_holder_name")
        self.accountHolderType = try node.get("account_holder_type")
        self.name = try node.get("bank_name")

            "last4": self.last4,
            "routing_number": self.routingNumber,
            "status": self.status,
            "customer": self.customer,
            "default_for_currency": self.defaultForCurrency,
            "currency": self.currency?.rawValue,
            "metadata": self.metadata
        ]
        return try Node(node: object)
    }
}
