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: Product.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
* Products describe the specific goods or services you offer to your customers.
[6] Fix | Delete
* For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
[7] Fix | Delete
* They can be used in conjunction with <a href="https://stripe.com/docs/api#prices">Prices</a> to configure pricing in Payment Links, Checkout, and Subscriptions.
[8] Fix | Delete
*
[9] Fix | Delete
* Related guides: <a href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up a subscription</a>,
[10] Fix | Delete
* <a href="https://stripe.com/docs/payment-links">share a Payment Link</a>,
[11] Fix | Delete
* <a href="https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront">accept payments with Checkout</a>,
[12] Fix | Delete
* and more about <a href="https://stripe.com/docs/products-prices/overview">Products and Prices</a>
[13] Fix | Delete
*
[14] Fix | Delete
* @property string $id Unique identifier for the object.
[15] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[16] Fix | Delete
* @property bool $active Whether the product is currently available for purchase.
[17] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[18] Fix | Delete
* @property null|string|\Stripe\Price $default_price The ID of the <a href="https://stripe.com/docs/api/prices">Price</a> object that is the default price for this product.
[19] Fix | Delete
* @property null|string $description The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
[20] Fix | Delete
* @property \Stripe\StripeObject[] $features A list of up to 15 marketing features for this product. These are displayed in <a href="https://stripe.com/docs/payments/checkout/pricing-table">pricing tables</a>.
[21] Fix | Delete
* @property string[] $images A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
[22] 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.
[23] 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.
[24] Fix | Delete
* @property string $name The product's name, meant to be displayable to the customer.
[25] Fix | Delete
* @property null|\Stripe\StripeObject $package_dimensions The dimensions of this product for shipping purposes.
[26] Fix | Delete
* @property null|bool $shippable Whether this product is shipped (i.e., physical goods).
[27] Fix | Delete
* @property null|string $statement_descriptor Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.
[28] Fix | Delete
* @property null|string|\Stripe\TaxCode $tax_code A <a href="https://stripe.com/docs/tax/tax-categories">tax code</a> ID.
[29] Fix | Delete
* @property string $type The type of the product. The product is either of type <code>good</code>, which is eligible for use with Orders and SKUs, or <code>service</code>, which is eligible for use with Subscriptions and Plans.
[30] Fix | Delete
* @property null|string $unit_label A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
[31] Fix | Delete
* @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
[32] Fix | Delete
* @property null|string $url A URL of a publicly-accessible webpage for this product.
[33] Fix | Delete
*/
[34] Fix | Delete
class Product extends ApiResource
[35] Fix | Delete
{
[36] Fix | Delete
const OBJECT_NAME = 'product';
[37] Fix | Delete
use ApiOperations\All;
[38] Fix | Delete
use ApiOperations\Create;
[39] Fix | Delete
use ApiOperations\Delete;
[40] Fix | Delete
use ApiOperations\Retrieve;
[41] Fix | Delete
use ApiOperations\Search;
[42] Fix | Delete
use ApiOperations\Update;
[43] Fix | Delete
const TYPE_GOOD = 'good';
[44] Fix | Delete
const TYPE_SERVICE = 'service';
[45] Fix | Delete
/**
[46] Fix | Delete
* @param null|array $params
[47] Fix | Delete
* @param null|array|string $opts
[48] Fix | Delete
*
[49] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[50] Fix | Delete
*
[51] Fix | Delete
* @return \Stripe\SearchResult<\Stripe\Product> the product search results
[52] Fix | Delete
*/
[53] Fix | Delete
public static function search($params = null, $opts = null)
[54] Fix | Delete
{
[55] Fix | Delete
$url = '/v1/products/search';
[56] Fix | Delete
return static::_requestPage($url, \WPForms\Vendor\Stripe\SearchResult::class, $params, $opts);
[57] Fix | Delete
}
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function