allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
47
vendor/stripe/stripe-php/lib/Tax/Settings.php
vendored
Normal file
47
vendor/stripe/stripe-php/lib/Tax/Settings.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace 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 <code>active</code> status indicates you have all required settings to calculate tax. A status can transition out of <code>active</code> when new required settings are introduced.
|
||||
* @property \Stripe\StripeObject $status_details
|
||||
*/
|
||||
class Settings extends \Stripe\SingletonApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'tax.settings';
|
||||
|
||||
use \Stripe\ApiOperations\SingletonRetrieve;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user