Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor_p.../stripe/stripe-p.../lib
File: ApplicationFee.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// File generated from our OpenAPI spec
[2] Fix | Delete
namespace WPForms\Vendor\Stripe;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* @property string $id Unique identifier for the object.
[6] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[7] Fix | Delete
* @property string|\Stripe\Account $account ID of the Stripe account this fee was taken from.
[8] Fix | Delete
* @property int $amount Amount earned, in cents (or local equivalent).
[9] Fix | Delete
* @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)
[10] Fix | Delete
* @property string|\Stripe\Application $application ID of the Connect application that earned the fee.
[11] Fix | Delete
* @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).
[12] Fix | Delete
* @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
[13] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[14] Fix | Delete
* @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>.
[15] Fix | Delete
* @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.
[16] Fix | Delete
* @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.
[17] Fix | Delete
* @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
[18] Fix | Delete
* @property \Stripe\Collection<\Stripe\ApplicationFeeRefund> $refunds A list of refunds that have been applied to the fee.
[19] Fix | Delete
*/
[20] Fix | Delete
class ApplicationFee extends ApiResource
[21] Fix | Delete
{
[22] Fix | Delete
const OBJECT_NAME = 'application_fee';
[23] Fix | Delete
use ApiOperations\All;
[24] Fix | Delete
use ApiOperations\NestedResource;
[25] Fix | Delete
use ApiOperations\Retrieve;
[26] Fix | Delete
const PATH_REFUNDS = '/refunds';
[27] Fix | Delete
/**
[28] Fix | Delete
* @param string $id the ID of the application fee on which to retrieve the application fee refunds
[29] Fix | Delete
* @param null|array $params
[30] Fix | Delete
* @param null|array|string $opts
[31] Fix | Delete
*
[32] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[33] Fix | Delete
*
[34] Fix | Delete
* @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of application fee refunds
[35] Fix | Delete
*/
[36] Fix | Delete
public static function allRefunds($id, $params = null, $opts = null)
[37] Fix | Delete
{
[38] Fix | Delete
return self::_allNestedResources($id, static::PATH_REFUNDS, $params, $opts);
[39] Fix | Delete
}
[40] Fix | Delete
/**
[41] Fix | Delete
* @param string $id the ID of the application fee on which to create the application fee refund
[42] Fix | Delete
* @param null|array $params
[43] Fix | Delete
* @param null|array|string $opts
[44] Fix | Delete
*
[45] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[46] Fix | Delete
*
[47] Fix | Delete
* @return \Stripe\ApplicationFeeRefund
[48] Fix | Delete
*/
[49] Fix | Delete
public static function createRefund($id, $params = null, $opts = null)
[50] Fix | Delete
{
[51] Fix | Delete
return self::_createNestedResource($id, static::PATH_REFUNDS, $params, $opts);
[52] Fix | Delete
}
[53] Fix | Delete
/**
[54] Fix | Delete
* @param string $id the ID of the application fee to which the application fee refund belongs
[55] Fix | Delete
* @param string $refundId the ID of the application fee refund to retrieve
[56] Fix | Delete
* @param null|array $params
[57] Fix | Delete
* @param null|array|string $opts
[58] Fix | Delete
*
[59] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[60] Fix | Delete
*
[61] Fix | Delete
* @return \Stripe\ApplicationFeeRefund
[62] Fix | Delete
*/
[63] Fix | Delete
public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
[64] Fix | Delete
{
[65] Fix | Delete
return self::_retrieveNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
[66] Fix | Delete
}
[67] Fix | Delete
/**
[68] Fix | Delete
* @param string $id the ID of the application fee to which the application fee refund belongs
[69] Fix | Delete
* @param string $refundId the ID of the application fee refund to update
[70] Fix | Delete
* @param null|array $params
[71] Fix | Delete
* @param null|array|string $opts
[72] Fix | Delete
*
[73] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[74] Fix | Delete
*
[75] Fix | Delete
* @return \Stripe\ApplicationFeeRefund
[76] Fix | Delete
*/
[77] Fix | Delete
public static function updateRefund($id, $refundId, $params = null, $opts = null)
[78] Fix | Delete
{
[79] Fix | Delete
return self::_updateNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
[80] Fix | Delete
}
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function