@bunnyapp/components 1.8.0-beta.2 → 1.8.0-beta.21
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/cjs/index.js +5124 -4379
- package/dist/cjs/types/src/ajax.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
- package/dist/cjs/types/src/components/DocumentTemplatePreview.d.ts +5 -1
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +35 -14
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
- package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +9 -0
- package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +62 -37
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
- package/dist/cjs/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +28 -1
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/cjs/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
- package/dist/{esm/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → cjs/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
- package/dist/cjs/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
- package/dist/cjs/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
- package/dist/cjs/types/src/components/Quote/queries/quoteAccept.d.ts +38 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +41 -36
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +25 -18
- package/dist/cjs/types/src/components/Signup/SignupContent.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
- package/dist/cjs/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
- package/dist/cjs/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
- package/dist/cjs/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
- package/dist/cjs/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
- package/dist/cjs/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
- package/dist/cjs/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
- package/dist/cjs/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
- package/dist/cjs/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +9 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +24 -14
- package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
- package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +1 -1
- package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +8 -2
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +9 -4
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +1 -0
- package/dist/cjs/types/src/utils/couponUtils.d.ts +6 -6
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- package/dist/esm/index.js +5125 -4380
- package/dist/esm/types/src/ajax.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
- package/dist/esm/types/src/components/DocumentTemplatePreview.d.ts +5 -1
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +35 -14
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
- package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +9 -0
- package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +62 -37
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
- package/dist/esm/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
- package/dist/esm/types/src/components/Quote/Quote.d.ts +28 -1
- package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/esm/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
- package/dist/{cjs/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → esm/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
- package/dist/esm/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
- package/dist/esm/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
- package/dist/esm/types/src/components/Quote/queries/quoteAccept.d.ts +38 -0
- package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +41 -36
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
- package/dist/esm/types/src/components/Signup/Signup.d.ts +25 -18
- package/dist/esm/types/src/components/Signup/SignupContent.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
- package/dist/esm/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
- package/dist/esm/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
- package/dist/esm/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
- package/dist/esm/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
- package/dist/esm/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
- package/dist/esm/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
- package/dist/esm/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
- package/dist/esm/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
- package/dist/esm/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +9 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +24 -14
- package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
- package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +1 -1
- package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +8 -2
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +9 -4
- package/dist/esm/types/src/utils/chargeUtils.d.ts +1 -0
- package/dist/esm/types/src/utils/couponUtils.d.ts +6 -6
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- package/dist/index.d.ts +132 -34
- package/package.json +7 -4
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +0 -12
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -41
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +0 -39
- package/dist/cjs/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
- package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +0 -10
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +0 -12
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -41
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +0 -39
- package/dist/esm/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
- package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +0 -10
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
- /package/dist/cjs/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
- /package/dist/cjs/types/src/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.d.ts} +0 -0
- /package/dist/esm/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
- /package/dist/esm/types/src/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const getAccountForSignupCompose: ({ token, code, apiHost, }: {
|
|
2
|
+
token?: string;
|
|
3
|
+
code: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
id: string;
|
|
7
|
+
name: string | null;
|
|
8
|
+
billingCountry: string | null;
|
|
9
|
+
billingState: string | null;
|
|
10
|
+
billingCity: string | null;
|
|
11
|
+
billingZip: string | null;
|
|
12
|
+
billingStreet: string | null;
|
|
13
|
+
taxNumber: string | null;
|
|
14
|
+
billingContact: {
|
|
15
|
+
firstName: string;
|
|
16
|
+
lastName: string | null;
|
|
17
|
+
email: string | null;
|
|
18
|
+
} | null;
|
|
19
|
+
} | null>;
|
|
20
|
+
export default getAccountForSignupCompose;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const getCurrentUserAccountForSignup: ({ token, apiHost, }: {
|
|
2
|
+
token?: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
currentUser: {
|
|
6
|
+
account: {
|
|
7
|
+
id: string;
|
|
8
|
+
[$tada.fragmentRefs]: {
|
|
9
|
+
SignupForm_AccountFragment: "Account";
|
|
10
|
+
};
|
|
11
|
+
} | null;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export default getCurrentUserAccountForSignup;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare const useSignupQuote: () => {
|
|
3
|
+
hasSigningPlugins: boolean | undefined;
|
|
4
|
+
onPaymentHoldSuccess: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function SignupQuoteProvider({ children, }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { useSignupQuote };
|
package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const SignupQuote_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
id: string | null;
|
|
3
|
+
formattedQuote: {
|
|
4
|
+
html: string | null;
|
|
5
|
+
} | null;
|
|
6
|
+
acceptedAt: unknown;
|
|
7
|
+
acceptedByName: string | null;
|
|
8
|
+
state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
|
|
9
|
+
documentTemplateId: string | null;
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "SignupQuote_QuoteFragment";
|
|
12
|
+
on: "Quote";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
|
|
3
|
-
name: string;
|
|
4
|
-
quantityMin: number | null;
|
|
5
|
-
quantityMax: number | null;
|
|
6
|
-
id: string;
|
|
7
|
-
feature: {
|
|
8
|
-
id: string;
|
|
9
|
-
} | null;
|
|
10
|
-
}, {}, {
|
|
11
|
-
fragment: "CheckoutBarInput_PriceListChargeFragment";
|
|
12
|
-
on: "PriceListCharge";
|
|
13
|
-
masked: true;
|
|
14
|
-
}>;
|
|
2
|
+
import { CheckoutBarInput_PriceListChargeFragment } from './fragments/CheckoutBarInput_PriceListChargeFragment';
|
|
15
3
|
declare const CheckoutBarInput: ({ disabled, priceListCharge: maskedPriceListCharge, quantity, onQuantityChanged, }: {
|
|
16
4
|
disabled?: boolean;
|
|
17
5
|
priceListCharge: FragmentOf<typeof CheckoutBarInput_PriceListChargeFragment>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CheckoutBarInput_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
name: string;
|
|
3
|
+
quantityMin: number | null;
|
|
4
|
+
quantityMax: number | null;
|
|
5
|
+
id: string;
|
|
6
|
+
feature: {
|
|
7
|
+
id: string;
|
|
8
|
+
} | null;
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "CheckoutBarInput_PriceListChargeFragment";
|
|
11
|
+
on: "PriceListCharge";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const useChargeCRUD_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
id: string | null;
|
|
3
|
+
startDate: unknown;
|
|
4
|
+
quoteChanges: {
|
|
5
|
+
subscriptionId: string | null;
|
|
6
|
+
charges: {
|
|
7
|
+
id: string | null;
|
|
8
|
+
quantity: number | null;
|
|
9
|
+
priceListCharge: {
|
|
10
|
+
id: string;
|
|
11
|
+
} | null;
|
|
12
|
+
}[];
|
|
13
|
+
id: string | null;
|
|
14
|
+
[$tada.fragmentRefs]: {
|
|
15
|
+
useSelectedPriceListQuoteChange_QuoteChangeFragment: "QuoteChange";
|
|
16
|
+
};
|
|
17
|
+
}[] | null;
|
|
18
|
+
}, {}, {
|
|
19
|
+
fragment: "useChargeCRUD_QuoteFragment";
|
|
20
|
+
on: "Quote";
|
|
21
|
+
masked: true;
|
|
22
|
+
}>;
|
|
@@ -23,7 +23,7 @@ export declare const useChargeCRUD_SubscriptionFragment: import("gql.tada").Tada
|
|
|
23
23
|
*
|
|
24
24
|
* All network operations are debounced.
|
|
25
25
|
*/
|
|
26
|
-
export declare const useChargeCRUD: ({ priceListChargeId, featureId }: {
|
|
26
|
+
export declare const useChargeCRUD: ({ priceListChargeId, featureId, }: {
|
|
27
27
|
priceListChargeId: string;
|
|
28
28
|
featureId: string | undefined;
|
|
29
29
|
}) => {
|
|
@@ -5,7 +5,7 @@ export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumen
|
|
|
5
5
|
amountDue: number | null;
|
|
6
6
|
quoteChanges: {
|
|
7
7
|
charges: {
|
|
8
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
8
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
9
9
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
10
10
|
}[];
|
|
11
11
|
}[] | null;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import PriceList from '@/types/PriceList';
|
|
2
|
-
export declare const PlanPickerCheckoutBar_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
-
[$tada.fragmentRefs]: {
|
|
4
|
-
CheckoutBarInput_PriceListChargeFragment: "PriceListCharge";
|
|
5
|
-
};
|
|
6
|
-
feature: {
|
|
7
|
-
id: string;
|
|
8
|
-
} | null;
|
|
9
|
-
featureAddon: boolean | null;
|
|
10
|
-
id: string;
|
|
11
|
-
}, {}, {
|
|
12
|
-
fragment: "PlanPickerCheckoutBar_PriceListChargeFragment";
|
|
13
|
-
on: "PriceListCharge";
|
|
14
|
-
masked: true;
|
|
15
|
-
}>;
|
|
16
2
|
declare const PlanPickerCheckoutBar: ({ selectedPriceList, handlePortalErrors, onCheckoutSuccess, }: {
|
|
17
3
|
selectedPriceList: PriceList;
|
|
18
4
|
handlePortalErrors?: (errors: any) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PlanPickerCheckoutBar_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
CheckoutBarInput_PriceListChargeFragment: "PriceListCharge";
|
|
4
|
+
};
|
|
5
|
+
feature: {
|
|
6
|
+
id: string;
|
|
7
|
+
} | null;
|
|
8
|
+
featureAddon: boolean | null;
|
|
9
|
+
id: string;
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "PlanPickerCheckoutBar_PriceListChargeFragment";
|
|
12
|
+
on: "PriceListCharge";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
@@ -5,6 +5,9 @@ export declare const AddonPlans_PlanFragment: import("gql.tada").TadaDocumentNod
|
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
periodMonths: number | null;
|
|
8
|
+
plan: {
|
|
9
|
+
selfServiceBuy: boolean | null;
|
|
10
|
+
} | null;
|
|
8
11
|
[$tada.fragmentRefs]: {
|
|
9
12
|
AddonPlanModal_PriceListFragment: "PriceList";
|
|
10
13
|
} & {
|
|
@@ -9,6 +9,9 @@ export declare const PriceListSelectorUpgradingSubscription_SubscriptionFragment
|
|
|
9
9
|
addon: boolean | null;
|
|
10
10
|
} | null;
|
|
11
11
|
} | null;
|
|
12
|
+
[$tada.fragmentRefs]: {
|
|
13
|
+
createAvailableBillingPeriods_SubscriptionFragment: "Subscription";
|
|
14
|
+
};
|
|
12
15
|
}, {}, {
|
|
13
16
|
fragment: "PriceListSelectorUpgradingSubscription_SubscriptionFragment";
|
|
14
17
|
on: "Subscription";
|
|
@@ -5,171 +5,10 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
|
5
5
|
}) => Promise<{
|
|
6
6
|
subscriptions: {
|
|
7
7
|
nodes: ({
|
|
8
|
-
addonSubscriptions: {
|
|
9
|
-
id: string;
|
|
10
|
-
priceList: {
|
|
11
|
-
id: string;
|
|
12
|
-
} | null;
|
|
13
|
-
plan: {
|
|
14
|
-
id: string;
|
|
15
|
-
} | null;
|
|
16
|
-
}[] | null;
|
|
17
|
-
cancellationDate: unknown;
|
|
18
|
-
currencyId: string;
|
|
19
|
-
endDate: unknown;
|
|
20
|
-
evergreen: boolean;
|
|
21
8
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
id: string;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
UpgradingSubscriptionContext_SubscriptionFragment: "Subscription";
|
|
25
11
|
};
|
|
26
|
-
daysLeftInTrial: number | null;
|
|
27
|
-
plan: {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
selfServiceBuy: boolean | null;
|
|
31
|
-
selfServiceCancel: boolean | null;
|
|
32
|
-
selfServiceRenew: boolean | null;
|
|
33
|
-
} | null;
|
|
34
|
-
priceList: {
|
|
35
|
-
id: string;
|
|
36
|
-
periodMonths: number | null;
|
|
37
|
-
name: string;
|
|
38
|
-
plan: {
|
|
39
|
-
id: string;
|
|
40
|
-
addon: boolean | null;
|
|
41
|
-
addonPlans: {
|
|
42
|
-
id: string;
|
|
43
|
-
}[] | null;
|
|
44
|
-
} | null;
|
|
45
|
-
} | null;
|
|
46
|
-
product: {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
showProductNameOnLineItem: boolean | null;
|
|
50
|
-
} | null;
|
|
51
|
-
startDate: unknown;
|
|
52
|
-
state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
53
|
-
trialEndDate: unknown;
|
|
54
|
-
trialPeriod: string;
|
|
55
|
-
trialStartDate: unknown;
|
|
56
|
-
trialExpirationAction: "ACTIVATE" | "CANCEL" | null;
|
|
57
|
-
charges: {
|
|
58
|
-
priceListCharge: {
|
|
59
|
-
priceListChargeTiers: {
|
|
60
|
-
price: number | null;
|
|
61
|
-
starts: number | null;
|
|
62
|
-
}[] | null;
|
|
63
|
-
featureAddon: boolean | null;
|
|
64
|
-
id: string;
|
|
65
|
-
} | null;
|
|
66
|
-
amount: number | null;
|
|
67
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
68
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
69
|
-
discount: number | null;
|
|
70
|
-
discountedPrice: string | null;
|
|
71
|
-
endDate: unknown;
|
|
72
|
-
expired: boolean;
|
|
73
|
-
feature: {
|
|
74
|
-
name: string;
|
|
75
|
-
} | null;
|
|
76
|
-
id: string | null;
|
|
77
|
-
isAmendment: boolean;
|
|
78
|
-
isRamp: boolean;
|
|
79
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
80
|
-
name: string | null;
|
|
81
|
-
periodPrice: number | null;
|
|
82
|
-
price: string | null;
|
|
83
|
-
priceDecimals: number | null;
|
|
84
|
-
priceListChargeId: string | null;
|
|
85
|
-
priceTiers: {
|
|
86
|
-
starts: number | null;
|
|
87
|
-
price: number | null;
|
|
88
|
-
}[] | null;
|
|
89
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
90
|
-
quantity: number | null;
|
|
91
|
-
selfServiceQuantity: boolean | null;
|
|
92
|
-
startDate: unknown;
|
|
93
|
-
trial: boolean;
|
|
94
|
-
}[] | null;
|
|
95
|
-
chargeReport: {
|
|
96
|
-
priceListCharge: {
|
|
97
|
-
priceListChargeTiers: {
|
|
98
|
-
price: number | null;
|
|
99
|
-
starts: number | null;
|
|
100
|
-
}[] | null;
|
|
101
|
-
featureAddon: boolean | null;
|
|
102
|
-
id: string;
|
|
103
|
-
code: string | null;
|
|
104
|
-
} | null;
|
|
105
|
-
amount: number | null;
|
|
106
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
107
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
108
|
-
discount: number | null;
|
|
109
|
-
discountedPrice: string | null;
|
|
110
|
-
endDate: unknown;
|
|
111
|
-
expired: boolean;
|
|
112
|
-
feature: {
|
|
113
|
-
name: string;
|
|
114
|
-
} | null;
|
|
115
|
-
id: string | null;
|
|
116
|
-
isAmendment: boolean;
|
|
117
|
-
isRamp: boolean;
|
|
118
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
119
|
-
name: string | null;
|
|
120
|
-
periodPrice: number | null;
|
|
121
|
-
price: string | null;
|
|
122
|
-
priceDecimals: number | null;
|
|
123
|
-
priceListChargeId: string | null;
|
|
124
|
-
priceTiers: {
|
|
125
|
-
starts: number | null;
|
|
126
|
-
price: number | null;
|
|
127
|
-
}[] | null;
|
|
128
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
129
|
-
quantity: number | null;
|
|
130
|
-
selfServiceQuantity: boolean | null;
|
|
131
|
-
startDate: unknown;
|
|
132
|
-
trial: boolean;
|
|
133
|
-
}[] | null;
|
|
134
|
-
currentCharges: {
|
|
135
|
-
priceListCharge: {
|
|
136
|
-
priceListChargeTiers: {
|
|
137
|
-
price: number | null;
|
|
138
|
-
starts: number | null;
|
|
139
|
-
}[] | null;
|
|
140
|
-
featureAddon: boolean | null;
|
|
141
|
-
id: string;
|
|
142
|
-
code: string | null;
|
|
143
|
-
} | null;
|
|
144
|
-
amount: number | null;
|
|
145
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
146
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
147
|
-
discount: number | null;
|
|
148
|
-
discountedPrice: string | null;
|
|
149
|
-
endDate: unknown;
|
|
150
|
-
expired: boolean;
|
|
151
|
-
feature: {
|
|
152
|
-
name: string;
|
|
153
|
-
} | null;
|
|
154
|
-
id: string | null;
|
|
155
|
-
isAmendment: boolean;
|
|
156
|
-
isRamp: boolean;
|
|
157
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
158
|
-
name: string | null;
|
|
159
|
-
periodPrice: number | null;
|
|
160
|
-
price: string | null;
|
|
161
|
-
priceDecimals: number | null;
|
|
162
|
-
priceListChargeId: string | null;
|
|
163
|
-
priceTiers: {
|
|
164
|
-
starts: number | null;
|
|
165
|
-
price: number | null;
|
|
166
|
-
}[] | null;
|
|
167
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
168
|
-
quantity: number | null;
|
|
169
|
-
selfServiceQuantity: boolean | null;
|
|
170
|
-
startDate: unknown;
|
|
171
|
-
trial: boolean;
|
|
172
|
-
}[] | null;
|
|
173
12
|
} | null)[] | null;
|
|
174
13
|
} | null;
|
|
175
14
|
}>;
|
package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts
CHANGED
|
@@ -25,8 +25,12 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
25
25
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
26
26
|
} & {
|
|
27
27
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
28
|
+
} & {
|
|
29
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
30
|
+
} & {
|
|
31
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
28
32
|
};
|
|
29
|
-
} | undefined;
|
|
33
|
+
} | null | undefined;
|
|
30
34
|
children?: import("react").ReactNode;
|
|
31
35
|
}) => import("react/jsx-runtime").JSX.Element, useUpgradingSubscription: () => {
|
|
32
36
|
id: string;
|
|
@@ -54,5 +58,9 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
54
58
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
55
59
|
} & {
|
|
56
60
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
61
|
+
} & {
|
|
62
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
63
|
+
} & {
|
|
64
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
57
65
|
};
|
|
58
66
|
} | undefined;
|
|
@@ -24,6 +24,10 @@ export declare const UpgradingSubscriptionContext_SubscriptionFragment: import("
|
|
|
24
24
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
25
25
|
} & {
|
|
26
26
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
27
|
+
} & {
|
|
28
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
29
|
+
} & {
|
|
30
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
27
31
|
};
|
|
28
32
|
}, {}, {
|
|
29
33
|
fragment: "UpgradingSubscriptionContext_SubscriptionFragment";
|
|
@@ -4,7 +4,8 @@ export declare const CanShowQuantitiesInput_SubscriptionChargeFragment: import("
|
|
|
4
4
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
5
5
|
expired: boolean;
|
|
6
6
|
selfServiceQuantity: boolean | null;
|
|
7
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
8
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
8
9
|
}, {}, {
|
|
9
10
|
fragment: "CanShowQuantitiesInput_SubscriptionChargeFragment";
|
|
10
11
|
on: "SubscriptionCharge";
|
|
@@ -75,7 +75,7 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
|
75
75
|
id: string | null;
|
|
76
76
|
isAmendment: boolean;
|
|
77
77
|
isRamp: boolean;
|
|
78
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
78
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
79
79
|
name: string | null;
|
|
80
80
|
periodPrice: number | null;
|
|
81
81
|
price: string | null;
|
|
@@ -134,7 +134,7 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
|
134
134
|
id: string | null;
|
|
135
135
|
isAmendment: boolean;
|
|
136
136
|
isRamp: boolean;
|
|
137
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
137
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
138
138
|
name: string | null;
|
|
139
139
|
periodPrice: number | null;
|
|
140
140
|
price: string | null;
|
|
@@ -173,7 +173,7 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
|
173
173
|
id: string | null;
|
|
174
174
|
isAmendment: boolean;
|
|
175
175
|
isRamp: boolean;
|
|
176
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
176
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
177
177
|
name: string | null;
|
|
178
178
|
periodPrice: number | null;
|
|
179
179
|
price: string | null;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const SubscriptionChargeTotal_SubscriptionChargeFragment: import(
|
|
|
3
3
|
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
4
4
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
5
|
trial: boolean;
|
|
6
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
7
|
price: string | null;
|
|
8
8
|
periodPrice: number | null;
|
|
9
9
|
}, {}, {
|
|
@@ -3,7 +3,7 @@ export declare const SubscriptionChargeUnitPrice_SubscriptionChargeFragment: imp
|
|
|
3
3
|
trial: boolean;
|
|
4
4
|
discountedPrice: string | null;
|
|
5
5
|
priceDecimals: number | null;
|
|
6
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
7
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
8
8
|
priceTiers: {
|
|
9
9
|
starts: number | null;
|
|
@@ -5,7 +5,7 @@ export declare const SubscriptionCardDesktopRow_SubscriptionChargeFragment: impo
|
|
|
5
5
|
trial: boolean;
|
|
6
6
|
startDate: unknown;
|
|
7
7
|
endDate: unknown;
|
|
8
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
8
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
9
9
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
10
10
|
quantity: number | null;
|
|
11
11
|
name: string | null;
|
|
@@ -14,7 +14,7 @@ export declare const SubscriptionCardMobile_SubscriptionFragment: import("gql.ta
|
|
|
14
14
|
};
|
|
15
15
|
isRamp: boolean;
|
|
16
16
|
name: string | null;
|
|
17
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
17
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
18
18
|
startDate: unknown;
|
|
19
19
|
endDate: unknown;
|
|
20
20
|
quantity: number | null;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const splitSubscriptionsByPriceList_SubscriptionFragment: import(
|
|
|
35
35
|
} | null;
|
|
36
36
|
}[] | null;
|
|
37
37
|
chargeReport: {
|
|
38
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
38
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
39
39
|
startDate: unknown;
|
|
40
40
|
endDate: unknown;
|
|
41
41
|
priceList: {
|
|
@@ -2,7 +2,7 @@ import { FragmentOf } from 'gql.tada';
|
|
|
2
2
|
export declare const sortSubscriptionCharges_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
id: string | null;
|
|
4
4
|
priceListChargeId: string | null;
|
|
5
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
5
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
6
|
endDate: unknown;
|
|
7
7
|
startDate: unknown;
|
|
8
8
|
isAmendment: boolean;
|
|
@@ -17,8 +17,6 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
|
|
|
17
17
|
ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
18
18
|
} & {
|
|
19
19
|
ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
20
|
-
} & {
|
|
21
|
-
GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
|
|
22
20
|
};
|
|
23
21
|
}, {}, {
|
|
24
22
|
fragment: "PricingTooltip_PriceListChargeFragment";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ShadowType } from '../types/shadowType';
|
|
2
2
|
import FormattedInvoice from '@/types/FormattedInvoice';
|
|
3
|
-
import { FormattedQuote } from '@/types/FormattedQuote';
|
|
4
3
|
export type InvoiceQuoteContextProps = {
|
|
5
|
-
id?: string;
|
|
4
|
+
id?: string | null | undefined;
|
|
6
5
|
invoiceQuoteViewComponent?: React.ReactNode;
|
|
7
6
|
backButtonName?: string;
|
|
8
7
|
onBackButtonClick?: () => void;
|
|
@@ -12,7 +11,6 @@ export type InvoiceQuoteContextProps = {
|
|
|
12
11
|
className?: string;
|
|
13
12
|
hideDownloadButton?: boolean;
|
|
14
13
|
onInvoiceLoaded?: (formattedInvoice: FormattedInvoice) => void;
|
|
15
|
-
onQuoteLoaded?: (formattedQuote: FormattedQuote) => void;
|
|
16
14
|
onQuoteUnavailableError?: () => void;
|
|
17
15
|
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
18
16
|
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import Invoice from '@/types/Invoice';
|
|
3
|
-
import { Transaction } from '@/types/Transaction';
|
|
4
|
-
import PaymentApplication from '@/types/PaymentApplication';
|
|
5
|
-
export type CheckoutResponse = {
|
|
6
|
-
invoice: Invoice;
|
|
7
|
-
payment: Payment;
|
|
8
|
-
paymentApplication: PaymentApplication;
|
|
9
|
-
transaction: Transaction;
|
|
10
|
-
};
|
|
11
|
-
declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: {
|
|
1
|
+
type CheckoutProps = {
|
|
12
2
|
quoteId?: string | null;
|
|
13
3
|
invoiceId?: string | null;
|
|
14
4
|
paymentMethodId?: string;
|
|
@@ -20,7 +10,27 @@ declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodDat
|
|
|
20
10
|
};
|
|
21
11
|
token?: string;
|
|
22
12
|
apiHost: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
};
|
|
14
|
+
declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: CheckoutProps) => Promise<{
|
|
15
|
+
invoice: {
|
|
16
|
+
id: string | null;
|
|
17
|
+
state: "READY" | "NOT_DUE" | "DUE" | "UNPAID" | "DRAFT" | "PREPARING" | "PAID" | "VOIDED" | "FAILED" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
|
|
18
|
+
amount: number;
|
|
19
|
+
amountDue: number | null;
|
|
20
|
+
} | null;
|
|
21
|
+
payment: {
|
|
22
|
+
id: string;
|
|
23
|
+
state: "APPLIED" | "PARTIALLY_APPLIED" | "UNAPPLIED";
|
|
24
|
+
amount: number;
|
|
25
|
+
} | null;
|
|
26
|
+
paymentApplication: {
|
|
27
|
+
id: string;
|
|
28
|
+
invoiceId: string | null;
|
|
29
|
+
paymentId: string | null;
|
|
30
|
+
} | null;
|
|
31
|
+
transaction: {
|
|
32
|
+
id: string;
|
|
33
|
+
amount: number;
|
|
34
|
+
} | null;
|
|
35
|
+
} | null>;
|
|
26
36
|
export default checkout;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
1
|
+
export declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
3
2
|
quoteChangeId: string;
|
|
4
3
|
couponCode: string;
|
|
5
4
|
token?: string;
|
|
6
5
|
apiHost: string;
|
|
7
|
-
}) => Promise<
|
|
8
|
-
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
id: string | null;
|
|
8
|
+
} | null | undefined>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Quote } from '@/types/Quote';
|
|
2
1
|
declare const quoteChangeRemoveCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
3
2
|
quoteChangeId: string;
|
|
4
3
|
couponCode: string;
|
|
5
4
|
token?: string;
|
|
6
5
|
apiHost: string;
|
|
7
|
-
}) => Promise<
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
quote: {
|
|
8
|
+
id: string | null;
|
|
9
|
+
};
|
|
10
|
+
} | null | undefined>;
|
|
8
11
|
export default quoteChangeRemoveCoupon;
|