Refactor order payment process and enhance invoice details
- Updated `payOrder` method in `OrderControllerRefactor` to accept `orderNum` instead of `id` for better clarity and functionality. - Implemented `findByOrderNum` method in `OrderRepository` to retrieve orders based on order number and customer ID. - Enhanced `InvoiceDetailResource` to include VMware details and removed unnecessary fields. - Added `service_plan_id` to `ProductResource` and updated the `Product` model to establish a relationship with `ServicePlan`. - Created `ServicePlan` and `ServicePlanPlesk` models along with their respective controllers and migrations for managing hosting service plans. - Updated API routes to include endpoints for managing service plans. - Modified email templates to standardize support phone number across various customer communications.
This commit is contained in:
@@ -28,6 +28,7 @@ use App\Http\Controllers\Api\Admin\DnsManager\RecordController as DnsRecordContr
|
||||
use App\Http\Controllers\Api\Admin\Hosting\HostingAccountController;
|
||||
use App\Http\Controllers\Api\Admin\OsManager\OsGroupController;
|
||||
use App\Http\Controllers\Api\Admin\OsManager\OsController;
|
||||
use App\Http\Controllers\Api\Admin\Hosting\ServicePlanController;
|
||||
use App\Http\Controllers\Api\Admin\IpPool\IpPoolController;
|
||||
use App\Http\Controllers\Api\Admin\Bank\BankController;
|
||||
use App\Http\Controllers\Api\Admin\EmailTemplate\EmailTemplateController;
|
||||
@@ -435,6 +436,18 @@ Route::prefix('v1')
|
||||
Route::post('{id}/reset-ftp-password', 'resetFtpPassword')->middleware('perm:hosting.edit');
|
||||
});
|
||||
|
||||
// Service Plans — hosting package configs (module: hosting)
|
||||
Route::prefix('service-plans')
|
||||
->controller(ServicePlanController::class)
|
||||
->as('service-plans.')
|
||||
->group(function () {
|
||||
Route::get('/', 'index')->middleware('perm:hosting.view')->name('index');
|
||||
Route::post('/', 'store')->middleware('perm:hosting.create')->name('store');
|
||||
Route::get('{id}', 'show')->middleware('perm:hosting.view')->name('show');
|
||||
Route::put('{id}', 'update')->middleware('perm:hosting.edit')->name('update');
|
||||
Route::delete('{id}', 'destroy')->middleware('perm:hosting.destroy')->name('destroy');
|
||||
});
|
||||
|
||||
// InfraManagement (jumphost, vcenter config)
|
||||
Route::prefix('infra-management')
|
||||
->controller(InfraManagementController::class)
|
||||
|
||||
Reference in New Issue
Block a user