@burdenoff/microfe-billing 2026.510.114
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/README.md +12 -0
- package/dist/billing/BillingAdminRoutes.d.ts +6 -0
- package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
- package/dist/billing/BillingAdminRoutes.js +359 -0
- package/dist/billing/BillingAdminRoutes.js.map +1 -0
- package/dist/billing/BillingRoot.d.ts +37 -0
- package/dist/billing/BillingRoot.d.ts.map +1 -0
- package/dist/billing/BillingRoot.js +190 -0
- package/dist/billing/BillingRoot.js.map +1 -0
- package/dist/billing/BillingUserRoutes.d.ts +7 -0
- package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
- package/dist/billing/BillingUserRoutes.js +479 -0
- package/dist/billing/BillingUserRoutes.js.map +1 -0
- package/dist/billing/constants/permissions.d.ts +18 -0
- package/dist/billing/constants/permissions.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/useBillingAccountSelection.js +81 -0
- package/dist/billing/hooks/useBillingAccountSelection.js.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts +8 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.js +15 -0
- package/dist/billing/hooks/useBillingEventEmitter.js.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/useBillingNavigate.js +23 -0
- package/dist/billing/hooks/useBillingNavigate.js.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts +94 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.js +78 -0
- package/dist/billing/hooks/useBillingPermissions.js.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/useDefaultBillingCurrency.js +23 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.js.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 +51 -0
- package/dist/billing/lib/native-purchases.d.ts.map +1 -0
- package/dist/billing/lib/native-purchases.js +44 -0
- package/dist/billing/lib/native-purchases.js.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +4 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +179 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -0
- package/dist/billing/modules/addons/components/index.d.ts +5 -0
- package/dist/billing/modules/addons/components/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.d.ts +6 -0
- package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.js +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts +55 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.js +77 -0
- package/dist/billing/modules/addons/hooks/useAddons.js.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/index.js +10 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +266 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +369 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +280 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.js +396 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +582 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.js +744 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.js.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/pages/index.js +6 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts +38 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
- package/dist/billing/modules/addons/store/addonCartStore.js +74 -0
- package/dist/billing/modules/addons/store/addonCartStore.js.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/api.js +38 -0
- package/dist/billing/modules/affiliate/api.js.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/index.js +2 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +4 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +464 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.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/index.js +3 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +4 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +469 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.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/analytics/pages/index.js +1 -0
- package/dist/billing/modules/billing/hooks/index.d.ts +10 -0
- package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/index.js +4 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts +67 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useInvoices.js +87 -0
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts +62 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.js +3 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts +191 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useRefunds.js +162 -0
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts +41 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.js +55 -0
- package/dist/billing/modules/billing/hooks/useTransactions.js.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/index.js +11 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +631 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +382 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +147 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.js +1074 -0
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.js +587 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/index.d.ts +10 -0
- package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/index.js +5 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +14 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.js +3 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +14 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +151 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +14 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.js +4 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +14 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +130 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +16 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.js +5 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +19 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.js +5 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +14 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js +273 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts +22 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.js +293 -0
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +19 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.js +3 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +19 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +102 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +25 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +169 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +13 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.js +4 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +78 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +16 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +253 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +26 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +84 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +23 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +229 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/index.d.ts +20 -0
- package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/index.js +16 -0
- package/dist/billing/modules/checkout/graphql/index.d.ts +6 -0
- package/dist/billing/modules/checkout/graphql/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/index.js +4 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +69 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.js +377 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +26 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js +88 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js.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/usePaymentProviders.js +16 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js.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/usePaymentStatusPolling.js +107 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js.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/index.js +19 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +4 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +1248 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.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/pages/index.js +1 -0
- package/dist/billing/modules/checkout/types/index.d.ts +270 -0
- package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts +20 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.js +27 -0
- package/dist/billing/modules/checkout/utils/storeOrder.js.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/index.js +6 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +489 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +544 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +421 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +379 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.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/coupons/pages/index.js +4 -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/index.js +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts +75 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.js +78 -0
- package/dist/billing/modules/credits/hooks/useCredits.js.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/index.js +8 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +140 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +331 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +770 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.js +324 -0
- package/dist/billing/modules/credits/pages/CreditsPage.js.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/credits/pages/index.js +4 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +14 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +185 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +111 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +388 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +16 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +146 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +13 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +1044 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +15 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +216 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +27 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +193 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.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/components/index.js +6 -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/index.js +2 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +17 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js +42 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +145 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.js +118 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.js.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/index.js +12 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +4 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +478 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.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/dashboard/pages/index.js +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/index.js +3 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +4 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +1009 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.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/discounts/pages/index.js +1 -0
- package/dist/billing/modules/earnings/api.d.ts +131 -0
- package/dist/billing/modules/earnings/api.d.ts.map +1 -0
- package/dist/billing/modules/earnings/api.js +122 -0
- package/dist/billing/modules/earnings/api.js.map +1 -0
- package/dist/billing/modules/earnings/index.d.ts +4 -0
- package/dist/billing/modules/earnings/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/index.js +4 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.js +435 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +273 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +480 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.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/index.js +2 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts +46 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/usePlans.js +77 -0
- package/dist/billing/modules/plans/hooks/usePlans.js.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts +27 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.js +21 -0
- package/dist/billing/modules/plans/hooks/useQuotas.js.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/index.js +11 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +264 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +368 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +356 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.js +395 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +314 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.js +438 -0
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/index.d.ts +11 -0
- package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/index.js +6 -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/index.js +2 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts +102 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuota.js +63 -0
- package/dist/billing/modules/quota/hooks/useQuota.js.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +39 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js +67 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js.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/index.js +10 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaPage.js +337 -0
- package/dist/billing/modules/quota/pages/QuotaPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +273 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +272 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +316 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +401 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/index.d.ts +9 -0
- package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/index.js +5 -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/index.js +4 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts +4 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/SettingsPage.js +632 -0
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +4 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +270 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.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/settings/pages/index.js +2 -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/graphql/index.js +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/index.js +3 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +11 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js +18 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +12 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +167 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.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/index.js +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +92 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js +136 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.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/index.js +7 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +551 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +529 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +430 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.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/subscriptions/pages/index.js +3 -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/index.js +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts +203 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.js +271 -0
- package/dist/billing/modules/usage/hooks/useUsage.js.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/index.js +5 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts +4 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.js +817 -0
- package/dist/billing/modules/usage/pages/UsagePage.js.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/pages/index.js +1 -0
- package/dist/billing/providers/BillingProvider.d.ts +16 -0
- package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
- package/dist/billing/providers/BillingProvider.js +40 -0
- package/dist/billing/providers/BillingProvider.js.map +1 -0
- package/dist/billing/shared/components/AccessDenied.d.ts +8 -0
- package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
- package/dist/billing/shared/components/AccessDenied.js +44 -0
- package/dist/billing/shared/components/AccessDenied.js.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +11 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +230 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -0
- package/dist/billing/shared/components/EmptyState.d.ts +11 -0
- package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
- package/dist/billing/shared/components/EmptyState.js +27 -0
- package/dist/billing/shared/components/EmptyState.js.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +11 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
- package/dist/billing/shared/components/PageHeader.d.ts +11 -0
- package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
- package/dist/billing/shared/components/PageHeader.js +25 -0
- package/dist/billing/shared/components/PageHeader.js.map +1 -0
- package/dist/billing/shared/components/ServerError.d.ts +11 -0
- package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
- package/dist/billing/shared/components/ServerError.js +75 -0
- package/dist/billing/shared/components/ServerError.js.map +1 -0
- package/dist/billing/shared/components/StatCard.d.ts +15 -0
- package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
- package/dist/billing/shared/components/StatCard.js +37 -0
- package/dist/billing/shared/components/StatCard.js.map +1 -0
- package/dist/billing/shared/components/index.d.ts +11 -0
- package/dist/billing/shared/components/index.d.ts.map +1 -0
- package/dist/billing/shared/components/index.js +7 -0
- package/dist/billing/shared/index.d.ts +8 -0
- package/dist/billing/shared/index.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.d.ts +926 -0
- package/dist/billing/shared/types/graphql.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.js +30 -0
- package/dist/billing/shared/types/graphql.js.map +1 -0
- package/dist/billing/shared/types/index.d.ts +96 -0
- package/dist/billing/shared/types/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts +13 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.js +2 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +13 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directBillingGraphql.js +22 -0
- package/dist/billing/shared/utils/directBillingGraphql.js.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/error.js +16 -0
- package/dist/billing/shared/utils/error.js.map +1 -0
- package/dist/billing/shared/utils/format.d.ts +28 -0
- package/dist/billing/shared/utils/format.d.ts.map +1 -0
- package/dist/billing/shared/utils/format.js +65 -0
- package/dist/billing/shared/utils/format.js.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts +15 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.js +27 -0
- package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -0
- package/dist/billing/shared/utils/index.d.ts +13 -0
- package/dist/billing/shared/utils/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/index.js +8 -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/navigation.js +8 -0
- package/dist/billing/shared/utils/navigation.js.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/paymentTheme.js +32 -0
- package/dist/billing/shared/utils/paymentTheme.js.map +1 -0
- package/dist/billing/shared/utils/status.d.ts +28 -0
- package/dist/billing/shared/utils/status.d.ts.map +1 -0
- package/dist/billing/shared/utils/status.js +57 -0
- package/dist/billing/shared/utils/status.js.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/shared/utils/tokens.js +128 -0
- package/dist/billing/shared/utils/tokens.js.map +1 -0
- package/dist/billing/types/index.d.ts +268 -0
- package/dist/billing/types/index.d.ts.map +1 -0
- package/dist/billing/utils/index.d.ts +128 -0
- package/dist/billing/utils/index.d.ts.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +9544 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +3542 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +22208 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/global-types.js +12 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +61 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +35 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +48578 -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/index.js +2 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +270 -0
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +112 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNativeCheckout.js","names":[],"sources":["../../../../../src/billing/modules/checkout/hooks/useNativeCheckout.ts"],"sourcesContent":["/**\n * Native IAP checkout hook — Apple StoreKit / Google Play Billing.\n *\n * Manages the full native purchase lifecycle:\n * 1. Load product info from the App Store / Play Store\n * 2. Trigger the native payment sheet\n * 3. Send the receipt / JWS / purchase token to the backend for validation\n * 4. Acknowledge the transaction after the backend confirms it\n *\n * The backend endpoint POST /rest/billing/iap/validate validates with Apple\n * or Google servers and then activates the subscription or credits — no\n * RevenueCat or third-party account required.\n */\n\nimport { useState, useCallback } from 'react';\nimport { Capacitor } from '@capacitor/core';\nimport {\n getNativeProducts,\n purchaseNativeProduct,\n acknowledgeNativePurchase,\n restoreNativePurchases,\n isNativeIAPAvailable,\n} from '../../../lib/native-purchases';\nimport type { Product, Transaction, PURCHASE_TYPE } from '@capgo/native-purchases';\nimport type { CheckoutState, PurchaseType } from '../types';\nimport { useBilling } from '../../../providers/BillingProvider';\n\nexport type { Product, Transaction };\n\ninterface UseNativeCheckoutOptions {\n billingAccountId?: string;\n purchaseType?: PurchaseType;\n /** Store product identifier — passed to getProducts to load the specific product. */\n productId?: string;\n}\n\ninterface UseNativeCheckoutResult {\n isAvailable: boolean;\n products: Product[];\n checkoutState: CheckoutState;\n error: string | null;\n isLoading: boolean;\n loadProducts: (productIdentifiers?: string[]) => Promise<void>;\n purchaseProduct: (product: Product) => Promise<{ success: boolean }>;\n restorePurchases: () => Promise<{ success: boolean }>;\n}\n\nexport function useNativeCheckout({\n billingAccountId,\n purchaseType,\n productId,\n}: UseNativeCheckoutOptions = {}): UseNativeCheckoutResult {\n const { apiGatewayUrl, authToken } = useBilling();\n const [products, setProducts] = useState<Product[]>([]);\n const [checkoutState, setCheckoutState] = useState<CheckoutState>('idle');\n const [error, setError] = useState<string | null>(null);\n const [isLoading, setIsLoading] = useState(false);\n\n const loadProducts = useCallback(\n async (productIdentifiers?: string[]) => {\n if (!isNativeIAPAvailable()) return;\n const ids = productIdentifiers ?? (productId ? [productId] : []);\n if (ids.length === 0) return;\n setIsLoading(true);\n setError(null);\n try {\n const result = await getNativeProducts(ids);\n setProducts(result);\n } catch (err) {\n setError(err instanceof Error ? err.message : 'Failed to load products');\n } finally {\n setIsLoading(false);\n }\n },\n [productId]\n );\n\n const purchaseProduct = useCallback(\n async (product: Product): Promise<{ success: boolean }> => {\n if (!billingAccountId) {\n setError('No billing account selected');\n return { success: false };\n }\n\n setCheckoutState('processing');\n setError(null);\n\n let transaction: Transaction | undefined;\n try {\n // Trigger native payment sheet — deferred ack so we validate server-side first.\n // planIdentifier is required for Android subscriptions (base plan ID from Play Console).\n // isConsumable allows credits to be re-purchased on Android.\n const isCredits = purchaseType === 'CREDITS';\n // appAccountToken: UUID passed to Apple/Google so they echo it in server notifications,\n // allowing us to link renewals/cancellations to this billing account.\n // iOS requires UUID format; Android (obfuscatedExternalAccountId) accepts any string ≤ 64 chars.\n const appAccountToken = crypto.randomUUID();\n transaction = await purchaseNativeProduct(product.identifier, {\n autoAcknowledgePurchases: false,\n isConsumable: isCredits,\n planIdentifier: !isCredits ? (product.planIdentifier ?? undefined) : undefined,\n appAccountToken,\n });\n\n // Send receipt / token to backend for server-side validation and entitlement activation\n const platform = Capacitor.getPlatform() as 'ios' | 'android';\n const response = await fetch(`${apiGatewayUrl}/rest/billing/iap/validate`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n },\n body: JSON.stringify({\n platform,\n transactionId: transaction.transactionId,\n productIdentifier: transaction.productIdentifier,\n receipt: transaction.receipt,\n jwsRepresentation: transaction.jwsRepresentation,\n purchaseToken: transaction.purchaseToken,\n appAccountToken,\n billingAccountId,\n purchaseType,\n }),\n });\n\n if (!response.ok) {\n const body = (await response.json().catch(() => ({}))) as { message?: string };\n throw new Error(body.message ?? `Validation failed (${response.status})`);\n }\n\n // Acknowledge only after backend confirms the purchase is valid\n await acknowledgeNativePurchase(transaction.purchaseToken ?? transaction.transactionId);\n\n setCheckoutState('success');\n return { success: true };\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Purchase failed';\n // User cancellation is not an error worth surfacing as \"error\" state\n if (\n message.toLowerCase().includes('cancel') ||\n message.toLowerCase().includes('dismiss') ||\n message.toLowerCase().includes('abort')\n ) {\n setCheckoutState('idle');\n } else {\n setError(message);\n setCheckoutState('error');\n }\n return { success: false };\n }\n },\n [billingAccountId, apiGatewayUrl, authToken, purchaseType]\n );\n\n const restorePurchases = useCallback(async (): Promise<{ success: boolean }> => {\n setIsLoading(true);\n setError(null);\n try {\n await restoreNativePurchases();\n return { success: true };\n } catch (err) {\n setError(err instanceof Error ? err.message : 'Restore failed');\n return { success: false };\n } finally {\n setIsLoading(false);\n }\n }, []);\n\n return {\n isAvailable: isNativeIAPAvailable(),\n products,\n checkoutState,\n error,\n isLoading,\n loadProducts,\n purchaseProduct,\n restorePurchases,\n };\n}\n"],"mappings":";;;;;AA+CA,SAAgB,EAAkB,EAChC,qBACA,iBACA,iBAC4B,EAAE,EAA2B;CACzD,IAAM,EAAE,kBAAe,iBAAc,GAAY,EAC3C,CAAC,GAAU,KAAe,EAAoB,EAAE,CAAC,EACjD,CAAC,GAAe,KAAoB,EAAwB,OAAO,EACnE,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,CAAC,GAAW,KAAgB,EAAS,GAAM,EAE3C,IAAe,EACnB,OAAO,MAAkC;AACvC,MAAI,CAAC,GAAsB,CAAE;EAC7B,IAAM,IAAM,MAAuB,IAAY,CAAC,EAAU,GAAG,EAAE;AAC3D,QAAI,WAAW,GAEnB;GADA,EAAa,GAAK,EAClB,EAAS,KAAK;AACd,OAAI;AAEF,MADe,MAAM,EAAkB,EAAI,CACxB;YACZ,GAAK;AACZ,MAAS,aAAe,QAAQ,EAAI,UAAU,0BAA0B;aAChE;AACR,MAAa,GAAM;;;IAGvB,CAAC,EAAU,CACZ,EAEK,IAAkB,EACtB,OAAO,MAAoD;AACzD,MAAI,CAAC,EAEH,QADA,EAAS,8BAA8B,EAChC,EAAE,SAAS,IAAO;AAI3B,EADA,EAAiB,aAAa,EAC9B,EAAS,KAAK;EAEd,IAAI;AACJ,MAAI;GAIF,IAAM,IAAY,MAAiB,WAI7B,IAAkB,OAAO,YAAY;AAC3C,OAAc,MAAM,EAAsB,EAAQ,YAAY;IAC5D,0BAA0B;IAC1B,cAAc;IACd,gBAAiB,IAAoD,KAAA,IAAvC,EAAQ,kBAAkB,KAAA;IACxD;IACD,CAAC;GAGF,IAAM,IAAW,EAAU,aAAa,EAClC,IAAW,MAAM,MAAM,GAAG,EAAc,6BAA6B;IACzE,QAAQ;IACR,SAAS;KACP,gBAAgB;KAChB,GAAI,IAAY,EAAE,eAAe,UAAU,KAAa,GAAG,EAAE;KAC9D;IACD,MAAM,KAAK,UAAU;KACnB;KACA,eAAe,EAAY;KAC3B,mBAAmB,EAAY;KAC/B,SAAS,EAAY;KACrB,mBAAmB,EAAY;KAC/B,eAAe,EAAY;KAC3B;KACA;KACA;KACD,CAAC;IACH,CAAC;AAEF,OAAI,CAAC,EAAS,IAAI;IAChB,IAAM,IAAQ,MAAM,EAAS,MAAM,CAAC,aAAa,EAAE,EAAE;AACrD,UAAU,MAAM,EAAK,WAAW,sBAAsB,EAAS,OAAO,GAAG;;AAO3E,UAHA,MAAM,EAA0B,EAAY,iBAAiB,EAAY,cAAc,EAEvF,EAAiB,UAAU,EACpB,EAAE,SAAS,IAAM;WACjB,GAAK;GACZ,IAAM,IAAU,aAAe,QAAQ,EAAI,UAAU;AAYrD,UATE,EAAQ,aAAa,CAAC,SAAS,SAAS,IACxC,EAAQ,aAAa,CAAC,SAAS,UAAU,IACzC,EAAQ,aAAa,CAAC,SAAS,QAAQ,GAEvC,EAAiB,OAAO,IAExB,EAAS,EAAQ,EACjB,EAAiB,QAAQ,GAEpB,EAAE,SAAS,IAAO;;IAG7B;EAAC;EAAkB;EAAe;EAAW;EAAa,CAC3D,EAEK,IAAmB,EAAY,YAA2C;AAE9E,EADA,EAAa,GAAK,EAClB,EAAS,KAAK;AACd,MAAI;AAEF,UADA,MAAM,GAAwB,EACvB,EAAE,SAAS,IAAM;WACjB,GAAK;AAEZ,UADA,EAAS,aAAe,QAAQ,EAAI,UAAU,iBAAiB,EACxD,EAAE,SAAS,IAAO;YACjB;AACR,KAAa,GAAM;;IAEpB,EAAE,CAAC;AAEN,QAAO;EACL,aAAa,GAAsB;EACnC;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -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,16 @@
|
|
|
1
|
+
import { useGetPaymentProviderConfigCheckoutQuery as e } from "../../../../generated/global-operations.js";
|
|
2
|
+
//#region src/billing/modules/checkout/hooks/usePaymentProviders.ts
|
|
3
|
+
function t() {
|
|
4
|
+
let { data: t, loading: n, error: r } = e({ fetchPolicy: "cache-first" }), i = t?.getPaymentProviderConfig ?? null;
|
|
5
|
+
return {
|
|
6
|
+
config: i,
|
|
7
|
+
isLoading: n,
|
|
8
|
+
error: r ?? null,
|
|
9
|
+
stripeEnabled: i?.stripeEnabled ?? !1,
|
|
10
|
+
razorpayEnabled: i?.razorpayEnabled ?? !1
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as usePaymentProviders };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=usePaymentProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentProviders.js","names":[],"sources":["../../../../../src/billing/modules/checkout/hooks/usePaymentProviders.ts"],"sourcesContent":["/**\n * Hook for getting payment provider configuration\n */\n\nimport { useGetPaymentProviderConfigCheckoutQuery } from '../../../../generated/global-operations';\n\ninterface PaymentProviderConfig {\n stripeEnabled: boolean;\n stripePublishableKey: string | null;\n razorpayEnabled: boolean;\n razorpayKeyId: string | null;\n}\n\ninterface UsePaymentProvidersResult {\n config: PaymentProviderConfig | null;\n isLoading: boolean;\n error: Error | null;\n stripeEnabled: boolean;\n razorpayEnabled: boolean;\n}\n\nexport function usePaymentProviders(): UsePaymentProvidersResult {\n const { data, loading, error } = useGetPaymentProviderConfigCheckoutQuery({\n fetchPolicy: 'cache-first',\n });\n\n const config = data?.getPaymentProviderConfig ?? null;\n\n return {\n config,\n isLoading: loading,\n error: error ?? null,\n stripeEnabled: config?.stripeEnabled ?? false,\n razorpayEnabled: config?.razorpayEnabled ?? false,\n };\n}\n"],"mappings":";;AAqBA,SAAgB,IAAiD;CAC/D,IAAM,EAAE,SAAM,YAAS,aAAU,EAAyC,EACxE,aAAa,eACd,CAAC,EAEI,IAAS,GAAM,4BAA4B;AAEjD,QAAO;EACL;EACA,WAAW;EACX,OAAO,KAAS;EAChB,eAAe,GAAQ,iBAAiB;EACxC,iBAAiB,GAAQ,mBAAmB;EAC7C"}
|
|
@@ -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,107 @@
|
|
|
1
|
+
import { useGetCreditTransactionStatusLazyQuery as e, useGetPaymentStatusLazyQuery as t } from "../../../../generated/global-operations.js";
|
|
2
|
+
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
3
|
+
//#region src/billing/modules/checkout/hooks/usePaymentStatusPolling.ts
|
|
4
|
+
function o(e, t) {
|
|
5
|
+
if (t === "credits") switch (e) {
|
|
6
|
+
case "success": return "success";
|
|
7
|
+
case "failed": return "failed";
|
|
8
|
+
default: return "pending";
|
|
9
|
+
}
|
|
10
|
+
else switch (e) {
|
|
11
|
+
case "SUCCEEDED": return "success";
|
|
12
|
+
case "FAILED":
|
|
13
|
+
case "CANCELED": return "failed";
|
|
14
|
+
default: return "pending";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function s(s) {
|
|
18
|
+
let { paymentId: c, billingAccountId: l, paymentType: u, pollingInterval: d = 5e3, maxPollingTime: f = 3e5, onSuccess: p, onFailure: m, onTimeout: h, enabled: g = !0 } = s, [_, v] = a(null), [y, b] = a(!1), [x, S] = a(0), [C, w] = a(null), [T, E] = a(null), D = i(null), O = i(null), k = i(null), A = i(!1), j = i(p), M = i(m), N = i(h), P = i(d), F = i(f);
|
|
19
|
+
j.current = p, M.current = m, N.current = h, P.current = d, F.current = f;
|
|
20
|
+
let [I] = t({ fetchPolicy: "network-only" }), [L] = e({ fetchPolicy: "network-only" }), R = n(() => {
|
|
21
|
+
D.current &&= (clearInterval(D.current), null), O.current &&= (clearInterval(O.current), null);
|
|
22
|
+
}, []), z = n(() => {
|
|
23
|
+
A.current = !1, b(!1), R();
|
|
24
|
+
}, [R]), B = n(() => {}, []);
|
|
25
|
+
return r(() => {
|
|
26
|
+
if (!c || !l || !g || A.current) return;
|
|
27
|
+
A.current = !0, b(!0), S(0), w(null), v("pending"), k.current = Date.now();
|
|
28
|
+
let e = async () => {
|
|
29
|
+
if (A.current) try {
|
|
30
|
+
let e;
|
|
31
|
+
if (u === "credits") {
|
|
32
|
+
let { data: t, error: n } = await L({ variables: {
|
|
33
|
+
creditTransactionID: c,
|
|
34
|
+
billingAccountId: l
|
|
35
|
+
} });
|
|
36
|
+
if (n) {
|
|
37
|
+
w(n.message);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let r = t?.getCreditTransactionDetails;
|
|
41
|
+
r && (e = {
|
|
42
|
+
id: r.id,
|
|
43
|
+
status: r.status,
|
|
44
|
+
amount: r.amount,
|
|
45
|
+
transactionId: r.transactionId,
|
|
46
|
+
type: r.type,
|
|
47
|
+
billingAccountId: r.billingAccountId,
|
|
48
|
+
productId: r.productId
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
let { data: t, error: n } = await I({ variables: {
|
|
52
|
+
id: c,
|
|
53
|
+
billingAccountId: l
|
|
54
|
+
} });
|
|
55
|
+
if (n) {
|
|
56
|
+
w(n.message);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
let r = t?.getPayment;
|
|
60
|
+
r && (e = {
|
|
61
|
+
id: r.id,
|
|
62
|
+
status: r.status,
|
|
63
|
+
amount: r.amount,
|
|
64
|
+
currency: r.currency,
|
|
65
|
+
paidAt: r.paidAt,
|
|
66
|
+
failureReason: r.failureReason,
|
|
67
|
+
transactionId: r.transactionId,
|
|
68
|
+
gatewayPaymentId: r.gatewayPaymentId
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (!e) return;
|
|
72
|
+
let t = o(e.status, u);
|
|
73
|
+
v(t), E(e), t === "success" ? (A.current = !1, b(!1), R(), j.current?.(e)) : t === "failed" && (A.current = !1, b(!1), R(), M.current?.(e));
|
|
74
|
+
} catch (e) {
|
|
75
|
+
w(e instanceof Error ? e.message : "Failed to check payment status");
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return e(), D.current = setInterval(e, P.current), O.current = setInterval(() => {
|
|
79
|
+
if (k.current) {
|
|
80
|
+
let e = Date.now() - k.current;
|
|
81
|
+
S(e), e >= F.current && (A.current = !1, b(!1), R(), v("timeout"), w("Payment verification timed out. Please check your billing history or try again after 24 hours."), N.current?.());
|
|
82
|
+
}
|
|
83
|
+
}, 1e3), () => {
|
|
84
|
+
A.current = !1, b(!1), R();
|
|
85
|
+
};
|
|
86
|
+
}, [
|
|
87
|
+
l,
|
|
88
|
+
c,
|
|
89
|
+
g,
|
|
90
|
+
u,
|
|
91
|
+
I,
|
|
92
|
+
L,
|
|
93
|
+
R
|
|
94
|
+
]), {
|
|
95
|
+
status: _,
|
|
96
|
+
isPolling: y,
|
|
97
|
+
elapsedTime: x,
|
|
98
|
+
error: C,
|
|
99
|
+
paymentResult: T,
|
|
100
|
+
startPolling: B,
|
|
101
|
+
stopPolling: z
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { s as usePaymentStatusPolling };
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=usePaymentStatusPolling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentStatusPolling.js","names":[],"sources":["../../../../../src/billing/modules/checkout/hooks/usePaymentStatusPolling.ts"],"sourcesContent":["/**\n * Payment Status Polling Hook\n * Polls the backend to check payment status after initiating a payment\n * Supports both card payments (via getPayment) and credit payments (via getCreditTransactionDetails)\n */\n\nimport { useState, useEffect, useCallback, useRef } from 'react';\nimport {\n useGetPaymentStatusLazyQuery,\n useGetCreditTransactionStatusLazyQuery,\n} from '../../../../generated/global-operations';\n\n// Card payment status (uppercase)\nexport type PaymentStatus = 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'REFUNDED' | 'CANCELED';\n\n// Credit transaction status (lowercase from backend)\nexport type CreditTransactionStatus = 'pending' | 'success' | 'failed' | 'refund';\n\n// Unified status for UI\nexport type UnifiedPaymentStatus = 'pending' | 'success' | 'failed' | 'timeout';\n\nexport interface PaymentStatusResult {\n id: string;\n status: PaymentStatus | CreditTransactionStatus;\n amount: number;\n currency?: string;\n paidAt?: string;\n failureReason?: string;\n transactionId?: string;\n gatewayPaymentId?: string;\n // Credit transaction specific\n type?: string;\n billingAccountId?: string;\n productId?: string;\n}\n\nexport interface UsePaymentStatusPollingOptions {\n /** Payment/Transaction ID to poll for */\n paymentId: string | null;\n /** Billing account scope required by the polling queries */\n billingAccountId: string | null;\n /** Type of payment: 'card' for card payments, 'credits' for credit transactions */\n paymentType: 'card' | 'credits';\n /** Polling interval in milliseconds (default: 5000ms / 5 seconds) */\n pollingInterval?: number;\n /** Maximum time to poll in milliseconds (default: 300000ms / 5 minutes) */\n maxPollingTime?: number;\n /** Callback when payment succeeds */\n onSuccess?: (result: PaymentStatusResult) => void;\n /** Callback when payment fails */\n onFailure?: (result: PaymentStatusResult) => void;\n /** Callback when polling times out */\n onTimeout?: () => void;\n /** Whether polling is enabled (default: true when paymentId is provided) */\n enabled?: boolean;\n}\n\nexport interface UsePaymentStatusPollingResult {\n /** Current unified payment status */\n status: UnifiedPaymentStatus | null;\n /** Whether polling is in progress */\n isPolling: boolean;\n /** Time elapsed since polling started (ms) */\n elapsedTime: number;\n /** Error message if any */\n error: string | null;\n /** Payment result data */\n paymentResult: PaymentStatusResult | null;\n /** Manually start polling */\n startPolling: () => void;\n /** Manually stop polling */\n stopPolling: () => void;\n}\n\n// Helper to normalize status to unified format\nfunction normalizeStatus(\n status: PaymentStatus | CreditTransactionStatus,\n paymentType: 'card' | 'credits'\n): UnifiedPaymentStatus {\n if (paymentType === 'credits') {\n // Credit transaction status (lowercase)\n switch (status) {\n case 'success':\n return 'success';\n case 'failed':\n return 'failed';\n case 'pending':\n default:\n return 'pending';\n }\n } else {\n // Card payment status (uppercase)\n switch (status) {\n case 'SUCCEEDED':\n return 'success';\n case 'FAILED':\n case 'CANCELED':\n return 'failed';\n case 'PENDING':\n default:\n return 'pending';\n }\n }\n}\n\nexport function usePaymentStatusPolling(\n options: UsePaymentStatusPollingOptions\n): UsePaymentStatusPollingResult {\n const {\n paymentId,\n billingAccountId,\n paymentType,\n pollingInterval = 5000, // 5 seconds\n maxPollingTime = 300000, // 5 minutes\n onSuccess,\n onFailure,\n onTimeout,\n enabled = true,\n } = options;\n\n const [status, setStatus] = useState<UnifiedPaymentStatus | null>(null);\n const [isPolling, setIsPolling] = useState(false);\n const [elapsedTime, setElapsedTime] = useState(0);\n const [error, setError] = useState<string | null>(null);\n const [paymentResult, setPaymentResult] = useState<PaymentStatusResult | null>(null);\n\n // Refs to track polling state\n const pollingIntervalRef = useRef<ReturnType<typeof setInterval> | null>(null);\n const elapsedIntervalRef = useRef<ReturnType<typeof setInterval> | null>(null);\n const startTimeRef = useRef<number | null>(null);\n const isPollingRef = useRef(false);\n\n // Refs for callbacks to avoid dependency issues\n const onSuccessRef = useRef(onSuccess);\n const onFailureRef = useRef(onFailure);\n const onTimeoutRef = useRef(onTimeout);\n\n // Refs for config values\n const pollingIntervalMsRef = useRef(pollingInterval);\n const maxPollingTimeMsRef = useRef(maxPollingTime);\n\n // Keep refs updated - this is a common pattern for callbacks in effects\n onSuccessRef.current = onSuccess;\n onFailureRef.current = onFailure;\n onTimeoutRef.current = onTimeout;\n pollingIntervalMsRef.current = pollingInterval;\n maxPollingTimeMsRef.current = maxPollingTime;\n\n // GraphQL queries for both types\n const [fetchCardPaymentStatus] = useGetPaymentStatusLazyQuery({\n fetchPolicy: 'network-only',\n });\n\n const [fetchCreditTransactionStatus] = useGetCreditTransactionStatusLazyQuery({\n fetchPolicy: 'network-only',\n });\n\n // Stop polling helper\n const clearPollingIntervals = useCallback(() => {\n if (pollingIntervalRef.current) {\n clearInterval(pollingIntervalRef.current);\n pollingIntervalRef.current = null;\n }\n if (elapsedIntervalRef.current) {\n clearInterval(elapsedIntervalRef.current);\n elapsedIntervalRef.current = null;\n }\n }, []);\n\n // Stop polling\n const stopPolling = useCallback(() => {\n isPollingRef.current = false;\n setIsPolling(false);\n clearPollingIntervals();\n }, [clearPollingIntervals]);\n\n // Manual start polling (for external control)\n const startPolling = useCallback(() => {\n // This is handled by the useEffect, but we expose it for manual control\n // The effect will handle actual polling start\n }, []);\n\n // Auto-start polling when paymentId changes and enabled\n useEffect(() => {\n // Only start if we have a payment ID and aren't already polling\n if (!paymentId || !billingAccountId || !enabled || isPollingRef.current) {\n return;\n }\n\n isPollingRef.current = true;\n setIsPolling(true);\n setElapsedTime(0);\n setError(null);\n setStatus('pending');\n startTimeRef.current = Date.now();\n\n // Define the poll function inline to capture current values\n const doPoll = async () => {\n if (!isPollingRef.current) return;\n\n try {\n let result: PaymentStatusResult | undefined;\n\n if (paymentType === 'credits') {\n const { data, error: queryError } = await fetchCreditTransactionStatus({\n variables: { creditTransactionID: paymentId, billingAccountId },\n });\n\n if (queryError) {\n setError(queryError.message);\n return;\n }\n\n const transaction = data?.getCreditTransactionDetails;\n if (transaction) {\n result = {\n id: transaction.id,\n status: transaction.status,\n amount: transaction.amount,\n transactionId: transaction.transactionId,\n type: transaction.type,\n billingAccountId: transaction.billingAccountId,\n productId: transaction.productId,\n };\n }\n } else {\n const { data, error: queryError } = await fetchCardPaymentStatus({\n variables: { id: paymentId, billingAccountId },\n });\n\n if (queryError) {\n setError(queryError.message);\n return;\n }\n\n const payment = data?.getPayment;\n if (payment) {\n result = {\n id: payment.id,\n status: payment.status,\n amount: payment.amount,\n currency: payment.currency,\n paidAt: payment.paidAt,\n failureReason: payment.failureReason,\n transactionId: payment.transactionId,\n gatewayPaymentId: payment.gatewayPaymentId,\n };\n }\n }\n\n if (!result) {\n return;\n }\n\n const normalizedStatus = normalizeStatus(result.status, paymentType);\n setStatus(normalizedStatus);\n setPaymentResult(result);\n\n // Handle terminal states\n if (normalizedStatus === 'success') {\n isPollingRef.current = false;\n setIsPolling(false);\n clearPollingIntervals();\n onSuccessRef.current?.(result);\n } else if (normalizedStatus === 'failed') {\n isPollingRef.current = false;\n setIsPolling(false);\n clearPollingIntervals();\n onFailureRef.current?.(result);\n }\n } catch (err) {\n setError(err instanceof Error ? err.message : 'Failed to check payment status');\n }\n };\n\n // Initial poll\n doPoll();\n\n // Set up polling interval (poll every N seconds)\n pollingIntervalRef.current = setInterval(doPoll, pollingIntervalMsRef.current);\n\n // Set up elapsed time tracking (update every second)\n elapsedIntervalRef.current = setInterval(() => {\n if (startTimeRef.current) {\n const elapsed = Date.now() - startTimeRef.current;\n setElapsedTime(elapsed);\n\n // Check for timeout\n if (elapsed >= maxPollingTimeMsRef.current) {\n isPollingRef.current = false;\n setIsPolling(false);\n clearPollingIntervals();\n setStatus('timeout');\n setError(\n 'Payment verification timed out. Please check your billing history or try again after 24 hours.'\n );\n onTimeoutRef.current?.();\n }\n }\n }, 1000);\n\n // Cleanup on unmount or when paymentId changes\n return () => {\n isPollingRef.current = false;\n setIsPolling(false);\n clearPollingIntervals();\n };\n }, [\n billingAccountId,\n paymentId,\n enabled,\n paymentType,\n fetchCardPaymentStatus,\n fetchCreditTransactionStatus,\n clearPollingIntervals,\n ]);\n\n return {\n status,\n isPolling,\n elapsedTime,\n error,\n paymentResult,\n startPolling,\n stopPolling,\n };\n}\n"],"mappings":";;;AA2EA,SAAS,EACP,GACA,GACsB;AACtB,KAAI,MAAgB,UAElB,SAAQ,GAAR;EACE,KAAK,UACH,QAAO;EACT,KAAK,SACH,QAAO;EAET,QACE,QAAO;;KAIX,SAAQ,GAAR;EACE,KAAK,YACH,QAAO;EACT,KAAK;EACL,KAAK,WACH,QAAO;EAET,QACE,QAAO;;;AAKf,SAAgB,EACd,GAC+B;CAC/B,IAAM,EACJ,cACA,qBACA,gBACA,qBAAkB,KAClB,oBAAiB,KACjB,cACA,cACA,cACA,aAAU,OACR,GAEE,CAAC,GAAQ,KAAa,EAAsC,KAAK,EACjE,CAAC,GAAW,KAAgB,EAAS,GAAM,EAC3C,CAAC,GAAa,KAAkB,EAAS,EAAE,EAC3C,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,CAAC,GAAe,KAAoB,EAAqC,KAAK,EAG9E,IAAqB,EAA8C,KAAK,EACxE,IAAqB,EAA8C,KAAK,EACxE,IAAe,EAAsB,KAAK,EAC1C,IAAe,EAAO,GAAM,EAG5B,IAAe,EAAO,EAAU,EAChC,IAAe,EAAO,EAAU,EAChC,IAAe,EAAO,EAAU,EAGhC,IAAuB,EAAO,EAAgB,EAC9C,IAAsB,EAAO,EAAe;AAOlD,CAJA,EAAa,UAAU,GACvB,EAAa,UAAU,GACvB,EAAa,UAAU,GACvB,EAAqB,UAAU,GAC/B,EAAoB,UAAU;CAG9B,IAAM,CAAC,KAA0B,EAA6B,EAC5D,aAAa,gBACd,CAAC,EAEI,CAAC,KAAgC,EAAuC,EAC5E,aAAa,gBACd,CAAC,EAGI,IAAwB,QAAkB;AAK9C,EAJA,AAEE,EAAmB,aADnB,cAAc,EAAmB,QAAQ,EACZ,OAE/B,AAEE,EAAmB,aADnB,cAAc,EAAmB,QAAQ,EACZ;IAE9B,EAAE,CAAC,EAGA,IAAc,QAAkB;AAGpC,EAFA,EAAa,UAAU,IACvB,EAAa,GAAM,EACnB,GAAuB;IACtB,CAAC,EAAsB,CAAC,EAGrB,IAAe,QAAkB,IAGpC,EAAE,CAAC;AAyIN,QAtIA,QAAgB;AAEd,MAAI,CAAC,KAAa,CAAC,KAAoB,CAAC,KAAW,EAAa,QAC9D;AAQF,EALA,EAAa,UAAU,IACvB,EAAa,GAAK,EAClB,EAAe,EAAE,EACjB,EAAS,KAAK,EACd,EAAU,UAAU,EACpB,EAAa,UAAU,KAAK,KAAK;EAGjC,IAAM,IAAS,YAAY;AACpB,SAAa,QAElB,KAAI;IACF,IAAI;AAEJ,QAAI,MAAgB,WAAW;KAC7B,IAAM,EAAE,SAAM,OAAO,MAAe,MAAM,EAA6B,EACrE,WAAW;MAAE,qBAAqB;MAAW;MAAkB,EAChE,CAAC;AAEF,SAAI,GAAY;AACd,QAAS,EAAW,QAAQ;AAC5B;;KAGF,IAAM,IAAc,GAAM;AAC1B,KAAI,MACF,IAAS;MACP,IAAI,EAAY;MAChB,QAAQ,EAAY;MACpB,QAAQ,EAAY;MACpB,eAAe,EAAY;MAC3B,MAAM,EAAY;MAClB,kBAAkB,EAAY;MAC9B,WAAW,EAAY;MACxB;WAEE;KACL,IAAM,EAAE,SAAM,OAAO,MAAe,MAAM,EAAuB,EAC/D,WAAW;MAAE,IAAI;MAAW;MAAkB,EAC/C,CAAC;AAEF,SAAI,GAAY;AACd,QAAS,EAAW,QAAQ;AAC5B;;KAGF,IAAM,IAAU,GAAM;AACtB,KAAI,MACF,IAAS;MACP,IAAI,EAAQ;MACZ,QAAQ,EAAQ;MAChB,QAAQ,EAAQ;MAChB,UAAU,EAAQ;MAClB,QAAQ,EAAQ;MAChB,eAAe,EAAQ;MACvB,eAAe,EAAQ;MACvB,kBAAkB,EAAQ;MAC3B;;AAIL,QAAI,CAAC,EACH;IAGF,IAAM,IAAmB,EAAgB,EAAO,QAAQ,EAAY;AAKpE,IAJA,EAAU,EAAiB,EAC3B,EAAiB,EAAO,EAGpB,MAAqB,aACvB,EAAa,UAAU,IACvB,EAAa,GAAM,EACnB,GAAuB,EACvB,EAAa,UAAU,EAAO,IACrB,MAAqB,aAC9B,EAAa,UAAU,IACvB,EAAa,GAAM,EACnB,GAAuB,EACvB,EAAa,UAAU,EAAO;YAEzB,GAAK;AACZ,MAAS,aAAe,QAAQ,EAAI,UAAU,iCAAiC;;;AA+BnF,SA1BA,GAAQ,EAGR,EAAmB,UAAU,YAAY,GAAQ,EAAqB,QAAQ,EAG9E,EAAmB,UAAU,kBAAkB;AAC7C,OAAI,EAAa,SAAS;IACxB,IAAM,IAAU,KAAK,KAAK,GAAG,EAAa;AAI1C,IAHA,EAAe,EAAQ,EAGnB,KAAW,EAAoB,YACjC,EAAa,UAAU,IACvB,EAAa,GAAM,EACnB,GAAuB,EACvB,EAAU,UAAU,EACpB,EACE,iGACD,EACD,EAAa,WAAW;;KAG3B,IAAK,QAGK;AAGX,GAFA,EAAa,UAAU,IACvB,EAAa,GAAM,EACnB,GAAuB;;IAExB;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,EAEK;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -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,19 @@
|
|
|
1
|
+
import "./hooks/useCheckout.js";
|
|
2
|
+
import "./hooks/useNativeCheckout.js";
|
|
3
|
+
import "./hooks/usePaymentProviders.js";
|
|
4
|
+
import "./hooks/usePaymentStatusPolling.js";
|
|
5
|
+
import "./hooks/index.js";
|
|
6
|
+
import "./components/NativeCheckoutView.js";
|
|
7
|
+
import "./components/BillingAccountSelector.js";
|
|
8
|
+
import "./components/OrderSummary.js";
|
|
9
|
+
import "./components/PromoCodeInput.js";
|
|
10
|
+
import "./components/CreditsAmountInput.js";
|
|
11
|
+
import "./components/StripePaymentForm.js";
|
|
12
|
+
import "./components/RazorpayPaymentButton.js";
|
|
13
|
+
import "./components/SubscriptionSelector.js";
|
|
14
|
+
import "./components/SimpleAutoPayToggle.js";
|
|
15
|
+
import "./components/UnifiedPaymentMethodSelector.js";
|
|
16
|
+
import "./components/index.js";
|
|
17
|
+
import { CheckoutPage as e } from "./pages/CheckoutPage.js";
|
|
18
|
+
import "./pages/index.js";
|
|
19
|
+
export { e as CheckoutPage };
|
|
@@ -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;AA2EnF,eAAO,MAAM,YAAY,EAAE,EAu1D1B,CAAC"}
|