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