Skip to content

Commit

Permalink
Update generated code for v824
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Feb 13, 2024
1 parent e29e9cf commit e6a63fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v823
v824
21 changes: 20 additions & 1 deletion lib/Tax/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,27 @@ class Settings extends \Stripe\SingletonApiResource
const OBJECT_NAME = 'tax.settings';

use \Stripe\ApiOperations\SingletonRetrieve;
use \Stripe\ApiOperations\Update;

const STATUS_ACTIVE = 'active';
const STATUS_PENDING = 'pending';

/**
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return static the updated resource
*/
public static function update($params = null, $opts = null)
{
self::_validateParams($params);
$url = '/v1/tax/settings';

list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
$obj->setLastResponse($response);

return $obj;
}
}

0 comments on commit e6a63fc

Please sign in to comment.