# ayoopo-test-library

> ayoopo-test-library

Latest version **1.0.2** (published 2021-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ayoopo-test-library
pnpm add ayoopo-test-library
yarn add ayoopo-test-library
bun add ayoopo-test-library
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-04-19 |
| First published | 2021-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 62.4 KB |
| Known vulnerabilities | 0 (+8 in 4 direct dependencies) |
| Install scripts | no |
| Author | Satyam Singh |
| Maintainers | satyamobifyi |
| Keywords | ayoopo, ayoopo-nestjs |

## Links

- npm: https://www.npmjs.com/package/ayoopo-test-library
- Repository: https://github.com/flexm-sg/ffp-ayopop-nestjs
- Homepage: https://github.com/flexm-sg/ffp-ayopop-nestjs#readme
- Issues: https://github.com/flexm-sg/ffp-ayopop-nestjs/issues
- npm.io page: https://npm.io/package/ayoopo-test-library

## Dependencies (13)

- [rxjs](https://npm.io/package/rxjs.md) ^6.5.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [envalid](https://npm.io/package/envalid.md) ^6.0.1
- [express](https://npm.io/package/express.md) ~4.17.1
- [typescript](https://npm.io/package/typescript.md) ^3.6.4
- [@nestjs/core](https://npm.io/package/@nestjs/core.md) ^7.4.4
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [ua-parser-js](https://npm.io/package/ua-parser-js.md) ^0.7.19
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^7.4.4
- [request-context](https://npm.io/package/request-context.md) ~2.0.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ~0.1.13
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.13
- [@nestjs/platform-express](https://npm.io/package/@nestjs/platform-express.md) ^7.4.4

## Recent versions

- 1.0.2 (latest) — 2021-04-19
- 1.0.1 — 2021-04-19
- 1.0.0 — 2021-04-07

## README

### How To Use Ventaja Library

 - IMPORT Ventaja Module In AppModule
```typescript
    import {Module} from "@nestjs/common";
    import {AyoopoModule} from "ventaja-nest-library";
    @Module({
        imports: [
            AyoopoModule.forRoot({
                certificatePath: "./private.key",
                ventajaUrl: "https://demo.ventaja.com/",
                id: "131191912345",
                uid: "compiler",
                pwd: "password@1234",
                countryCode: "IN"
            })],
        providers: [AppService],
        controllers: [AppController]
})
export class AppModule {
}
```

 - IMPORT Ventaja Service in AppService

```typescript
import {HttpService, Injectable, InternalServerErrorException} from "@nestjs/common";
import {ConfigService} from "./config.service";
import {VentajaService} from "ventaja-nest-library";

@Injectable()
export class WalletService {

    constructor(
        private readonly configService: ConfigService,
        private readonly httpService: HttpService,
        private readonly ventajaService: VentajaService
        ) {
    } // End of constructor

    public async getBalance(): Promise<any> {

        try {
            const balanceInfo = await this.ventajaService.getBalance();
            // Add your business logic here
            return balanceInfo;
        } catch (error) {
            return error
        }
    }
}
```

| Ventaja Functions | Category | purpose |
| ----------------- | :------- | : ----- |
| getBalance        | Bill Payments | returns balance info |
| validateTopUpWallet | Bill Payments | validates data  |
| topUpWalletProcess  | Bill Payments | process top up wallet  |
| topUpTransactionInquiry | Bill Payments | top up transaction inquiry  |
| processReservationDetail | Bill Payments | reservation detail |
| validateReservationPaymentDetail | Bill Payments | validate reservation details data |
| processReservationPayment | Bill Payments | process reservation payment |
| reservationPaymentEnquiry | Bill Payments | reservation payment inquiry |
| pullTransactionDetails | Bill Payments | pull transaction details |
| validateBilling | Bill Payments | validate billing data |
| processBilling | Bill Payments | process billing data |


@ <i>Credits Flexm

---
_Source: https://npm.io/package/ayoopo-test-library · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
