- Nạp tiền: mã thanh toán sống 30 phút (ManualDepositDraft), khôi phục/huỷ mã, lệnh dọn mã hết hạn; total_pending chỉ tính giao dịch đã nộp chứng từ, admin duyệt/từ chối/xoá giao dịch - Gia hạn dịch vụ: phát hành invoice gia hạn trên order gốc và trừ số dư ngay - Đồng bộ domain từ Plesk theo server, ServiceOrderRecorder tạo order/invoice cho dịch vụ admin dựng - Danh sách dịch vụ trả field theo loại (service_plan, dns_records_count), đếm dịch vụ theo loại Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
551 B
PHP
20 lines
551 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Api\ServiceClient;
|
|
|
|
use App\Repositories\BaseRepositoryInterface;
|
|
|
|
interface ServiceClientRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
/**
|
|
* Lấy danh sách sản phẩm đang hoạt động
|
|
*/
|
|
public function getActiveServices(int $customerId, ?string $productType = null, ?int $limit = 10);
|
|
|
|
public function findActiveBySlug(string $slug);
|
|
|
|
public function getPricing(int $productId, string $billingCycle);
|
|
|
|
public function getDetailService(string $uuid, int $customerId);
|
|
}
|