 localization = require '../lib/localization_manager'
 
 log = require('printit')
-    prefix: "Numericable"
+    prefix: "numericable"
     date: true
 
-
 # Models
-
+Bill = require '../models/bill'
+###
 Bill = cozydb.getModel 'Bill',
-    vendor: {type: String, default: 'Internet'}
+    type:
+        type: String
+        default: 'Internet'
+    vendor:
+        type: String
+        default: 'Numéricable'
     date: Date
     amount: Number
+###
 
 # Konnector
-
 module.exports =
-
     name: "Numéricable"
     slug: "numericable"
     description: 'konnector description numericable'

                callback err, notifContent


# Layer to login to Orange website.
logIn = (requiredFields, billInfos, data, next) ->

    logInOptions =
        method: 'GET'
        jar: true
        url: "https://connexion.numericable.fr/Oauth/Oauth.php"

    signInOptions =
        method: 'POST'

        login: "text"
        password: "password"
        folderPath: "folder"
        
    models:
        bill: Bill

