projects/congarevenuecloud/elements/src/lib/revalidate-cart-modal/services/revalidate-cart.service.ts
Service responsbile to handle the business logic of revalidation of cart.
AObjectService
Properties |
|
Methods |
applyRevalidation | ||||||||
applyRevalidation(revalidationItem: RevalidationPayload)
|
||||||||
The method is responsible to apply pending cart Revalidation on the active cart.
Parameters :
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
|
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)
|