import { MockDaffConfigurableProductFacade } from '@daffodil/product-configurable/state/testing'
@Injectable()
class MockDaffConfigurableProductFacade implements DaffConfigurableProductFacadeInterface {
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
dispatch(action): void
}
anyAll attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description |
anyAll variants of a configurable product.
| Parameter | id: string |
|---|---|
| Description |
anyThe applied attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current minimum price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current maximum price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current minimum discounted price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current maximum discounted price possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current minimum percent discount possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyGet the current maximum percent discount possible based on the applied attributes and remaining variants.
| Parameter | id: string |
|---|---|
| Description |
anyReturns whether the possible price for the configurable product is a range of different prices
| Parameter | id: string |
|---|---|
| Description |
anyReturns whether the variants of the configurable product have (a) discount(s)
| Parameter | id: string |
|---|---|
| Description |
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 |
anyThe variants that match the applied attributes of a configurable product.
| Parameter | id: string |
|---|---|
| Description |
void| Parameter | action: undefined |
|---|---|
| Description |