"use strict";
var item = require('./transactions').item,
  list = require('./transactions').list,
  moment = require('moment'),
  stripe = require('stripe')(process.env.STRIPE_KEY);

// Model interactions

module.exports = {

  save: function (trans) {
    var time = moment(trans.created);

    console.log(trans);

    stripe.balance.retrieveTransaction(
      trans.data.object.balance_transaction,
      function(err, balanceTransaction) {
        console.log(balanceTransaction);
      }
    );

    return true;
  },

  report: function () {

  }

};
@@ -433,24 +433,82 @@
 nsaction) %7B%0A
+        if (err) %7B%0A          console.log(err);%0A        %7D%0A%0A
         cons

test for balance retrival error