├── .gitignore ├── CONTRIBUTING.md ├── DOCS.md ├── LICENSE ├── README.md ├── index.ts ├── jest.config.js ├── package.json ├── src ├── clients │ └── HttpClient │ │ ├── errors │ │ └── index.ts │ │ ├── index.ts │ │ └── interfaces │ │ └── index.ts ├── index.ts ├── providers │ ├── AsaasProvider │ │ ├── consts │ │ │ └── index.ts │ │ ├── errors │ │ │ ├── AsaasProviderError.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── interfaces │ │ │ └── index.ts │ ├── MercadoPagoProvider │ │ ├── consts │ │ │ └── index.ts │ │ ├── errors │ │ │ ├── MercadoPagoProviderError.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── interfaces │ │ │ └── index.ts │ └── index.ts └── shared │ ├── errors │ ├── InvalidProvider.ts │ ├── MethodNotImplemented.ts │ ├── MissingApiKey.ts │ └── index.ts │ ├── getFormattedDateNow.ts │ └── interfaces │ └── index.ts ├── tests ├── asaas.provider.test.ts ├── easypix.test.ts └── mercadopago.provider.test.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /DOCS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/DOCS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/README.md -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/index.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/package.json -------------------------------------------------------------------------------- /src/clients/HttpClient/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/clients/HttpClient/errors/index.ts -------------------------------------------------------------------------------- /src/clients/HttpClient/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/clients/HttpClient/index.ts -------------------------------------------------------------------------------- /src/clients/HttpClient/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/clients/HttpClient/interfaces/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/providers/AsaasProvider/consts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/AsaasProvider/consts/index.ts -------------------------------------------------------------------------------- /src/providers/AsaasProvider/errors/AsaasProviderError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/AsaasProvider/errors/AsaasProviderError.ts -------------------------------------------------------------------------------- /src/providers/AsaasProvider/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/AsaasProvider/errors/index.ts -------------------------------------------------------------------------------- /src/providers/AsaasProvider/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/AsaasProvider/index.ts -------------------------------------------------------------------------------- /src/providers/AsaasProvider/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/AsaasProvider/interfaces/index.ts -------------------------------------------------------------------------------- /src/providers/MercadoPagoProvider/consts/index.ts: -------------------------------------------------------------------------------- 1 | export const MERCADO_PAGO_BASE_URL = "https://api.mercadopago.com/v1"; -------------------------------------------------------------------------------- /src/providers/MercadoPagoProvider/errors/MercadoPagoProviderError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/MercadoPagoProvider/errors/MercadoPagoProviderError.ts -------------------------------------------------------------------------------- /src/providers/MercadoPagoProvider/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/MercadoPagoProvider/errors/index.ts -------------------------------------------------------------------------------- /src/providers/MercadoPagoProvider/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/MercadoPagoProvider/index.ts -------------------------------------------------------------------------------- /src/providers/MercadoPagoProvider/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/MercadoPagoProvider/interfaces/index.ts -------------------------------------------------------------------------------- /src/providers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/providers/index.ts -------------------------------------------------------------------------------- /src/shared/errors/InvalidProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/errors/InvalidProvider.ts -------------------------------------------------------------------------------- /src/shared/errors/MethodNotImplemented.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/errors/MethodNotImplemented.ts -------------------------------------------------------------------------------- /src/shared/errors/MissingApiKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/errors/MissingApiKey.ts -------------------------------------------------------------------------------- /src/shared/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/errors/index.ts -------------------------------------------------------------------------------- /src/shared/getFormattedDateNow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/getFormattedDateNow.ts -------------------------------------------------------------------------------- /src/shared/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/src/shared/interfaces/index.ts -------------------------------------------------------------------------------- /tests/asaas.provider.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/tests/asaas.provider.test.ts -------------------------------------------------------------------------------- /tests/easypix.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/tests/easypix.test.ts -------------------------------------------------------------------------------- /tests/mercadopago.provider.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/tests/mercadopago.provider.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eletroswing/EasyPix/HEAD/tsconfig.json --------------------------------------------------------------------------------