Files
oficial/app/src/Service/Venta/MediosPago/EndPoint.php

58 lines
1.2 KiB
PHP
Raw Normal View History

2025-05-08 16:17:14 -04:00
<?php
2025-05-10 12:38:14 -04:00
namespace Incoviba\Service\Venta\MediosPago;
2025-05-08 16:17:14 -04:00
use Incoviba\Common\Implement\Exception\EmptyResponse;
2025-05-09 18:03:33 -04:00
use Incoviba\Exception\InvalidResult;
2025-05-08 16:17:14 -04:00
interface EndPoint
{
/**
* @param string $id
* @return array
2025-05-09 18:03:33 -04:00
* @throws InvalidResult
2025-05-08 16:17:14 -04:00
*/
public function getById(string $id): array;
2025-05-09 18:03:33 -04:00
/**
* @param string $id
* @return array
* @throws InvalidResult
*/
public function getByExternalId(string $id): array;
2025-05-08 16:17:14 -04:00
/**
* @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;
2025-05-27 18:17:56 -04:00
/**
* @param array $skip
* @return array
* @throws InvalidResult
*/
public function reset(array $skip = []): array;
2025-05-08 16:17:14 -04:00
}