58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
namespace Incoviba\Service\Venta\MediosPago;
|
|
|
|
use Incoviba\Common\Implement\Exception\EmptyResponse;
|
|
use Incoviba\Exception\InvalidResult;
|
|
|
|
interface EndPoint
|
|
{
|
|
/**
|
|
* @param string $id
|
|
* @return array
|
|
* @throws InvalidResult
|
|
*/
|
|
public function getById(string $id): array;
|
|
|
|
/**
|
|
* @param string $id
|
|
* @return array
|
|
* @throws InvalidResult
|
|
*/
|
|
public function getByExternalId(string $id): array;
|
|
/**
|
|
* @param string $id
|
|
* @return array
|
|
* @throws EmptyResponse
|
|
*/
|
|
public function get(string $id): array;
|
|
|
|
/**
|
|
* @param array $data
|
|
* @return bool
|
|
* @throws EmptyResponse
|
|
*/
|
|
public function add(array $data): bool;
|
|
|
|
/**
|
|
* @param string $id
|
|
* @param array $data
|
|
* @return bool
|
|
* @throws EmptyResponse
|
|
*/
|
|
public function edit(string $id, array $data): bool;
|
|
|
|
/**
|
|
* @param string $id
|
|
* @return void
|
|
* @throws EmptyResponse
|
|
*/
|
|
public function delete(string $id): void;
|
|
|
|
/**
|
|
* @param array $skip
|
|
* @return array
|
|
* @throws InvalidResult
|
|
*/
|
|
public function reset(array $skip = []): array;
|
|
}
|