Skip to content

feat: integrated whatsapp features#226

Open
SOUVIK-D10 wants to merge 3 commits into
rdodiya:gssoc_developfrom
SOUVIK-D10:feature/whatsapp-notifications
Open

feat: integrated whatsapp features#226
SOUVIK-D10 wants to merge 3 commits into
rdodiya:gssoc_developfrom
SOUVIK-D10:feature/whatsapp-notifications

Conversation

@SOUVIK-D10
Copy link
Copy Markdown
Contributor

Issue Link

Closes #27

Changes Made

  • Added WhatsApp module with
    ->A generic interface WhatsappService
    -> it's abstract WhatsServiceImpl that contains the pre-implemented code for sending notifications
    -> WhatsappOrderNotification Interface and its Impl for handling the payload creation part (this is the part that is to be modified and adjusted for specific needs of template)
  • Refactored Order service and it's impl : Changed return type of cancleOrder to OrderResponse for easier WhatsApp integration
  • Refactored Order Controller : integrated WhatsappOrderNotificationService in update, create and cancel methods

More Details on WhatsApp features(important)

  1. Meta has strict policies on templates and messaging so it is recommended to create templates and app with proper business registrations. More over the test apps with unverified business may not send messages from the given test number.
  2. The WhatsApp Order Notifications are designed to be Asynchronous in nature so they should be able to handle multiple requests. So even if WhatsApp is down or Meta rises any policy issue the backend still processes the request

Type of Change

  • [ Y ] New feature :- WhatsApp Module
  • [ X ] Bug fix
  • [ X ] Documentation update
  • [ Y ] Code refactor :- Integrated WhatsApp Module with OrderController

Backend Testing

  • [Y] API endpoints tested locally with Postman/curl

Functionality

  • Any Order NON GET interaction automatically triggers whatsapp notification with customer's phone number

Additional Notes

  • Unverified business cannot send messages from test app and can only mock them
  • Adding better more whatsapp services like support and all.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Comment thread RestroHub/src/main/resources/application.properties Outdated
@SOUVIK-D10
Copy link
Copy Markdown
Contributor Author

Implemented suggested changes
Handled customer name and phone number issues directly in controller saving the calls to whatsapp service

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/GSSoC '26] Implementation of Automated WhatsApp Notification Service

3 participants