const express = require('express');
const router = express.Router();
const ctrl = require('../controllers/paymentsController');
const rechargePlans = require('../controllers/rechargePlansController');
//const mailctrl = require('../controllers/paymentEmailController');
//const authorize = require('../../busapi/middleware/auth.js');
//const jwtAuthorization = require('../../busapi/middleware/jwtAuthorization.js');

// Main BBPS endpoint
// router.post('/retrieve-billerId', ctrl.retrieveBillerId);
// router.post('/retrieve-operator', authorize, ctrl.retrieveOperator);
// router.post("/retrieve-biller-alert", authorize, ctrl.retrieveBillerAlert);
// router.post("/retrieve-recharge-plan", authorize, ctrl.retrieveRechargePlans);
// router.post('/generate-biller', authorize,  ctrl.generateBillerFile);
// router.post('/get-biller', authorize, ctrl.getBillerFile);
router.post('/validate-payment', ctrl.validatePayment);
router.post('/get-recharge-plans', rechargePlans.getRechargePlans);
// router.post('/retrieve-complaintId', authorize, ctrl.retrieveComplaintById);
// router.post('/operator-seriesid', authorize, ctrl.operatorSeriesId);
// router.post('/operator-serieslist', authorize, ctrl.operatorSeriesList);
router.post('/make-payment', ctrl.makePayment);
// router.post('/list-payments', ctrl.listPayments);
// router.post('/retrieve-payments', authorize, ctrl.retrievePayments);
// router.post('/send-payment-email', authorize, mailctrl.sendPaymentEmail);


module.exports = router;