@veloceapps/sdk 8.0.0-33 → 8.0.0-34

Sign up to get free protection for your applications and to get access to all the features.
@@ -738,6 +738,7 @@ class ConfigurationService {
738
738
  this.lineItem = new BehaviorSubject(undefined);
739
739
  this.charges = new BehaviorSubject({});
740
740
  this.pricePlans = new BehaviorSubject({});
741
+ this.procedureContext = new BehaviorSubject({});
741
742
  this.isLoadingSubj$ = new BehaviorSubject(false);
742
743
  this.isLoading$ = this.isLoadingSubj$.asObservable();
743
744
  this.hasUnsavedChanges = false;
@@ -814,6 +815,12 @@ class ConfigurationService {
814
815
  get pricePlansSnapshot() {
815
816
  return this.pricePlans.value;
816
817
  }
818
+ get procedureContext$() {
819
+ return this.procedureContext.asObservable();
820
+ }
821
+ get procedureContextSnapshot() {
822
+ return this.procedureContext.value;
823
+ }
817
824
  configure() {
818
825
  return this.configureRequest$(this.generateRequest());
819
826
  }
@@ -824,10 +831,11 @@ class ConfigurationService {
824
831
  const mainPricingEnabled = runtimeContext.properties?.PricingEnabled;
825
832
  const pricingEnabled = mainPricingEnabled ? mainPricingEnabled === 'true' : uiDefinitionProperties.pricingEnabled;
826
833
  this.isLoadingSubj$.next(true);
827
- return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems }) => {
834
+ return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems, procedureContext }) => {
828
835
  this.contextService.update(context ?? {});
829
836
  this.charges.next(charges ?? {});
830
837
  this.pricePlans.next(pricePlans ?? {});
838
+ this.procedureContext.next(procedureContext ?? {});
831
839
  if (lineItem) {
832
840
  this.lineItem.next(lineItem);
833
841
  }