Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 | 1x 1x 1x 1x 1x 1x | import { baseRequest, number, string } from "./utils" // Payments export const paymentReq = baseRequest({ description: "paymentID should get from stripe. (web app integrated with stipe using their auth token). save this details in DB under current user.", required: ["amountPaid", "leadUID", 'paymentID'], properties: { amountPaid: number, leadUID: string, paymentID: string } }) export const stripeVerificationReq = baseRequest({ description: "", required: ["id", "leadUID"], properties: { id: string, leadUID: string } }) export const promoReq = baseRequest({ description: "use valid promo code to skip the payment", required: ["code", "leadUID"], properties: { code: string, leadUID: string } }) // Response export const getMyPaymentsRes = baseRequest({ description: "users payments list", properties: {} }) export const getPaymentsByIDRes = baseRequest({ description: "Payments detail by id parsing in query", properties: {} }) |