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, storefrontService: StorefrontService, configService: ConfigurationService)
|
||||||||||||||||||
|
Parameters :
|
| abandonCart |
abandonCart()
|
|
An attempt to abandon the cart is made.
Returns :
Observable<Cart>
|
| cartReprice |
cartReprice()
|
|
Attempts to apply pricing to the cart.
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 a new cart and sets it as the active cart.
Returns :
Observable<Cart>
|
| getAlerts | |||||||||||||||
getAlerts(views: Array
|
|||||||||||||||
|
Method responsible to get the alerts on component initialization for cart, revalidations, isDiscovery. See Views for more details on the structure and fields required.
Parameters :
Returns :
Observable<Array<Views>>
an Observable of active alert messages |
| getCartRecord |
getCartRecord()
|
|
Method responsible for retrieving alerts related to 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>>([])
|