@veloceapps/sdk 8.0.0-94 → 8.0.0-95

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,15 +33,20 @@ const getDefaultLineItem = (context, uiDefinitionProperties, qty = 1) => {
33
33
  ...(uiDefinitionProperties.offeringId ? { offeringId: uiDefinitionProperties.offeringId } : {}),
34
34
  };
35
35
  };
36
- const getGuidedSellingConfigurationRequest = (data) => {
36
+ const getGuidedSellingConfigurationRequest = (data, context) => {
37
+ const _context = { ...context };
38
+ delete _context.configurationToken;
39
+ const properties = { ...context.properties };
40
+ delete properties['ConfigurationToken'];
37
41
  return {
38
42
  mode: 'SEARCH',
39
43
  step: 'START',
40
44
  attributeDomainMode: 'ALL',
41
45
  context: {
42
- headerId: 'TestId',
46
+ ..._context,
43
47
  mode: ConfigurationContextMode.TEST,
44
48
  properties: {
49
+ ...properties,
45
50
  ModelId: data.modelId,
46
51
  Name: 'Veloce Guided Selling',
47
52
  PricingEnabled: 'false',
@@ -845,7 +850,7 @@ class ConfigurationService {
845
850
  configureGuidedSelling$(data) {
846
851
  return this.configurationApiService
847
852
  .configureLineItem({
848
- configurationRequest: getGuidedSellingConfigurationRequest(data),
853
+ configurationRequest: getGuidedSellingConfigurationRequest(data, this.contextService.resolve()),
849
854
  })
850
855
  .pipe(catchError(error => {
851
856
  if (error instanceof HttpErrorResponse) {