Set merchant end point

@param       integer     $endPoint       Merchant end point

@return      self
497963
public function setEndPoint($endPoint)
    {
        if (strlen($this->getEndPointGroup()) > 0)
        {
            throw new RuntimeException(
                "End point group has been already set. You can set either end point or end point group."
            );
        }

        $this->endPoint = (int) $endPoint;

        return $this;
    }
816240
public function endpoint($endpoint = null)
    {
        if ($endpoint === null) {
            return $this->getEndpoint();
        }

        return $this->setEndpoint($endpoint);
    }
136903
public function setEndTime($endTime)
    {
        if ($endTime instanceof \DateTime)
        {
            $endTime = $endTime->format('H:i');
        }

        // deal with "hour-only" input
        if (2 == strlen($endTime))
        {
            $endTime .= ':00';
        }

        $this->end_time = $endTime;
    }
783621
public function subscriptionEndsAt($ends = null)
    {
        if ($ends === null) {
            return $this->subscription_ends_at;
        } else {
            $this->subscription_ends_at = $ends;
            return $this;
        }
    }
443018
public function setClient($endpoint = null)
    {
        // Create client using API endpoint.
        $this->client = new Client([
                                       'base_uri' => ! is_null($endpoint) ? $endpoint : $this->endpoint,
                                   ]);

        return $this;
    }
755957
public function setSeller(\Gpupo\CommonSchema\ORM\Entity\Trading\Order\Shipping\Seller $seller = null)
    {
        $this->seller = $seller;

        return $this;
    }
1281920
private function buildSchemaForEndpoint(string $endpoint)
    {
        $schemaPathAndFilename = $this->endpointsConfiguration[$endpoint]['schema'];
        $content = Files::getFileContents($schemaPathAndFilename);
        $documentNode = Parser::parse($content);
        $this->schemaCache->set(urlencode($endpoint), $documentNode, [md5($schemaPathAndFilename)]);
        return $documentNode;
    }
221276
public function setEndpoint($url)
    {
        if (!preg_match('#^(https://)#ui', $url)) {
            throw new IncorrectUsageException('Scheme of endpoint must be HTTPS');
        }

        $this->endpoint = rtrim($url, '/');

        return $this;
    }
915861
public function setEntrypoint(?array $entrypoint)
    {
        $this->entrypoint = $entrypoint;

        $this->raw = array_merge($this->raw, ['Entrypoint' => $entrypoint]);

        return $this;
    }
182152
protected function setResource( string $resource, string $endpoint ): self
	{
		$this->resource = $resource;
		$this->resource_endpoint = $endpoint;
		return $this;
	}
1320611
public function setBusiness($value)
    {
        if ($value && !$value instanceof MerchantBusiness) {
            $value = new MerchantBusiness($value);
        }

        return $this->setParameter('business', $value);
    }
1059806
protected function setEndpointDomains(EndpointCollection $endpoints)
    {
        foreach ($endpoints->getAllPaths() as $path) {
            if (is_null($path->domain)) {
                $path->domain = $this->domain;
            }
        }
    }
1296208
public function trailEndsAt($endDate = null)
    {
        if ($endDate === null) {
            return $this->trail_ends_at;
        } else {
            $this->trail_ends_at = $endDate;
            return $this;
        }
    }
636182
public static function fromEndpoint(Endpoint $endpoint)
    {
        return static::generateKey(strtolower($endpoint->getRegion()->getDomain()).$endpoint->getUrl());
    }
189354
private function setApiEndPoint($endPoint)
    {
        if (empty($this->host))
            throw new OdooException('You must provide the odoo host by host setter method');

        return $this->host . $this->suffix . $endPoint;

    }
382325
private static function makeEndpoints($endpoints)
    {
        if (is_string($endpoints)) {
            return self::makeEndpointsFromString($endpoints, self::ROUTE_METHODS);
        }

        return $endpoints;
    }
1228720
public function setEndpoint($endpoint)
    {
        // Clean the credential information from the endpoint.
        $filterParams = ['affiliate_id', 'api_id'];
        $this->endpoint = DmmUrlManipulator::removeParamsFromUrl($endpoint, $filterParams);

        return $this;
    }