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: Topup.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
* To top up your Stripe balance, you create a top-up object. You can retrieve
[6] Fix | Delete
* individual top-ups, as well as list all top-ups. Top-ups are identified by a
[7] Fix | Delete
* unique, random ID.
[8] Fix | Delete
*
[9] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/connect/top-ups">Topping up your platform account</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 transferred.
[14] Fix | Delete
* @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
[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 null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
[18] Fix | Delete
* @property null|int $expected_availability_date Date the funds are expected to arrive in your Stripe account for payouts. This factors in delays like weekends or bank holidays. May not be specified depending on status of top-up.
[19] Fix | Delete
* @property null|string $failure_code Error code explaining reason for top-up failure if available (see <a href="https://stripe.com/docs/api#errors">the errors section</a> for a list of codes).
[20] Fix | Delete
* @property null|string $failure_message Message to user further explaining reason for top-up failure if available.
[21] 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.
[22] Fix | Delete
* @property \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.
[23] Fix | Delete
* @property null|\Stripe\Source $source The source field is deprecated. It might not always be present in the API response.
[24] Fix | Delete
* @property null|string $statement_descriptor Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
[25] Fix | Delete
* @property string $status The status of the top-up is either <code>canceled</code>, <code>failed</code>, <code>pending</code>, <code>reversed</code>, or <code>succeeded</code>.
[26] Fix | Delete
* @property null|string $transfer_group A string that identifies this top-up as part of a group.
[27] Fix | Delete
*/
[28] Fix | Delete
class Topup extends ApiResource
[29] Fix | Delete
{
[30] Fix | Delete
const OBJECT_NAME = 'topup';
[31] Fix | Delete
use ApiOperations\All;
[32] Fix | Delete
use ApiOperations\Create;
[33] Fix | Delete
use ApiOperations\Retrieve;
[34] Fix | Delete
use ApiOperations\Update;
[35] Fix | Delete
const STATUS_CANCELED = 'canceled';
[36] Fix | Delete
const STATUS_FAILED = 'failed';
[37] Fix | Delete
const STATUS_PENDING = 'pending';
[38] Fix | Delete
const STATUS_REVERSED = 'reversed';
[39] Fix | Delete
const STATUS_SUCCEEDED = 'succeeded';
[40] Fix | Delete
/**
[41] Fix | Delete
* @param null|array $params
[42] Fix | Delete
* @param null|array|string $opts
[43] Fix | Delete
*
[44] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[45] Fix | Delete
*
[46] Fix | Delete
* @return \Stripe\Topup the canceled topup
[47] Fix | Delete
*/
[48] Fix | Delete
public function cancel($params = null, $opts = null)
[49] Fix | Delete
{
[50] Fix | Delete
$url = $this->instanceUrl() . '/cancel';
[51] Fix | Delete
list($response, $opts) = $this->_request('post', $url, $params, $opts);
[52] Fix | Delete
$this->refreshFrom($response, $opts);
[53] Fix | Delete
return $this;
[54] Fix | Delete
}
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function