Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Loyalty and rewards APIs #997

Merged
merged 3 commits into from
Nov 10, 2024

Conversation

haseebzaki-07
Copy link
Contributor

@haseebzaki-07 haseebzaki-07 commented Nov 10, 2024

Pull Request

Title

Loyalty Program and Rewards APIs

fixes #985

Description

Points and Rewards System: Design a system to accumulate points per rental, redeemable for discounts or perks.
Referral Tracking and Rewarding: Enable referral tracking for rewarding users who bring new customers.
Loyalty and Tiered Discounts: Provide loyalty-based pricing tiers and discounts for repeat customers.

// 1. Accumulate Points on Rental
router.post("/rentals/:rentalId/complete", accumulatePoints);

// 2. Redeem Points for Rewards
router.post("/redeem", redeem);

// 3. Referral Tracking and Points Award
router.post("/referral", referral);

// 4. Get User Points and Rewards
router.get("/points-rewards", pointRewards );

//5.Loaylty Middleware for users creating the rentals.

Related Issues

Checklist

  • I have tested the changes locally
  • Documentation has been updated (if necessary)
  • Changes are backward-compatible

Copy link

vercel bot commented Nov 10, 2024

Deployment failed with the following error:

Resource is limited - try again in 9 minutes (more than 100, code: "api-deployments-free-per-day").

Copy link
Contributor

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@manikumarreddyu manikumarreddyu merged commit 836ec31 into manikumarreddyu:main Nov 10, 2024
1 of 2 checks passed
Copy link
Contributor

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: . Loyalty Program and Rewards APIs
2 participants