├── .gitignore ├── LICENSE ├── README.md ├── docs └── logo.png ├── package.json ├── pnpm-lock.yaml ├── src ├── chapa.ts ├── enums │ ├── chapa-urls.enum.ts │ ├── index.ts │ └── split-type.enum.ts ├── http-exception.ts ├── index.ts ├── interfaces │ ├── chapa-options.interface.ts │ ├── create-subaccount.interface.ts │ ├── direct-charge.interface.ts │ ├── gen-tx-ref.interface.ts │ ├── get-banks.interface.ts │ ├── index.ts │ ├── payment.interface.ts │ ├── transaction.interface.ts │ └── transfer.interface.ts └── validations │ ├── create-subaccount.validation.ts │ ├── direct-charge.validation.ts │ ├── gen-tx-ref.validation.ts │ ├── index.ts │ ├── payment.validation.ts │ ├── transaction.validation.ts │ └── transfer.validation.ts ├── test └── sample.test.ts ├── tsconfig.json └── types └── global.d.ts /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | .DS_Store 3 | node_modules 4 | dist 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/docs/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/chapa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/chapa.ts -------------------------------------------------------------------------------- /src/enums/chapa-urls.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/enums/chapa-urls.enum.ts -------------------------------------------------------------------------------- /src/enums/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/enums/index.ts -------------------------------------------------------------------------------- /src/enums/split-type.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/enums/split-type.enum.ts -------------------------------------------------------------------------------- /src/http-exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/http-exception.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/chapa-options.interface.ts: -------------------------------------------------------------------------------- 1 | export interface ChapaOptions { 2 | secretKey: string; 3 | } 4 | -------------------------------------------------------------------------------- /src/interfaces/create-subaccount.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/create-subaccount.interface.ts -------------------------------------------------------------------------------- /src/interfaces/direct-charge.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/direct-charge.interface.ts -------------------------------------------------------------------------------- /src/interfaces/gen-tx-ref.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/gen-tx-ref.interface.ts -------------------------------------------------------------------------------- /src/interfaces/get-banks.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/get-banks.interface.ts -------------------------------------------------------------------------------- /src/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/index.ts -------------------------------------------------------------------------------- /src/interfaces/payment.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/payment.interface.ts -------------------------------------------------------------------------------- /src/interfaces/transaction.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/transaction.interface.ts -------------------------------------------------------------------------------- /src/interfaces/transfer.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/interfaces/transfer.interface.ts -------------------------------------------------------------------------------- /src/validations/create-subaccount.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/create-subaccount.validation.ts -------------------------------------------------------------------------------- /src/validations/direct-charge.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/direct-charge.validation.ts -------------------------------------------------------------------------------- /src/validations/gen-tx-ref.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/gen-tx-ref.validation.ts -------------------------------------------------------------------------------- /src/validations/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/index.ts -------------------------------------------------------------------------------- /src/validations/payment.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/payment.validation.ts -------------------------------------------------------------------------------- /src/validations/transaction.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/transaction.validation.ts -------------------------------------------------------------------------------- /src/validations/transfer.validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/src/validations/transfer.validation.ts -------------------------------------------------------------------------------- /test/sample.test.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chapa-Et/chapa-nodejs/HEAD/types/global.d.ts --------------------------------------------------------------------------------