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: PromotionCode.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 Promotion Code represents a customer-redeemable code for a <a href="https://stripe.com/docs/api#coupons">coupon</a>. It can be used to
[6] Fix | Delete
* create multiple codes for a single coupon.
[7] Fix | Delete
*
[8] Fix | Delete
* @property string $id Unique identifier for the object.
[9] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[10] Fix | Delete
* @property bool $active Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
[11] Fix | Delete
* @property string $code The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
[12] Fix | Delete
* @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to <a href="https://stripe.com/docs/api#subscriptions">subscriptions</a>, <a href="https://stripe.com/docs/api#invoices">invoices</a>, <a href="https://stripe.com/docs/api/checkout/sessions">checkout sessions</a>, <a href="https://stripe.com/docs/api#quotes">quotes</a>, and more. Coupons do not work with conventional one-off <a href="https://stripe.com/docs/api#create_charge">charges</a> or <a href="https://stripe.com/docs/api/payment_intents">payment intents</a>.
[13] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[14] Fix | Delete
* @property null|string|\Stripe\Customer $customer The customer that this promotion code can be used by.
[15] Fix | Delete
* @property null|int $expires_at Date at which the promotion code can no longer be redeemed.
[16] 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.
[17] Fix | Delete
* @property null|int $max_redemptions Maximum number of times this promotion code can be redeemed.
[18] Fix | Delete
* @property null|\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.
[19] Fix | Delete
* @property \Stripe\StripeObject $restrictions
[20] Fix | Delete
* @property int $times_redeemed Number of times this promotion code has been used.
[21] Fix | Delete
*/
[22] Fix | Delete
class PromotionCode extends ApiResource
[23] Fix | Delete
{
[24] Fix | Delete
const OBJECT_NAME = 'promotion_code';
[25] Fix | Delete
use ApiOperations\All;
[26] Fix | Delete
use ApiOperations\Create;
[27] Fix | Delete
use ApiOperations\Retrieve;
[28] Fix | Delete
use ApiOperations\Update;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function