| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Repository\Payment; |
| 4 |
|
| 5 |
use IvyForms\Entity\Payment\Payment; |
| 6 |
|
| 7 |
interface PaymentRepositoryInterface |
| 8 |
{ |
| 9 |
/** |
| 10 |
* @param Payment $entity |
| 11 |
* @return int |
| 12 |
*/ |
| 13 |
public function add($entity): int; |
| 14 |
|
| 15 |
/** |
| 16 |
* @param int $entryId |
| 17 |
* @return Payment|null |
| 18 |
*/ |
| 19 |
public function getByEntryId(int $entryId): ?Payment; |
| 20 |
|
| 21 |
public function existsByTransactionId(string $transactionId): bool; |
| 22 |
|
| 23 |
public function getByTransactionId(string $transactionId): ?Payment; |
| 24 |
|
| 25 |
public function findByProviderOrderId(string $orderId): ?Payment; |
| 26 |
|
| 27 |
public function updateStatus(int $id, string $status): bool; |
| 28 |
|
| 29 |
public function update(Payment $entity): void; |
| 30 |
|
| 31 |
/** |
| 32 |
* @param array<string, mixed>|null $params |
| 33 |
* @return array<string, mixed> |
| 34 |
*/ |
| 35 |
public function search(?array $params): array; |
| 36 |
|
| 37 |
/** |
| 38 |
* @param array<string, mixed>|null $params |
| 39 |
* @return int |
| 40 |
*/ |
| 41 |
public function getCount(?array $params): int; |
| 42 |
|
| 43 |
/** |
| 44 |
* @param int $id |
| 45 |
* @return int |
| 46 |
*/ |
| 47 |
public function delete(int $id): int; |
| 48 |
} |
| 49 |
|