private function updateApiUrl($region)
    {
        $this->apiUrl = str_replace('region', strtolower($region), self::API_URL_PATTERN);

        return $this;
    }
private function updateApiUrl($region)
    {
        $this->apiUrl = str_replace('region', strtolower($region), self::API_URL_PATTERN);

        return $this;
    }
private function updateApiUrl ( $ region ) { $ this -> apiUrl = str_replace ( 'region' , strtolower ( $ region ) , self :: API_URL_PATTERN ) ; return $ this ; }
Update API url

Update API url by replacing region in API url pattern

@param string $region Region

@return $this
Update API url