Skip to content

Releases: HubSpot/quote-dev-sdk

v0.3.0

Choose a tag to compare

@jevenson jevenson released this 19 Oct 18:04
fa39902

New Features

  • useQuoteTotals() hook returns the quote's current QuoteTotals, with actions.recalculate() to refresh them.
  • useQuotePdf() hook with actions.reportPdfStale() to signal that a buyer interaction changed the quote and its PDF needs regenerating. data.canReportPdfStale indicates whether reporting is currently allowed.
  • quoteTotals (optional) on QuoteTemplateContext, with new QuoteTotals, QuoteTotalsSubTotal, QuoteTotalsDiscountSubTotal, QuoteTotalsTaxSubTotal, QuoteTotalsFutureCharge, and QuoteTotalsTaxBreakdown types.
  • lineItemTiers (optional) on QuoteTemplateContext, with new QuoteTierSummary, QuoteTierBreakdown, QuoteTierRange, and QuoteTierPrice types.

v0.2.0

Choose a tag to compare

@jevenson jevenson released this 30 Sep 19:35

New Features

  • Added useQuoteAcceptance and useQuotePayment React hooks for reading quote acceptance and payment state.
  • Added hs_sender_jobtitle and hs_allowed_commerce_payment_methods to QuoteProperties.

v0.1.2

Choose a tag to compare

@jevenson jevenson released this 30 Sep 19:35

New Features

  • Added hs_billing_invoice_checkout to QuoteProperties.

v0.1.1

Choose a tag to compare

@jevenson jevenson released this 30 Sep 19:35

Improvements and Refactoring

  • Corrected the README's description of quoteTemplateContext custom-property behavior. No changes to the exported types.

v0.1.0

Choose a tag to compare

@jevenson jevenson released this 30 Sep 19:35

New Features

  • Initial release of @hubspot/quote-dev-sdk — QuoteTemplateContext and its member types for typing the data passed from HubL into HubSpot Commerce Hub quote-template React modules.