From 3be4bb48990f53b7389ea863831e5ddba71dcb28 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 15:38:09 -0700 Subject: [PATCH] Update generated code for beta (#1537) * Update generated code for v432 * Update generated code for v432 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/Quote.php | 2 +- lib/Service/Tax/FormService.php | 5 +++++ lib/Tax/Form.php | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) 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);