feat(service): huỷ dịch vụ, SSL, đổi mật khẩu hosting, lịch sử thanh toán theo hình thức
- Lịch sử thanh toán hoá đơn trả thêm `method` (tự động gia hạn / số dư / admin / chuyển khoản / hoàn tiền), bỏ đuôi `(method)` khỏi ghi chú - `DnsServer::panelUrl()` = https://<domain>/ dùng cho email cấp hosting và nút Plesk của khách - Order item trả thêm `uuid`/`type` của dịch vụ để FE dẫn tới trang quản lý - Yêu cầu huỷ dịch vụ, chứng chỉ SSL, lịch sử gia hạn, đổi mật khẩu hosting cho khách Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a6b641015e
commit
b44a88bb52
@@ -2,8 +2,10 @@
|
||||
|
||||
use App\Http\Controllers\Api\Admin\Customer\CustomerBillingProfileController;
|
||||
use App\Http\Controllers\Api\Admin\Customer\CustomerController;
|
||||
use App\Http\Controllers\Api\Admin\Service\ServiceCancellationRequestController;
|
||||
use App\Http\Controllers\Api\Admin\Service\ServiceController;
|
||||
use App\Http\Controllers\Api\Admin\Service\ServiceRenewalReminderController;
|
||||
use App\Http\Controllers\Api\Admin\Service\SslCertificateController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Customers (module: customer)
|
||||
@@ -98,6 +100,17 @@ Route::prefix('services')->controller(ServiceController::class)->group(function
|
||||
Route::post('{id}/attachments/{attachmentId}/copy-to-invoice', 'copyAttachmentToInvoice')->middleware('perm:invoice.edit');
|
||||
});
|
||||
|
||||
Route::prefix('services/{id}/cancellation-requests')->controller(ServiceCancellationRequestController::class)->group(function () {
|
||||
Route::get('/', 'index')->middleware('perm:customer.view');
|
||||
Route::post('{requestId}/resolve', 'resolve')->middleware('perm:customer.edit');
|
||||
});
|
||||
|
||||
Route::prefix('services/{id}/ssl-info')->controller(SslCertificateController::class)->group(function () {
|
||||
Route::get('/', 'show')->middleware('perm:customer.view');
|
||||
Route::put('/', 'update')->middleware('perm:customer.edit');
|
||||
Route::post('archive', 'uploadArchive')->middleware('perm:customer.edit');
|
||||
});
|
||||
|
||||
Route::prefix('customers/{uuid}/billing-profile')->controller(CustomerBillingProfileController::class)->group(function () {
|
||||
Route::get('/', 'show')->middleware('perm:customer.view');
|
||||
Route::put('/', 'update')->middleware('perm:customer.edit');
|
||||
|
||||
Reference in New Issue
Block a user