PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Repository / Payment / OrderRepositoryInterface.php

OrderRepositoryInterface.php in The Innovative Form Builder – IvyForms 1.5, at backend/src/Repository/Payment/OrderRepositoryInterface.php

34 lines 655 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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