diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 03b8593a8..a0025bd12 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v431 \ No newline at end of file +v432 \ No newline at end of file diff --git a/lib/Quote.php b/lib/Quote.php index 438c010de..e99511e49 100644 --- a/lib/Quote.php +++ b/lib/Quote.php @@ -222,7 +222,7 @@ public function pdf($readBodyChunkCallable, $params = null, $opts = null) { $opts = \Stripe\Util\RequestOptions::parse($opts); if (!isset($opts->apiBase)) { - $opts->apiBase = Stripe::$apiUploadBase; + $opts->apiBase = \Stripe\Stripe::$apiUploadBase; } $url = $this->instanceUrl() . '/pdf'; $this->_requestStream('get', $url, $readBodyChunkCallable, $params, $opts); diff --git a/lib/Service/Tax/FormService.php b/lib/Service/Tax/FormService.php index 84ee88454..b52ec904a 100644 --- a/lib/Service/Tax/FormService.php +++ b/lib/Service/Tax/FormService.php @@ -36,6 +36,11 @@ public function all($params = null, $opts = null) */ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null) { + $opts = \Stripe\Util\RequestOptions::parse($opts); + if (!isset($opts->apiBase)) { + $opts->apiBase = $this->getClient()->getFilesBase(); + } + return $this->requestStream('get', $this->buildPath('/v1/tax/forms/%s/pdf', $id), $readBodyChunkCallable, $params, $opts); } diff --git a/lib/Tax/Form.php b/lib/Tax/Form.php index ec35cff03..8828030d3 100644 --- a/lib/Tax/Form.php +++ b/lib/Tax/Form.php @@ -45,7 +45,7 @@ public function pdf($readBodyChunkCallable, $params = null, $opts = null) { $opts = \Stripe\Util\RequestOptions::parse($opts); if (!isset($opts->apiBase)) { - $opts->apiBase = Stripe::$apiUploadBase; + $opts->apiBase = \Stripe\Stripe::$apiUploadBase; } $url = $this->instanceUrl() . '/pdf'; $this->_requestStream('get', $url, $readBodyChunkCallable, $params, $opts);