File ManagerCurrent Directory: wp-content/plugins/wpforms/vendor_prefixed/stripe/stripe-php/lib/TaxLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: Settings.php <?php // File generated from our OpenAPI spec namespace WPForms\Vendor\Stripe\Tax; /** * You can use Tax <code>Settings</code> to manage configurations used by Stripe Tax calculations. * * Related guide: <a href="https://stripe.com/docs/tax/settings-api">Using the Settings API</a> * * @property string $object String representing the object's type. Objects of the same type share the same value. * @property \Stripe\StripeObject $defaults * @property null|\Stripe\StripeObject $head_office The place where your business is located. * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. * @property string $status The status of the Tax <code>Settings</code>. * @property \Stripe\StripeObject $status_details */ class Settings extends \WPForms\Vendor\Stripe\SingletonApiResource { const OBJECT_NAME = 'tax.settings'; const STATUS_ACTIVE = 'active'; const STATUS_PENDING = 'pending'; /** * Retrieves Tax <code>Settings</code> for a merchant. * * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Tax\Settings */ public static function retrieve($opts = null) { $opts = \WPForms\Vendor\Stripe\Util\RequestOptions::parse($opts); $instance = new static(null, $opts); $instance->refresh(); return $instance; } /** * @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 = \WPForms\Vendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts); $obj->setLastResponse($response); return $obj; } /** * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return static the saved resource * * @deprecated The `save` method is deprecated and will be removed in a * future major version of the library. Use the static method `update` * on the resource instead. */ public function save($opts = null) { $params = $this->serializeParameters(); if (\count($params) > 0) { $url = $this->instanceUrl(); list($response, $opts) = $this->_request('post', $url, $params, $opts, ['save']); $this->refreshFrom($response, $opts); } return $this; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirCalculation.phpFile4.16 KB Rename | Delete | EditCalculationLineItem.phpFile1.77 KB Rename | Delete | EditRegistration.phpFile4.72 KB Rename | Delete | EditSettings.phpFile2.77 KB Rename | Delete | EditTransaction.phpFile4.91 KB Rename | Delete | EditTransactionLineItem.phpFile2.22 KB Rename | Delete | Edit