projects/congarevenuecloud/ecommerce/src/lib/modules/pricing/services/price-matrix.service.ts
This service is a work in progress.
Price matrices 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 matrices.
import { PriceMatrixService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private priceMatrixService: PriceMatrixService)
}
// or
export class MyService extends AObjectService {
private priceMatrixService: PriceMatrixService = this.injector.get(PriceMatrixService);
}
AObjectService
Properties |
Methods |
|
Public getPriceMatrixData | ||||||||||||
getPriceMatrixData(priceListItemList: Array
|
||||||||||||
Method returns the price matrix data for a given array of price list items.
Parameters :
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 :
Returns :
Observable<Array<PriceMatrix>>
A hot observable containing an array of price matrix data for the given product. |
priceListItemService |
Default value : this.injector.get(PriceListItemService)
|
type |
Default value : PriceMatrix
|