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 for applying pending cart revalidation to the active cart.

See RevalidationPayload for more details on the structure and fields required.

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.

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

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 ""