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: CashBalance.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
* A customer's <code>Cash balance</code> represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account.
[6] Fix | Delete
*
[7] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[8] Fix | Delete
* @property null|\Stripe\StripeObject $available A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
[9] Fix | Delete
* @property string $customer The ID of the customer whose cash balance this object represents.
[10] 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.
[11] Fix | Delete
* @property \Stripe\StripeObject $settings
[12] Fix | Delete
*/
[13] Fix | Delete
class CashBalance extends ApiResource
[14] Fix | Delete
{
[15] Fix | Delete
const OBJECT_NAME = 'cash_balance';
[16] Fix | Delete
/**
[17] Fix | Delete
* @return string the API URL for this balance transaction
[18] Fix | Delete
*/
[19] Fix | Delete
public function instanceUrl()
[20] Fix | Delete
{
[21] Fix | Delete
$customer = $this['customer'];
[22] Fix | Delete
$customer = Util\Util::utf8($customer);
[23] Fix | Delete
$base = Customer::classUrl();
[24] Fix | Delete
$customerExtn = \urlencode($customer);
[25] Fix | Delete
return "{$base}/{$customerExtn}/cash_balance";
[26] Fix | Delete
}
[27] Fix | Delete
/**
[28] Fix | Delete
* @param array|string $_id
[29] Fix | Delete
* @param null|array|string $_opts
[30] Fix | Delete
*
[31] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[32] Fix | Delete
*/
[33] Fix | Delete
public static function retrieve($_id, $_opts = null)
[34] Fix | Delete
{
[35] Fix | Delete
$msg = 'Customer Cash Balance cannot be retrieved without a ' . 'customer ID. Retrieve a Customer Cash Balance using ' . "`Customer::retrieveCashBalance('customer_id')`.";
[36] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[37] Fix | Delete
}
[38] Fix | Delete
/**
[39] Fix | Delete
* @param string $_id
[40] Fix | Delete
* @param null|array $_params
[41] Fix | Delete
* @param null|array|string $_options
[42] Fix | Delete
*
[43] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[44] Fix | Delete
*/
[45] Fix | Delete
public static function update($_id, $_params = null, $_options = null)
[46] Fix | Delete
{
[47] Fix | Delete
$msg = 'Customer Cash Balance cannot be updated without a ' . 'customer ID. Retrieve a Customer Cash Balance using ' . "`Customer::updateCashBalance('customer_id')`.";
[48] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function