diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/stripe/stripe-php/lib/ApplicationFee.php | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to '')
-rw-r--r-- | vendor/stripe/stripe-php/lib/ApplicationFee.php | 180 |
1 files changed, 90 insertions, 90 deletions
diff --git a/vendor/stripe/stripe-php/lib/ApplicationFee.php b/vendor/stripe/stripe-php/lib/ApplicationFee.php index 88aeed6..46a37d2 100644 --- a/vendor/stripe/stripe-php/lib/ApplicationFee.php +++ b/vendor/stripe/stripe-php/lib/ApplicationFee.php @@ -1,90 +1,90 @@ -<?php - -// File generated from our OpenAPI spec - -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 int $amount Amount earned, in %s. - * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued) - * @property string|\Stripe\StripeObject $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 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 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 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 $refunds A list of refunds that have been applied to the fee. - */ -class ApplicationFee extends ApiResource -{ - const OBJECT_NAME = 'application_fee'; - - use ApiOperations\All; - use ApiOperations\NestedResource; - use ApiOperations\Retrieve; - - const PATH_REFUNDS = '/refunds'; - - /** - * @param string $id the ID of the application fee on which to retrieve the fee refunds - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\Collection the list of fee refunds - */ - public static function allRefunds($id, $params = null, $opts = null) - { - return self::_allNestedResources($id, static::PATH_REFUNDS, $params, $opts); - } - - /** - * @param string $id the ID of the application fee on which to create the fee refund - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\ApplicationFeeRefund - */ - public static function createRefund($id, $params = null, $opts = null) - { - return self::_createNestedResource($id, static::PATH_REFUNDS, $params, $opts); - } - - /** - * @param string $id the ID of the application fee to which the fee refund belongs - * @param string $refundId the ID of the fee refund to retrieve - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\ApplicationFeeRefund - */ - public static function retrieveRefund($id, $refundId, $params = null, $opts = null) - { - return self::_retrieveNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts); - } - - /** - * @param string $id the ID of the application fee to which the fee refund belongs - * @param string $refundId the ID of the fee refund to update - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\ApplicationFeeRefund - */ - public static function updateRefund($id, $refundId, $params = null, $opts = null) - { - return self::_updateNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts); - } -} +<?php
+
+// File generated from our OpenAPI spec
+
+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 int $amount Amount earned, in %s.
+ * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued)
+ * @property string|\Stripe\StripeObject $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 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 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 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\StripeObject> $refunds A list of refunds that have been applied to the fee.
+ */
+class ApplicationFee extends ApiResource
+{
+ const OBJECT_NAME = 'application_fee';
+
+ use ApiOperations\All;
+ use ApiOperations\NestedResource;
+ use ApiOperations\Retrieve;
+
+ const PATH_REFUNDS = '/refunds';
+
+ /**
+ * @param string $id the ID of the application fee on which to retrieve the fee refunds
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of fee refunds
+ */
+ public static function allRefunds($id, $params = null, $opts = null)
+ {
+ return self::_allNestedResources($id, static::PATH_REFUNDS, $params, $opts);
+ }
+
+ /**
+ * @param string $id the ID of the application fee on which to create the fee refund
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function createRefund($id, $params = null, $opts = null)
+ {
+ return self::_createNestedResource($id, static::PATH_REFUNDS, $params, $opts);
+ }
+
+ /**
+ * @param string $id the ID of the application fee to which the fee refund belongs
+ * @param string $refundId the ID of the fee refund to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
+ {
+ return self::_retrieveNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
+ }
+
+ /**
+ * @param string $id the ID of the application fee to which the fee refund belongs
+ * @param string $refundId the ID of the fee refund to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function updateRefund($id, $refundId, $params = null, $opts = null)
+ {
+ return self::_updateNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
+ }
+}
|