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: ApplicationFeeRefund.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
* <code>Application Fee Refund</code> objects allow you to refund an application fee that
[6] Fix | Delete
* has previously been created but not yet refunded. Funds will be refunded to
[7] Fix | Delete
* the Stripe account from which the fee was originally collected.
[8] Fix | Delete
*
[9] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/connect/destination-charges#refunding-app-fee">Refunding application fees</a>
[10] Fix | Delete
*
[11] Fix | Delete
* @property string $id Unique identifier for the object.
[12] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[13] Fix | Delete
* @property int $amount Amount, in cents (or local equivalent).
[14] Fix | Delete
* @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
[15] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[16] 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>.
[17] Fix | Delete
* @property string|\Stripe\ApplicationFee $fee ID of the application fee that was refunded.
[18] Fix | Delete
* @property null|\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.
[19] Fix | Delete
*/
[20] Fix | Delete
class ApplicationFeeRefund extends ApiResource
[21] Fix | Delete
{
[22] Fix | Delete
const OBJECT_NAME = 'fee_refund';
[23] Fix | Delete
use ApiOperations\Update {
[24] Fix | Delete
save as protected _save;
[25] Fix | Delete
}
[26] Fix | Delete
/**
[27] Fix | Delete
* @return string the API URL for this Stripe refund
[28] Fix | Delete
*/
[29] Fix | Delete
public function instanceUrl()
[30] Fix | Delete
{
[31] Fix | Delete
$id = $this['id'];
[32] Fix | Delete
$fee = $this['fee'];
[33] Fix | Delete
if (!$id) {
[34] Fix | Delete
throw new Exception\UnexpectedValueException('Could not determine which URL to request: ' . "class instance has invalid ID: {$id}", null);
[35] Fix | Delete
}
[36] Fix | Delete
$id = Util\Util::utf8($id);
[37] Fix | Delete
$fee = Util\Util::utf8($fee);
[38] Fix | Delete
$base = ApplicationFee::classUrl();
[39] Fix | Delete
$feeExtn = \urlencode($fee);
[40] Fix | Delete
$extn = \urlencode($id);
[41] Fix | Delete
return "{$base}/{$feeExtn}/refunds/{$extn}";
[42] Fix | Delete
}
[43] Fix | Delete
/**
[44] Fix | Delete
* @param null|array|string $opts
[45] Fix | Delete
*
[46] Fix | Delete
* @return ApplicationFeeRefund the saved refund
[47] Fix | Delete
*/
[48] Fix | Delete
public function save($opts = null)
[49] Fix | Delete
{
[50] Fix | Delete
return $this->_save($opts);
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function