mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 20:04:53 +00:00
Bump plugin stripe-php from 10.5.0 to 16.4.0 and update links
This commit is contained in:
62
plugins/stripe-php/lib/Service/Tax/CalculationService.php
Normal file
62
plugins/stripe-php/lib/Service/Tax/CalculationService.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Tax;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CalculationService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves the line items of a tax calculation as a collection, if the
|
||||
* calculation hasn’t expired.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Tax\CalculationLineItem>
|
||||
*/
|
||||
public function allLineItems($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', $this->buildPath('/v1/tax/calculations/%s/line_items', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates tax based on the input and returns a Tax <code>Calculation</code>
|
||||
* object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Calculation
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/tax/calculations', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a Tax <code>Calculation</code> object, if the calculation hasn’t
|
||||
* expired.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Calculation
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/tax/calculations/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
77
plugins/stripe-php/lib/Service/Tax/RegistrationService.php
Normal file
77
plugins/stripe-php/lib/Service/Tax/RegistrationService.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Tax;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class RegistrationService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Tax <code>Registration</code> objects.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Tax\Registration>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/tax/registrations', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Tax <code>Registration</code> object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Registration
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/tax/registrations', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a Tax <code>Registration</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Registration
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/tax/registrations/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing Tax <code>Registration</code> object.
|
||||
*
|
||||
* A registration cannot be deleted after it has been created. If you wish to end a
|
||||
* registration you may do so by setting <code>expires_at</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Registration
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/tax/registrations/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
43
plugins/stripe-php/lib/Service/Tax/SettingsService.php
Normal file
43
plugins/stripe-php/lib/Service/Tax/SettingsService.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Tax;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class SettingsService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves Tax <code>Settings</code> for a merchant.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Settings
|
||||
*/
|
||||
public function retrieve($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', '/v1/tax/settings', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates Tax <code>Settings</code> parameters used in tax calculations. All
|
||||
* parameters are editable but none can be removed once set.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Settings
|
||||
*/
|
||||
public function update($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/tax/settings', $params, $opts);
|
||||
}
|
||||
}
|
||||
31
plugins/stripe-php/lib/Service/Tax/TaxServiceFactory.php
Normal file
31
plugins/stripe-php/lib/Service/Tax/TaxServiceFactory.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Tax;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Tax namespace.
|
||||
*
|
||||
* @property CalculationService $calculations
|
||||
* @property RegistrationService $registrations
|
||||
* @property SettingsService $settings
|
||||
* @property TransactionService $transactions
|
||||
*/
|
||||
class TaxServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'calculations' => CalculationService::class,
|
||||
'registrations' => RegistrationService::class,
|
||||
'settings' => SettingsService::class,
|
||||
'transactions' => TransactionService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
75
plugins/stripe-php/lib/Service/Tax/TransactionService.php
Normal file
75
plugins/stripe-php/lib/Service/Tax/TransactionService.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Tax;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class TransactionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves the line items of a committed standalone transaction as a collection.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Tax\TransactionLineItem>
|
||||
*/
|
||||
public function allLineItems($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', $this->buildPath('/v1/tax/transactions/%s/line_items', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Tax Transaction from a calculation, if that calculation hasn’t
|
||||
* expired. Calculations expire after 90 days.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Transaction
|
||||
*/
|
||||
public function createFromCalculation($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/tax/transactions/create_from_calculation', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Partially or fully reverses a previously created <code>Transaction</code>.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Transaction
|
||||
*/
|
||||
public function createReversal($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/tax/transactions/create_reversal', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a Tax <code>Transaction</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Tax\Transaction
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/tax/transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user