dbms/app/Services/Customer/ServicePaymentService.php
2025-06-11 17:14:53 +09:00

51 lines
1.3 KiB
PHP

<?php
namespace App\Services\Customer;
use App\Entities\Customer\ServicePaymentEntity;
use App\Models\Customer\ServicePaymentModel;
use CodeIgniter\HTTP\IncomingRequest;
class ServicePaymentService extends CustomerService
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
$this->addClassName('ServicePayment');
}
public function getModelClass(): ServicePaymentModel
{
return new ServicePaymentModel();
}
public function getEntityClass(): ServicePaymentEntity
{
return new ServicePaymentEntity();
}
public function getFormFields(): array
{
return [
"serviceinfo_uid",
"item_type",
"item_uid",
"billing_cycle",
"amount",
"billing_at",
"issue_at",
"status",
];
}
public function getFilterFields(): array
{
return ["serviceinfo_uid", 'item_type', 'item_uid', 'billing_cycle', 'status'];
}
public function getBatchJobFields(): array
{
return ['status'];
}
public function getIndexFields(): array
{
return ['serviceinfo_uid', 'item_type', 'item_uid', 'billing_cycle', 'amount', 'billing_at', 'issue_at', 'status'];
}
}