Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -11,8 +11,8 @@ 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 \Stripe\StripeObject $amount
|
||||
* @property \Stripe\StripeObject $applicability_config
|
||||
* @property (object{monetary: null|(object{currency: string, value: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $amount
|
||||
* @property (object{scope: (object{price_type?: string, prices?: ((object{id: null|string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject)}&\Stripe\StripeObject) $applicability_config
|
||||
* @property string $category The category of this credit grant. This is for tracking purposes and isn't displayed to the customer.
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property string|\Stripe\Customer $customer ID of the customer receiving the billing credits.
|
||||
@@ -21,6 +21,7 @@ namespace Stripe\Billing;
|
||||
* @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 \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property null|string $name A descriptive name shown in dashboard.
|
||||
* @property null|int $priority The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
||||
* @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this credit grant belongs to.
|
||||
* @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
||||
* @property null|int $voided_at The time when this credit grant was voided. If not present, the credit grant hasn't been voided.
|
||||
@@ -37,12 +38,12 @@ class CreditGrant extends \Stripe\ApiResource
|
||||
/**
|
||||
* Creates a credit grant.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{amount: array{monetary?: array{currency: string, value: int}, type: string}, applicability_config: array{scope: array{price_type?: string, prices?: array{id: string}[]}}, category: string, customer: string, effective_at?: int, expand?: string[], expires_at?: int, metadata?: array<string, string>, name?: string, priority?: int} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditGrant the created resource
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant the created resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -59,12 +60,12 @@ class CreditGrant extends \Stripe\ApiResource
|
||||
/**
|
||||
* Retrieve a list of credit grants.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{customer?: string, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return \Stripe\Collection<CreditGrant> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Billing\CreditGrant> of ApiResources
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
@@ -79,9 +80,9 @@ class CreditGrant 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 CreditGrant
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
@@ -96,12 +97,12 @@ class CreditGrant extends \Stripe\ApiResource
|
||||
* Updates a credit grant.
|
||||
*
|
||||
* @param string $id the ID of the resource to update
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], expires_at?: null|int, metadata?: array<string, string>} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditGrant the updated resource
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant the updated resource
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function update($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -119,9 +120,9 @@ class CreditGrant extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditGrant the expired credit grant
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant the expired credit grant
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function expire($params = null, $opts = null)
|
||||
{
|
||||
@@ -136,9 +137,9 @@ class CreditGrant extends \Stripe\ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return CreditGrant the voided credit grant
|
||||
*
|
||||
* @return \Stripe\Billing\CreditGrant the voided credit grant
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function voidGrant($params = null, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user