Skip to content

Commit

Permalink
Add JSDoc comments for createPayPalOrder function
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 1, 2025
1 parent 30e19a1 commit 16d9b6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/src/controllers/paypalController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import Booking from '../models/Booking'
import User from '../models/User'
import * as bookingController from './bookingController'

/**
* Create PayPal order.
*
* @async
* @param {Request} req
* @param {Response} res
* @returns {unknown}
*/
export const createPayPalOrder = async (req: Request, res: Response) => {
try {
const { bookingId, amount, currency, name }: movininTypes.CreatePayPalOrderPayload = req.body
Expand Down

0 comments on commit 16d9b6f

Please sign in to comment.