<?php
/**
 * Payment Repository Interface
 *
 * @package NemtlyBooking
 */

namespace NemtlyBooking\Interfaces;

use NemtlyBooking\Models\Payment;

/**
 * Interface Payment_Repository_Interface
 */
interface Payment_Repository_Interface extends Repository_Interface {
    /**
     * Find payment by transaction ID
     *
     * @param string $transaction_id Transaction ID.
     *
     * @return Payment|null
     */
    public function find_by_transaction_id( $transaction_id );

    /**
     * Find payments by booking ID
     *
     * @param int $booking_id Booking ID.
     *
     * @return Payment[]
     */
    public function find_by_booking_id( $booking_id );
}
