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: InvoiceItem.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
* Invoice Items represent the component lines of an <a href="https://stripe.com/docs/api/invoices">invoice</a>. An invoice item is added to an
[6] Fix | Delete
* invoice by creating or updating it with an <code>invoice</code> field, at which point it will be included as
[7] Fix | Delete
* <a href="https://stripe.com/docs/api/invoices/line_item">an invoice line item</a> within
[8] Fix | Delete
* <a href="https://stripe.com/docs/api/invoices/object#invoice_object-lines">invoice.lines</a>.
[9] Fix | Delete
*
[10] Fix | Delete
* Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined
[11] Fix | Delete
* with a <a href="https://stripe.com/docs/api/subscriptions">subscription</a>. Sometimes you want to add a charge or credit to a customer, but actually charge
[12] Fix | Delete
* or credit the customer’s card only at the end of a regular billing cycle. This is useful for combining several charges
[13] Fix | Delete
* (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.
[14] Fix | Delete
*
[15] Fix | Delete
* Related guides: <a href="https://stripe.com/docs/invoicing/integration">Integrate with the Invoicing API</a>, <a href="https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items">Subscription Invoices</a>.
[16] Fix | Delete
*
[17] Fix | Delete
* @property string $id Unique identifier for the object.
[18] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[19] Fix | Delete
* @property int $amount Amount (in the <code>currency</code> specified) of the invoice item. This should always be equal to <code>unit_amount * quantity</code>.
[20] 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>.
[21] Fix | Delete
* @property string|\Stripe\Customer $customer The ID of the customer who will be billed when this invoice item is billed.
[22] Fix | Delete
* @property int $date Time at which the object was created. Measured in seconds since the Unix epoch.
[23] Fix | Delete
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
[24] Fix | Delete
* @property bool $discountable If true, discounts will apply to this invoice item. Always false for prorations.
[25] Fix | Delete
* @property null|(string|\Stripe\Discount)[] $discounts The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use <code>expand[]=discounts</code> to expand each discount.
[26] Fix | Delete
* @property null|string|\Stripe\Invoice $invoice The ID of the invoice this invoice item belongs to.
[27] 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.
[28] 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.
[29] Fix | Delete
* @property \Stripe\StripeObject $period
[30] Fix | Delete
* @property null|\Stripe\Plan $plan If the invoice item is a proration, the plan of the subscription that the proration was computed for.
[31] Fix | Delete
* @property null|\Stripe\Price $price The price of the invoice item.
[32] Fix | Delete
* @property bool $proration Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
[33] Fix | Delete
* @property int $quantity Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
[34] Fix | Delete
* @property null|string|\Stripe\Subscription $subscription The subscription that this invoice item has been created for, if any.
[35] Fix | Delete
* @property null|string $subscription_item The subscription item that this invoice item has been created for, if any.
[36] Fix | Delete
* @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the invoice item. When set, the <code>default_tax_rates</code> on the invoice do not apply to this invoice item.
[37] Fix | Delete
* @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this invoice item belongs to.
[38] Fix | Delete
* @property null|int $unit_amount Unit amount (in the <code>currency</code> specified) of the invoice item.
[39] Fix | Delete
* @property null|string $unit_amount_decimal Same as <code>unit_amount</code>, but contains a decimal value with at most 12 decimal places.
[40] Fix | Delete
*/
[41] Fix | Delete
class InvoiceItem extends ApiResource
[42] Fix | Delete
{
[43] Fix | Delete
const OBJECT_NAME = 'invoiceitem';
[44] Fix | Delete
use ApiOperations\All;
[45] Fix | Delete
use ApiOperations\Create;
[46] Fix | Delete
use ApiOperations\Delete;
[47] Fix | Delete
use ApiOperations\Retrieve;
[48] Fix | Delete
use ApiOperations\Update;
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function