{"_id":"@darkwolf/qiwi.lazy.cjs","_rev":"1-911e802d6a6ce9f3bf2ad1451122e222","name":"@darkwolf/qiwi.lazy.cjs","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@darkwolf/qiwi.lazy.cjs","version":"1.0.0","description":"QIWI API","main":"./lib/index.js","engines":{"node":">=10"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Darkwolf/node-qiwi.git"},"keywords":["darkwolf","dw","qiwi","lazy","cjs","api"],"author":{"name":"Pavel Wolf"},"license":"MIT","bugs":{"url":"https://github.com/Darkwolf/node-qiwi/issues"},"homepage":"https://github.com/Darkwolf/node-qiwi#readme","dependencies":{"@darkwolf/custom-error.cjs":"^1.0.1","@darkwolf/helper.cjs":"^1.0.6","@darkwolf/time.cjs":"^1.0.4","node-fetch":"^2.6.1"},"_id":"@darkwolf/qiwi.lazy.cjs@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bOL6PIhXZ3NcswIRF4od45CBPl0XDLYOyWxJn84ZTYYIW21x2zhwOBg1oZmYkGlTlRuk+at4pQ0okDKiyPhAXA==","shasum":"e6189b7c68716568a047b14a15b1a9e807e50b5f","tarball":"https://registry.npmjs.org/@darkwolf/qiwi.lazy.cjs/-/qiwi.lazy.cjs-1.0.0.tgz","fileCount":97,"unpackedSize":211507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6aRtCRA9TVsSAnZWagAAp6AP/3kcmkM2eM/GKQ8Ju+I1\nKe8cz1QY9Bq/W0rwTrByNwBAjrs82lZLnJ+y8H1HY4sk7BPAi/OVM1QjObi4\nVPkOvNhnltutR92sPIxJP4mF33lo2RFie9G/PoaFrAqm407n+J15GSeDW2T0\ngwpgWe9mtdRHKhJ/gZ6uoPFtMNdonvpY18aWJx8qeAYtiyv4jq7m6iCxxPiH\nUvXafJde3Qug1ens80T/nTd+a/1CHmMRK31eTPopAioioyjNrG+tt9pZmRQ0\n3k/b/N/hne6rV1xpRSvG7sWDW3Se/xjZCzv1s/e2/zfa9lRsB/NvlDgK7ED+\nF/Ei9u2xaxiaDJRrq0DzXZzD5C8XDyO9hPrAW+qczydM5i9vPk/P3ZaZZghb\nXfteGmUxumbvg7vpC3BRvS3N9VTMLhOI8/d+p9DJWqhLwlsTDW8av3dA5Igq\nwJIAXzNxdSlGfWpYY1tFRAprBiE+a5vEkrAGrtSB25BNpEDi2GIy1IX0pv9G\njkhd1h6UhFxySLaC3Xx9JTcGtJxWjhjCupwrY0wvLj5Re8yvKyvI+Q3Ep85G\nxiS3T8N7b127rJWsWCAKlWEWaE8bXNaRFiTiXk005r2XCxX9wOeNAwwJsdSY\nkMZcagpj3coVu16wzLRtFhW5q/BRRtI5FmNBYx81w/jnzocbnSau2E7Zy8yX\nbHu3\r\n=twf/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/v0cCy1j6OJdrmV4pm96PNeNJFKIzTuSFDXuo3DuzeAiEA0tKR83mMdK549ad7ileNAGWa09ini6Fasp5vTwJ0vtQ="}]},"_npmUser":{"name":"pavelwolfdark","email":"PavelWolfDark@gmail.com"},"directories":{},"maintainers":[{"name":"pavelwolfdark","email":"PavelWolfDark@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/qiwi.lazy.cjs_1.0.0_1609147500532_0.3404997035034265"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-28T09:25:00.363Z","1.0.0":"2020-12-28T09:25:00.696Z","modified":"2022-04-05T02:45:43.364Z"},"maintainers":[{"name":"pavelwolfdark","email":"PavelWolfDark@gmail.com"}],"description":"QIWI API","homepage":"https://github.com/Darkwolf/node-qiwi#readme","keywords":["darkwolf","dw","qiwi","lazy","cjs","api"],"repository":{"type":"git","url":"git+https://github.com/Darkwolf/node-qiwi.git"},"author":{"name":"Pavel Wolf"},"bugs":{"url":"https://github.com/Darkwolf/node-qiwi/issues"},"license":"MIT","readme":"# QIWI API\n## Install\n#### ECMAScript (Node.js v12.x LTS or higher)\n`npm i --save @darkwolf/qiwi.mjs`\n#### CommonJS (Node.js v10.x LTS or higher)\n`npm i --save @darkwolf/qiwi.cjs`\n#### Lazy Loading CommonJS (Node.js v10.x LTS or higher)\n`npm i --save @darkwolf/qiwi.lazy.cjs`\n## Using\n```javascript\n// ECMAScript\nimport QIWI from '@darkwolf/qiwi.mjs'\n\n// CommonJS\nconst QIWI = require('@darkwolf/qiwi.cjs')\n// Lazy Loading CommonJS\nconst QIWI = require('@darkwolf/qiwi.lazy.cjs')\n\nconst qiwi = new QIWI(token, {\n  phoneNumber // Some requests require a wallet phone number\n})\n\n// Handling events\nqiwi.on('request', request => {})\nqiwi.on('response', response => {})\nqiwi.on('error', error => {})\n\n// Getting account balance\nconst {balance} = await qiwi.getAccount('qw_wallet_rub')\n// Getting payments\nconst timestamp = new UnixTimestamp()\nconst {transactions} = await qiwi.getPayments({\n  type: 'incoming',\n  sources: ['qw_rub'],\n  startDate: timestamp.clone().subtract('90 days'),\n  endDate: timestamp,\n  limit: 50\n})\n// Sending payments\nconst paymentRequest = await qiwi.transferToQIWIWallet(phoneNumber, 5000, {\n  comment: 'Ave, Darkwolf!'\n})\n// Getting transactions\nconst transaction = await qiwi.getTransaction(transactionId)\nconst blob = await transaction.downloadCheque('application/pdf')\nawait transaction.sendChequeToEmail('PavelWolfDark@gmail.com')\n// Search for providers\nconst providers = await qiwi.searchProvider('сбер')\n```\n## [API Documentation](https://github.com/Darkwolf/node-qiwi/blob/master/docs/API.md)\n## Contact Me\n#### GitHub: [@PavelWolfDark](https://github.com/PavelWolfDark)\n#### Telegram: [@PavelWolfDark](https://t.me/PavelWolfDark)\n#### Email: [PavelWolfDark@gmail.com](mailto:PavelWolfDark@gmail.com)\n","readmeFilename":"README.md"}