dbmsv3/app/Interfaces/PaymentInterface.php
2025-10-30 17:47:53 +09:00

21 lines
842 B
PHP

<?php
namespace App\Interfaces;
use App\Entities\Customer\ServiceEntity;
use App\Entities\Equipment\ServerPartEntity;
use App\Entities\PaymentEntity;
interface PaymentInterface
{
//서비스 결제(월과금 서비스 사용)
public function createForService(ServiceEntity $serviceEntity, int $amount): PaymentEntity;
public function updateForService(ServiceEntity $serviceEntity, int $amount): PaymentEntity;
public function unlinkFromService(ServiceEntity $serviceEntity): PaymentEntity;
//서버 파트 결제(파트/기타 일회성 서비스 사용)
public function createForServerPart(ServerPartEntity $serverPartEntity): PaymentEntity;
public function updateForServerPart(ServerPartEntity $serverPartEntity): PaymentEntity;
public function unlinkFromServerPart(ServerPartEntity $serverPartEntity): PaymentEntity;
}