projects/congarevenuecloud/ecommerce/src/lib/modules/pricing/services/price-list-item.service.ts
The price list items map a product to a specific price list. They provide the base price for any product in your catalog
import { PriceListItemService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private priceListItemService: PriceListItemService)
}
// or
export class MyService extends AObjectService {
private priceListItemService: PriceListItemService = this.injector.get(PriceListItemService);
}
AObjectService
Properties |
Methods |
Static getPriceListItemForProduct | ||||||||||||
getPriceListItemForProduct(product: Product, chargeType?: ChargeType)
|
||||||||||||
Method gets price list for a given product. Example:Example :
Parameters :
Returns :
PriceListItem
price list item object. |
type |
Default value : PriceListItem
|