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: Review.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
* Reviews can be used to supplement automated fraud detection with human expertise.
[6] Fix | Delete
*
[7] Fix | Delete
* Learn more about <a href="/radar">Radar</a> and reviewing payments
[8] Fix | Delete
* <a href="https://stripe.com/docs/radar/reviews">here</a>.
[9] Fix | Delete
*
[10] Fix | Delete
* @property string $id Unique identifier for the object.
[11] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[12] Fix | Delete
* @property null|string $billing_zip The ZIP or postal code of the card used, if applicable.
[13] Fix | Delete
* @property null|string|\Stripe\Charge $charge The charge associated with this review.
[14] Fix | Delete
* @property null|string $closed_reason The reason the review was closed, or null if it has not yet been closed. One of <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
[15] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[16] Fix | Delete
* @property null|string $ip_address The IP address where the payment originated.
[17] Fix | Delete
* @property null|\Stripe\StripeObject $ip_address_location Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
[18] 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.
[19] Fix | Delete
* @property bool $open If <code>true</code>, the review needs action.
[20] Fix | Delete
* @property string $opened_reason The reason the review was opened. One of <code>rule</code> or <code>manual</code>.
[21] Fix | Delete
* @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent ID associated with this review, if one exists.
[22] Fix | Delete
* @property string $reason The reason the review is currently open or closed. One of <code>rule</code>, <code>manual</code>, <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
[23] Fix | Delete
* @property null|\Stripe\StripeObject $session Information related to the browsing session of the user who initiated the payment.
[24] Fix | Delete
*/
[25] Fix | Delete
class Review extends ApiResource
[26] Fix | Delete
{
[27] Fix | Delete
const OBJECT_NAME = 'review';
[28] Fix | Delete
use ApiOperations\All;
[29] Fix | Delete
use ApiOperations\Retrieve;
[30] Fix | Delete
const CLOSED_REASON_APPROVED = 'approved';
[31] Fix | Delete
const CLOSED_REASON_DISPUTED = 'disputed';
[32] Fix | Delete
const CLOSED_REASON_REDACTED = 'redacted';
[33] Fix | Delete
const CLOSED_REASON_REFUNDED = 'refunded';
[34] Fix | Delete
const CLOSED_REASON_REFUNDED_AS_FRAUD = 'refunded_as_fraud';
[35] Fix | Delete
const OPENED_REASON_MANUAL = 'manual';
[36] Fix | Delete
const OPENED_REASON_RULE = 'rule';
[37] Fix | Delete
/**
[38] Fix | Delete
* Possible string representations of the current, the opening or the closure reason of the review.
[39] Fix | Delete
* Not all of these enumeration apply to all of the ´reason´ fields. Please consult the Review object to
[40] Fix | Delete
* determine where these are apply.
[41] Fix | Delete
*
[42] Fix | Delete
* @see https://stripe.com/docs/api/radar/reviews/object
[43] Fix | Delete
*/
[44] Fix | Delete
const REASON_APPROVED = 'approved';
[45] Fix | Delete
const REASON_DISPUTED = 'disputed';
[46] Fix | Delete
const REASON_MANUAL = 'manual';
[47] Fix | Delete
const REASON_REFUNDED = 'refunded';
[48] Fix | Delete
const REASON_REFUNDED_AS_FRAUD = 'refunded_as_fraud';
[49] Fix | Delete
const REASON_RULE = 'rule';
[50] Fix | Delete
/**
[51] Fix | Delete
* @param null|array $params
[52] Fix | Delete
* @param null|array|string $opts
[53] Fix | Delete
*
[54] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[55] Fix | Delete
*
[56] Fix | Delete
* @return \Stripe\Review the approved review
[57] Fix | Delete
*/
[58] Fix | Delete
public function approve($params = null, $opts = null)
[59] Fix | Delete
{
[60] Fix | Delete
$url = $this->instanceUrl() . '/approve';
[61] Fix | Delete
list($response, $opts) = $this->_request('post', $url, $params, $opts);
[62] Fix | Delete
$this->refreshFrom($response, $opts);
[63] Fix | Delete
return $this;
[64] Fix | Delete
}
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function