Add SMS Notifications for Invoice Reminders #326
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request was created by Sweep to resolve the following request by @curtisdelicata:
Continue chatting at https://sweep-chat-demo.vercel.app/c/4c5a1b98-9b30-4aba-892c-4375c5a7abd3.
Purpose
Enhance customer communication by implementing SMS notifications for invoice reminders, providing customers with timely alerts about upcoming and overdue invoices.
Description
This pull request introduces a comprehensive SMS notification system for billing-related communications. The implementation includes:
SmsService
for sending SMS messages using a configurable SMS APIBillingService
to support SMS reminders for upcoming and overdue invoicesSendInvoiceReminders
to handle SMS reminder dispatchingKey features:
Summary
app/Services/SmsService.php
for SMS sending functionalitydatabase/migrations/2024_01_20_000000_add_phone_number_to_customers_table.php
app/Services/BillingService.php
with SMS reminder methodsapp/Console/Commands/SendInvoiceReminders.php
for scheduled remindersconfig/services.php
to include SMS configurationapp/Console/Kernel.php
to use new invoice reminder command