<?php

namespace Alsendo\AlsendoWrapper\Api\Points;

use Alsendo\AlsendoWrapper\Api\Points\Model\Point;
use Alsendo\AlsendoWrapper\Api\Points\Model\PointSearchRequest;

interface PointServiceInterface
{
    /**
     * @return Point[]
     */
    public function search(PointSearchRequest $request): array;

    /**
     * @param string $operator Operator constant value
     * @param string $code Point code
     */
    public function getPoint(string $operator, string $code): Point;
}
