mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 21:04:50 +00:00
Bump plugin stripe-php from 10.5.0 to 16.4.0 and update links
This commit is contained in:
107
plugins/stripe-php/lib/Service/Billing/AlertService.php
Normal file
107
plugins/stripe-php/lib/Service/Billing/AlertService.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class AlertService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Reactivates this alert, allowing it to trigger again.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Alert
|
||||
*/
|
||||
public function activate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/alerts/%s/activate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists billing active and inactive alerts.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\Alert>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/billing/alerts', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Archives this alert, removing it from the list view and APIs. This is
|
||||
* non-reversible.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Alert
|
||||
*/
|
||||
public function archive($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/alerts/%s/archive', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a billing alert.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Alert
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/billing/alerts', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deactivates this alert, preventing it from triggering.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Alert
|
||||
*/
|
||||
public function deactivate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/alerts/%s/deactivate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a billing alert given an ID.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Alert
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/billing/alerts/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Billing namespace.
|
||||
*
|
||||
* @property AlertService $alerts
|
||||
* @property CreditBalanceSummaryService $creditBalanceSummary
|
||||
* @property CreditBalanceTransactionService $creditBalanceTransactions
|
||||
* @property CreditGrantService $creditGrants
|
||||
* @property MeterEventAdjustmentService $meterEventAdjustments
|
||||
* @property MeterEventService $meterEvents
|
||||
* @property MeterService $meters
|
||||
*/
|
||||
class BillingServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'alerts' => AlertService::class,
|
||||
'creditBalanceSummary' => CreditBalanceSummaryService::class,
|
||||
'creditBalanceTransactions' => CreditBalanceTransactionService::class,
|
||||
'creditGrants' => CreditGrantService::class,
|
||||
'meterEventAdjustments' => MeterEventAdjustmentService::class,
|
||||
'meterEvents' => MeterEventService::class,
|
||||
'meters' => MeterService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CreditBalanceSummaryService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves the credit balance summary for a customer.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditBalanceSummary
|
||||
*/
|
||||
public function retrieve($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', '/v1/billing/credit_balance_summary', $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CreditBalanceTransactionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieve a list of credit balance transactions.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\CreditBalanceTransaction>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/billing/credit_balance_transactions', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a credit balance transaction.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditBalanceTransaction
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/billing/credit_balance_transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
106
plugins/stripe-php/lib/Service/Billing/CreditGrantService.php
Normal file
106
plugins/stripe-php/lib/Service/Billing/CreditGrantService.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CreditGrantService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieve a list of credit grants.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\CreditGrant>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/billing/credit_grants', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a credit grant.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/billing/credit_grants', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expires a credit grant.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
*/
|
||||
public function expire($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/credit_grants/%s/expire', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a credit grant.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/billing/credit_grants/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a credit grant.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/credit_grants/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Voids a credit grant.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
*/
|
||||
public function voidGrant($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/credit_grants/%s/void', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class MeterEventAdjustmentService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates a billing meter event adjustment.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\MeterEventAdjustment
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/billing/meter_event_adjustments', $params, $opts);
|
||||
}
|
||||
}
|
||||
27
plugins/stripe-php/lib/Service/Billing/MeterEventService.php
Normal file
27
plugins/stripe-php/lib/Service/Billing/MeterEventService.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class MeterEventService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates a billing meter event.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\MeterEvent
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/billing/meter_events', $params, $opts);
|
||||
}
|
||||
}
|
||||
124
plugins/stripe-php/lib/Service/Billing/MeterService.php
Normal file
124
plugins/stripe-php/lib/Service/Billing/MeterService.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Billing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class MeterService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieve a list of billing meters.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\Meter>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/billing/meters', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a list of billing meter event summaries.
|
||||
*
|
||||
* @param string $parentId
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\MeterEventSummary>
|
||||
*/
|
||||
public function allEventSummaries($parentId, $params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', $this->buildPath('/v1/billing/meters/%s/event_summaries', $parentId), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a billing meter.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/billing/meters', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* When a meter is deactivated, no more meter events will be accepted for this
|
||||
* meter. You can’t attach a deactivated meter to a price.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*/
|
||||
public function deactivate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/meters/%s/deactivate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* When a meter is reactivated, events for this meter can be accepted and you can
|
||||
* attach the meter to a price.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*/
|
||||
public function reactivate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/meters/%s/reactivate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a billing meter given an ID.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/billing/meters/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a billing meter.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/billing/meters/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user