@burdenoff/microfe-billing 2026.1030.1 → 2026.1101.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/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/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/PlanEditPage.js +90 -92
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- 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 +10856 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- 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,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout Module Types
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Purchase type for checkout
|
|
6
|
+
*/
|
|
7
|
+
export type PurchaseType = 'CREDITS' | 'PLAN' | 'ADDON' | 'ORDER';
|
|
8
|
+
/**
|
|
9
|
+
* Payment provider preference
|
|
10
|
+
*/
|
|
11
|
+
export type PaymentProvider = 'STRIPE' | 'RAZORPAY' | 'CREDITS' | 'AUTO';
|
|
12
|
+
/**
|
|
13
|
+
* Checkout state
|
|
14
|
+
*/
|
|
15
|
+
export type CheckoutState = 'idle' | 'loading' | 'processing' | 'success' | 'error';
|
|
16
|
+
/**
|
|
17
|
+
* Supported currencies - string to support all Stripe currencies
|
|
18
|
+
* Common: USD, EUR, GBP, INR, CAD, AUD, JPY, CNY, CHF, SGD, etc.
|
|
19
|
+
*/
|
|
20
|
+
export type Currency = string;
|
|
21
|
+
/**
|
|
22
|
+
* Feature/quota included with a plan or addon
|
|
23
|
+
*/
|
|
24
|
+
export interface CheckoutFeature {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
limits?: Record<string, number | string | boolean>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Checkout item - what the user is purchasing
|
|
31
|
+
*/
|
|
32
|
+
export interface CheckoutItem {
|
|
33
|
+
id: string;
|
|
34
|
+
type: PurchaseType;
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
price: number;
|
|
38
|
+
priceUSD?: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
quantity: number;
|
|
41
|
+
features?: CheckoutFeature[];
|
|
42
|
+
metadata?: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Plan checkout item
|
|
46
|
+
*/
|
|
47
|
+
export interface PlanCheckoutItem extends CheckoutItem {
|
|
48
|
+
type: 'PLAN';
|
|
49
|
+
planId: string;
|
|
50
|
+
duration: 'monthly' | 'yearly';
|
|
51
|
+
features?: PlanFeature[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Addon checkout item
|
|
55
|
+
*/
|
|
56
|
+
export interface AddonCheckoutItem extends CheckoutItem {
|
|
57
|
+
type: 'ADDON';
|
|
58
|
+
addonId: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Credits checkout item
|
|
62
|
+
*/
|
|
63
|
+
export interface CreditsCheckoutItem extends CheckoutItem {
|
|
64
|
+
type: 'CREDITS';
|
|
65
|
+
creditAmount: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Plan feature for display
|
|
69
|
+
*/
|
|
70
|
+
export interface PlanFeature {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
value?: string | number;
|
|
74
|
+
included: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Currency conversion result
|
|
78
|
+
*/
|
|
79
|
+
export interface CurrencyConversion {
|
|
80
|
+
originalAmount: number;
|
|
81
|
+
originalCurrency: string;
|
|
82
|
+
convertedAmount: number;
|
|
83
|
+
convertedCurrency: string;
|
|
84
|
+
rate: number;
|
|
85
|
+
timestamp: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Payment initiation response
|
|
89
|
+
*/
|
|
90
|
+
export interface PaymentInitResponse {
|
|
91
|
+
success: boolean;
|
|
92
|
+
provider: string;
|
|
93
|
+
paymentId?: string;
|
|
94
|
+
clientSecret?: string;
|
|
95
|
+
orderId?: string;
|
|
96
|
+
razorpayKeyId?: string;
|
|
97
|
+
razorpayCustomerId?: string;
|
|
98
|
+
subtotal: number;
|
|
99
|
+
taxAmount: number;
|
|
100
|
+
taxRate: number;
|
|
101
|
+
total: number;
|
|
102
|
+
taxType: string;
|
|
103
|
+
jurisdiction: string;
|
|
104
|
+
taxBreakdown?: Record<string, number>;
|
|
105
|
+
currency: string;
|
|
106
|
+
requiresAction?: boolean;
|
|
107
|
+
paymentComplete?: boolean;
|
|
108
|
+
prefillName?: string;
|
|
109
|
+
prefillEmail?: string;
|
|
110
|
+
prefillContact?: string;
|
|
111
|
+
error?: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Saved payment method for one-click checkout
|
|
115
|
+
*/
|
|
116
|
+
export interface SavedPaymentMethod {
|
|
117
|
+
id: string;
|
|
118
|
+
type: 'CREDIT_CARD' | 'DEBIT_CARD' | 'WALLET' | 'NETBANKING' | 'BANK_TRANSFER' | 'PAYPAL' | 'CRYPTO';
|
|
119
|
+
isDefault: boolean;
|
|
120
|
+
last4?: string;
|
|
121
|
+
expiryMonth?: number;
|
|
122
|
+
expiryYear?: number;
|
|
123
|
+
brand?: string;
|
|
124
|
+
stripePaymentMethodId?: string;
|
|
125
|
+
razorpayPaymentMethodId?: string;
|
|
126
|
+
isVerified: boolean;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Billing account for checkout
|
|
131
|
+
*/
|
|
132
|
+
export interface CheckoutBillingAccount {
|
|
133
|
+
id: string;
|
|
134
|
+
name: string;
|
|
135
|
+
email: string;
|
|
136
|
+
currency: string;
|
|
137
|
+
creditAmount: number;
|
|
138
|
+
isActive: boolean;
|
|
139
|
+
contactNumber?: string | null;
|
|
140
|
+
billingAddresses?: Array<{
|
|
141
|
+
id: string;
|
|
142
|
+
country?: string | null;
|
|
143
|
+
state?: string | null;
|
|
144
|
+
city?: string | null;
|
|
145
|
+
line1?: string | null;
|
|
146
|
+
postalCode?: string | null;
|
|
147
|
+
}> | null;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Promo code validation result
|
|
151
|
+
*/
|
|
152
|
+
export interface PromoCodeResult {
|
|
153
|
+
valid: boolean;
|
|
154
|
+
code: string;
|
|
155
|
+
discountType: 'PERCENTAGE' | 'FIXED';
|
|
156
|
+
discountValue: number;
|
|
157
|
+
error?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Checkout form data
|
|
161
|
+
*/
|
|
162
|
+
export interface CheckoutFormData {
|
|
163
|
+
billingAccountId: string;
|
|
164
|
+
purchaseType: PurchaseType;
|
|
165
|
+
paymentProvider: PaymentProvider;
|
|
166
|
+
currency: string;
|
|
167
|
+
promoCode?: string;
|
|
168
|
+
creditAmount?: number;
|
|
169
|
+
planId?: string;
|
|
170
|
+
isAnnual?: boolean;
|
|
171
|
+
addonId?: string;
|
|
172
|
+
addonQuantity?: number;
|
|
173
|
+
useCredits?: boolean;
|
|
174
|
+
creditsToUse?: number;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Checkout context value
|
|
178
|
+
*/
|
|
179
|
+
export interface CheckoutContextValue {
|
|
180
|
+
items: CheckoutItem[];
|
|
181
|
+
billingAccount: CheckoutBillingAccount | null;
|
|
182
|
+
selectedProvider: PaymentProvider;
|
|
183
|
+
selectedCurrency: Currency;
|
|
184
|
+
promoCode: string;
|
|
185
|
+
promoDiscount: number;
|
|
186
|
+
useCredits: boolean;
|
|
187
|
+
creditsToUse: number;
|
|
188
|
+
checkoutState: CheckoutState;
|
|
189
|
+
error: string | null;
|
|
190
|
+
subtotal: number;
|
|
191
|
+
taxAmount: number;
|
|
192
|
+
taxRate: number;
|
|
193
|
+
total: number;
|
|
194
|
+
availableCredits: number;
|
|
195
|
+
hasEnoughCredits: boolean;
|
|
196
|
+
addItem: (item: CheckoutItem) => void;
|
|
197
|
+
removeItem: (itemId: string) => void;
|
|
198
|
+
updateItemQuantity: (itemId: string, quantity: number) => void;
|
|
199
|
+
setBillingAccount: (account: CheckoutBillingAccount) => void;
|
|
200
|
+
setPaymentProvider: (provider: PaymentProvider) => void;
|
|
201
|
+
setCurrency: (currency: Currency) => void;
|
|
202
|
+
setPromoCode: (code: string) => void;
|
|
203
|
+
applyPromoCode: () => Promise<PromoCodeResult>;
|
|
204
|
+
setUseCredits: (use: boolean) => void;
|
|
205
|
+
setCreditsToUse: (amount: number) => void;
|
|
206
|
+
processPayment: () => Promise<PaymentInitResponse>;
|
|
207
|
+
reset: () => void;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Stripe Elements and Payment types for checkout flow
|
|
211
|
+
*/
|
|
212
|
+
export interface CheckoutStripeElements {
|
|
213
|
+
create: (type: string, options?: object) => CheckoutStripePaymentElement;
|
|
214
|
+
getElement: (type: string) => CheckoutStripePaymentElement | null;
|
|
215
|
+
}
|
|
216
|
+
export interface CheckoutStripePaymentElement {
|
|
217
|
+
mount: (element: string | HTMLElement) => void;
|
|
218
|
+
unmount: () => void;
|
|
219
|
+
destroy: () => void;
|
|
220
|
+
}
|
|
221
|
+
export interface CheckoutStripePaymentConfirmResult {
|
|
222
|
+
error?: {
|
|
223
|
+
message: string;
|
|
224
|
+
};
|
|
225
|
+
paymentIntent?: {
|
|
226
|
+
id: string;
|
|
227
|
+
status: string;
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
export interface CheckoutStripeInstance {
|
|
231
|
+
elements: (options?: {
|
|
232
|
+
clientSecret?: string;
|
|
233
|
+
appearance?: object;
|
|
234
|
+
}) => CheckoutStripeElements;
|
|
235
|
+
confirmPayment: (options: {
|
|
236
|
+
elements: CheckoutStripeElements;
|
|
237
|
+
confirmParams?: {
|
|
238
|
+
return_url?: string;
|
|
239
|
+
};
|
|
240
|
+
redirect?: 'if_required' | 'always';
|
|
241
|
+
}) => Promise<CheckoutStripePaymentConfirmResult>;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Razorpay Checkout types
|
|
245
|
+
*/
|
|
246
|
+
export interface RazorpaySuccessResponse {
|
|
247
|
+
razorpay_payment_id: string;
|
|
248
|
+
razorpay_order_id: string;
|
|
249
|
+
razorpay_signature: string;
|
|
250
|
+
}
|
|
251
|
+
export interface CheckoutRazorpayOptions {
|
|
252
|
+
key: string;
|
|
253
|
+
amount: number;
|
|
254
|
+
currency: string;
|
|
255
|
+
name: string;
|
|
256
|
+
description: string;
|
|
257
|
+
order_id: string;
|
|
258
|
+
prefill?: {
|
|
259
|
+
name?: string;
|
|
260
|
+
email?: string;
|
|
261
|
+
contact?: string;
|
|
262
|
+
};
|
|
263
|
+
notes?: Record<string, string>;
|
|
264
|
+
theme?: {
|
|
265
|
+
color?: string;
|
|
266
|
+
};
|
|
267
|
+
handler?: (response: RazorpaySuccessResponse) => void;
|
|
268
|
+
modal?: {
|
|
269
|
+
ondismiss?: () => void;
|
|
270
|
+
escape?: boolean;
|
|
271
|
+
confirm_close?: boolean;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
export interface CheckoutRazorpayInstance {
|
|
275
|
+
open: () => void;
|
|
276
|
+
close: () => void;
|
|
277
|
+
on: (event: string, handler: (response: unknown) => void) => void;
|
|
278
|
+
}
|
|
279
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;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,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACtD,KAAK,CAAC,EAAE;QACN,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;CACnE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CheckoutItem, Currency } from '../types';
|
|
2
|
+
export interface StoreOrderLineItem {
|
|
3
|
+
productId?: string | null;
|
|
4
|
+
name?: string | null;
|
|
5
|
+
quantity?: number | null;
|
|
6
|
+
unitPrice?: number | null;
|
|
7
|
+
itemType?: string | null;
|
|
8
|
+
variantId?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface StoreOrderCheckoutSource {
|
|
11
|
+
id: string;
|
|
12
|
+
billingOrderId?: string | null;
|
|
13
|
+
currency?: string | null;
|
|
14
|
+
lineItems?: StoreOrderLineItem[] | null;
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_STORE_ORDER_CURRENCY = "USD";
|
|
17
|
+
export declare function normalizeStoreOrderCurrency(currency?: string | null): Currency;
|
|
18
|
+
export declare function buildStoreOrderCheckoutItems(storeOrder: StoreOrderCheckoutSource): CheckoutItem[];
|
|
19
|
+
//# sourceMappingURL=storeOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeOrder.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/utils/storeOrder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAElD,wBAAgB,2BAA2B,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAM9E;AAED,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,wBAAwB,GAAG,YAAY,EAAE,CA2BjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/coupons/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CouponDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/coupons/pages/CouponDetailPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AA+HrD,eAAO,MAAM,gBAAgB,EAAE,EAkZ9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CouponsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/coupons/pages/CouponsListPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAgC,MAAM,OAAO,CAAC;AA8D9D,eAAO,MAAM,eAAe,EAAE,EAmkB7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCouponPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/coupons/pages/CreateCouponPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAmGtE,eAAO,MAAM,gBAAgB,EAAE,EAutB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditCouponPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/coupons/pages/EditCouponPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAsBrD,eAAO,MAAM,cAAc,EAAE,EAyZ5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coupon Pages
|
|
3
|
+
*/
|
|
4
|
+
export { CouponsListPage } from './CouponsListPage';
|
|
5
|
+
export { CreateCouponPage } from './CreateCouponPage';
|
|
6
|
+
export { EditCouponPage } from './EditCouponPage';
|
|
7
|
+
export { CouponDetailPage } from './CouponDetailPage';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/coupons/pages/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CreditTransaction, CreditNote } from '../../../shared/types';
|
|
2
|
+
interface UseCreditTransactionsOptions {
|
|
3
|
+
billingAccountId: string;
|
|
4
|
+
days?: number;
|
|
5
|
+
page?: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}
|
|
8
|
+
interface UseCreditTransactionsResult {
|
|
9
|
+
transactions: CreditTransaction[];
|
|
10
|
+
pagination: {
|
|
11
|
+
page: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
totalCount: number;
|
|
14
|
+
hasMore: boolean;
|
|
15
|
+
};
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
error: Error | undefined;
|
|
18
|
+
refetch: () => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
interface UseCreditTransactionResult {
|
|
21
|
+
transaction: CreditTransaction | null;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
error: Error | undefined;
|
|
24
|
+
}
|
|
25
|
+
interface UseCostOfCreditsResult {
|
|
26
|
+
cost: number | null;
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
error: Error | undefined;
|
|
29
|
+
}
|
|
30
|
+
interface UseCreditNotesResult {
|
|
31
|
+
creditNotes: CreditNote[];
|
|
32
|
+
isLoading: boolean;
|
|
33
|
+
error: Error | undefined;
|
|
34
|
+
refetch: () => Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Hook for fetching credit transactions
|
|
38
|
+
*/
|
|
39
|
+
export declare function useCreditTransactions(options: UseCreditTransactionsOptions): UseCreditTransactionsResult;
|
|
40
|
+
/**
|
|
41
|
+
* Hook for fetching a single credit transaction
|
|
42
|
+
*/
|
|
43
|
+
export declare function useCreditTransaction(creditTransactionId: string | undefined): UseCreditTransactionResult;
|
|
44
|
+
/**
|
|
45
|
+
* Hook for getting cost of credits
|
|
46
|
+
*/
|
|
47
|
+
export declare function useCostOfCredits(creditAmount: number, currency: string): UseCostOfCreditsResult;
|
|
48
|
+
/**
|
|
49
|
+
* Hook for fetching credit notes
|
|
50
|
+
*/
|
|
51
|
+
export declare function useCreditNotes(): UseCreditNotesResult;
|
|
52
|
+
/**
|
|
53
|
+
* Hook for credit mutations
|
|
54
|
+
*/
|
|
55
|
+
export declare function useCreditMutations(): {
|
|
56
|
+
createCreditNote: (params: {
|
|
57
|
+
billingAccountId: string;
|
|
58
|
+
amount: number;
|
|
59
|
+
reason?: string;
|
|
60
|
+
invoiceId?: string;
|
|
61
|
+
currency?: string;
|
|
62
|
+
metadata?: Record<string, unknown>;
|
|
63
|
+
}) => Promise<CreditNote>;
|
|
64
|
+
grantCredits: (params: {
|
|
65
|
+
billingAccountId: string;
|
|
66
|
+
amount: number;
|
|
67
|
+
productId?: string;
|
|
68
|
+
reason?: string;
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}) => Promise<CreditTransaction>;
|
|
71
|
+
isCreating: boolean;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=useCredits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCredits.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/hooks/useCredits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgBH,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EAEX,MAAM,uBAAuB,CAAC;AAE/B,UAAU,4BAA4B;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,2BAA2B;IACnC,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,UAAU,0BAA0B;IAClC,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B;AAED,UAAU,sBAAsB;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B;AAED,UAAU,oBAAoB;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,4BAA4B,GACpC,2BAA2B,CAiC7B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GACtC,0BAA0B,CAY5B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,sBAAsB,CAY/F;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CAerD;AAED;;GAEG;AACH,wBAAgB,kBAAkB;+BAQf;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,KAAG,OAAO,CAAC,UAAU,CAAC;2BAgBR;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,KAAG,OAAO,CAAC,iBAAiB,CAAC;;EA8BjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/credits/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminCreditsPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/pages/AdminCreditsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AASnD,eAAO,MAAM,gBAAgB,EAAE,EA2K9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditTransactionsPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/pages/CreditTransactionsPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAqC1C,eAAO,MAAM,sBAAsB,EAAE,EAgUpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditWithdrawalPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/pages/CreditWithdrawalPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAsKrD,eAAO,MAAM,oBAAoB,EAAE,EA60BlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditsPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/pages/CreditsPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAqB1C,eAAO,MAAM,WAAW,EAAE,EAmQzB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credits Module - Pages
|
|
3
|
+
*/
|
|
4
|
+
export { CreditsPage } from './CreditsPage';
|
|
5
|
+
export { CreditTransactionsPage } from './CreditTransactionsPage';
|
|
6
|
+
export { AdminCreditsPage } from './AdminCreditsPage';
|
|
7
|
+
export { CreditWithdrawalPage } from './CreditWithdrawalPage';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/credits/pages/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BillingSubscription } from '../../../shared/types';
|
|
3
|
+
interface ActiveSubscriptionCardProps {
|
|
4
|
+
subscription: BillingSubscription | null;
|
|
5
|
+
onViewDetails?: () => void;
|
|
6
|
+
onUpgrade?: () => void;
|
|
7
|
+
onManage?: () => void;
|
|
8
|
+
onPurchasePlan?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Optional tour anchor applied to the section root (for onboarding tours). */
|
|
11
|
+
dataTour?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ActiveSubscriptionCard: FC<ActiveSubscriptionCardProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=ActiveSubscriptionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActiveSubscriptionCard.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/dashboard/components/ActiveSubscriptionCard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAYzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,UAAU,2BAA2B;IACnC,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAsPlE,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
Stripe?: (key: string) => StripeInstance;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
interface StripeInstance {
|
|
8
|
+
elements: () => StripeElements;
|
|
9
|
+
createPaymentMethod: (options: {
|
|
10
|
+
type: 'card';
|
|
11
|
+
card: StripeCardElement;
|
|
12
|
+
billing_details?: {
|
|
13
|
+
name?: string;
|
|
14
|
+
};
|
|
15
|
+
}) => Promise<{
|
|
16
|
+
paymentMethod?: {
|
|
17
|
+
id: string;
|
|
18
|
+
card?: {
|
|
19
|
+
brand: string;
|
|
20
|
+
last4: string;
|
|
21
|
+
exp_month: number;
|
|
22
|
+
exp_year: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
error?: {
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
confirmCardSetup: (clientSecret: string, options?: {
|
|
30
|
+
payment_method?: {
|
|
31
|
+
card: StripeCardElement;
|
|
32
|
+
billing_details?: {
|
|
33
|
+
name?: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}) => Promise<{
|
|
37
|
+
setupIntent?: {
|
|
38
|
+
id: string;
|
|
39
|
+
status: string;
|
|
40
|
+
payment_method?: string;
|
|
41
|
+
};
|
|
42
|
+
error?: {
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
interface StripeElements {
|
|
48
|
+
create: (type: 'card', options?: object) => StripeCardElement;
|
|
49
|
+
}
|
|
50
|
+
interface StripeCardElement {
|
|
51
|
+
mount: (element: HTMLElement | string) => void;
|
|
52
|
+
unmount: () => void;
|
|
53
|
+
on: (event: string, handler: (event: {
|
|
54
|
+
complete: boolean;
|
|
55
|
+
error?: {
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
58
|
+
}) => void) => void;
|
|
59
|
+
destroy: () => void;
|
|
60
|
+
}
|
|
61
|
+
interface AddPaymentMethodModalProps {
|
|
62
|
+
isOpen: boolean;
|
|
63
|
+
onClose: () => void;
|
|
64
|
+
billingAccountId: string;
|
|
65
|
+
currency: string;
|
|
66
|
+
country?: string;
|
|
67
|
+
onSuccess?: () => void;
|
|
68
|
+
}
|
|
69
|
+
export declare const AddPaymentMethodModal: FC<AddPaymentMethodModalProps>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=AddPaymentMethodModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddPaymentMethodModal.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/dashboard/components/AddPaymentMethodModal.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAA4C,MAAM,OAAO,CAAC;AAU1E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,cAAc,CAAC;KAC1C;CACF;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,cAAc,CAAC;IAC/B,mBAAmB,EAAE,CAAC,OAAO,EAAE;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,iBAAiB,CAAC;QACxB,eAAe,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACrC,KAAK,OAAO,CAAC;QACZ,aAAa,CAAC,EAAE;YACd,EAAE,EAA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0B;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAqBD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAgehE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BillingAccount } from '../../../shared/types';
|
|
3
|
+
interface BillingAccountCardProps {
|
|
4
|
+
account: BillingAccount;
|
|
5
|
+
isDefault?: boolean;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
onSelect?: () => void;
|
|
8
|
+
onEdit?: () => void;
|
|
9
|
+
onViewTransactions?: () => void;
|
|
10
|
+
onViewCreditTransactions?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Optional tour anchor applied to the card root (for onboarding tours). */
|
|
13
|
+
dataTour?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const BillingAccountCard: FC<BillingAccountCardProps>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BillingAccountCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BillingAccountCard.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/dashboard/components/BillingAccountCard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAW1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,UAAU,uBAAuB;IAC/B,OAAO,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAwK1D,CAAC"}
|