Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.9/policy/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.9/policy/paymentPlan.js

/**
 * @swagger
 * components:
 *   schemas:
 *     PaymentPlan:
 *       type: object
 *       properties:
 *         plan_type:
 *           type: string
 *         due_date:
 *           type: string
 *         deposit_amount:
 *           type: string
 *         down_payment_percentage:
 *           type: string
 *         no_of_payments:
 *           type: string
 *         no_of_month_between_payment:
 *           type: string
 *         installment_fee:
 *           type: string
 *         installment_percentage:
 *           type: string
 *         amount_collected_by_agent:
 *           type: string
 *         method_of_payment:
 *           type: string
 *         payment_currency:
 *           type: string
 *         next_term_payment_plan_type:
 *           type: string
 *         required_deposit_amount:
 *           type: string
 *         return_premium_mailed:
 *           type: string
 *         return_premium_payee:
 *           type: string
 *         policy_id:
 *           type: string
 *           format: objectId
 *       example:
 *         plan_type: "Monthly"
 *         due_date: "2024-12-31"
 *         deposit_amount: "500"
 *         down_payment_percentage: "10"
 *         no_of_payments: "12"
 *         no_of_month_between_payment: "1"
 *         installment_fee: "50"
 *         installment_percentage: "5"
 *         amount_collected_by_agent: "200"
 *         method_of_payment: "Credit Card"
 *         payment_currency: "USD"
 *         next_term_payment_plan_type: "Annual"
 *         required_deposit_amount: "1000"
 *         return_premium_mailed: "Yes"
 *         return_premium_payee: "Policyholder"
 *         policy_id: "605c72ef8f1b2e478c5e841e"
 */
/**
 * @swagger
 * /payment-plan/list:
 *   get:
 *     summary: Returns the list of payment plans
 *     tags: [PaymentPlan]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: policy_id
 *         schema:
 *           type: string
 *         required: true
 *         description: ID of the policy
 *     responses:
 *       200:
 *         description: The list of payment plans
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/PaymentPlan'
 */

/**
 * @swagger
 * /payment-plan/add:
 *   post:
 *     summary: Create a new payment plan entry
 *     tags: [PaymentPlan]
 *     security:
 *       - bearerAuth: []
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/PaymentPlan'
 *     responses:
 *       201:
 *         description: The payment plan entry was successfully created
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/PaymentPlan'
 */

/**
 * @swagger
 * /payment-plan/edit/{id}:
 *   put:
 *     summary: Update the payment plan entry by ID
 *     tags: [PaymentPlan]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the payment plan entry
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/PaymentPlan'
 *     responses:
 *       200:
 *         description: The payment plan entry was successfully updated
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/UpdateResponse'
 */

/**
 * @swagger
 * /payment-plan/delete/{id}:
 *   delete:
 *     summary: Delete the payment plan entry by ID
 *     tags: [PaymentPlan]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the payment plan entry
 *     responses:
 *       200:
 *         description: The payment plan entry was successfully deleted
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/DeleteResponse'
 */
"use strict";

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists