projects/congarevenuecloud/ecommerce/src/lib/modules/catalog/services/product-information.service.ts
The Product Information service is a way to find the attachments associated with a product
import { ProductInformationService, AObjectService } from '@congarevenuecloud/ecommerce';
constructor(private productInformationService: ProductInformationService) {
// or
export class MyService extends AObjectService {
private productInformationService: ProductInformationService = this.injector.get(ProductInformationService);
}
AObjectService
Properties |
Methods |
|
Public downloadProductAttachment | ||||||||
downloadProductAttachment(attachmentUrl: string)
|
||||||||
Method is used to download the attachement of product. Example:Example :
/** To download the attachment using the provided attachment URL.
Parameters :
Returns :
void
|
Public getAttachmentUrl | ||||||||
getAttachmentUrl(attachmentId: string)
|
||||||||
Method is used to retrieve the URL for downloading an attachment based on the provided attachment ID.. Example:Example :
Parameters :
Returns :
Observable<string>
An Observable that emits the URL as a string. |
Public getProductInformation | |||||||||||||||
getProductInformation(productId: string, memoizeOptions: MemoizeOptions)
|
|||||||||||||||
Decorators :
@MemoizeWithHash()
|
|||||||||||||||
Method is used to retrieve the list of production information items with attachments for a given product. Example:Example :
Parameters :
Returns :
Observable<ProductInformation[]>
an observable containing the product information details for the given product. |
type |
Default value : ProductInformation
|