Product class final

Product

Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions. Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [share a Payment Link](https://stripe.com/docs/payment-links), [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront), and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)

Implemented types

Constructors

Product({required bool active, required DateTime created, PriceOrId? defaultPrice, String? description, required List<ProductMarketingFeature> features, required String id, required List<String> images, required bool livemode, required Map<String, String> metadata, required String name, PackageDimensions? packageDimensions, bool? shippable, String? statementDescriptor, TaxCodeOrId? taxCode, required ProductType type, String? unitLabel, required DateTime updated, String? url})
Product
const
Product.fromJson(Object? json)
factory

Properties

active → bool
final
created → DateTime
final
defaultPrice → PriceOrId?
final
description → String?
final
features → List<ProductMarketingFeature>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The ID of the InvoiceitemPlanProduct.
final
images → List<String>
final
livemode → bool
final
metadata → Map<String, String>
final
name → String
final
object → String
final
packageDimensions → PackageDimensions?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shippable → bool?
final
statementDescriptor → String?
final
taxCode → TaxCodeOrId?
final
type → ProductType
final
unitLabel → String?
final
updated → DateTime
final
url → String?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

encode<V>(Product instance, Encoder<V> encoder) → V
override