mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -7,19 +7,19 @@ namespace Stripe;
|
||||
/**
|
||||
* @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 string|\Stripe\Account $account ID of the Stripe account this fee was taken from.
|
||||
* @property Account|string $account ID of the Stripe account this fee was taken from.
|
||||
* @property int $amount Amount earned, in cents (or local equivalent).
|
||||
* @property int $amount_refunded Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
|
||||
* @property string|\Stripe\Application $application ID of the Connect application that earned the fee.
|
||||
* @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
|
||||
* @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
|
||||
* @property Application|string $application ID of the Connect application that earned the fee.
|
||||
* @property null|BalanceTransaction|string $balance_transaction Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
|
||||
* @property Charge|string $charge ID of the charge that the application fee was taken from.
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
|
||||
* @property null|\Stripe\StripeObject $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
|
||||
* @property null|(object{charge?: string, payout?: string, type: string}&StripeObject) $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
|
||||
* @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 null|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the <code>destination</code> parameter.
|
||||
* @property null|Charge|string $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the <code>destination</code> parameter.
|
||||
* @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
|
||||
* @property \Stripe\Collection<\Stripe\ApplicationFeeRefund> $refunds A list of refunds that have been applied to the fee.
|
||||
* @property Collection<ApplicationFeeRefund> $refunds A list of refunds that have been applied to the fee.
|
||||
*/
|
||||
class ApplicationFee extends ApiResource
|
||||
{
|
||||
@@ -31,18 +31,18 @@ class ApplicationFee extends ApiResource
|
||||
* Returns a list of application fees you’ve previously collected. The application
|
||||
* fees are returned in sorted order, with the most recent fees appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{charge?: string, created?: array|int, 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 Collection<ApplicationFee> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\ApplicationFee> of ApiResources
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
$url = static::classUrl();
|
||||
|
||||
return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
|
||||
return static::_requestPage($url, Collection::class, $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,13 +52,13 @@ class ApplicationFee extends 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 ApplicationFee
|
||||
*
|
||||
* @return \Stripe\ApplicationFee
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
$opts = \Stripe\Util\RequestOptions::parse($opts);
|
||||
$opts = Util\RequestOptions::parse($opts);
|
||||
$instance = new static($id, $opts);
|
||||
$instance->refresh();
|
||||
|
||||
@@ -72,9 +72,9 @@ class ApplicationFee extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Collection<ApplicationFeeRefund> the list of application fee refunds
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of application fee refunds
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function allRefunds($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -86,9 +86,9 @@ class ApplicationFee extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return ApplicationFeeRefund
|
||||
*
|
||||
* @return \Stripe\ApplicationFeeRefund
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function createRefund($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -101,9 +101,9 @@ class ApplicationFee extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return ApplicationFeeRefund
|
||||
*
|
||||
* @return \Stripe\ApplicationFeeRefund
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
|
||||
{
|
||||
@@ -116,9 +116,9 @@ class ApplicationFee extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return ApplicationFeeRefund
|
||||
*
|
||||
* @return \Stripe\ApplicationFeeRefund
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function updateRefund($id, $refundId, $params = null, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user