@spiffcommerce/core 18.3.0 → 18.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1437,8 +1437,13 @@ interface WorkflowExperience {
1437
1437
  getSelectionPriceSubunits(): number;
1438
1438
  /**
1439
1439
  * Returns the total cost in subunits for the base product.
1440
+ * @param includeAdditionalProduct When true the additional product cost will be included in the total (if configured).
1440
1441
  */
1441
- getBasePriceSubunits(): number;
1442
+ getBasePriceSubunits(includeAdditionalProduct?: boolean): number;
1443
+ /**
1444
+ * If an additional product is configured, returns the base price of that product. Returns undefined otherwise.
1445
+ */
1446
+ getAdditionalProductPriceSubunits(): number | undefined;
1442
1447
  /**
1443
1448
  * A convenience function returning the sum of the selection and base price values.
1444
1449
  */
@@ -1524,7 +1529,8 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
1524
1529
  getSteps(): StepHandle<AnyStepData>[];
1525
1530
  getScenes(): Scene[];
1526
1531
  getSelectionPriceSubunits(): number;
1527
- getBasePriceSubunits(): number;
1532
+ getBasePriceSubunits(includeAdditionalProduct?: boolean): number;
1533
+ getAdditionalProductPriceSubunits(): number | undefined;
1528
1534
  getTotalPriceSubunits(): number;
1529
1535
  copySelectionsViaGlobalConfiguration(bundle: Bundle, experience: WorkflowExperience, filter?: StepHandle<AnyStepData>[]): Promise<void>;
1530
1536
  getStepByName(name: string): TextStepHandle | FrameStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;