mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -12,16 +12,16 @@ namespace Stripe\Billing;
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property \Stripe\StripeObject $customer_mapping
|
||||
* @property \Stripe\StripeObject $default_aggregation
|
||||
* @property (object{event_payload_key: string, type: string}&\Stripe\StripeObject) $customer_mapping
|
||||
* @property (object{formula: string}&\Stripe\StripeObject) $default_aggregation
|
||||
* @property string $display_name The meter's name.
|
||||
* @property string $event_name The name of the meter event to record usage for. Corresponds with the <code>event_name</code> field on meter events.
|
||||
* @property null|string $event_time_window The time window to pre-aggregate meter events for, if any.
|
||||
* @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 meter's status.
|
||||
* @property \Stripe\StripeObject $status_transitions
|
||||
* @property (object{deactivated_at: null|int}&\Stripe\StripeObject) $status_transitions
|
||||
* @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
||||
* @property \Stripe\StripeObject $value_settings
|
||||
* @property (object{event_payload_key: string}&\Stripe\StripeObject) $value_settings
|
||||
*/
|
||||
class Meter extends \Stripe\ApiResource
|
||||
{
|
||||
@@ -39,12 +39,12 @@ class Meter extends \Stripe\ApiResource
|
||||
/**
|
||||
* Creates a billing meter.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{customer_mapping?: array{event_payload_key: string, type: string}, default_aggregation: array{formula: string}, display_name: string, event_name: string, event_time_window?: string, expand?: string[], value_settings?: array{event_payload_key: string}} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Meter the created resource
|
||||
*
|
||||
* @return \Stripe\Billing\Meter the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -61,12 +61,12 @@ class Meter extends \Stripe\ApiResource
|
||||
/**
|
||||
* Retrieve a list of billing meters.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string, status?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<Meter> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\Meter> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -81,9 +81,9 @@ class Meter extends \Stripe\ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Meter
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -98,12 +98,12 @@ class Meter extends \Stripe\ApiResource
|
||||
* Updates a billing meter.
|
||||
*
|
||||
* @param string $id the ID of the resource to update
|
||||
* @param null|array $params
|
||||
* @param null|array{display_name?: string, expand?: string[]} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Meter the updated resource
|
||||
*
|
||||
* @return \Stripe\Billing\Meter the updated resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function update($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -121,9 +121,9 @@ class Meter extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Meter the deactivated meter
|
||||
*
|
||||
* @return \Stripe\Billing\Meter the deactivated meter
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function deactivate($params = null, $opts = null)
|
||||
{
|
||||
@@ -138,9 +138,9 @@ class Meter extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Meter the reactivated meter
|
||||
*
|
||||
* @return \Stripe\Billing\Meter the reactivated meter
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function reactivate($params = null, $opts = null)
|
||||
{
|
||||
@@ -158,9 +158,9 @@ class Meter extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<MeterEventSummary> the list of meter event summaries
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\MeterEventSummary> the list of meter event summaries
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function allEventSummaries($id, $params = null, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user