| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Repository\Payment; |
| 4 |
|
| 5 |
use IvyForms\Entity\Payment\Order; |
| 6 |
|
| 7 |
interface OrderRepositoryInterface |
| 8 |
{ |
| 9 |
/** |
| 10 |
* @param Order $entity |
| 11 |
* @return int |
| 12 |
*/ |
| 13 |
public function add($entity): int; |
| 14 |
|
| 15 |
/** |
| 16 |
* @param string $squareOrderId |
| 17 |
* @return Order|null |
| 18 |
*/ |
| 19 |
public function getBySquareOrderId(string $squareOrderId): ?Order; |
| 20 |
|
| 21 |
/** |
| 22 |
* @param string $squareOrderId |
| 23 |
* @param string $status |
| 24 |
* @return bool |
| 25 |
*/ |
| 26 |
public function updateStatus(string $squareOrderId, string $status): bool; |
| 27 |
|
| 28 |
/** |
| 29 |
* @param int $id |
| 30 |
* @return int |
| 31 |
*/ |
| 32 |
public function delete(int $id): int; |
| 33 |
} |
| 34 |
|