File

projects/congarevenuecloud/elements/src/lib/revalidate-cart-modal/services/revalidate-cart.service.ts

Description

Service responsbile to handle the business logic of revalidation of cart.

Extends

AObjectService

Index

Properties
Methods

Methods

applyRevalidation
applyRevalidation(revalidationItem: RevalidationPayload)

The method is responsible to apply pending cart Revalidation on the active cart.

Parameters :
Name Type Optional Description
revalidationItem RevalidationPayload No

represents the revalidation payload

Returns : Observable<boolean>

observable of boolean value as true on revalidation success

getRevalidateLines
getRevalidateLines()

The method is responsible to fetch the Revalidation items on the active cart.

Returns : Observable<RevalidationItem>

an observable of type as RevalidationItem

onInit
onInit()
Returns : void

Properties

apiService
Type : ApiService
Default value : this.injector.get(ApiService)
Protected cartService
Type : CartService
Default value : this.injector.get(CartService)
Protected exceptionService
Type : ExceptionService
Default value : this.injector.get(ExceptionService)
metadataService
Type : MetadataService
Default value : this.injector.get(MetadataService)
modalRef
Type : BsModalRef
Protected modalService
Type : BsModalService
Default value : this.injector.get(BsModalService)
revalidateFlag
Type : BehaviorSubject<boolean>
Default value : new BehaviorSubject<boolean>(false)
Protected storefrontService
Type : StorefrontService
Default value : this.injector.get(StorefrontService)

results matching ""

    No results matching ""