@schematichq/schematic-components 2.29.0 → 2.29.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.
@@ -7453,6 +7453,7 @@ declare const en: {
7453
7453
  "Error saving custom field values. Please try again.": string;
7454
7454
  "Pay now": string;
7455
7455
  "Payment Details": string;
7456
+ "Payment due": string;
7456
7457
  "Plan selected": string;
7457
7458
  "Please accept the agreement to continue.": string;
7458
7459
  "Please try again later.": string;
@@ -14701,6 +14702,24 @@ export declare const useEmbed: () => EmbedContextProps;
14701
14702
 
14702
14703
  export declare function useIsLightBackground(): boolean;
14703
14704
 
14705
+ /**
14706
+ * The date the next invoice is raised, and, for net-terms subscriptions, the
14707
+ * later date it must be paid by.
14708
+ *
14709
+ * `upcomingInvoice.dueDate` is the deadline for *paying* the invoice. On a
14710
+ * `send_invoice` subscription that is the bill date plus the net terms, so it
14711
+ * falls weeks after the customer is actually billed. The subscription's period
14712
+ * end is when the invoice is raised; `dueDate` is only the fallback, for the
14713
+ * automatic-collection case where the two coincide.
14714
+ *
14715
+ * A subscription set to cancel at period end has no next bill, so both dates
14716
+ * are `undefined`.
14717
+ */
14718
+ export declare function useNextBillDate(upcomingInvoice?: UpcomingInvoiceResponseData | null): {
14719
+ billDate: Date | undefined;
14720
+ paymentDueDate: Date | undefined;
14721
+ };
14722
+
14704
14723
  export declare const usePaymentConfirmation: ({ stripe, clientSecret, onSuccess, onError, autoConfirm, }: UsePaymentConfirmationProps) => UsePaymentConfirmationReturn;
14705
14724
 
14706
14725
  declare interface UsePaymentConfirmationProps {