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 for applying pending cart revalidation to the active cart. See RevalidationPayload for more details on the structure and fields required.
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. See RevalidationItem for more details on the structure and fields required.
Returns :
Observable<RevalidationItem>
observable that emits revalidation items of type 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)
|