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: Discount.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 discount represents the actual application of a <a href="https://stripe.com/docs/api#coupons">coupon</a> or <a href="https://stripe.com/docs/api#promotion_codes">promotion code</a>.
[6] Fix | Delete
* It contains information about when the discount began, when it will end, and what it is applied to.
[7] Fix | Delete
*
[8] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/billing/subscriptions/discounts">Applying discounts to subscriptions</a>
[9] Fix | Delete
*
[10] Fix | Delete
* @property string $id The ID of the discount object. Discounts cannot be fetched by ID. Use <code>expand[]=discounts</code> in API calls to expand discount IDs in an array.
[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 $checkout_session The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
[13] 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>.
[14] Fix | Delete
* @property null|string|\Stripe\Customer $customer The ID of the customer associated with this discount.
[15] Fix | Delete
* @property null|int $end If the coupon has a duration of <code>repeating</code>, the date that this discount will end. If the coupon has a duration of <code>once</code> or <code>forever</code>, this attribute will be null.
[16] Fix | Delete
* @property null|string $invoice The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
[17] Fix | Delete
* @property null|string $invoice_item The invoice item <code>id</code> (or invoice line item <code>id</code> for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
[18] Fix | Delete
* @property null|string|\Stripe\PromotionCode $promotion_code The promotion code applied to create this discount.
[19] Fix | Delete
* @property int $start Date that the coupon was applied.
[20] Fix | Delete
* @property null|string $subscription The subscription that this coupon is applied to, if it is applied to a particular subscription.
[21] Fix | Delete
*/
[22] Fix | Delete
class Discount extends ApiResource
[23] Fix | Delete
{
[24] Fix | Delete
const OBJECT_NAME = 'discount';
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function