File

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

Description

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.

Usage

Example :
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);
}

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 defining 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 defining 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

priceListItemService
Default value : this.injector.get(PriceListItemService)
type
Default value : PriceMatrix

results matching ""

    No results matching ""