projects/congarevenuecloud/elements/src/lib/alert/services/alert.service.ts
Service is responsible to fetch the erros on cart Revalidation to show on alerts
Properties |
Methods |
constructor(cartService: CartService, productConfigurationService: ProductConfigurationService, revalidateCartService: RevalidateCartService)
|
||||||||||||
Parameters :
|
abandonCart |
abandonCart()
|
An attempt to abandon the cart is made.
Returns :
Observable<Cart>
|
cartReprice |
cartReprice()
|
An attempt to price cart is made.
Returns :
Observable<Cart>
|
cloneCart |
cloneCart()
|
An attempt to clone the cart is made.
Returns :
Observable<Cart>
|
closeError | ||||||
closeError(view: Views)
|
||||||
To close the alert
Parameters :
Returns :
void
|
createCart |
createCart()
|
Creates new cart and set it as active.
Returns :
Observable<Cart>
|
getCartRecord |
getCartRecord()
|
Method responsible to get the alerts on cart errors
Returns :
Observable<Cart>
an Observable of active cart alert messages |
getContinue |
getContinue()
|
An attempt to wait for the pricing to be completed
Returns :
void
|
openRevalidateCartModal |
openRevalidateCartModal()
|
Open revalidate cart modal popup
Returns :
void
|
pendingSubject |
Type : BehaviorSubject<Array<Views>>
|
Default value : new BehaviorSubject<Array<Views>>([])
|