Models
Catalog
Category
The Category
model contains category metadata
Product
BaseProduct
- common attributes for all product typesProduct
- Union of possible product types, e.g,SimpleProduct
,ContainerProduct
,BundleProduct
VariationAttributeModel
- variation attribute selection state
Product Types
SimpleProduct
- A product that has no variations or options to select.ContainerProduct
- Container forVariationProducts
. Cannot be added to cart. Contains variation attribute definitions.VariationProduct
- A particular combination of variation attributes which maps to a sku.VariationGroup
- AContainerProduct
with some pre-selected variation attribute values.SearchHit
- Search index representation for a product. This is usually a subset ofProduct
attributes as search indexes typically don't contain all product data from the commerce provider
Cart
Cart
- customer cart top level attributesCartDraft
- Parameters for creating a cartLineItem
- Union of possible line item types. Currently onlyProductLineItem
, but open for extension.Order
- extension ofCart
for successfully placed orders
Customer
ShippingAddress
andBillingAddress
- extensions ofAddress
from@hv/common/models
for cart addressesShippingAddressDraft
andBillingAddressDraft
- parameters for creating respective cart address objects.CustomerPaymentMethod
- union of possible payment methods. Currently onlyCustomerPaymentMethodCreditCard
, but open for extension
Pricing
Pricing
- union of possible price typesKnownPricing
- union of price types that have a known, numeric price valueUnknownPrice
- A price that is unavailable or hasn't been calculated yetPromotionPrice
- A price that has been affected by Promotion(s)SalePrice
- A discounted price without a promotion specified.ListPrice
- A standard price with no promotions or discounts