# ivyforms/1.5/backend/src/Repository/Payment/OrderRepositoryInterface.php

The Innovative Form Builder – IvyForms, version 1.5. 34 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.5/code/backend/src/Repository/Payment/OrderRepositoryInterface.php
- Raw: https://pluginprobe.com/plugins/ivyforms/1.5/raw/backend/src/Repository/Payment/OrderRepositoryInterface.php
- Modified: 2026-10-05T14:37:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/1.5/code/backend/src/Repository/Payment/OrderRepositoryInterface.php#L10-L20`.

```php
<?php

namespace IvyForms\Repository\Payment;

use IvyForms\Entity\Payment\Order;

interface OrderRepositoryInterface
{
    /**
     * @param Order $entity
     * @return int
     */
    public function add($entity): int;

    /**
     * @param string $squareOrderId
     * @return Order|null
     */
    public function getBySquareOrderId(string $squareOrderId): ?Order;

    /**
     * @param string $squareOrderId
     * @param string $status
     * @return bool
     */
    public function updateStatus(string $squareOrderId, string $status): bool;

    /**
     * @param int $id
     * @return int
     */
    public function delete(int $id): int;
}

```
