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: Price.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
* Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
[6] Fix | Delete
* <a href="https://stripe.com/docs/api#products">Products</a> help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
[7] Fix | Delete
*
[8] Fix | Delete
* For example, you might have a single &quot;gold&quot; product that has prices for $10/month, $100/year, and €9 once.
[9] Fix | Delete
*
[10] Fix | Delete
* Related guides: <a href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up a subscription</a>, <a href="https://stripe.com/docs/billing/invoices/create">create an invoice</a>, and more about <a href="https://stripe.com/docs/products-prices/overview">products and prices</a>.
[11] Fix | Delete
*
[12] Fix | Delete
* @property string $id Unique identifier for the object.
[13] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[14] Fix | Delete
* @property bool $active Whether the price can be used for new purchases.
[15] Fix | Delete
* @property string $billing_scheme Describes how to compute the price per period. Either <code>per_unit</code> or <code>tiered</code>. <code>per_unit</code> indicates that the fixed amount (specified in <code>unit_amount</code> or <code>unit_amount_decimal</code>) will be charged per unit in <code>quantity</code> (for prices with <code>usage_type=licensed</code>), or per unit of total usage (for prices with <code>usage_type=metered</code>). <code>tiered</code> indicates that the unit pricing will be computed using a tiering strategy as defined using the <code>tiers</code> and <code>tiers_mode</code> attributes.
[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 null|\Stripe\StripeObject $currency_options Prices defined in each available currency option. Each key must be a three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a> and a <a href="https://stripe.com/docs/currencies">supported currency</a>.
[19] Fix | Delete
* @property null|\Stripe\StripeObject $custom_unit_amount When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
[20] 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.
[21] Fix | Delete
* @property null|string $lookup_key A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
[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 $nickname A brief description of the price, hidden from customers.
[24] Fix | Delete
* @property string|\Stripe\Product $product The ID of the product this price is associated with.
[25] Fix | Delete
* @property null|\Stripe\StripeObject $recurring The recurring components of a price such as <code>interval</code> and <code>usage_type</code>.
[26] Fix | Delete
* @property null|string $tax_behavior Only required if a <a href="https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default tax behavior</a> was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of <code>inclusive</code>, <code>exclusive</code>, or <code>unspecified</code>. Once specified as either <code>inclusive</code> or <code>exclusive</code>, it cannot be changed.
[27] Fix | Delete
* @property null|\Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires <code>billing_scheme</code> to be set to <code>tiered</code>. See also the documentation for <code>billing_scheme</code>.
[28] Fix | Delete
* @property null|string $tiers_mode Defines if the tiering price should be <code>graduated</code> or <code>volume</code> based. In <code>volume</code>-based tiering, the maximum quantity within a period determines the per unit price. In <code>graduated</code> tiering, pricing can change as the quantity grows.
[29] Fix | Delete
* @property null|\Stripe\StripeObject $transform_quantity Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with <code>tiers</code>.
[30] Fix | Delete
* @property string $type One of <code>one_time</code> or <code>recurring</code> depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
[31] Fix | Delete
* @property null|int $unit_amount The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if <code>billing_scheme=per_unit</code>.
[32] Fix | Delete
* @property null|string $unit_amount_decimal The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if <code>billing_scheme=per_unit</code>.
[33] Fix | Delete
*/
[34] Fix | Delete
class Price extends ApiResource
[35] Fix | Delete
{
[36] Fix | Delete
const OBJECT_NAME = 'price';
[37] Fix | Delete
use ApiOperations\All;
[38] Fix | Delete
use ApiOperations\Create;
[39] Fix | Delete
use ApiOperations\Retrieve;
[40] Fix | Delete
use ApiOperations\Search;
[41] Fix | Delete
use ApiOperations\Update;
[42] Fix | Delete
const BILLING_SCHEME_PER_UNIT = 'per_unit';
[43] Fix | Delete
const BILLING_SCHEME_TIERED = 'tiered';
[44] Fix | Delete
const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
[45] Fix | Delete
const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
[46] Fix | Delete
const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
[47] Fix | Delete
const TIERS_MODE_GRADUATED = 'graduated';
[48] Fix | Delete
const TIERS_MODE_VOLUME = 'volume';
[49] Fix | Delete
const TYPE_ONE_TIME = 'one_time';
[50] Fix | Delete
const TYPE_RECURRING = 'recurring';
[51] Fix | Delete
/**
[52] Fix | Delete
* @param null|array $params
[53] Fix | Delete
* @param null|array|string $opts
[54] Fix | Delete
*
[55] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[56] Fix | Delete
*
[57] Fix | Delete
* @return \Stripe\SearchResult<\Stripe\Price> the price search results
[58] Fix | Delete
*/
[59] Fix | Delete
public static function search($params = null, $opts = null)
[60] Fix | Delete
{
[61] Fix | Delete
$url = '/v1/prices/search';
[62] Fix | Delete
return static::_requestPage($url, \WPForms\Vendor\Stripe\SearchResult::class, $params, $opts);
[63] Fix | Delete
}
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function