File

projects/apttus/ecommerce/src/lib/modules/pricing/services/price-matrix.service.ts

Description

Price matrixes are used to map various product facets to a price adjustment. For example, there may be matrixes for attributes or quantities that adjust the base price. Use this service to retrieve the data for those matrixes.

Extends

AObjectService

Index

Properties
Methods

Methods

Public getPriceMatrixData
getPriceMatrixData(priceListItemList: Array, attributeGroupName?: string)

Method returns the price matrix data for a given array of price list items.

Parameters :
Name Type Optional Description
priceListItemList Array<PriceListItem> No

The array of price list items to return price matrix data for.

attributeGroupName string Yes

An optional parameter of definining the specific attribute group to retrieve matrix data for

Returns : Observable<Array<PriceMatrix>>

A hot observable containing an array of price matrix data for the given price list items.

Public getPriceMatrixDataByCode
getPriceMatrixDataByCode(productCode: string, attributeGroupName?: string)

Method gets all the price matrix data for a specific product.

Parameters :
Name Type Optional Description
productCode string No

the code of the product to retrieve the price matrix data for.

attributeGroupName string Yes

An optional parameter of definining the specific attribute group to retrieve matrix data for

Returns : Observable<Array<PriceMatrix>>

A hot observable containing an array of price matrix data for the given product.

Properties

type
Default value : PriceMatrix

result-matching ""

    No results matching ""