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: Dispute.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 dispute occurs when a customer questions your charge with their card issuer.
[6] Fix | Delete
* When this happens, you have the opportunity to respond to the dispute with
[7] Fix | Delete
* evidence that shows that the charge is legitimate.
[8] Fix | Delete
*
[9] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/disputes">Disputes and fraud</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 Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
[14] Fix | Delete
* @property \Stripe\BalanceTransaction[] $balance_transactions List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
[15] Fix | Delete
* @property string|\Stripe\Charge $charge ID of the charge that's disputed.
[16] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[17] 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>.
[18] Fix | Delete
* @property \Stripe\StripeObject $evidence
[19] Fix | Delete
* @property \Stripe\StripeObject $evidence_details
[20] Fix | Delete
* @property bool $is_charge_refundable If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
[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|string $network_reason_code Network-dependent reason code for the dispute.
[24] Fix | Delete
* @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that's disputed.
[25] Fix | Delete
* @property null|\Stripe\StripeObject $payment_method_details
[26] Fix | Delete
* @property string $reason Reason given by cardholder for dispute. Possible values are <code>bank_cannot_process</code>, <code>check_returned</code>, <code>credit_not_processed</code>, <code>customer_initiated</code>, <code>debit_not_authorized</code>, <code>duplicate</code>, <code>fraudulent</code>, <code>general</code>, <code>incorrect_account_details</code>, <code>insufficient_funds</code>, <code>product_not_received</code>, <code>product_unacceptable</code>, <code>subscription_canceled</code>, or <code>unrecognized</code>. Learn more about <a href="https://stripe.com/docs/disputes/categories">dispute reasons</a>.
[27] Fix | Delete
* @property string $status Current status of dispute. Possible values are <code>warning_needs_response</code>, <code>warning_under_review</code>, <code>warning_closed</code>, <code>needs_response</code>, <code>under_review</code>, <code>won</code>, or <code>lost</code>.
[28] Fix | Delete
*/
[29] Fix | Delete
class Dispute extends ApiResource
[30] Fix | Delete
{
[31] Fix | Delete
const OBJECT_NAME = 'dispute';
[32] Fix | Delete
use ApiOperations\All;
[33] Fix | Delete
use ApiOperations\Retrieve;
[34] Fix | Delete
use ApiOperations\Update;
[35] Fix | Delete
const REASON_BANK_CANNOT_PROCESS = 'bank_cannot_process';
[36] Fix | Delete
const REASON_CHECK_RETURNED = 'check_returned';
[37] Fix | Delete
const REASON_CREDIT_NOT_PROCESSED = 'credit_not_processed';
[38] Fix | Delete
const REASON_CUSTOMER_INITIATED = 'customer_initiated';
[39] Fix | Delete
const REASON_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
[40] Fix | Delete
const REASON_DUPLICATE = 'duplicate';
[41] Fix | Delete
const REASON_FRAUDULENT = 'fraudulent';
[42] Fix | Delete
const REASON_GENERAL = 'general';
[43] Fix | Delete
const REASON_INCORRECT_ACCOUNT_DETAILS = 'incorrect_account_details';
[44] Fix | Delete
const REASON_INSUFFICIENT_FUNDS = 'insufficient_funds';
[45] Fix | Delete
const REASON_PRODUCT_NOT_RECEIVED = 'product_not_received';
[46] Fix | Delete
const REASON_PRODUCT_UNACCEPTABLE = 'product_unacceptable';
[47] Fix | Delete
const REASON_SUBSCRIPTION_CANCELED = 'subscription_canceled';
[48] Fix | Delete
const REASON_UNRECOGNIZED = 'unrecognized';
[49] Fix | Delete
const STATUS_LOST = 'lost';
[50] Fix | Delete
const STATUS_NEEDS_RESPONSE = 'needs_response';
[51] Fix | Delete
const STATUS_UNDER_REVIEW = 'under_review';
[52] Fix | Delete
const STATUS_WARNING_CLOSED = 'warning_closed';
[53] Fix | Delete
const STATUS_WARNING_NEEDS_RESPONSE = 'warning_needs_response';
[54] Fix | Delete
const STATUS_WARNING_UNDER_REVIEW = 'warning_under_review';
[55] Fix | Delete
const STATUS_WON = 'won';
[56] Fix | Delete
/**
[57] Fix | Delete
* @param null|array $params
[58] Fix | Delete
* @param null|array|string $opts
[59] Fix | Delete
*
[60] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[61] Fix | Delete
*
[62] Fix | Delete
* @return \Stripe\Dispute the closed dispute
[63] Fix | Delete
*/
[64] Fix | Delete
public function close($params = null, $opts = null)
[65] Fix | Delete
{
[66] Fix | Delete
$url = $this->instanceUrl() . '/close';
[67] Fix | Delete
list($response, $opts) = $this->_request('post', $url, $params, $opts);
[68] Fix | Delete
$this->refreshFrom($response, $opts);
[69] Fix | Delete
return $this;
[70] Fix | Delete
}
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function