code: protected function compileEndpointUrl($segment)
      {
          $base = ($this->useIntegration ? $this->integrationBaseUrl : $this->productionBaseUrl);
  
          return $base.$segment;
      }
docs: Compiles the final endpoint URL for the request.
  
  @param string $segment The URL segment to build in to the endpoint
  
  @return string