{"_id":"mangopay","_rev":"49-938dceb0c5e85af5d3451109ec7ff9f9","name":"mangopay","description":"Mango API wrapper","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.3":{"name":"mangopay","version":"0.0.3","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x","npm":"1.1.x"},"devDependencies":{"mocha":"~1.20.1","chai":"~1.9.1"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.3","dist":{"shasum":"17591cfcb9c3c6d3b7ef3830a2b311387afa7de3","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.3.tgz","integrity":"sha512-X2ZHo7ZmOQNjAnzWTXhSn60skT3AkuEMtTfuNQlIbil3S5FqV+tAio69UWheWhaKVLhZ43yo5fhSUq8ksokxgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQRHmpCUZWs3LdVUqnTo0dZoJWWWav5RkgLYZA1lXA0AiEAlp6Z5nsaVJrCV+aryA5HeF+LlADUvtPwV3OXZRNu0xU="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"}]},"0.0.4":{"name":"mangopay","version":"0.0.4","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x","npm":"1.1.x"},"devDependencies":{"mocha":"~1.20.1","chai":"~1.9.1"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"2e23d4cdc71d0b4a46a63800e5f095adedfe3c33","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.4","_shasum":"8ab243d5fa6024c964fa7790c4c447a65850be87","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"8ab243d5fa6024c964fa7790c4c447a65850be87","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.4.tgz","integrity":"sha512-q8SOFMByO0wgOX6nfBxMv2WagkqXwImZfRtmecBbQmVLihNkOnFXvtFHbUGv2pvbuOyrOM33lY90IwAN2ppFEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGOab1zeTM2Zjc0++Jt7qTrWglw/ccnQjmRCH/KjMstAIgVL+PQIW3prkrkUvD6c8M9zfux1VHFV5dtCMWLDE7fnY="}]}},"0.0.5":{"name":"mangopay","version":"0.0.5","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"mocha":"~1.20.1","chai":"~1.9.1"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"88e27bf23cae957b96690156cb2b35aaefac58f7","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.5","_shasum":"88c29457626b6a6eb506caae883589751877f143","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"88c29457626b6a6eb506caae883589751877f143","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.5.tgz","integrity":"sha512-5WSmcHeHX3xUBdR3fpupB0WqOVU2vWdmo3L5onZYkwx9UTTtvwE8wu2nouhlSAW3+olB+yVk9huGbYisSHe2AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB46AP3N0cAMkYzcHylP8UtsP+EKoKOQnw5qXA/HRIbTAiAqULYPxoibJHNcjGYF3MWCQObFyFYLYAPnXkNmc12DMg=="}]}},"0.0.6":{"name":"mangopay","version":"0.0.6","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"mocha":"~1.20.1","chai":"~1.9.1"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"a4830b42e3160ff8a673ca5d563071078eeadcb6","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.6","_shasum":"5fd01956f19190ec32600b54d9e81578a6258cea","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"5fd01956f19190ec32600b54d9e81578a6258cea","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.6.tgz","integrity":"sha512-TNMyDxxIbuok1l3ERTUIvAsUVz9mYXVB/NCP7P5KdWyJcqEVM5bagWzADj4/bBhNGsQeJynEjaWsUIgTBQLW4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX+a0rFY0tz/sOwDOS7DJ2tHdFo6cst5mtzUDwuV74bwIhAOBlgEya9DSf2xjXhH0PuiyD2shJ52uH/bAnYdoFU9Fy"}]}},"0.0.7":{"name":"mangopay","version":"0.0.7","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"4b2081fe9b84d4bded4ef2360049f99654a7fde5","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.7","_shasum":"888314a9ced2400a6fcceb501367252515449fb3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"888314a9ced2400a6fcceb501367252515449fb3","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.7.tgz","integrity":"sha512-hoexYe3RqcDtVeIlLOu8PaRih6s1Z3O9YC+9E8W2l4b9zq3NhwMNd4D3uXsbLn0gO1B7t7Xkf6CD8s0zoHkxOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzoD+ql6y6yPlZUo1tAqh/XA2CJhkyX5epijBM8CyhMAiEAnNTnHfrWya69UAt9NGk2GW1A8yvegV10srBW2aaBc9o="}]}},"0.0.8":{"name":"mangopay","version":"0.0.8","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"c8d499e4c0c84bef0c93484f08055a7eb5204804","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.8","_shasum":"b8598368e0001f30c4f287f277ad6f4f2dcca3fc","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"b8598368e0001f30c4f287f277ad6f4f2dcca3fc","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.8.tgz","integrity":"sha512-u4R/UOiBGLeayOqYbRi7VzydHzGipxXW+C3i4c69BRUA16g3oi2dVNQVwyKwUPbB8h6sm3+5K6knC3bRHCUj9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBm/8h3L+QN/h60Q4pAyZzNd4irdXfmdNbEGKl/1+q9CAiArbyUHzVbl8fEvCsczLgXChRwqVDhAn3cAPyLhZ1SumA=="}]}},"0.0.9":{"name":"mangopay","version":"0.0.9","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"a1844e1700ab15c62caceb0553e33e9facefe6a9","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.9","_shasum":"57c2996f7341b4cb8ee3314d12b39eaf69c87460","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"57c2996f7341b4cb8ee3314d12b39eaf69c87460","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.9.tgz","integrity":"sha512-gSB9gFp4fE1PKYcHDJpNBm6O160I9w8qffv4HPLS7m8NsqF/G3TXt8b5Y696lM0JTgBzw8P4WCpCGFqZODcjdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzmhkSQmzQoWVU6tJ8/lmJaZFa3tzGG2IhPhXYylouLAiEA7G+pthf62gyD7Et6G/wUwxTT4VgrpWPfVvKID2GjiS0="}]}},"0.0.10":{"name":"mangopay","version":"0.0.10","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"aa974274779a423b01b183a4e383dce7e5d2919a","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.10","_shasum":"0ed7dc7151d008f76ff4e9728dadddd64e107159","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.24","_npmUser":{"name":"codeback","email":"info@codeback.es"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"0ed7dc7151d008f76ff4e9728dadddd64e107159","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.10.tgz","integrity":"sha512-DK4sAUzXlRsf6VXTaDVZkSFg59j2ypXrizKozARiDMQXp73vr+ji7bPBqaTJSBznLeZ9LpnKzNUqZJs/2JjkAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmDZ+3wnDTsZ9vJ+64n6oRqdsZBbtradrTTUN2/FDvVQIgaCr9nV6s1iAGl76Myf5gd94jlxEmxoC1wRJoBBWBZUw="}]}},"0.0.11":{"name":"mangopay","version":"0.0.11","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"0946574d8540be67981d2a5dfc07066eec2f1367","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.11","_shasum":"f7ed722fb40ed13181e7f0b5a1c215ea297b10fb","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.24","_npmUser":{"name":"codeback","email":"info@codeback.es"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"f7ed722fb40ed13181e7f0b5a1c215ea297b10fb","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.11.tgz","integrity":"sha512-sls78rUB+6TrKuY7Q2zvoz3OlRL5idy0P1gD9kjzMavcB9uFEFHnLayKFoospCHTMpt+gLRysVual+O86yAOOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7hLERWeYOC9IzK+LFgBw0wuWG/Q83+U99BhfANBMVkAiBI2Jul6LcEb4eiznygzotyIl4I77RmnW7bQGwttnyHeg=="}]}},"0.0.12":{"name":"mangopay","version":"0.0.12","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"efe5dfbfc29189c17e401d41788f041e0a8a586f","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.12","_shasum":"f360a4844964407ca57ed2313abfb1c786a51c15","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.24","_npmUser":{"name":"codeback","email":"info@codeback.es"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"f360a4844964407ca57ed2313abfb1c786a51c15","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.12.tgz","integrity":"sha512-3AElsXiP7UqnioX76XJwQ4Kc8gdYIKQttnbGJYo+sZWUC51uCAbtLnEWmr1CESLNxd1jNfB56KCJz24nIjlIxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwLBWCx53N0PiwZ07Xr8dBVDe/VIsLWNnSV8PWAxuBbAiEA25+qii4vYo69rbBnXM327u6iEUo2HWsBZIYiT0ltUlg="}]}},"0.0.14":{"name":"mangopay","version":"0.0.14","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"6fcf0a78d2187d73941f80a35d5696a2fea5e18c","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.14","_shasum":"7acf72b269778b53def050b05381d57b7228a528","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.24","_npmUser":{"name":"codeback","email":"info@codeback.es"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"7acf72b269778b53def050b05381d57b7228a528","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.14.tgz","integrity":"sha512-0k69JgP4ssMuqbjxgiNYehTscoGUX0as3NYzyfwTgp9hvGKwU+TQyplmjMLgyipAAxfmAyMeR6FXfgMNiJSx7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg/eTkn064RVt3qAVAoPW4PtD7b08JkObGOEwxQF01WQIhAOazwxmpTMRQaNjtcWPumyrNTtUXpowFlL9Gy5ZvRnCT"}]}},"0.0.15":{"name":"mangopay","version":"0.0.15","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"36dfcd2cb4a28ec1246d9f0cb00b22c697b059b4","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.15","_shasum":"bbfe38c7d1c30537056e51b8c2f953ab40f46253","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.32","_npmUser":{"name":"larafale","email":"as1cron@gmail.com"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"bbfe38c7d1c30537056e51b8c2f953ab40f46253","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.15.tgz","integrity":"sha512-EaDB+T4HqVGfZc0MvmqFlcepxvGx5Ydnlgt7ThXZJnqx0z0BLSFVSXavr1cg5wYPKYT0UOqUiO8HoJ1CM6uvLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGD8POR8RQnV/Rt4433U6XBcvUIR7haui8eqMGpopeKcAiALpBS4gxkqtDolcuChPZh0+DEh+6eWZFEB53cJbFyvxQ=="}]}},"0.0.16":{"name":"mangopay","version":"0.0.16","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"221cfd09ef864428a76081796aaba6bd72fe7949","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@0.0.16","_shasum":"9f21074e44b8f333d9438d084fc93df9a11f7720","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.24","_npmUser":{"name":"codeback","email":"info@codeback.es"},"maintainers":[{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"},{"name":"codeback","email":"info@codeback.es"}],"dist":{"shasum":"9f21074e44b8f333d9438d084fc93df9a11f7720","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-0.0.16.tgz","integrity":"sha512-iBLdhTWJ86NKlIUm/j5OJEnqo7dubtICpg7qo1yQksNdfCcikBJ/RpNUb91pVWIYT5c35jxlRx+qZtXzKp6mgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyupIu6BEZyV5s6lVFYVjFwwNqv6coPNXan2MGDDWHhAiAnisNVlKfonZXtIvjItdrMjHmXZ/NrvjBCPz4AsLw0pQ=="}]}},"1.0.0":{"name":"mangopay","version":"1.0.0","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","faker":"^3.0.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"aa953041f8410fe3288d07d4dc18012bdc54976c","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@1.0.0","_shasum":"dfe25b1480fa338e80dac19df774130e512c5256","_from":".","_npmVersion":"1.4.29","_npmUser":{"name":"godspeedelbow","email":"eelke@peerby.com"},"maintainers":[{"name":"codeback","email":"info@codeback.es"},{"name":"godspeedelbow","email":"eelke@peerby.com"},{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"dfe25b1480fa338e80dac19df774130e512c5256","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-1.0.0.tgz","integrity":"sha512-7gv+C44jG1ybDgAsisRZpNQd9s2aPzpkdyaHoNeZupswEJLs+MHiUb64Rb8FmxuGIre9Isy9ahZOJbT0QI2kdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWyTm5d5UNv3GEwXXAvE/I17lJpyhNRItwfb6d/hxvYAiEAq3Tx8GJPWM3P3WNaU395jG0nHbFRZJUfKQzBPUc3dwA="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/mangopay-1.0.0.tgz_1457438628888_0.058637254405766726"}},"1.1.0":{"name":"mangopay","version":"1.1.0","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","faker":"^3.0.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"93335fb3455ad2e67f2b4156bf216fb8247d7abd","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@1.1.0","_shasum":"0b1765346cda64ef685c73ee62c6b527d29a71a7","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"godspeedelbow","email":"eelke@peerby.com"},"maintainers":[{"name":"codeback","email":"info@codeback.es"},{"name":"godspeedelbow","email":"eelke@peerby.com"},{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"0b1765346cda64ef685c73ee62c6b527d29a71a7","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-1.1.0.tgz","integrity":"sha512-dIITByKfwytY34YE1OdAB2LQ/5+UhkL0VUJUynxbHHIoLPNU2Lkz5VQ3fiXRMc1fDAa11dwBUh/bRDgPXrHPmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvXUyJqU2kQf5hJ1RBiXeUB91hPV0QmJGaVMCvb9G6XAiEAiffQ6OQtlbLBByozMTpakMjj/Fi55HwTx3f2NxNZv20="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mangopay-1.1.0.tgz_1470246476992_0.35369696700945497"}},"1.2.0":{"name":"mangopay","version":"1.2.0","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"engines":{"node":"0.10.x"},"devDependencies":{"chai":"~1.9.1","faker":"^3.0.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"039bbd1bf5f0b71efa5ad4d0e3c3bf1e80b3e8b8","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@1.2.0","_shasum":"3904f3d2a3403e9420209ff034dda19991e2d415","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"godspeedelbow","email":"eelke@peerby.com"},"maintainers":[{"name":"codeback","email":"info@codeback.es"},{"name":"godspeedelbow","email":"eelke@peerby.com"},{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"3904f3d2a3403e9420209ff034dda19991e2d415","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-1.2.0.tgz","integrity":"sha512-Fq7bsL/6Lx3nCwsLiFUoLGOd+H6Xis8iFkVOm8xuJToBNEdjcT/OrMo2HFqZVieSd50+WOL1eAOLevK9yIFKHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOOetJcYI8Ot0se/tquHETMyeG2t4lkndC41jyuWxMZAIgVaVOdO8LxQ3u74c4g/VJAXQbyW1FNKEzmf7FZlidD00="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mangopay-1.2.0.tgz_1475158503821_0.37630737153813243"}},"1.3.0":{"name":"mangopay","version":"1.3.0","description":"Mango API wrapper","homepage":"https://github.com/larafale/mangopay","author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"main":"index.js","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"devDependencies":{"chai":"~1.9.1","faker":"^3.0.1","mocha":"~1.20.1","moment":"^2.8.3"},"dependencies":{"when":"~3.1.0"},"scripts":{"test":"mocha -R spec"},"gitHead":"3797a80a45c06b2b6b5533372a6249e093098edf","bugs":{"url":"https://github.com/larafale/mangopay/issues"},"_id":"mangopay@1.3.0","_shasum":"bc4d4e294ae04a8df526dea3540d1ffaf1c0da99","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"godspeedelbow","email":"eelke@peerby.com"},"maintainers":[{"name":"codeback","email":"info@codeback.es"},{"name":"godspeedelbow","email":"eelke@peerby.com"},{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"dist":{"shasum":"bc4d4e294ae04a8df526dea3540d1ffaf1c0da99","tarball":"https://registry.npmjs.org/mangopay/-/mangopay-1.3.0.tgz","integrity":"sha512-n76SJ34CMOXJfR7N6b9k2VMi95fOj9sLs56WPQoWLABKuarYz5TA5mtvuRX35+MkhWBgPhl/sKxU3iemmdu6hA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNzCDldFeqfBLqxrHlXEIijjtkZFjJ2oZdlUeJmqcU9wIhAOw83YdHNHQAhmF2BS7eas5qKO7BG+OHGDU5cpOVgs1n"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mangopay-1.3.0.tgz_1475158934002_0.5076657689642161"}}},"readme":"[![Circle CI](https://circleci.com/gh/larafale/mangopay.svg?&style=shield&circle-token=cb4fe61061baa5dc1826b33887aee7826150a681)](https://circleci.com/gh/larafale/mangopay)\n  \n# MangoPay nodejs APIv2 wrapper\n\nThis is not the official Mangopay Node library.  \nAt this time they don't have one, so we'll see what's next.  \nIt's here for a personal use and inspired by Stripe node api wrapper.\n\nFeel free to use & contribute\n\n## Installation\n\n`npm install mangopay`\n\n## Documentation\n\nDocumentation is available at [http://docs.mangopay.com/api-references](http://docs.mangopay.com/api-references)\n\n## API Overview\n\nEvery resource is accessed via your `mango` instance:\n\n```js\nvar mango = require('mangopay')({\n    username: 'username',\n    password: 'passphrase',\n    production: false\n})\n// mango.{ RESOURCE_NAME }.{ METHOD_NAME }()\n```\n\nEvery resource method accepts an optional callback as the last argument:\n\n```js\nmango.card.create({ \n  UserId: '2565355',\n  CardNumber: '4970100000000154',\n  CardExpirationDate: '0216',\n  CardCvx: '123',\n}, function(err, card, res){\n  err;\n  card; // mango card object \n  res; // raw 'http' response object => res.statusCode === 200\n})\n```\n\nThe callback gets called with three arguments: `err`, `data` and the raw `response` object. In case of an error, the data and response are still passed because the MangoPay API returns data together with errors, e.g. when attempting to retrieve a failed payOut.\n\nMethods that list items (cards, transactions, users, etc...) can paginate, filter and sort fields using a special `$query` parameter:\n\n```js\nmango.user.transactions({\n  UserId: \"123456789\",\n  $query:{\n    Sort:\"LastName:asc\",\n    page:1,\n    per_page:100\n  }\n},\nfunction(err, transactions, res){\n  console.log('err', err);\n  console.log('transactions', transactions);\n  console.log('res', res.statusCode);\n});\n```\nor alternatively you can pass a String: `$query: \"Sort=LastName:asc&page=1&per_page=100\"`\n\nMore information on the specific [documentation page](https://docs.mangopay.com/api-references/sort-lists/)\n\n### Available resources & methods\n\n*Where you see `params` it is a plain JavaScript object, e.g. `{ Email: 'foo@example.com' }`*\n\n* user\n\nCreate natural user: \n  \n```js\n    mango.user.create({\n        FirstName:             \"Victor\"           // Required\n      , LastName:              \"Hugo\"             // Required\n      , Birthday:              1300186358         // Required\n      , Nationality:           \"FR\"               // Required - default: 'FR'\n      , CountryOfResidence:    \"FR\"               // Required - default: 'FR'\n      , Occupation:            \"Writer\" \n      , IncomeRange:           \"6\" \n      , ProofOfIdentity:       \"\"\n      , ProofOfAddress:        \"\" \n      , PersonType:            \"NATURAL\" \n      , Email:                 \"victor@hugo.com\" \n      , Tag:                   \"custom tag\"\n      , Address:                 {\n            AddressLine1: \"4101 Reservoir Rd NW\"\n          , AddressLine2: \"\"\n          , City: \"Washington\"\n          , Region: \"District of Columbia\"\n          , PostalCode: \"20007\"\n          , Country: \"US\"\n      , }\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nCreate natural user and wallet: \n  \n```js\n    mango.user.signup({\n      FirstName: \"Victor\", // Required\n      LastName: \"Hugo\",    // Required\n      Birthday: 1300186358,  // Required\n      Nationality: \"FR\", // Required, default: 'FR'\n      CountryOfResidence: \"FR\", // Required, default: 'FR'\n      Address: \"1 rue des Misérables, Paris\",\n      Occupation: \"Writer\", \n      IncomeRange: \"6\", \n      ProofOfIdentity: null,\n      ProofOfAddress: null, \n      PersonType: \"NATURAL\", \n      Email: \"victor@hugo.com\", \n      Tag: \"custom tag\",\n    }, function(err, user, wallet){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('wallet', wallet);\n    });\n```\n\nFetch natural user: \n  \n```js\n    mango.user.fetch({\n      Id: \"123456789\", // Required\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nUpdate natural user: \n  \n```js\n    mango.user.update({\n      Id: \"123456789\", // Required\n      // all the fields to be updated\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nList natural users: \n  \n```js\n    mango.user.list(function(err,users){\n        console.log(users); \n    });\n```\n\nCreate legal user: \n  \n```js\n    mango.user.createLegal({\n      Name: 'mycompany.com', \n      Email: 'info@mycompany.com',\n      LegalPersonType: 'BUSINESS',\n      LegalRepresentativeFirstName: 'John',\n      LegalRepresentativeLastName: 'Doe',\n      LegalRepresentativeEmail: 'john_doe@mycompany.es',\n      HeadquartersAddress: 'Canal Street, Madrid, Spain',\n      LegalRepresentativeAdress: 'Canal Street, Madrid, Spain',\n      LegalRepresentativeBirthday: moment('300681', 'DDMMYY').unix(),\n      LegalRepresentativeCountryOfResidence: 'ES',\n      LegalRepresentativeNationality: 'ES',\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nFetch legal user: \n  \n```js\n    mango.user.fetchLegal({\n      Id: \"123456789\", // Required\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nList all cards belonging to a user: \n  \n```js\n    mango.user.cards({\n      UserId: \"123456789\", // Required\n    }, function(err, cards, res){\n        console.log('err', err);\n        console.log('cards', cards);\n        console.log('res', res.statusCode);\n    });\n```\n\nList all wallets belonging to a user: \n  \n```js\n    mango.user.wallets({\n      UserId: \"123456789\", // Required\n    }, function(err, wallets, res){\n        console.log('err', err);\n        console.log('wallets', wallets);\n        console.log('res', res.statusCode);\n    });\n```\n\nList all transactions belonging to a user: \n  \n```js\n    mango.user.transactions({\n      UserId: \"123456789\", // Required\n    }, function(err, transactions, res){\n        console.log('err', err);\n        console.log('transactions', transactions);\n        console.log('res', res.statusCode);\n    });\n```\n\nList all bank accounts linked to a user: \n  \n```js\n    mango.user.banks({\n      UserId: \"123456789\", // Required\n    }, function(err, bankaccounts, res){\n        console.log('err', err);\n        console.log('bankaccounts', bankaccounts);\n        console.log('res', res.statusCode);\n    });\n```\n\n* wallet\n\nCreate wallet for a user:\n\n```js\n    mango.wallet.create({\n        Owners: [\"1167492\"], // Required\n        Description: \"A very cool wallet\", // Required, default: 'wallet'\n        Currency: \"EUR\", // Required, default: 'EUR'\n        Tag: \"your custom tag\"\n    }, function(err, wallet, res){\n        console.log('err', err);\n        console.log('wallet', wallet);\n        console.log('res', res.statusCode);\n    });\n```\n\nFetch wallet by id:\n\n```js\n    mango.wallet.fetch({\n        Id: \"1167492\", // Required\n    }, function(err, wallet, res){\n        console.log('err', err);\n        console.log('wallet', wallet);\n        console.log('res', res.statusCode);\n    });\n```\n\nTransfer e-money from a wallet to another wallet:\n\n```js\n    mango.wallet.transfer({\n        AuthorId : \"1167495\", // Required\n        DebitedFunds: {Currency : \"EUR\", Amount : 1000}, // Required\n        Fees : {Currency : \"EUR\", Amount : 100}, // Required, default 'EUR' and 0 \n        DebitedWalletID : \"1167496\", // Required (Where the funds are held before the transfer)\n        CreditedWalletID : \"1167504\", // Required (Where the funds will be held after the transfer)\n        CreditedUserId : \"1167502\",\n        Tag : \"DefaultTag\"\n    }, function(err, transfer, res){\n        console.log('err', err);\n        console.log('transfer', transfer);\n        console.log('res', res.statusCode);\n    });\n```\n\nFor a complete list of available parameters check [http://docs.mangopay.com/api-references/transfers/](http://docs.mangopay.com/api-references/transfers/)\n\nFetch transfer:\n\n```js\n    mango.wallet.fetchTransfer({\n        Id: \"1167492\", // Required\n    }, function(err, transfer, res){\n        console.log('err', err);\n        console.log('transfer', transfer);\n        console.log('res', res.statusCode);\n    });\n```\n\nFetch all transactions for a given wallet: \n  \n```js\n    mango.wallet.transactions({\n      Id: \"123456789\", // Required\n    }, function(err, transaction, res){\n        console.log('err', err);\n        console.log('transaction', transcation);\n        console.log('res', res.statusCode);\n    });\n```\n\nCreate refund:\n\n```js\n    mango.wallet.createRefund({         \n        Id: \"1122477\",        // Required (The ID of the Transfer)  \n        AuthorId: \"1167492\",  // Required (The user ID of the Transfer transaction’s author)    \n    }, function(err, refund, res){\n        console.log('err', err);\n        console.log('refund', refund);\n        console.log('res', res.statusCode);\n    })\n``` \n\nFetch refund:\n\n```js\n    mango.wallet.fetchRefund({         \n        Id: \"1348477\",        // Required (The ID of the Refund)  \n    }, function(err, refund, res){\n        console.log('err', err);\n        console.log('refund', refund);\n        console.log('res', res.statusCode);\n    })\n``` \n\n* card\n\nRegister a card:\n\n```js\n    mango.card.create({ \n      UserId: '2565355',\n      CardNumber: '4970100000000154',\n      CardExpirationDate: '0216',\n      CardCvx: '123',\n    }, function(err, card, res){\n      err;\t\n      card; // mango card object \n      res; // raw 'http' response object => res.statusCode === 200\n    })\n```\n\nInit two-step card registration process:\n\n```js\n    mango.card.initRegistration({ \n      UserId: '2565355',\n      Currency: \"EUR\"\n    }, function(err, registration, res){\n      err;  \n      registration; // mango registration object \n      res; // raw 'http' response object => res.statusCode === 200\n    })\n```\n\nFetch a registered card:\n\n```js\n    mango.card.fetch({ \n      Id: '2565355', // Required\n    }, function(err, card, res){\n        console.log('err', err);\n        console.log('card', card);\n        console.log('res', res.statusCode);\n    })\n```\n\nUpdate a registered card: \n\nThe only editable parameter is `Active`, that can be switched from true to false and this action is irreversible.\n  \n```js\n    mango.card.update({\n      Id: \"2565355\", // Required\n    }, function(err, card, res){\n        console.log('err', err);\n        console.log('card', card);\n        console.log('res', res.statusCode);\n    });\n```\n\n* bank\n\nRegister a bank account for a user:\n\n```js\n    mango.bank.create({ \n        OwnerName: \"Victor Hugo\",           // Required\n        UserId: \"1345678\",                  // Required\n        Type: \"IBAN\",                       // Required, Default: 'IBAN'\n        OwnerAddress: \"1 rue des Misérables\", // Required\n        IBAN: \"FR3020041010124530725S03383\", // Required\n        BIC: \"CRLYFRPP\"                     // Required\n    }, function(err, bankaccount, res){\n        console.log('err', err);\n        console.log('bankaccount', bankaccount);\n        console.log('res', res.statusCode);\n    })\n```\n\nGet a bank account:\n\n```js\n    mango.bank.fetch({ \n      UserId: '2565355', // Required\n      BankId: '1234566', // Required\n    }, function(err, bankaccount, res){\n        console.log('err', err);\n        console.log('bankaccount', bankaccount);\n        console.log('res', res.statusCode);\n    })\n```\n\nWithdraw money from a wallet to a bank account:\n\n```js\n    mango.bank.wire({ \n        AuthorId:\"12567875\",        // Required\n        DebitedWalletId:\"12449234\", // Required\n        DebitedFunds:{              // Required\n            Currency:\"EUR\",\n            Amount:\"1000\"\n        },\n        Fees:{                      // Required, Default: 'EUR', 0\n            Currency:\"EUR\",\n            Amount:\"100\"\n        },\n        BankAccountId:\"12449209\",  // Required\n        BIC: \"CRLYFRPP\"            // Required\n    }, function(err, wire, res){\n        console.log('err', err);\n        console.log('wire', wire);\n        console.log('res', res.statusCode);\n    })\n```\n\nGet wire:\n\n```js\n    mango.bank.fetchWire({ \n      Id: '2565355', // Required\n    }, function(err, wire, res){\n        console.log('err', err);\n        console.log('wire', wire);\n        console.log('res', res.statusCode);\n    })\n```\n\nUpdate a registered bank account: \n\nThe only editable parameter is `Active`, that can be switched from true to false and this action is irreversible.\n  \n```js\n    mango.bank.update({\n      Id: \"2565355\", // Required\n    }, function(err, bank, res){\n        console.log('err', err);\n        console.log('bank', bank);\n        console.log('res', res.statusCode);\n    });\n```\n\n* author\n  * `create(params)`\n\n* document\n  * `create(params)`\n  * `createWithFile(params)`\n  * `addFile(params)`\n  * `fetch(params)`\n  * `update(params)`\n  \n* payin\n\nCreate a direct payin by tokenized card:\n\n```js\n    mango.payin.createByToken({         \n        AuthorId: \"1167492\",        // Required (The user ID of the Payin transaction’s author)\n        CreditedUserId : \"1167502\", // Required (The ID of the owner of the credited wallet)\n        DebitedFunds: {             // Required\n              Currency: \"EUR\",\n              Amount: 10000\n        },\n        Fees: {               // Required\n              Currency: \"EUR\",\n              Amount: 100\n        },\n        CreditedWalletId: \"1167810\",  // Required (The ID of the credited wallet)\n        CardId: \"1262419\",            // Required\n        SecureMode:\"DEFAULT\",\n        SecureModeReturnURL:\"https://www.mysite.com\",\n        Tag: \"payin\" // Required\n\n    }, function(err, payin, res){\n        console.log('err', err);\n        console.log('payin', payin);\n        console.log('res', res.statusCode);\n    })\n```\n\nCreate a direct payin by card:\n\n```js\n    mango.payin.createByCard({         \n        AuthorId: \"1167492\",        // Required (The user ID of the Payin transaction’s author)\n        CreditedUserId : \"1167502\", // Required (The ID of the owner of the credited wallet)\n        DebitedFunds: {             // Required\n              Currency: \"EUR\",\n              Amount: 10000\n        },\n        DeclaredFees: {               // Required\n              Currency: \"EUR\",\n              Amount: 100\n        },\n        CreditedWalletId: \"1167810\",  // Required (The ID of the credited wallet)\n        ReturnURL:\"https://www.mysite.com\",\n        Culture: \"nl\",\n        CardType: \"IDEAL\",            // Required\n        Tag: \"payin\" // Required\n  \n    }, function(err, payin, res){\n        console.log('err', err);\n        console.log('payin', payin);\n        console.log('res', res.statusCode);\n    })\n```\n\nFetch payin:\n\n```js\n    mango.payin.fetch({         \n        Id: \"1122477\",        // Required (The ID of the Payin)        \n    }, function(err, payin, res){\n        console.log('err', err);\n        console.log('payin', payin);\n        console.log('res', res.statusCode);\n    })\n```\n\nCreate refund:\n\n```js\n    mango.payin.createRefund({         \n        Id: \"1122477\",        // Required (The ID of the Payin)  \n        AuthorId: \"1167492\",  // Required (The user ID of the Payin transaction’s author)    \n    }, function(err, refund, res){\n        console.log('err', err);\n        console.log('refund', refund);\n        console.log('res', res.statusCode);\n    })\n``` \n\nFetch refund:\n\n```js\n    mango.payin.fetchRefund({         \n        Id: \"1348477\",        // Required (The ID of the Refund)  \n    }, function(err, refund, res){\n        console.log('err', err);\n        console.log('refund', refund);\n        console.log('res', res.statusCode);\n    })\n``` \n\n* hook\n\nCreate a hook:\n\n```js\n    mango.hook.create({         \n        Url: \"https://my_notifications_end_point.com\", // Required \n        EventType: \"PAYIN_NORMAL_SUCCEDED\",  // Required\n        Tag: \"hook\"\n\n    }, function(err, hook, res){\n        console.log('err', err);\n        console.log('hook', hook);\n        console.log('res', res.statusCode);\n    })\n```\n\nList all hooks:\n\n```js\n    mango.hook.list(function(err, hooks, res){\n        console.log('err', err);\n        console.log('hooks', hooks);\n        console.log('res', res.statusCode);\n    })\n```\n\nFetch hook:\n\n```js\n    mango.hook.fetch({         \n        Id: \"12345678\"\n    }, function(err, hook, res){\n        console.log('err', err);\n        console.log('hook', hook);\n        console.log('res', res.statusCode);\n    })\n```\n\nupdate hook:\n\n```js\n    mango.hook.update({         \n        Id: \"12345678\",\n        Status: \"DISABLED\"\n    }, function(err, hook, res){\n        console.log('err', err);\n        console.log('hook', hook);\n        console.log('res', res.statusCode);\n    })\n```\n\n### Idempotency support\n\nTo leverage Mangopay's idempotency support, you can specify an `$idempotencyKey` parameter:\n\n```js\n    mango.user.update({\n      Id: \"123456789\",\n      $idempotencyKey: \"a_valid_idempotency_key\"\n      // all the fields to be updated\n    }, function(err, user, res){\n        console.log('err', err);\n        console.log('user', user);\n        console.log('res', res.statusCode);\n    });\n```\n\nNote that the idempotency key must be between 16 and 36 characters and contain only alphanumeric characters or dashes.\n\n### Test\n\n`npm test`  \ndon't forget to provide credentials in `test/__credentials.json`\n\n### Todos\n \n * oauth implementation\n * user methods only works for \"Natural Users\"\n * exhaustive api methods\n * ...\n \n","maintainers":[{"name":"codeback","email":"info@codeback.es"},{"name":"godspeedelbow","email":"eelke@peerby.com"},{"name":"larafale","email":"as1cron@gmail.com"},{"name":"spacemonkey","email":"mitch@spacemonkeylabs.com"}],"time":{"modified":"2022-06-19T15:46:11.376Z","created":"2014-06-15T13:45:14.349Z","0.0.1":"2014-06-15T13:45:16.945Z","0.0.2":"2014-06-15T15:34:50.268Z","0.0.3":"2014-06-15T17:33:47.655Z","0.0.4":"2014-08-29T15:46:03.283Z","0.0.5":"2014-11-03T14:03:41.096Z","0.0.6":"2014-11-06T16:37:47.571Z","0.0.7":"2014-11-11T14:00:06.403Z","0.0.8":"2014-12-01T13:40:50.090Z","0.0.9":"2015-01-12T17:16:36.163Z","0.0.10":"2015-01-15T08:47:21.156Z","0.0.11":"2015-01-19T17:45:01.078Z","0.0.12":"2015-02-03T18:36:39.242Z","0.0.14":"2015-03-30T19:21:57.925Z","0.0.15":"2015-09-07T08:29:30.520Z","0.0.16":"2015-12-18T09:12:21.387Z","1.0.0":"2016-03-08T12:03:53.019Z","1.1.0":"2016-08-03T17:47:58.325Z","1.2.0":"2016-09-29T14:15:04.840Z","1.3.0":"2016-09-29T14:22:15.852Z"},"readmeFilename":"README.md","homepage":"https://github.com/larafale/mangopay","repository":{"type":"git","url":"git://github.com/larafale/mangopay.git"},"author":{"name":"Louis Grellet @Larafale","email":"as1cron@gmail.com"},"bugs":{"url":"https://github.com/larafale/mangopay/issues"}}