{"_id":"@candioto/nestjs-asaas","_rev":"5-59edfc660978d54c7e7cd072a8cbfbf3","name":"@candioto/nestjs-asaas","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@candioto/nestjs-asaas","version":"0.1.0","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"author":{"name":"Gustavo Candioto"},"license":"ISC","_id":"@candioto/nestjs-asaas@0.1.0","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"dist":{"shasum":"9b35a5e0a2a8fb5da70859f0292b1bd46bb96e00","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.1.0.tgz","fileCount":20,"integrity":"sha512-GMLAbDo4qIZsMQ5Ne6BBj7TsKDdqIETlPY/rd27ZI/+rgcZk6xmi3Y8wjAoEDHC4QivUapaPX88SdH+j4CQPng==","signatures":[{"sig":"MEUCIQDCqL1MTWqtcZOPy1W8ew0PksktuL+Gaaz8TDdDBGEcnAIgNmavYgnvbfyBvbms8frEwdp5Qj003PDtzOnOZxIJPbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21412},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0039799488febd8071d2ffd301c9c015485d9ae0","scripts":{"test":"jest","build":"tsc","prepare":"husky","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","test:watch":"jest --watch","publish:npm":"npm publish --access public"},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"repository":{"url":"git+https://github.com/gustavocandioto/nestjs-asaas.git","type":"git"},"_npmVersion":"10.5.0","description":"Unofficial Asaas Payment Gateway NestJS module","directories":{},"_nodeVersion":"20.11.0","dependencies":{"asaas":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.0.11","eslint":"^8.57.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.12","@types/node":"^20.11.27","@jest/globals":"^29.7.0","@commitlint/cli":"^19.1.0","@nestjs/testing":"^10.3.3","@typescript-eslint/parser":"^7.2.0","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-asaas_0.1.0_1710533422120_0.621925952135916","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@candioto/nestjs-asaas","version":"0.1.1","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"author":{"name":"Gustavo Candioto"},"license":"ISC","_id":"@candioto/nestjs-asaas@0.1.1","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"dist":{"shasum":"6871a0dd88e557e89dce945e8fdfae72768c0a1a","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.1.1.tgz","fileCount":20,"integrity":"sha512-/BLN9qqmxXP+424ISwee+FrpG92druMluRVoFWazyEPwdkgpATowrFzQl+2onv/bbf0nfoJr+nid3rRbF57qiw==","signatures":[{"sig":"MEUCIQC5yuYYrYCwIASd3Iya51shM+j/KLYBZtX6nL8bOqtfcAIgYeISsn/DRFbdlYhO9h+JrkcamAHZzIalW164b7L9t7g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21414},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9466abb6941b53042d3a6d27704319f6c460c992","scripts":{"test":"jest","build":"tsc","prepare":"husky","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","test:watch":"jest --watch","publish:npm":"npm publish --access public"},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"repository":{"url":"git+https://github.com/gustavocandioto/nestjs-asaas.git","type":"git"},"_npmVersion":"10.5.0","description":"Unofficial Asaas Payment Gateway NestJS module","directories":{},"_nodeVersion":"20.11.0","dependencies":{"asaas":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.0.11","eslint":"^8.57.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.12","@types/node":"^20.11.27","@jest/globals":"^29.7.0","@commitlint/cli":"^19.1.0","@nestjs/testing":"^10.3.3","@typescript-eslint/parser":"^7.2.0","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-asaas_0.1.1_1710975431782_0.9835333178145194","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@candioto/nestjs-asaas","version":"0.2.0","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"author":{"name":"Gustavo Candioto"},"license":"ISC","_id":"@candioto/nestjs-asaas@0.2.0","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"dist":{"shasum":"e55a6a8a1eaf360cf71561ebc8e8da6b199e844b","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.2.0.tgz","fileCount":3,"integrity":"sha512-n4K9EQCv1uxqghTC8JipTdUPP8UwzWMx/GBSPmMxKXNpHgGDUo+jR60Nnux/m0zSmeVQ0s3ZezELazD1LU1iYg==","signatures":[{"sig":"MEYCIQCIvtRvGkPtGy6u5STh+Fqdba9FikQDsneoshWBXbsqLQIhANJbENb4t7f9r960jUUC4lG5aOxGVm024qzi2H9cMzNg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6588},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"067ae8c778769b649191168ade48d5c2b14747eb","scripts":{"test":"jest","build":"tsc","prepare":"husky","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","test:watch":"jest --watch","publish:npm":"npm publish --access public"},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"repository":{"url":"git+https://github.com/gustavocandioto/nestjs-asaas.git","type":"git"},"_npmVersion":"6.14.16","description":"Unofficial Asaas Payment Gateway NestJS module","directories":{},"_nodeVersion":"20.11.0","dependencies":{"asaas":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.0.11","eslint":"^8.57.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.12","@types/node":"^20.11.27","@jest/globals":"^29.7.0","@commitlint/cli":"^19.1.0","@nestjs/testing":"^10.3.3","@typescript-eslint/parser":"^7.2.0","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"@nestjs/common":"^9.0.0 || ^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-asaas_0.2.0_1721686058619_0.7229821383110469","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@candioto/nestjs-asaas","version":"0.2.1","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"author":{"name":"Gustavo Candioto"},"license":"ISC","_id":"@candioto/nestjs-asaas@0.2.1","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"dist":{"shasum":"6e70948c9c13487068580b8db573fbdd5650c2b0","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.2.1.tgz","fileCount":3,"integrity":"sha512-ajV6t7AS5O/26L8VD4V/mtC7vMCDUx8tmfB53uwm3IRaprswVE9P+KFNHlArh8ckLzLqA8J3JaPSuID/5nuHAA==","signatures":[{"sig":"MEUCIQDrF/B03ZI6Q3skQu8KQWWq7plOb+KkKMszhtFZHkU0kAIgR5xn/U6yIKRGdIJzO5KGExjhLuUg1MLnpAiDYfC7voM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6588},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"361792663774fad16b7908b3024f2252cbd75e09","scripts":{"test":"jest","build":"tsc","prepare":"husky","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","test:watch":"jest --watch","publish:npm":"npm publish --access public"},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"repository":{"url":"git+https://github.com/gustavocandioto/nestjs-asaas.git","type":"git"},"_npmVersion":"6.14.16","description":"Unofficial Asaas Payment Gateway NestJS module","directories":{},"_nodeVersion":"20.11.0","dependencies":{"asaas":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.0.11","eslint":"^8.57.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.12","@types/node":"^20.11.27","@jest/globals":"^29.7.0","@commitlint/cli":"^19.1.0","@nestjs/testing":"^10.3.3","@typescript-eslint/parser":"^7.2.0","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"@nestjs/common":"^9.0.0 || ^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-asaas_0.2.1_1721687359496_0.36898933029051717","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"@candioto/nestjs-asaas","version":"0.2.2","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"author":{"name":"Gustavo Candioto"},"license":"ISC","_id":"@candioto/nestjs-asaas@0.2.2","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"dist":{"shasum":"c93523b221a875b955f2aee42b504f5491414d83","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.2.2.tgz","fileCount":22,"integrity":"sha512-Vg7Ft5godLV9QCrOQvmJowwKgDA0mZfrzQQiDh+YLMNge/VK53Ed5et/5ivrMC5Lb49BUfFb9SLTlR2ivtr6KQ==","signatures":[{"sig":"MEUCIE8N/Li/g4BpR4cKM38Ith/XYOBGGbmm2bDHiXjLum/VAiEAngOnUqKlWRpR0AGDuffkqsx+eLZrq+akeFgw+yljv0I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23762},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"187bf5f6e865ba33f814cb19b25f32f175d0f41d","scripts":{"test":"jest","build":"tsc","prepare":"husky","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","test:watch":"jest --watch","publish:npm":"npm publish --access public"},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"repository":{"url":"git+https://github.com/gustavocandioto/nestjs-asaas.git","type":"git"},"_npmVersion":"6.14.16","description":"Unofficial Asaas Payment Gateway NestJS module","directories":{},"_nodeVersion":"20.11.0","dependencies":{"asaas":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.0.11","eslint":"^8.57.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.12","@types/node":"^20.11.27","@jest/globals":"^29.7.0","@commitlint/cli":"^19.1.0","@nestjs/testing":"^10.3.3","@typescript-eslint/parser":"^7.2.0","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"@nestjs/common":"^9.0.0 || ^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-asaas_0.2.2_1721687602946_0.17453905169611073","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@candioto/nestjs-asaas","version":"0.4.0","description":"Unofficial Asaas Payment Gateway NestJS module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prebuild":"rimraf dist","build":"tsc","publish:npm":"npm publish --access public","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"echo 'No e2e tests implemented yet.'","prepare":"husky"},"repository":{"type":"git","url":"git+https://github.com/gustavocandioto/nestjs-asaas.git"},"keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"peerDependencies":{"@nestjs/common":"^8.0.0 || ^9.0.0 || ^10.0.0","@nestjs/core":"^8.0.0 || ^9.0.0 || ^10.0.0"},"author":{"name":"Gustavo Candioto"},"license":"ISC","devDependencies":{"@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@jest/globals":"^29.7.0","@nestjs/common":"^10.3.10","@nestjs/core":"^10.3.10","@nestjs/testing":"^10.3.10","@types/jest":"^29.5.12","@types/node":"^20.14.11","@typescript-eslint/eslint-plugin":"^7.17.0","@typescript-eslint/parser":"^7.17.0","eslint":"^8.57.0","husky":"^9.1.1","jest":"^29.7.0","prettier":"^3.3.3","reflect-metadata":"^0.2.2","rxjs":"^7.8.1","ts-jest":"^29.2.3","ts-node":"^10.9.2","typescript":"^5.5.4"},"dependencies":{"asaas":"^1.0.9"},"gitHead":"547ede9b48f8df096f7cf93a3872d8389b97fd51","bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","_id":"@candioto/nestjs-asaas@0.4.0","_nodeVersion":"20.11.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-7CWaaHSAV0lnK2qajG9moByXoc+6Xwy9s7dNsbz3PIh3b61sEdwNEszZjaBxWKn4COS1fSGckqvJx9hadmKi1g==","shasum":"6737356be7a594a78781622669e96182fad54281","tarball":"https://registry.npmjs.org/@candioto/nestjs-asaas/-/nestjs-asaas-0.4.0.tgz","fileCount":22,"unpackedSize":23947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnDWuhQiQnPerPCy5Rh9BjWI06/KdyrkxqkTvqW/Z+0AiBshrJGM+68izBCsHJcIV6aAr0EwYM1aa/kVC6IbDsfqg=="}]},"_npmUser":{"name":"gucandioto","email":"gcandioto@gmail.com"},"directories":{},"maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-asaas_0.4.0_1721776809799_0.5794181968752172"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-15T20:10:21.932Z","modified":"2024-07-23T23:20:10.135Z","0.1.0":"2024-03-15T20:10:22.302Z","0.1.1":"2024-03-20T22:57:11.912Z","0.2.0":"2024-07-22T22:07:38.797Z","0.2.1":"2024-07-22T22:29:19.655Z","0.2.2":"2024-07-22T22:33:23.189Z","0.4.0":"2024-07-23T23:20:09.958Z"},"bugs":{"url":"https://github.com/gustavocandioto/nestjs-asaas/issues"},"author":{"name":"Gustavo Candioto"},"license":"ISC","homepage":"https://github.com/gustavocandioto/nestjs-asaas#readme","keywords":["asaas","asaas nestjs","asaas sdk","payment gateway sdk"],"repository":{"type":"git","url":"git+https://github.com/gustavocandioto/nestjs-asaas.git"},"description":"Unofficial Asaas Payment Gateway NestJS module","maintainers":[{"name":"gucandioto","email":"gcandioto@gmail.com"}],"readme":"[![npm version](http://img.shields.io/npm/v/@candioto/nestjs-asaas.svg?style=flat)](https://npmjs.org/package/@candioto/nestjs-asaas \"View this project on npm\")\n[![ISC license](http://img.shields.io/badge/license-ISC-brightgreen.svg)](http://opensource.org/licenses/ISC)\n\n# Unofficial Asaas Payment Gateway NestJS module\n### ❗Module and documentation under development.\n\nA simple NestJS module that uses [Eduardo Bernardo's sdk](https://github.com/eduardobernardo/asaas) behind the scenes.\nIt makes easier to setup and integrate Asaas to a NestJS application.\n\n## Instalation\n\n```bash\nnpm install --save @candioto/nestjs-asaas\n```\n\n## Getting Started\n\nTo setup the module with your credentials, import the module into `app.module.ts`:\n\n```typescript\nimport { Module } from '@nestjs-common';\nimport { AsaasModule } from '@candioto/nestjs-asaas';\n\n@Module({\n  imports: [\n    AsaasModule.forRoot({\n      apiKey: 'my_api_key',\n      sandbox: false,\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\nOr your can use the async way:\n\n```typescript\nimport { Module } from '@nestjs-common';\nimport { AsaasModule } from '@candioto/nestjs-asaas';\nimport { ConfigModule, ConfigService } from '@nestjs/nestjs-config';\n\n@Module({\n  imports: [\n    AsaasModule.forRootAsync({\n      imports: [ConfigModule],\n      useFactory: async (config: ConfigService) => ({\n        apiKey: config.get('ASAAS_API_KEY'),\n        sandbox: config.get('ASAAS_SANDBOX'),\n      }),\n      inject: [ConfigService],\n    })\n  ]\n})\nexport class AppModule {}\n```\n\nTo use into your code, just inject the Asaas Client using the custom decorator:\n\n```typescript\nimport { Injectable } from '@nestjs/common';\nimport { InjectAsaas, AsaasService } from '@candioto/nestjs-asaas';\n\n@Injectable()\nexport class AppService {\n  public constructor(@InjectAsaas() private readonly asaas: AsaasService) {}\n}\n```\n\nNow, you can use all the Asaas client just like in [Eduardo Bernardo's sdk](https://github.com/eduardobernardo/asaas).\nFor example:\n```typescript\nimport { Injectable } from '@nestjs/common';\nimport { InjectAsaas, AsaasService } from '@candioto/nestjs-asaas';\n\n@Injectable()\nexport class AppService {\n  public constructor(@InjectAsaas() private readonly asaas: AsaasService) {}\n\n  async createCustomer(customerData: any) {\n    // Your logic here\n    await this.asaas.customers.new(customerData);\n    // Your logic continues here\n  }\n\n  async pay(paymentData: any) {\n    // Your logic here\n    await this.asaas.payments.create(paymentData);\n    // Your logic continues here\n  }\n}\n```\n\nSee the [sdk docs](https://github.com/eduardobernardo/asaas/tree/main?tab=readme-ov-file#sdk-documentation) and [Asaas official documentation](https://docs.asaas.com) to learn more about the integration\n\n## Author\n- [Gustavo Candioto](https://github.com/gustavocandioto)\n\n## Contributing\n\nI would greatly appreciate any contributions to make this project better. Please\nmake sure to follow the below guidelines before getting your hands dirty.\n\n1. Fork the repository\n2. Create your branch (`git checkout -b my-branch`)\n3. Commit any changes to your branch\n4. Push your changes to your remote branch\n5. Open a pull request\n<!-- \n## License\n\nDistributed under the MIT License. See `LICENSE` for more information. -->\n\n## Acknowledgements\n\n- [nestjs](https://nestjs.com)\n- [Eduardo Bernardo](https://github.com/eduardobernardo)","readmeFilename":"README.md"}