@burdenoff/microfe-billing 2026.1031.1 → 2026.1108.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/billing/BillingAdminRoutes.d.ts +6 -0
- package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
- package/dist/billing/BillingRoot.d.ts +36 -0
- package/dist/billing/BillingRoot.d.ts.map +1 -0
- package/dist/billing/BillingUserRoutes.d.ts +7 -0
- package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts +36 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts +7 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts +30 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts +106 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +14 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +1 -0
- package/dist/billing/hooks/useProducts.d.ts +18 -0
- package/dist/billing/hooks/useProducts.d.ts.map +1 -0
- package/dist/billing/index.d.ts +31 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/lib/native-purchases.d.ts +10 -0
- package/dist/billing/lib/native-purchases.d.ts.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +3 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.d.ts +8 -0
- package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +23 -0
- package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts +54 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
- package/dist/billing/modules/addons/index.d.ts +7 -0
- package/dist/billing/modules/addons/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +3 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/index.d.ts +11 -0
- package/dist/billing/modules/addons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts +37 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/api.d.ts +101 -0
- package/dist/billing/modules/affiliate/api.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/index.d.ts +2 -0
- package/dist/billing/modules/affiliate/index.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +3 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/index.d.ts +5 -0
- package/dist/billing/modules/analytics/index.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +3 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/index.d.ts +5 -0
- package/dist/billing/modules/analytics/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/index.d.ts +12 -0
- package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts +76 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +57 -0
- package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts +61 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts +216 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts +40 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
- package/dist/billing/modules/billing/index.d.ts +7 -0
- package/dist/billing/modules/billing/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +3 -0
- package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/index.d.ts +14 -0
- package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +13 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +23 -0
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +13 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +15 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +18 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +13 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts +36 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +18 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +18 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +34 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +12 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +12 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +17 -0
- package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +15 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +25 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +28 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +11 -0
- package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +30 -0
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/index.d.ts +24 -0
- package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts +9 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +78 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +25 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +19 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +59 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +122 -0
- package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +1 -0
- package/dist/billing/modules/checkout/index.d.ts +24 -0
- package/dist/billing/modules/checkout/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +3 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/index.d.ts +5 -0
- package/dist/billing/modules/checkout/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/types/index.d.ts +279 -0
- package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts +19 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
- package/dist/billing/modules/coupons/index.d.ts +5 -0
- package/dist/billing/modules/coupons/index.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +3 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/index.d.ts +8 -0
- package/dist/billing/modules/coupons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/index.d.ts +5 -0
- package/dist/billing/modules/credits/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts +74 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
- package/dist/billing/modules/credits/index.d.ts +6 -0
- package/dist/billing/modules/credits/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts +3 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/index.d.ts +8 -0
- package/dist/billing/modules/credits/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +15 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +71 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +17 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +12 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +16 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +28 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/index.d.ts +10 -0
- package/dist/billing/modules/dashboard/components/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts +6 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +16 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +144 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/index.d.ts +8 -0
- package/dist/billing/modules/dashboard/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +3 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts +5 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/index.d.ts +6 -0
- package/dist/billing/modules/discounts/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +3 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/index.d.ts +6 -0
- package/dist/billing/modules/discounts/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/api.d.ts +226 -0
- package/dist/billing/modules/earnings/api.d.ts.map +1 -0
- package/dist/billing/modules/earnings/api.js +2 -2
- package/dist/billing/modules/earnings/api.js.map +1 -1
- package/dist/billing/modules/earnings/index.d.ts +6 -0
- package/dist/billing/modules/earnings/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +3 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +240 -202
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/earnings/payoutAccountStatus.d.ts +28 -0
- package/dist/billing/modules/earnings/payoutAccountStatus.d.ts.map +1 -0
- package/dist/billing/modules/earnings/payoutAccountStatus.js +47 -0
- package/dist/billing/modules/earnings/payoutAccountStatus.js.map +1 -0
- package/dist/billing/modules/plans/constants/enterprise.d.ts +20 -0
- package/dist/billing/modules/plans/constants/enterprise.d.ts.map +1 -0
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +10 -0
- package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/index.d.ts +7 -0
- package/dist/billing/modules/plans/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts +45 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts +26 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/index.d.ts +7 -0
- package/dist/billing/modules/plans/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts +3 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/index.d.ts +12 -0
- package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +3 -0
- package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +1 -0
- package/dist/billing/modules/plans/utils/planSelector.d.ts +3 -0
- package/dist/billing/modules/plans/utils/planSelector.d.ts.map +1 -0
- package/dist/billing/modules/promotions/index.d.ts +2 -0
- package/dist/billing/modules/promotions/index.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/promotions/pages/index.d.ts +3 -0
- package/dist/billing/modules/promotions/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
- package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts +132 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +38 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
- package/dist/billing/modules/quota/index.d.ts +6 -0
- package/dist/billing/modules/quota/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +3 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/index.d.ts +10 -0
- package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts +4 -0
- package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +1 -0
- package/dist/billing/modules/settings/index.d.ts +5 -0
- package/dist/billing/modules/settings/index.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts +3 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +3 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/index.d.ts +6 -0
- package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/store/graphql/index.d.ts +6 -0
- package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
- package/dist/billing/modules/store/index.d.ts +6 -0
- package/dist/billing/modules/store/index.d.ts.map +1 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +10 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +11 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +91 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/index.d.ts +7 -0
- package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +3 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +7 -0
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
- package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts +316 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +13 -0
- package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +1 -0
- package/dist/billing/modules/usage/index.d.ts +6 -0
- package/dist/billing/modules/usage/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts +3 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/index.d.ts +5 -0
- package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/utils/aiSpend.d.ts +71 -0
- package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +1 -0
- package/dist/billing/providers/BillingProvider.d.ts +20 -0
- package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
- package/dist/billing/shared/components/AccessDenied.d.ts +7 -0
- package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
- package/dist/billing/shared/components/ActorIdentity.d.ts +9 -0
- package/dist/billing/shared/components/ActorIdentity.d.ts.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +10 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/EmptyState.d.ts +10 -0
- package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +10 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/PageHeader.d.ts +10 -0
- package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
- package/dist/billing/shared/components/PushPermissionNudge.d.ts +7 -0
- package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +1 -0
- package/dist/billing/shared/components/ServerError.d.ts +10 -0
- package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
- package/dist/billing/shared/components/StatCard.d.ts +14 -0
- package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
- package/dist/billing/shared/components/index.d.ts +13 -0
- package/dist/billing/shared/components/index.d.ts.map +1 -0
- package/dist/billing/shared/hooks/index.d.ts +4 -0
- package/dist/billing/shared/hooks/index.d.ts.map +1 -0
- package/dist/billing/shared/hooks/useActorProfiles.d.ts +17 -0
- package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +1 -0
- package/dist/billing/shared/hooks/useTr.d.ts +17 -0
- package/dist/billing/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/billing/shared/index.d.ts +9 -0
- package/dist/billing/shared/index.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.d.ts +946 -0
- package/dist/billing/shared/types/graphql.d.ts.map +1 -0
- package/dist/billing/shared/types/index.d.ts +101 -0
- package/dist/billing/shared/types/index.d.ts.map +1 -0
- package/dist/billing/shared/ui/Card.d.ts +17 -0
- package/dist/billing/shared/ui/Card.d.ts.map +1 -0
- package/dist/billing/shared/ui/MetricCard.d.ts +20 -0
- package/dist/billing/shared/ui/MetricCard.d.ts.map +1 -0
- package/dist/billing/shared/ui/ProgressBar.d.ts +15 -0
- package/dist/billing/shared/ui/ProgressBar.d.ts.map +1 -0
- package/dist/billing/shared/ui/SectionHeader.d.ts +15 -0
- package/dist/billing/shared/ui/SectionHeader.d.ts.map +1 -0
- package/dist/billing/shared/ui/StatusPill.d.ts +14 -0
- package/dist/billing/shared/ui/StatusPill.d.ts.map +1 -0
- package/dist/billing/shared/ui/index.d.ts +13 -0
- package/dist/billing/shared/ui/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts +12 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +12 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/error.d.ts +30 -0
- package/dist/billing/shared/utils/error.d.ts.map +1 -0
- package/dist/billing/shared/utils/format.d.ts +33 -0
- package/dist/billing/shared/utils/format.d.ts.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts +14 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/index.d.ts +14 -0
- package/dist/billing/shared/utils/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/navigation.d.ts +2 -0
- package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts +40 -0
- package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +1 -0
- package/dist/billing/shared/utils/status.d.ts +27 -0
- package/dist/billing/shared/utils/status.d.ts.map +1 -0
- package/dist/billing/shared/utils/tokens.d.ts +156 -0
- package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
- package/dist/billing/translations/en.d.ts +534 -0
- package/dist/billing/translations/en.d.ts.map +1 -0
- package/dist/billing/types/index.d.ts +275 -0
- package/dist/billing/types/index.d.ts.map +1 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +10857 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +1 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +26958 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +261 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +49193 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout Module Components
|
|
3
|
+
*/
|
|
4
|
+
export { BillingAccountSelector } from './BillingAccountSelector';
|
|
5
|
+
export { NativeCheckoutView } from './NativeCheckoutView';
|
|
6
|
+
export { WebCheckoutRedirectView } from './WebCheckoutRedirectView';
|
|
7
|
+
export { PaymentProviderSelector } from './PaymentProviderSelector';
|
|
8
|
+
export { SavedCardSelector } from './SavedCardSelector';
|
|
9
|
+
export { CurrencySelector } from './CurrencySelector';
|
|
10
|
+
export { OrderSummary } from './OrderSummary';
|
|
11
|
+
export { PromoCodeInput } from './PromoCodeInput';
|
|
12
|
+
export { CreditsPaymentOption } from './CreditsPaymentOption';
|
|
13
|
+
export { CreditsAmountInput } from './CreditsAmountInput';
|
|
14
|
+
export { StripePaymentForm } from './StripePaymentForm';
|
|
15
|
+
export { RazorpayPaymentButton } from './RazorpayPaymentButton';
|
|
16
|
+
export { SubscriptionSelector } from './SubscriptionSelector';
|
|
17
|
+
export { AutoPayToggle } from './AutoPayToggle';
|
|
18
|
+
export { CompactAutoPayToggle } from './CompactAutoPayToggle';
|
|
19
|
+
export { SimpleAutoPayToggle } from './SimpleAutoPayToggle';
|
|
20
|
+
export { UnifiedPaymentMethodSelector } from './UnifiedPaymentMethodSelector';
|
|
21
|
+
export { CompleteBillingAccountModal, isBillingAccountComplete, } from './CompleteBillingAccountModal';
|
|
22
|
+
export { StoreShippingSection, type StoreShippingSelection } from './StoreShippingSection';
|
|
23
|
+
export { WorkspaceQuotaAssignmentModal, isWorkspaceScopedQuota, type WorkspaceQuotaToAssign, type WorkspaceOption, } from './WorkspaceQuotaAssignmentModal';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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iCAAiC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout Module Hooks
|
|
3
|
+
*/
|
|
4
|
+
export { useCheckout, CREDITS_PER_USD } from './useCheckout';
|
|
5
|
+
export { useNativeCheckout } from './useNativeCheckout';
|
|
6
|
+
export { usePaymentProviders } from './usePaymentProviders';
|
|
7
|
+
export { usePaymentStatusPolling } from './usePaymentStatusPolling';
|
|
8
|
+
export type { PaymentStatus, CreditTransactionStatus, UnifiedPaymentStatus, PaymentStatusResult, UsePaymentStatusPollingOptions, UsePaymentStatusPollingResult, } from './usePaymentStatusPolling';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EACV,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CheckoutItem, CheckoutBillingAccount, PaymentProvider, Currency, CheckoutState, PaymentInitResponse, PromoCodeResult } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Credit conversion rate: How many credits equal 1 USD
|
|
4
|
+
* This should match the backend creditRate.rateUSD (default 0.01 means 100 credits = $1)
|
|
5
|
+
*/
|
|
6
|
+
export declare const CREDITS_PER_USD = 100;
|
|
7
|
+
interface UseCheckoutOptions {
|
|
8
|
+
billingAccountId?: string;
|
|
9
|
+
defaultCurrency?: Currency;
|
|
10
|
+
defaultSaveCard?: boolean;
|
|
11
|
+
upgradeFromSubscriptionId?: string;
|
|
12
|
+
/** For plan downgrades — old sub auto-renewal cancelled, runs to natural expiry */
|
|
13
|
+
downgradeFromSubscriptionId?: string;
|
|
14
|
+
/** For addon purchases - pre-selected subscription ID */
|
|
15
|
+
defaultSubscriptionId?: string;
|
|
16
|
+
}
|
|
17
|
+
interface UseCheckoutResult {
|
|
18
|
+
items: CheckoutItem[];
|
|
19
|
+
billingAccount: CheckoutBillingAccount | null;
|
|
20
|
+
selectedProvider: PaymentProvider;
|
|
21
|
+
selectedCurrency: Currency;
|
|
22
|
+
promoCode: string;
|
|
23
|
+
promoDiscount: number;
|
|
24
|
+
promoDiscountType: 'PERCENTAGE' | 'FIXED';
|
|
25
|
+
useCredits: boolean;
|
|
26
|
+
creditsToUse: number;
|
|
27
|
+
checkoutState: CheckoutState;
|
|
28
|
+
error: string | null;
|
|
29
|
+
selectedPaymentMethodId: string | null;
|
|
30
|
+
saveCard: boolean;
|
|
31
|
+
autoRenew: boolean;
|
|
32
|
+
autoRenewPaymentMethodId: string | null;
|
|
33
|
+
selectedSubscriptionId: string | null;
|
|
34
|
+
subtotal: number;
|
|
35
|
+
subtotalUSD: number;
|
|
36
|
+
discountAmount: number;
|
|
37
|
+
taxAmount: number;
|
|
38
|
+
taxRate: number;
|
|
39
|
+
taxType: string;
|
|
40
|
+
total: number;
|
|
41
|
+
totalInSelectedCurrency: number;
|
|
42
|
+
availableCredits: number;
|
|
43
|
+
/** subtotalUSD converted to credits (CREDITS_PER_USD) — the actual amount a
|
|
44
|
+
* CREDITS-provider purchase charges, in credits. total/totalInSelectedCurrency
|
|
45
|
+
* are in the selected display currency and must never be shown/used as a
|
|
46
|
+
* credits amount (they're a different number). */
|
|
47
|
+
creditsRequired: number;
|
|
48
|
+
hasEnoughCredits: boolean;
|
|
49
|
+
canPayWithCredits: boolean;
|
|
50
|
+
isLoading: boolean;
|
|
51
|
+
isProcessing: boolean;
|
|
52
|
+
isCalculatingTax: boolean;
|
|
53
|
+
conversionRate: number;
|
|
54
|
+
convertedAmount: number | null;
|
|
55
|
+
addItem: (item: CheckoutItem) => void;
|
|
56
|
+
removeItem: (itemId: string) => void;
|
|
57
|
+
updateItemQuantity: (itemId: string, quantity: number) => void;
|
|
58
|
+
updateItemPrice: (itemId: string, price: number, currency?: Currency) => void;
|
|
59
|
+
clearItems: () => void;
|
|
60
|
+
setBillingAccount: (account: CheckoutBillingAccount | null) => void;
|
|
61
|
+
setPaymentProvider: (provider: PaymentProvider) => void;
|
|
62
|
+
setCurrency: (currency: Currency) => void;
|
|
63
|
+
setPromoCode: (code: string) => void;
|
|
64
|
+
validatePromoCode: () => Promise<PromoCodeResult>;
|
|
65
|
+
clearPromoCode: () => void;
|
|
66
|
+
setUseCredits: (use: boolean) => void;
|
|
67
|
+
setCreditsToUse: (amount: number) => void;
|
|
68
|
+
setSelectedPaymentMethodId: (id: string | null) => void;
|
|
69
|
+
setSaveCard: (save: boolean) => void;
|
|
70
|
+
setAutoRenew: (enabled: boolean) => void;
|
|
71
|
+
setAutoRenewPaymentMethodId: (id: string | null) => void;
|
|
72
|
+
setSelectedSubscriptionId: (id: string | null) => void;
|
|
73
|
+
initiatePayment: () => Promise<PaymentInitResponse>;
|
|
74
|
+
reset: () => void;
|
|
75
|
+
}
|
|
76
|
+
export declare function useCheckout(options?: UseCheckoutOptions): UseCheckoutResult;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=useCheckout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCheckout.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/useCheckout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,eAAe,EAEhB,MA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AAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,2BAA2B,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD,yBAAyB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,eAAe,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB,GAAG,iBAAiB,CA83B/E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Product, Transaction } from '@capgo/native-purchases';
|
|
2
|
+
import { CheckoutState, PurchaseType } from '../types';
|
|
3
|
+
export type { Product, Transaction };
|
|
4
|
+
interface UseNativeCheckoutOptions {
|
|
5
|
+
billingAccountId?: string;
|
|
6
|
+
purchaseType?: PurchaseType;
|
|
7
|
+
/** Store product identifier — passed to getProducts to load the specific product. */
|
|
8
|
+
productId?: string;
|
|
9
|
+
}
|
|
10
|
+
interface UseNativeCheckoutResult {
|
|
11
|
+
isAvailable: boolean;
|
|
12
|
+
products: Product[];
|
|
13
|
+
checkoutState: CheckoutState;
|
|
14
|
+
error: string | null;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
loadProducts: (productIdentifiers?: string[]) => Promise<void>;
|
|
17
|
+
purchaseProduct: (product: Product) => Promise<{
|
|
18
|
+
success: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
restorePurchases: () => Promise<{
|
|
21
|
+
success: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export declare function useNativeCheckout({ billingAccountId, purchaseType, productId, }?: UseNativeCheckoutOptions): UseNativeCheckoutResult;
|
|
25
|
+
//# sourceMappingURL=useNativeCheckout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNativeCheckout.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/useNativeCheckout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAaH,OAAO,KAAK,EAAiB,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI5D,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAErC,UAAU,wBAAwB;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACrE,gBAAgB,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACvD;AAED,wBAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAChB,YAAY,EACZ,SAAS,GACV,GAAE,wBAA6B,GAAG,uBAAuB,CA6KzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for getting payment provider configuration
|
|
3
|
+
*/
|
|
4
|
+
interface PaymentProviderConfig {
|
|
5
|
+
stripeEnabled: boolean;
|
|
6
|
+
stripePublishableKey: string | null;
|
|
7
|
+
razorpayEnabled: boolean;
|
|
8
|
+
razorpayKeyId: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface UsePaymentProvidersResult {
|
|
11
|
+
config: PaymentProviderConfig | null;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
error: Error | null;
|
|
14
|
+
stripeEnabled: boolean;
|
|
15
|
+
razorpayEnabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function usePaymentProviders(): UsePaymentProvidersResult;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=usePaymentProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentProviders.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/usePaymentProviders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,UAAU,qBAAqB;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,UAAU,yBAAyB;IACjC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,IAAI,yBAAyB,CAc/D"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payment Status Polling Hook
|
|
3
|
+
* Polls the backend to check payment status after initiating a payment
|
|
4
|
+
* Supports both card payments (via getPayment) and credit payments (via getCreditTransactionDetails)
|
|
5
|
+
*/
|
|
6
|
+
export type PaymentStatus = 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'REFUNDED' | 'CANCELED';
|
|
7
|
+
export type CreditTransactionStatus = 'pending' | 'success' | 'failed' | 'refund';
|
|
8
|
+
export type UnifiedPaymentStatus = 'pending' | 'success' | 'failed' | 'timeout';
|
|
9
|
+
export interface PaymentStatusResult {
|
|
10
|
+
id: string;
|
|
11
|
+
status: PaymentStatus | CreditTransactionStatus;
|
|
12
|
+
amount: number;
|
|
13
|
+
currency?: string;
|
|
14
|
+
paidAt?: string;
|
|
15
|
+
failureReason?: string;
|
|
16
|
+
transactionId?: string;
|
|
17
|
+
gatewayPaymentId?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
billingAccountId?: string;
|
|
20
|
+
productId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface UsePaymentStatusPollingOptions {
|
|
23
|
+
/** Payment/Transaction ID to poll for */
|
|
24
|
+
paymentId: string | null;
|
|
25
|
+
/** Billing account scope required by the polling queries */
|
|
26
|
+
billingAccountId: string | null;
|
|
27
|
+
/** Type of payment: 'card' for card payments, 'credits' for credit transactions */
|
|
28
|
+
paymentType: 'card' | 'credits';
|
|
29
|
+
/** Polling interval in milliseconds (default: 5000ms / 5 seconds) */
|
|
30
|
+
pollingInterval?: number;
|
|
31
|
+
/** Maximum time to poll in milliseconds (default: 300000ms / 5 minutes) */
|
|
32
|
+
maxPollingTime?: number;
|
|
33
|
+
/** Callback when payment succeeds */
|
|
34
|
+
onSuccess?: (result: PaymentStatusResult) => void;
|
|
35
|
+
/** Callback when payment fails */
|
|
36
|
+
onFailure?: (result: PaymentStatusResult) => void;
|
|
37
|
+
/** Callback when polling times out */
|
|
38
|
+
onTimeout?: () => void;
|
|
39
|
+
/** Whether polling is enabled (default: true when paymentId is provided) */
|
|
40
|
+
enabled?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface UsePaymentStatusPollingResult {
|
|
43
|
+
/** Current unified payment status */
|
|
44
|
+
status: UnifiedPaymentStatus | null;
|
|
45
|
+
/** Whether polling is in progress */
|
|
46
|
+
isPolling: boolean;
|
|
47
|
+
/** Time elapsed since polling started (ms) */
|
|
48
|
+
elapsedTime: number;
|
|
49
|
+
/** Error message if any */
|
|
50
|
+
error: string | null;
|
|
51
|
+
/** Payment result data */
|
|
52
|
+
paymentResult: PaymentStatusResult | null;
|
|
53
|
+
/** Manually start polling */
|
|
54
|
+
startPolling: () => void;
|
|
55
|
+
/** Manually stop polling */
|
|
56
|
+
stopPolling: () => void;
|
|
57
|
+
}
|
|
58
|
+
export declare function usePaymentStatusPolling(options: UsePaymentStatusPollingOptions): UsePaymentStatusPollingResult;
|
|
59
|
+
//# sourceMappingURL=usePaymentStatusPolling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentStatusPolling.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/usePaymentStatusPolling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAGzF,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAGlF,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,GAAG,uBAAuB,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B;IAC7C,yCAAyC;IACzC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mFAAmF;IACnF,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,kCAAkC;IAClC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,qCAAqC;IACrC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACpC,qCAAqC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,0BAA0B;IAC1B,aAAa,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C,6BAA6B;IAC7B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAiCD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CA2N/B"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { useLazyQuery, useMutation } from '@burdenoff/fe-libs/shared/graphql';
|
|
2
|
+
/** Synthetic checkout line-item id used to fold shipping cost into the billing total. */
|
|
3
|
+
export declare const STORE_SHIPPING_ITEM_ID = "store-shipping";
|
|
4
|
+
export interface ShippingMethod {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
|
+
carrier?: string | null;
|
|
9
|
+
baseCost: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
estimatedMinDays?: number | null;
|
|
12
|
+
estimatedMaxDays?: number | null;
|
|
13
|
+
availableCountries: string[];
|
|
14
|
+
excludedCountries: string[];
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
displayOrder: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ShippingAddress {
|
|
19
|
+
id: string;
|
|
20
|
+
fullName: string;
|
|
21
|
+
phone?: string | null;
|
|
22
|
+
email?: string | null;
|
|
23
|
+
addressLine1: string;
|
|
24
|
+
addressLine2?: string | null;
|
|
25
|
+
city: string;
|
|
26
|
+
state?: string | null;
|
|
27
|
+
postalCode: string;
|
|
28
|
+
country: string;
|
|
29
|
+
isDefault: boolean;
|
|
30
|
+
label?: string | null;
|
|
31
|
+
instructions?: string | null;
|
|
32
|
+
}
|
|
33
|
+
export interface OrderShippingEstimate {
|
|
34
|
+
orderId: string;
|
|
35
|
+
shippingMethodId: string;
|
|
36
|
+
cost: number;
|
|
37
|
+
currency: string;
|
|
38
|
+
methodName: string;
|
|
39
|
+
carrier?: string | null;
|
|
40
|
+
estimatedMinDays?: number | null;
|
|
41
|
+
estimatedMaxDays?: number | null;
|
|
42
|
+
estimatedDeliveryDate?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateShippingAddressInput {
|
|
45
|
+
fullName: string;
|
|
46
|
+
phone?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
addressLine1: string;
|
|
49
|
+
addressLine2?: string;
|
|
50
|
+
city: string;
|
|
51
|
+
state?: string;
|
|
52
|
+
postalCode: string;
|
|
53
|
+
country: string;
|
|
54
|
+
instructions?: string;
|
|
55
|
+
label?: string;
|
|
56
|
+
isDefault?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface OrderShippingEstimateInput {
|
|
59
|
+
orderId: string;
|
|
60
|
+
shippingMethodId: string;
|
|
61
|
+
destinationCountry: string;
|
|
62
|
+
destinationPostalCode?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface SetStoreOrderShippingInput {
|
|
65
|
+
orderId: string;
|
|
66
|
+
shippingMethodId: string;
|
|
67
|
+
shippingAddressId?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SetStoreOrderShippingResult {
|
|
70
|
+
id: string;
|
|
71
|
+
total: number;
|
|
72
|
+
shippingCost: number | null;
|
|
73
|
+
shippingCurrency: string | null;
|
|
74
|
+
}
|
|
75
|
+
export declare function useShippingMethods(): {
|
|
76
|
+
methods: ShippingMethod[];
|
|
77
|
+
loading: boolean;
|
|
78
|
+
error: import('@apollo/client').ErrorLike | null;
|
|
79
|
+
};
|
|
80
|
+
export declare function useMyShippingAddresses(): {
|
|
81
|
+
addresses: ShippingAddress[];
|
|
82
|
+
loading: boolean;
|
|
83
|
+
error: import('@apollo/client').ErrorLike | null;
|
|
84
|
+
refetch: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<{
|
|
85
|
+
data: {
|
|
86
|
+
myShippingAddresses: ShippingAddress[];
|
|
87
|
+
} | undefined;
|
|
88
|
+
error?: import('@apollo/client').ErrorLike;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
export declare function useCreateShippingAddress(): {
|
|
92
|
+
createShippingAddress: (input: CreateShippingAddressInput) => Promise<ShippingAddress | null>;
|
|
93
|
+
loading: boolean;
|
|
94
|
+
};
|
|
95
|
+
export declare function useEstimateOrderShipping(): useLazyQuery.ResultTuple<{
|
|
96
|
+
estimateOrderShipping: OrderShippingEstimate;
|
|
97
|
+
}, {
|
|
98
|
+
input: OrderShippingEstimateInput;
|
|
99
|
+
}, "empty" | "complete" | "streaming">;
|
|
100
|
+
export declare function useSetStoreOrderShipping(): useMutation.ResultTuple<{
|
|
101
|
+
setStoreOrderShipping: SetStoreOrderShippingResult;
|
|
102
|
+
}, {
|
|
103
|
+
input: SetStoreOrderShippingInput;
|
|
104
|
+
}, import('@apollo/client').ApolloCache, undefined>;
|
|
105
|
+
export interface EnsureStoreOrderBillingOrderResult {
|
|
106
|
+
success: boolean;
|
|
107
|
+
billingOrderId?: string | null;
|
|
108
|
+
error?: string | null;
|
|
109
|
+
}
|
|
110
|
+
export interface EnsureStoreOrderBillingOrderInput {
|
|
111
|
+
storeOrderId: string;
|
|
112
|
+
billingAccountId: string;
|
|
113
|
+
currency?: string;
|
|
114
|
+
}
|
|
115
|
+
export declare function useEnsureStoreOrderBillingOrder(): useMutation.ResultTuple<{
|
|
116
|
+
ensureStoreOrderBillingOrder: EnsureStoreOrderBillingOrderResult;
|
|
117
|
+
}, {
|
|
118
|
+
currency?: string | undefined;
|
|
119
|
+
billingAccountId: string;
|
|
120
|
+
storeOrderId: string;
|
|
121
|
+
}, import('@apollo/client').ApolloCache, undefined>;
|
|
122
|
+
//# sourceMappingURL=useStoreShipping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStoreShipping.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/useStoreShipping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAiB,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAE7F,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAMvD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,EAA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gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,+BAA+B;kCAEX,kCAAkC;;eALzD,MAAM;sBADC,MAAM;kBADV,MAAM;oDAUrB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout Module
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive checkout functionality for purchasing:
|
|
5
|
+
* - Credits
|
|
6
|
+
* - Plans (subscriptions)
|
|
7
|
+
* - Add-ons
|
|
8
|
+
*
|
|
9
|
+
* Supports multiple payment providers:
|
|
10
|
+
* - Stripe (multi-currency)
|
|
11
|
+
* - Razorpay (INR only)
|
|
12
|
+
* - Pay with Credits
|
|
13
|
+
*
|
|
14
|
+
* Features:
|
|
15
|
+
* - Real-time currency conversion
|
|
16
|
+
* - Promo code support
|
|
17
|
+
* - Tax calculation
|
|
18
|
+
* - Responsive mobile-first design
|
|
19
|
+
*/
|
|
20
|
+
export * from './pages';
|
|
21
|
+
export * from './components';
|
|
22
|
+
export * from './hooks';
|
|
23
|
+
export * from './types';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/checkout/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAqD,MAAM,OAAO,CAAC;AA8HnF,eAAO,MAAM,YAAY,EAAE,EAs0E1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/pages/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|