ECommerceProduct class
Class with information about the product:
- sku — the article of the product. The allowed size is up to 100 characters.
- name — the name of the product. The allowed size is up to 1000 characters.
- categoriesPath - the path to the product by category. Acceptable sizes are up to 10 elements; the size of one element is up to 100 characters.
- payload - additional information about the product. Acceptable sizes: total payload size - up to 20 KB, key size - up to 100 characters, value size - up to 1000 characters;
- actualPrice — the actual price of the product. Price after applying all discounts and promo codes;
- originalPrice — the initial price of the product;
- promocodes - a list of promo codes that apply to the product. Acceptable sizes — up to 20 elements; promo code length - up to 100 characters.
Constructors
-
ECommerceProduct({required String sku, String? name, List<
String> ? categoriesPath, Map<String, String> ? payload, ECommercePrice? actualPrice, ECommercePrice? originalPrice, List<String> ? promocodes}) -
Creates an object with information about the product.
sku
is a required parameter.const
Properties
- actualPrice → ECommercePrice?
-
final
-
categoriesPath
→ List<
String> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
final
- originalPrice → ECommercePrice?
-
final
-
payload
→ Map<
String, String> ? -
final
-
promocodes
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sku → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited