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: Capability.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
* This is an object representing a capability for a Stripe account.
[6] Fix | Delete
*
[7] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/connect/account-capabilities">Account capabilities</a>
[8] Fix | Delete
*
[9] Fix | Delete
* @property string $id The identifier for the capability.
[10] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[11] Fix | Delete
* @property string|\Stripe\Account $account The account for which the capability enables functionality.
[12] Fix | Delete
* @property null|\Stripe\StripeObject $future_requirements
[13] Fix | Delete
* @property bool $requested Whether the capability has been requested.
[14] Fix | Delete
* @property null|int $requested_at Time at which the capability was requested. Measured in seconds since the Unix epoch.
[15] Fix | Delete
* @property null|\Stripe\StripeObject $requirements
[16] Fix | Delete
* @property string $status The status of the capability. Can be <code>active</code>, <code>inactive</code>, <code>pending</code>, or <code>unrequested</code>.
[17] Fix | Delete
*/
[18] Fix | Delete
class Capability extends ApiResource
[19] Fix | Delete
{
[20] Fix | Delete
const OBJECT_NAME = 'capability';
[21] Fix | Delete
const STATUS_ACTIVE = 'active';
[22] Fix | Delete
const STATUS_INACTIVE = 'inactive';
[23] Fix | Delete
const STATUS_PENDING = 'pending';
[24] Fix | Delete
const STATUS_UNREQUESTED = 'unrequested';
[25] Fix | Delete
use ApiOperations\Update;
[26] Fix | Delete
/**
[27] Fix | Delete
* @return string the API URL for this Stripe account reversal
[28] Fix | Delete
*/
[29] Fix | Delete
public function instanceUrl()
[30] Fix | Delete
{
[31] Fix | Delete
$id = $this['id'];
[32] Fix | Delete
$account = $this['account'];
[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
$account = Util\Util::utf8($account);
[38] Fix | Delete
$base = Account::classUrl();
[39] Fix | Delete
$accountExtn = \urlencode($account);
[40] Fix | Delete
$extn = \urlencode($id);
[41] Fix | Delete
return "{$base}/{$accountExtn}/capabilities/{$extn}";
[42] Fix | Delete
}
[43] Fix | Delete
/**
[44] Fix | Delete
* @param array|string $_id
[45] Fix | Delete
* @param null|array|string $_opts
[46] Fix | Delete
*
[47] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[48] Fix | Delete
*/
[49] Fix | Delete
public static function retrieve($_id, $_opts = null)
[50] Fix | Delete
{
[51] Fix | Delete
$msg = 'Capabilities cannot be retrieved without an account ID. ' . 'Retrieve a capability using `Account::retrieveCapability(' . "'account_id', 'capability_id')`.";
[52] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[53] Fix | Delete
}
[54] Fix | Delete
/**
[55] Fix | Delete
* @param string $_id
[56] Fix | Delete
* @param null|array $_params
[57] Fix | Delete
* @param null|array|string $_options
[58] Fix | Delete
*
[59] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[60] Fix | Delete
*/
[61] Fix | Delete
public static function update($_id, $_params = null, $_options = null)
[62] Fix | Delete
{
[63] Fix | Delete
$msg = 'Capabilities cannot be updated without an account ID. ' . 'Update a capability using `Account::updateCapability(' . "'account_id', 'capability_id', \$updateParams)`.";
[64] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[65] Fix | Delete
}
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function