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

Implement Hosting Account Management #71

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jul 27, 2024

Purpose

This pull request introduces a new feature to the billing system - the ability to manage hosting accounts for customers. This includes creating, suspending, unsuspending, and upgrading hosting accounts, as well as integrating the hosting account management with the billing system.

Description

The changes in this pull request include:

  1. New Model: Added a new HostingAccount model to represent a customer's hosting account, with fields such as customer_id, subscription_id, control_panel, username, domain, package, and status.
  2. New Migration: Created a new migration to set up the hosting_accounts table in the database.
  3. New Service: Introduced a HostingService class to handle the integration with different control panel APIs (cPanel, Plesk, DirectAdmin) for creating, suspending, unsuspending, and upgrading hosting accounts.
  4. Integration with Billing: Updated the BillingService to ensure that a customer's hosting account is active when their subscription is paid, and suspended when their subscription is overdue.
  5. Filament Resource: Created a new Filament resource for managing hosting accounts, allowing administrators to view, create, edit, and delete hosting accounts.

Summary

The key changes in this pull request are:

  • app/Models/HostingAccount.php: New model for hosting accounts
  • database/migrations/2023_05_25_000000_create_hosting_accounts_table.php: New migration for hosting accounts table
  • app/Services/HostingService.php: New service for managing hosting accounts
  • app/Services/BillingService.php: Updated to integrate hosting account management
  • app/Filament/Resources/HostingAccountResource.php: New Filament resource for hosting accounts

Suggested changes from Sweep Chat by @curtisdelicata. Continue chatting at https://sweep-chat-demo.vercel.app/c/bc7ca094-43d9-4553-b134-e57c9094f817.

@curtisdelicata curtisdelicata merged commit ffac5fb into main Jul 27, 2024
1 of 4 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