Skip to content

Commit

Permalink
Update generated code for beta (#1537)
Browse files Browse the repository at this point in the history
* Update generated code for v432

* Update generated code for v432

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 27, 2023
1 parent abd985c commit 3be4bb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v431
v432
2 changes: 1 addition & 1 deletion lib/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions lib/Service/Tax/FormService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Tax/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3be4bb4

Please sign in to comment.