{"_id":"billing","_rev":"13-52efa78cc9fdf0f750b6b26d63132609","name":"billing","description":"Billing Module Js","dist-tags":{"latest":"1.0.2","beta":"0.0.2","async":"1.0.0-alpha.1"},"versions":{"0.0.1":{"name":"billing","version":"0.0.1","description":"Billing Module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Alex Vangelov","email":"email@data.bg"},"license":"MIT","_id":"billing@0.0.1","dist":{"shasum":"1019350768426173818ad4ae1478d53bf4d9e12b","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.1.tgz","integrity":"sha512-y6cVS1MDIf4KcHkpJkOyukb1fCDQnJTC2vrQLfT9akPVI15DwlG2BeOasP7mrPBIvkX0F8syaNNVhT0FQS2xfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9IfvUzRhvClhp1lTcX+Sb5DYbVJcO1EJlK9IlMX+LtAiAHBgiYwXzpx4IUc6Yxld7ScCAO2QYqCX9CDjZMWg6WHA=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/billing-0.0.1.tgz_1455377722366_0.3629186481703073"}},"0.0.2":{"name":"billing","version":"0.0.2","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-typescript":"^2.0.1","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"lib/index","files":["lib/","dist/"],"gitHead":"64391a4af10558c634660a13792d4510b364718d","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.2","_shasum":"ce2fdfaf23079f60493128e3eefc5d339c53d28d","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"ce2fdfaf23079f60493128e3eefc5d339c53d28d","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.2.tgz","integrity":"sha512-p4yDVCoXcLVT+Z+ANTX2WZfQ9ON/Ua0rwG0f6X3BttCzQLK8IXzY/q7EyX9BYYG0WcXjMG1etO9KX8kurWwwrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpVZErw34xgZO022FGe81H4qsyJyKkANonuWMnNLSrSQIgD1WXyDDqxSEhel6D6qX8IkyjNamUXBvuuQuH6etji5E="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-0.0.2.tgz_1473009639664_0.13337081298232079"}},"0.0.3":{"name":"billing","version":"0.0.3","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-typescript":"^2.0.1","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"lib/index","files":["lib/","dist/"],"gitHead":"059343965a3bbd3ab0f7668c6300b05d44be857a","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.3","_shasum":"6429e458fd93bf8e44bc0f42b15fb7ece632262c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"6429e458fd93bf8e44bc0f42b15fb7ece632262c","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.3.tgz","integrity":"sha512-OVoA2qmI8taHtsZqESl705G/Ur7t6z5BbiRCwQfR0/Wn/CE2azkHcDBfF5tUSRl8VgJKZHIsa83Ybwljys2W6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmQ1dZRGVY2z9aIrUUNRRxv+pdhHokycWb1S5sjKGA7AIhAPpJraI4jmtL1HPDcA/CVT5+Tbk92ktvAJ0oLi1IDEFS"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-0.0.3.tgz_1473009833261_0.8192882174625993"}},"0.0.4":{"name":"billing","version":"0.0.4","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-typescript":"^2.0.1","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"lib/index","files":["lib/","dist/","samples/"],"gitHead":"1928e65c59811e24600d0b27732f9b34132a6d0d","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.4","_shasum":"b7f51bafebd77037af1b3a1f4f9c99c939e2f1e6","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"b7f51bafebd77037af1b3a1f4f9c99c939e2f1e6","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.4.tgz","integrity":"sha512-f6iQVzJFywKgDfLLtP882ng5Z5jliWYL2Q96CcWd63iN0jM+DL+4unY2h9gupSv0cwrGZiizSGsphc8wwk1Kww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKRzAnpoCVzWUrw0YCNlP8PHVdx0YqSAhiQZ9LQHvLNgIhAOuiE6UlJ5sCQ/N1kVXztrjnmlxlHZeVxOuT8KQJjYdm"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-0.0.4.tgz_1473097119904_0.571840169141069"}},"0.0.5":{"name":"billing","version":"0.0.5","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"a2d12a632fd6afd545c9c468491a88e183b14328","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.5","_shasum":"9c608d6d5923e7b717eff1854dd15149f40a342a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"9c608d6d5923e7b717eff1854dd15149f40a342a","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.5.tgz","integrity":"sha512-ZQFir7G6kmPPupSvq0e/92gh0tvFpIRtSrySCWKJeefCgQO0BR7lrLs1tXyaxNO1N5zEBvrGe0ZPKcPoQHl30g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFls7opWzxg8KseR7wiGOrq4qKQg+zHj2RQn0pIrggeFAiEAzZeGxBxWOVxcuU2IhPRSdHMzWfqZUabLx++kszqEKOE="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/billing-0.0.5.tgz_1475902491636_0.3830844284966588"}},"0.0.6":{"name":"billing","version":"0.0.6","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"ac32aaa8fc0c696df534a2ab2ed577067ee10a0d","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.6","_shasum":"36bb181177f4f3d034a71543d0cb92d1f1d50cdf","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"36bb181177f4f3d034a71543d0cb92d1f1d50cdf","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.6.tgz","integrity":"sha512-Psn0jE02iEjNeHgoLuGPD+0ZML4XoL6wOgqFjZ3UN6mWGo2Z80tXcoXSK8V/FWMXQuhO3r3UJKDI/ErYoO58aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBso15m5N8iXmT9Ey+apG6uq7YZeKMsZiPAVcaqWrwIjAiAmN6G6BjOI4WP1u/AzkH1qmHgfrbnVXro41hHXKqADew=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-0.0.6.tgz_1475992091186_0.8711171906907111"}},"0.0.7":{"name":"billing","version":"0.0.7","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-mocha-reporter":"^2.2.0","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"9762fc448e92d805094c710e2b43bfd6c381a067","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@0.0.7","_shasum":"4b0cd47bad447e6ac70c7025916a12db3d8d6d57","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"4b0cd47bad447e6ac70c7025916a12db3d8d6d57","tarball":"https://registry.npmjs.org/billing/-/billing-0.0.7.tgz","integrity":"sha512-B2VyJwTev8l00WE21aRGM3/1OscrQOKJAIJMQ50sU/N5kN84QQ+JNi8kl6Ly1pxxjxa9UZeJvS9dh73LFKNJFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMGtfYu+I/yJJtvAOgUvPTtJfZuKlVmNWwU0HocvtkjAiEAlpX0ySv6vaHkaDv4E2Ez7jI/5wKvuHIjpQCPnwN3kfU="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-0.0.7.tgz_1476644605770_0.4402829830069095"}},"1.0.0-alpha.1":{"name":"billing","version":"1.0.0-alpha.1","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack -p"},"devDependencies":{"@types/jasmine":"^2.2.31","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-mocha-reporter":"^2.2.0","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","ts-loader":"^0.8.2","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"4cf4b9de171d1b9cfcfb0d82fead91db6057ed74","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@1.0.0-alpha.1","_shasum":"f179de0553b30e82094aa19aae6b6fa75f741cae","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"f179de0553b30e82094aa19aae6b6fa75f741cae","tarball":"https://registry.npmjs.org/billing/-/billing-1.0.0-alpha.1.tgz","integrity":"sha512-5OPLT4MMvQqh/1u+rOfUjSTLTIhMUbLkJ2qvglhC/jS9nbAKdK5fFfQ+eAbRVNrjbqU1KHtWzI9BOtX8HZ0vUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwbRr8fNoR5T3KHM3eJF5Hu9aSj369VsNF1RUgJaGqWAiEAtyBWR7fS59KLZbWn61OE5aTYjDY41Az/XWzlwFN0iLU="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/billing-1.0.0-alpha.1.tgz_1477183732671_0.7750946469604969"}},"1.0.0":{"name":"billing","version":"1.0.0","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack --progress --profile --bail"},"devDependencies":{"awesome-typescript-loader":"^2.2.4","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-mocha-reporter":"^2.2.0","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"df9f8d349808bc597eccca3acf9d2201cc9170c1","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@1.0.0","_shasum":"96bdac9c67a4915a7e83526112fa35cb1b4be441","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"96bdac9c67a4915a7e83526112fa35cb1b4be441","tarball":"https://registry.npmjs.org/billing/-/billing-1.0.0.tgz","integrity":"sha512-ed9sM+3ZxFDf1YJfTURAzBdc67g98z2iwKIxOtu24Lg8WVNlsn2f4JJdhWk8Hei4VwL2l0DAwdUo45QAq8prpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsxT7G9WS3DW+in0MYEyKJ+4BXvJhQtVJKUHLZC7eC+AiEAyCJiM0gQd6LM5y0fm2mkh/tQi4rh9dCHbP4dKuHkYZg="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/billing-1.0.0.tgz_1477359860349_0.9423537822440267"}},"1.0.1":{"name":"billing","version":"1.0.1","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack --progress --profile --bail","sample-angular":"webpack-dev-server --content-base samples/browser/angular2/"},"devDependencies":{"awesome-typescript-loader":"^2.2.4","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-mocha-reporter":"^2.2.0","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2","webpack-dev-server":"^1.16.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"624b81286088cbed8d678abadefc193c862aedd5","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@1.0.1","_shasum":"ee04e56a210d639bc2640d4bfa505908a34b7719","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"ee04e56a210d639bc2640d4bfa505908a34b7719","tarball":"https://registry.npmjs.org/billing/-/billing-1.0.1.tgz","integrity":"sha512-h/eX1I3G3xAxtkYmDaYntYF+z/nrQkl4VUf4gEX7ucuCXHyEwwzLwDTyUcTYenB6gOgGQfysigDEZhfRBxYPsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5TiivPFIV4zEgtoVNWWBt0aS7oFHkuts/3qVKq4fjMQIhAMYEWbZtE4gXCw5/ECAc/FMuRrKOlrEWWKf6VRIPj8VT"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/billing-1.0.1.tgz_1477800118839_0.2608609744347632"}},"1.0.2":{"name":"billing","version":"1.0.2","description":"Billing Module Js","author":{"name":"AlexV"},"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"},"keywords":["billing"],"main":"lib/index.js","license":"MIT","scripts":{"start":"tsc -w","typings":"typings install","test":"karma start karma.conf.js","build":"tsc -d","dist":"webpack --progress --profile --bail","sample-angular":"webpack-dev-server --content-base samples/browser/angular2/"},"devDependencies":{"awesome-typescript-loader":"^2.2.4","istanbul":"^0.4.5","jasmine-core":"^2.4.1","karma":"^1.2.0","karma-cli":"^1.0.1","karma-jasmine":"^1.0.2","karma-mocha-reporter":"^2.2.0","karma-phantomjs-launcher":"^1.0.2","karma-typescript":"^2.0.5","source-map":"^0.5.6","typescript":"^2.0.0","typings":"^1.3.3","webpack":"^1.13.2","webpack-dev-server":"^1.16.2"},"typings":"./lib/index.d.ts","files":["lib/","dist/","samples/"],"gitHead":"d55896342fa45c9b219a604178e8192142afef87","homepage":"https://github.com/AlexVangelov/billing-js#readme","_id":"billing@1.0.2","_shasum":"210d39e0c1d2eff3fc2a3436101ba234e7eeebd6","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"alexv","email":"email@data.bg"},"maintainers":[{"name":"alexv","email":"email@data.bg"}],"dist":{"shasum":"210d39e0c1d2eff3fc2a3436101ba234e7eeebd6","tarball":"https://registry.npmjs.org/billing/-/billing-1.0.2.tgz","integrity":"sha512-7pQGnmbnXrLVegfpBqZQA2S11vfRa7UaVG//Ku2JH8LIK+NFop1qB4c3SHUmxwBsanS95uxBPsno3ZX+1YCrAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaDZFM4C+vkxhR/BRGOgtz1uCRJNVvrI7t5CA1gjvqoAiBuCR01U8bi6EBC99vrEAaq3v7tpXktbiFMxOxWcjUdnw=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/billing-1.0.2.tgz_1477800611694_0.9858181164599955"}}},"readme":"# billing\nBilling Module JS\n\n[![npm version](https://badge.fury.io/js/billing.svg)](https://badge.fury.io/js/billing)\n[![Build status](https://travis-ci.org/AlexVangelov/billing-js.svg)](https://travis-ci.org/AlexVangelov/billing-js)\n\n    npm install billing\n\n  * Implements base billing standart.\n  * Data binding frameworks friendly.\n  * Example: [BillingJs Demo (Angular2)](https://plnkr.co/n0srTG)\n\n## Usage\n\n### Right constructor  ([samples/node/rightConstructor.js](samples/node/rightConstructor.js))\n```javascript\nvar Bill = require('billing').BillingBill;\n\nvar bill = new Bill(); //new Bill\nbill.charges.new({ price: 1.2 }); //add charge\n\nvar charge = bill.charges.new({ qty: 2.5, price: 2.4}); //charge with quantity\ncharge.modify({ fixedValue: 1.5 }); //charge modifier\n\nbill.charges.new({ price: 3, modifier: { percentRatio: 0.5 } }); //charge with percent modifier\nbill.modifiers.new({ percentRatio: -0.1 }); //global modifier percent\nbill.payments.new({ value: 1 }); //partial payment\nbill.payments.new(); //pay the rest\n\n// validations\ncharge = bill.charges.new({ price: -2 });\ncharge.isValid; // -> false\ncharge.errors; // -> [{ price: { greaterThan: 'must be greater than 0' } }, { finalValue: { greaterThanOrEqualTo: 'must be greater than or equal to 0' } }]\nbill.isValid; // -> false\nbill.errors; // -> [{ charges: { invalid: 'are invalid' } }]\n```\n\n### Left constructor ([samples/node/leftConstructor.js](samples/node/leftConstructor.js))\n```javascript\nvar billing = require('billing');\n\nvar Bill = billing.BillingBill;\nvar Charge = billing.BillingCharge;\nvar Modifier = billing.BillingModifier;\nvar Payment = billing.BillingPayment;\n\nvar bill = new Bill();\nnew Charge({ bill: bill, price: 1.2 });\n\nvar charge = new Charge({ bill: bill, qty: 2.5, price: 2.4});\nnew Modifier({ charge: charge, fixedValue: 1.5 });\n\nnew Charge({ bill: bill, price: 3, modifier: { percentRatio: 0.5 } })\n\nnew Modifier({ bill: bill, percentRatio: -0.1 });\n\nnew Payment({ bill: bill, value: 1 });\nnew Payment({ bill: bill });\n```\n\n### Bill instance\n```javascript\nbill.charges    //Charge collection\nbill.modifiers  //Modifier collection\nbill.payments   //Payment collection\nbill.total    //The whole number or amount (charges and modifiers)\nbill.balance  //Bill remainder (total - payments)\nbill.toJson() //A JSON object (without circular references)\n```\n\n### Billing collections\n\n    <item> = <collection>.new(attributes = {})  //create\n    boolean  <collection>.add(item)             //add\n    boolean  <collection>.remove(item)          //destroy\n\n### Validations\n\n    boolean <item>.isValid  // check validity\n    <item>.errors   // errors format [{ propertyName: { validationName: 'Human readable error' }}]\n\n### Other\n\n    <item>.state // Unused instance variable available for UI purposes\n\n## Using the nomenclature ([samples/node/usingNomenclature.js](samples/node/usingNomenclature.js))\n```javascript\nvar billing = require('../../').Billing;\n\nbilling.config({\n  nomenclature: {\n    taxGroups: [\n      { id: 1, name: '20%', percentRatio: 0.2 },\n      { id: 2, name: '9%', percentRatio: 0.09 }\n    ],\n    departments: [\n      { id: 1, name: 'Food', taxGroupId: 1 },\n      { id: 2, name: 'Accommodation', taxGroupId: 2 }\n    ],\n    plus: [\n      { id: 1, name: 'Pizza', departmentId: 1, price: 20.5 },\n      { id: 2, name: 'Steak', departmentId: 1, price: 30.2 },\n      { id: 3, name: 'Room',  departmentId: 2, price: 200 }\n    ],\n    paymentTypes: [\n      { id: 1, name: 'Cash', isCash: true, isFiscal: true },\n      { id: 2, name: 'Card', isCash: false, isFiscal: true },\n      { id: 3, name: 'External', isCash: false, isFiscal: false }\n    ]\n  }\n});\n\nvar bill = billing.bills.new();\n\nbill.charges.new({ pluId: 1 }); // -> { qty: 1, price: 20.5, name: 'Pizza', taxRatio: 0.2 }\nbill.charges.new({ qty: 2, price: 150, departmentId: 2 });\nbill.payments.new({ paymentTypeId: 1 }); // -> { name: 'Cash', value: 20.5, isCash: true, isFiscal: true }\n\nbill.toJson(); // -> { \n//   charges:                                                                                                                   \n//    [ { qty: 1, price: 20.5, name: 'Pizza', taxRatio: 0.2 },                                                                  \n//      { qty: 2, price: 150, name: 'Accommodation', taxRatio: 0.09 } ],                                                        \n//   payments: [ { name: 'Cash', value: 320.5, isCash: true, isFiscal: true } ] }\n```\n\n## Build\n\n    `npm run build` - Generate node library. (<project>/lib/*)\n    `npm run dist`  - Generate browser library. (<project>/dist/billing.js)\n    `npm test`      - Run unit tests.\n","maintainers":[{"name":"alexv","email":"email@data.bg"}],"time":{"modified":"2022-06-13T04:37:08.921Z","created":"2016-02-13T15:35:26.423Z","0.0.1":"2016-02-13T15:35:26.423Z","0.0.2":"2016-09-04T17:20:41.664Z","0.0.3":"2016-09-04T17:23:55.255Z","0.0.4":"2016-09-05T17:38:41.569Z","0.0.5":"2016-10-08T04:54:52.180Z","0.0.6":"2016-10-09T05:48:12.759Z","0.0.7":"2016-10-16T19:03:27.658Z","1.0.0-alpha.1":"2016-10-23T00:48:54.703Z","1.0.0":"2016-10-25T01:44:22.054Z","1.0.1":"2016-10-30T04:01:59.672Z","1.0.2":"2016-10-30T04:10:12.668Z"},"author":{"name":"AlexV"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/AlexVangelov/billing-js#readme","keywords":["billing"],"repository":{"type":"git","url":"git+https://github.com/AlexVangelov/billing-js.git"},"bugs":{"url":"https://github.com/AlexVangelov/billing-js/issues"}}