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 SMS Notifications for Invoice Reminders #326

Merged

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 25, 2024

This pull request was created by Sweep to resolve the following request by @curtisdelicata:

Description: Integrate SMS notifications to remind customers of upcoming invoice due dates and encourage timely payments.
Tasks:
Implement SMS notification functionality.
Integrate with a reliable SMS gateway.
Ensure SMS reminders are sent based on invoice due dates.
Acceptance Criteria:
Customers receive SMS reminders for upcoming due dates.
SMS notifications are sent reliably and on time.

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:

  • A new SmsService for sending SMS messages using a configurable SMS API
  • Migration to add phone number and SMS notification preferences to the customers table
  • Extended BillingService to support SMS reminders for upcoming and overdue invoices
  • A new Artisan command SendInvoiceReminders to handle SMS reminder dispatching
  • Configuration updates to support SMS API integration

Key features:

  • Phone number formatting for international compatibility
  • Configurable SMS API settings via environment variables
  • Logging for SMS sending attempts
  • Optional SMS notifications per customer
  • Reminders for both upcoming and overdue invoices

Summary

  • Added app/Services/SmsService.php for SMS sending functionality
  • Created database/migrations/2024_01_20_000000_add_phone_number_to_customers_table.php
  • Updated app/Services/BillingService.php with SMS reminder methods
  • Added app/Console/Commands/SendInvoiceReminders.php for scheduled reminders
  • Modified config/services.php to include SMS configuration
  • Updated app/Console/Kernel.php to use new invoice reminder command

@curtisdelicata curtisdelicata merged commit 015edaf into main Dec 25, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant