import { DaffConfigurableProductFacadeInterface } from '@daffodil/product-configurable/state'
An interface for a facade that accesses configurable product state. Exposes many parts of the state for easy access and allows dispatching of actions.
interface DaffConfigurableProductFacadeInterface<T extends DaffConfigurableProduct = DaffConfigurableProduct> {
getAllAttributes(id: string): any
getAllVariants(id: string): any
getAppliedAttributes(id: string): any
getMinimumPrice(id: string): any
getMaximumPrice(id: string): any
getMinimumDiscountedPrice(id: string): any
getMaximumDiscountedPrice(id: string): any
getMinimumPercentDiscount(id: string): any
getMaximumPercentDiscount(id: string): any
isPriceRanged(id: string): any
hasDiscount(id: string): any
getSelectableAttributes(id: string): any
getMatchingVariants(id: string): any
}
anyAll attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyAll variants of a configurable product.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyThe applied attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current minimum price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current maximum price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current minimum discounted price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current maximum discounted price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current minimum percent discount possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyGet the current maximum percent discount possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyReturns whether the possible price for the configurable product is a range of different prices
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyReturns whether the variants of the configurable product have (a) discount(s)
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anySelectable configurable product attributes derived from the remaining variants and the order of currently applied attributes. The remaining variants of the product are derived from the currently applied attributes.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |
anyThe variants that match the applied attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description | the id of the configurable product. |