{"_id":"@atlaspay/atlas-pay-connect","_rev":"8-aeaf3445300a3e77c63b4af100e50d67","name":"@atlaspay/atlas-pay-connect","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.0":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.0","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"a6eea04513914084f7aa877c95f66a5ae32e6b72","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.0","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-+vNfSfT1hk83dbLwL8dhS4ZoooGghfMXE1gC2PuflzLX5Uml1thzDbsydy+AFe+gO9kmGGrtc5pTCvTR5fVaAw==","shasum":"ad3817c26dccb66845210dd4d145da2f002fff18","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.0.tgz","fileCount":46,"unpackedSize":67803,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFv9xruK3DazHgyXMCS3ndmNizIkGyUP5WGMiQxx4vz6AiEAt6ncCfWE1ibqho3iq0YL3E+pPwWc80rOmZF5wAGMNA0="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.0_1696095057188_0.7942383895709253"},"_hasShrinkwrap":false},"0.1.1":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.1","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"5c33223584fe2f03f360a73d370ccd95e1fc7ea2","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.1","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-T/skufWykIkK1vZerBCwBw0tONsWzY3xOirbs1ABvD2ph4rpnULLnjwm3h6boCGuix/UNswKbDkoibe+yoI22g==","shasum":"c385b8e9c59b8894c8c797ae55f357172f614133","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.1.tgz","fileCount":46,"unpackedSize":67709,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmoNa9bso0fTN1Ycny8J2MyHWEaMf5chSU7VzQNFwb8AIgRkKUxYSzaKDdiUCqhEtHatNlbmAYkDePP5FshqC3vfY="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.1_1696251583361_0.42807325375761307"},"_hasShrinkwrap":false},"0.1.2":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.2","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","publish":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"bc0f7ce82c2affc1a014ea68631a26e2e61830b9","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.2","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-FXmGlIKyvRiv8jQJLMjU2desgHXwuo1m31T8nV4en8QGCK8Nbt2660ajjoqJcACrAjJ+nPBKY8ZwuvtdXK8DNQ==","shasum":"5eb144cf67af3b3e002d1737eed02339e55128b3","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.2.tgz","fileCount":46,"unpackedSize":67718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7ZHwK0xwPtDlVRYskEteN0HuGPAGmsp3TtJxZ9SjsaAIgBumkyaQ7qp5Clk2yZqBZwfjyWrBe9KHUfPasz97QLnU="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.2_1696252659787_0.7290130353620055"},"_hasShrinkwrap":false},"0.1.3":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.3","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","publish":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"3a47d32cee85708f1f4307b208cb59af840e70b3","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.3","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-AelVBLWQqYpMaPnvKl1u/FtpxEA1OEmgLMaS+ECAf+lJvzirda/7orDs1oAXNM6tZNDQDgba+IZmk41jc5cBAQ==","shasum":"7de3fec23ee52d362e4073685c24958f34049a16","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.3.tgz","fileCount":46,"unpackedSize":67718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEknJ8RnHNrvkWcO+lyyW4olfhmX7RppwTBMaaJQYgJLAiEAwGxRq6oybjQcni/mMS+DoxmDgkoOsxBfUyP2Ty15COw="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.3_1696252712588_0.28375022749358303"},"_hasShrinkwrap":false},"0.1.4":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.4","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","publish":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"3a47d32cee85708f1f4307b208cb59af840e70b3","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.4","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-mfRMHrcvj7XWU3kAuKE6ymoGK0qbIcxVNFQ+Xfsyn/BKza+5574SdTbipHV/QRj4JdFrXrP81kWSk3cP91oHUQ==","shasum":"61cfc7f00a62652c8e31e4e22f31822d18b445a5","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.4.tgz","fileCount":46,"unpackedSize":67718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICOLUnKDcpjHoh8ecEIJjj5gBBfO2p7KpYgYekeBlrSOAiEAjThQZYIcbBaweYpx4CkiPMpsqMflK9MYZmUWtK1tXLk="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.4_1696252967025_0.03011288578568294"},"_hasShrinkwrap":false},"0.1.5":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.5","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","pub":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"3a47d32cee85708f1f4307b208cb59af840e70b3","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.5","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-KQVibQVAsD5xFwpQEqdQHGC4/5wi2gSdMlsn9NbKJVS2uxXvYu2HjiQVN5P43X3UPYajpuzwUqSfTLYrw04v0A==","shasum":"1952660337bfbfccd90f6e6ae58b96aa876c7317","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.5.tgz","fileCount":46,"unpackedSize":67714,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCDnEuCIcjTi89kevtvKQtMBivA2XP3acq9MfRKSJ+cgIgE95V9tTl+luFQtcdIUT0r45oOP0gAGVF3nf3L2uhIPE="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.5_1696253021241_0.4832087492882571"},"_hasShrinkwrap":false},"0.1.6":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.6","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","pub":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"7381166a32355c2400cb781ab946b5fafc70438a","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.6","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-7egZHyuyPYUfyPuFNCEU7xsBTOBTBAIyj4CSNl5A/IC3V8zg3BCpN7hHcdMHKtp2YYSr3xqhMTm0cwJ+Y+xyKA==","shasum":"e758c4fda8b9679ea79bb61f81ccc592b67da12f","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.6.tgz","fileCount":46,"unpackedSize":67811,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAY4yh33nIXFSGtT/K8IxljkI+SO+7rnCAr7vOJ387OaAiEAwf6XSfV871/jy62IPbH1d28HDfRbhn9EeyfSRny8E+E="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.6_1696450766055_0.9181385607432329"},"_hasShrinkwrap":false},"0.1.7":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.7","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","pub":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"3218aaeae2431a6b5597a6914fb107084dbd2f0a","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.7","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-foHDTkB15hKb+0j9KgeH+CpwxB2gBX+894Cq6s7jtWZNG35fU09MV+va+b0Nn5EZzQvcmVfid1j0SL6WOy3Q0Q==","shasum":"984aaba503446eaf1f89f24e02fdbae8c20b6ad5","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.7.tgz","fileCount":46,"unpackedSize":67809,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGxTnwqEUvmNSf1+GVO6cxyAvaY3yXW8QrV82XlrsxFAiEAsBYMRsxg8GeHIHepNWwRala7oJaGU+Vyl5RLMHULZ7g="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.7_1696585416896_0.9093235756202849"},"_hasShrinkwrap":false},"0.1.8":{"name":"@atlaspay/atlas-pay-connect","version":"0.1.8","description":"A library to connect application to Atlas Pay","main":"dist/bundle.js","types":"dist/types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"gts lint","clean":"gts clean","compile":"tsc","fix":"gts fix","dev":"webpack --watch --mode development","build":"webpack --mode production","pub":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"author":"","license":"ISC","devDependencies":{"@types/node":"^14.11.2","dotenv-webpack":"^8.0.1","gts":"^3.1.1","ts-loader":"^9.4.4","ts-patch":"^3.0.2","tsc-watch":"^6.0.4","typescript":"^5.1.6","typescript-transform-paths":"^3.4.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"dependencies":{"axios":"^1.4.0"},"gitHead":"5aa091b1efa4d6a57156141262a9510cf2e5e609","bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"homepage":"https://github.com/AtlasPay/Atlas.js#readme","_id":"@atlaspay/atlas-pay-connect@0.1.8","_nodeVersion":"18.14.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-QbC0tEcKsKjYoRKvXGszLP2FJTy7S0m48KHwCGLy1FIzki9KC9RImjAui5vGdIDXF/1spdFHydQ9sqYzGi2KwA==","shasum":"5fd8e4b967a8994362e494273346dfb583c98b62","tarball":"https://registry.npmjs.org/@atlaspay/atlas-pay-connect/-/atlas-pay-connect-0.1.8.tgz","fileCount":45,"unpackedSize":68817,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeI2cntIS+KFkSybW62v+LZb/0tNpepsvOcjr6SHN41gIgDsb83faaROCioTDRa/0sU65feG9BQKGdpTPsTo2Asa0="}]},"_npmUser":{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},"directories":{},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlas-pay-connect_0.1.8_1698077265788_0.04074900158603989"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-30T17:30:57.108Z","0.1.0":"2023-09-30T17:30:57.426Z","modified":"2023-10-23T16:07:46.336Z","0.1.1":"2023-10-02T12:59:43.623Z","0.1.2":"2023-10-02T13:17:40.052Z","0.1.3":"2023-10-02T13:18:32.943Z","0.1.4":"2023-10-02T13:22:47.175Z","0.1.5":"2023-10-02T13:23:41.426Z","0.1.6":"2023-10-04T20:19:26.271Z","0.1.7":"2023-10-06T09:43:37.064Z","0.1.8":"2023-10-23T16:07:46.059Z"},"maintainers":[{"name":"kir-npm-user","email":"rrock-k@yandex.ru"},{"name":"clayminer","email":"clay.miner@gmail.com"}],"description":"A library to connect application to Atlas Pay","homepage":"https://github.com/AtlasPay/Atlas.js#readme","repository":{"type":"git","url":"git+https://github.com/AtlasPay/Atlas.js.git"},"bugs":{"url":"https://github.com/AtlasPay/Atlas.js/issues"},"license":"ISC","readme":"# Atlas.js\n\nA library for connecting your application to Atlas Pay.\n\n## Initializing Atlas\n\nBefore you can use the features provided by Atlas.js, you need to initialize it with your account ID from your `dashboard`. Here's how you can do it:\n\n```javascript\nimport Atlas from '@atlaspay/atlas-pay-connect'\n\n// Initialize Atlas\nAtlas.initializeAtlas({\n  accountId: 'your-account-id',\n})\n```\n\n## Accessing Features\n\nOnce Atlas.js is initialized, you can access its features using the following methods:\n\n```javascript\n// Access the Checkout feature\nconst checkout = Atlas.Checkout\n\n// Access the Products feature\nconst products = Atlas.Products\n\n// Access the Customer feature\nconst customer = Atlas.Customer\n```\n\n# Features\n\n## **Checkout**\n\n### `openIframe`\n\n```typescript\nopenIframe(productId: string): void\n```\n\nThis method opens a checkout iframe for the specified product. It appends an iframe to the document body, allowing customers to complete the payment process within the iframe.\n\n**Parameters:**\n\n- `productId` (string): The ID of the product for which the checkout iframe needs to be opened.\n\n```javascript\nconst checkout = Atlas.Checkout\n// Open a checkout iframe for a product\ncheckout.openIframe('product123')\n```\n\n### `open`\n\n```typescript\nopen(params: OpenParamsType): void\n```\n\nThis method opens the payment URL in the current window to initiate the checkout process. It redirects the user to the payment interface where they can complete the payment.\n\n**Parameters:**\n\n- `params` (OpenParamsType): An object containing the following properties:\n  - `productId` (string): The ID of the product to be checked out.\n  - `customerId` (string): The ID of the customer initiating the checkout.\n  - `callbackUrl` (string): The URL to which the user will be redirected after completing the payment.\n\n**Example:**\n\n```javascript\nconst checkout = Atlas.Checkout\n\n// Open the payment interface for a product\ncheckout.open({\n  productId: 'product123',\n  customerId: 'customer456',\n  callbackUrl: 'https://your-app.com/checkout-complete',\n})\n```\n\n### `payInvoice`\n\n**Parameters:**\n\n- `invoiceId` (string): The ID of the invoice to be paid.\n\n**Example:**\n\n```javascript\nconst checkout = Atlas.Checkout\n\n// Pay an invoice and get the order details\ncheckout.payInvoice({invoiceId: 'invoice789'}).then(order => {\n  console.log('Paid invoice:', order)\n})\n```\n\n### `createOrder`\n\n**Parameters:**\n\n- `subscriptionId` (string): The ID of the subscription associated with the order.\n- `customerId` (string): The ID of the customer placing the order.\n\n**Example:**\n\n```javascript\nconst checkout = Atlas.Checkout\n\n// Create an order and get the order details\ncheckout\n  .createOrder({\n    subscriptionId: 'sub123',\n    customerId: 'customer456',\n  })\n  .then(order => {\n    console.log('Created order:', order)\n  })\n```\n\n## **Products**\n\nThe `Products` module provides methods for retrieving customer-related product information configured in the `dashboard`.\n\n### `getCustomerProducts`\n\n```typescript\ngetCustomerProducts(email: string): Promise<Product[]>\n```\n\nThis method retrieves products associated with a customer based on their email address.\n\n**Parameters:**\n\n- `email` (string): The email address of the customer.\n\n**Returns:**\n\nA promise that resolves to an array of `Product` objects.\n\n**Example:**\n\n```javascript\nconst products = Atlas.Products\n\n// Retrieve products associated with a customer\nproducts.getCustomerProducts('customer@example.com').then(productList => {\n  console.log('Customer products:', productList)\n})\n```\n\n### `getCustomerProduct`\n\n```typescript\ngetCustomerProduct(productId: string): Promise<ProductWithSubscriptions>\n```\n\nThis method retrieves detailed information about a specific product, including its associated subscriptions.\n\n**Parameters:**\n\n- `productId` (string): The ID of the product.\n\n**Returns:**\n\nA promise that resolves to a `ProductWithSubscriptions` object.\n\n**Example:**\n\n```javascript\nconst products = Atlas.Products\n\n// Retrieve detailed information about a product\nproducts.getCustomerProduct('product123').then(productDetails => {\n  console.log('Product details:', productDetails)\n})\n```\n\n## Customer\n\n### createCustomer\n\n```typescript\ncreateCustomer(email: string): Promise<CreateCustomerResponse>\n```\n\nThis method allows you to create a new customer by providing their email address. It returns a promise that resolves to a `CreateCustomerResponse` object containing customer details.\n\n**Parameters:**\n\n- `email` (string): The email address of the customer.\n\n**Returns:**\n\nA promise that resolves to a `CreateCustomerResponse` object.\n\n**Example:**\n\n```javascript\nconst customer = Atlas.Customer\n\n// Create a new customer\ncustomer.createCustomer('customer@example.com').then(response => {\n  console.log('Created customer:', response.data)\n})\n```\n\n### getBalance\n\n```typescript\ngetBalance(id: string): Promise<BalanceType>\n```\n\nThis method retrieves the balance information for a specific customer based on their ID. It returns a promise that resolves to a `BalanceType` object containing balance details.\n\n**Parameters:**\n\n- `id` (string): The ID of the customer.\n\n**Returns:**\n\nA promise that resolves to a `BalanceType` object.\n\n**Example:**\n\n```javascript\nconst customer = Atlas.Customer\n\n// Get balance information for a customer\ncustomer.getBalance('customer123').then(balanceInfo => {\n  console.log('Customer balance:', balanceInfo)\n})\n```\n\n### createTopUpInvoice\n\n```typescript\ncreateTopUpInvoice({ customerId, amount }: {\n   customerId: string, amount: number\n}): Promise<{data: TopUpInvoice}>\n```\n\nThe `createTopUpInvoice` method allows you to create a balance top-up invoice for a specific customer. This invoice is used to add funds to the customer's balance.\n\n**Parameters:**\n\n- `customerId` (string): The ID of the customer for whom you want to create the invoice.\n- `amount` (number): The amount you want to add to the customer's balance.\n\n**Returns:**\n\nA promise that resolves to a followin object:\n\n```typescript\ntype ReturnedType = {data: TopUpInvoice}\n\n// where TopUpInvoice is:\ntype TopUpInvoice = {\n  id: string\n  status: string\n  date: string\n  type: string | null\n  preimage: string | null\n  r_hash: string | null\n  payment_request: string | null\n  orderId: string | null\n  customerId: string | null\n  createdAt: string\n  updatedAt: string\n}\n```\n\n**Example:**\n\n```javascript\nconst customer = Atlas.Customer\n\n// Create a balance top-up invoice\ncustomer\n  .createTopUpInvoice({\n    customerId: 'customer123',\n    amount: 100.0, // Specify the amount to top up\n  })\n  .then(response => {\n    console.log('Created top-up invoice:', response.data)\n  })\n```\n\n### markTopUpInvoiceAsCompleted\n\n```typescript\nmarkTopUpInvoiceAsCompleted({invoiceId}: {invoiceId: string}): Promise<void>\n```\n\nThe markTopUpInvoiceAsCompleted method allows you to mark a balance top-up invoice as completed. Once an invoice is marked as completed, the backend is notified that the invoice has been paid\n\n**Parameters:**\n\n- `invoiceId` (string): The ID of the invoice you want to mark as completed.\n\n**Returns:**\n\nA void promise\n\n**Example:**\n\n```javascript\nconst customer = Atlas.Customer\n\n// Mark a balance top-up invoice as completed\ncustomer\n  .markTopUpInvoiceAsCompleted({\n    invoiceId: 'invoice123', // Specify the invoice ID to mark as completed\n  })\n  .then(() => {\n    console.log('Top-up invoice marked as completed')\n  })\n```\n","readmeFilename":"README.md"}