@spiffcommerce/core 18.1.0 → 18.2.0-beta.1

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
@@ -645,8 +645,23 @@ interface IntegrationProduct {
645
645
  * The integration that this product is associated with. For example a Shopify integration.
646
646
  */
647
647
  integration?: Integration;
648
+ /**
649
+ * The ID of an additional product (on the third party platform) that should be added to the cart.
650
+ */
648
651
  additionalExternalProductId?: string;
652
+ /**
653
+ * A supplementary ID for the additional product. Shopify uses the variant ids to add products to the cart.
654
+ */
649
655
  additionalExternalVariantId?: string;
656
+ /**
657
+ * When the additionalExternalProductId is set, this is the IntegrationProduct that is associated with it.
658
+ * If no Spiff product has been associated with the additionalExternalProductId, this will be null.
659
+ */
660
+ additionalIntegrationProduct?: IntegrationProduct;
661
+ /**
662
+ * The product that this integration product is associated with.
663
+ */
664
+ product?: Product;
650
665
  }
651
666
  interface Integration {
652
667
  id: string;
@@ -1642,6 +1657,25 @@ declare class CollectionProduct {
1642
1657
  * The raw product resource. This is generally not needed and should be avoided.
1643
1658
  */
1644
1659
  getResource(): Product;
1660
+ /**
1661
+ * Gets the base price of the product. Optionally include additional product pricing.
1662
+ * @param includeAdditionalProduct Optionally include additional product pricing. You must provide at least one of the fields on this object.
1663
+ * @returns
1664
+ */
1665
+ getBasePrice(includeAdditionalProduct?: {
1666
+ /**
1667
+ * The integration type to locate the additional product on.
1668
+ */
1669
+ integrationType?: IntegrationType;
1670
+ /**
1671
+ * The external ID of the integration to locate the additional product on.
1672
+ */
1673
+ externalId?: string;
1674
+ /**
1675
+ * The internal Spiff integration ID to locate the additional product on.
1676
+ */
1677
+ integrationId?: string;
1678
+ }): number;
1645
1679
  }
1646
1680
  /**
1647
1681
  * Represents a the relationship between a workflow and a product.