@burdenoff/microfe-billing 2026.522.1 → 2026.525.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.
Files changed (357) hide show
  1. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +58 -88
  2. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
  3. package/package.json +1 -1
  4. package/dist/billing/BillingAdminRoutes.d.ts +0 -6
  5. package/dist/billing/BillingAdminRoutes.d.ts.map +0 -1
  6. package/dist/billing/BillingRoot.d.ts +0 -37
  7. package/dist/billing/BillingRoot.d.ts.map +0 -1
  8. package/dist/billing/BillingUserRoutes.d.ts +0 -7
  9. package/dist/billing/BillingUserRoutes.d.ts.map +0 -1
  10. package/dist/billing/constants/permissions.d.ts +0 -18
  11. package/dist/billing/constants/permissions.d.ts.map +0 -1
  12. package/dist/billing/hooks/useBillingAccountSelection.d.ts +0 -36
  13. package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +0 -1
  14. package/dist/billing/hooks/useBillingEventEmitter.d.ts +0 -8
  15. package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +0 -1
  16. package/dist/billing/hooks/useBillingNavigate.d.ts +0 -30
  17. package/dist/billing/hooks/useBillingNavigate.d.ts.map +0 -1
  18. package/dist/billing/hooks/useBillingPermissions.d.ts +0 -106
  19. package/dist/billing/hooks/useBillingPermissions.d.ts.map +0 -1
  20. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +0 -14
  21. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +0 -1
  22. package/dist/billing/index.d.ts +0 -31
  23. package/dist/billing/index.d.ts.map +0 -1
  24. package/dist/billing/lib/native-purchases.d.ts +0 -51
  25. package/dist/billing/lib/native-purchases.d.ts.map +0 -1
  26. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +0 -4
  27. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +0 -1
  28. package/dist/billing/modules/addons/components/index.d.ts +0 -5
  29. package/dist/billing/modules/addons/components/index.d.ts.map +0 -1
  30. package/dist/billing/modules/addons/hooks/index.d.ts +0 -6
  31. package/dist/billing/modules/addons/hooks/index.d.ts.map +0 -1
  32. package/dist/billing/modules/addons/hooks/useAddons.d.ts +0 -55
  33. package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +0 -1
  34. package/dist/billing/modules/addons/index.d.ts +0 -7
  35. package/dist/billing/modules/addons/index.d.ts.map +0 -1
  36. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +0 -4
  37. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +0 -1
  38. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +0 -4
  39. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +0 -1
  40. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +0 -4
  41. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +0 -1
  42. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +0 -4
  43. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +0 -1
  44. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +0 -4
  45. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +0 -1
  46. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +0 -4
  47. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +0 -1
  48. package/dist/billing/modules/addons/pages/index.d.ts +0 -11
  49. package/dist/billing/modules/addons/pages/index.d.ts.map +0 -1
  50. package/dist/billing/modules/addons/store/addonCartStore.d.ts +0 -38
  51. package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +0 -1
  52. package/dist/billing/modules/affiliate/api.d.ts +0 -101
  53. package/dist/billing/modules/affiliate/api.d.ts.map +0 -1
  54. package/dist/billing/modules/affiliate/index.d.ts +0 -2
  55. package/dist/billing/modules/affiliate/index.d.ts.map +0 -1
  56. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +0 -4
  57. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +0 -1
  58. package/dist/billing/modules/analytics/index.d.ts +0 -5
  59. package/dist/billing/modules/analytics/index.d.ts.map +0 -1
  60. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +0 -4
  61. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +0 -1
  62. package/dist/billing/modules/analytics/pages/index.d.ts +0 -5
  63. package/dist/billing/modules/analytics/pages/index.d.ts.map +0 -1
  64. package/dist/billing/modules/billing/hooks/index.d.ts +0 -10
  65. package/dist/billing/modules/billing/hooks/index.d.ts.map +0 -1
  66. package/dist/billing/modules/billing/hooks/useInvoices.d.ts +0 -68
  67. package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +0 -1
  68. package/dist/billing/modules/billing/hooks/usePayments.d.ts +0 -62
  69. package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +0 -1
  70. package/dist/billing/modules/billing/hooks/useRefunds.d.ts +0 -191
  71. package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +0 -1
  72. package/dist/billing/modules/billing/hooks/useTransactions.d.ts +0 -41
  73. package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +0 -1
  74. package/dist/billing/modules/billing/index.d.ts +0 -7
  75. package/dist/billing/modules/billing/index.d.ts.map +0 -1
  76. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +0 -4
  77. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +0 -1
  78. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +0 -4
  79. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +0 -1
  80. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +0 -4
  81. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +0 -1
  82. package/dist/billing/modules/billing/pages/RefundsPage.d.ts +0 -4
  83. package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +0 -1
  84. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +0 -4
  85. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +0 -1
  86. package/dist/billing/modules/billing/pages/index.d.ts +0 -10
  87. package/dist/billing/modules/billing/pages/index.d.ts.map +0 -1
  88. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +0 -14
  89. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +0 -1
  90. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +0 -14
  91. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +0 -1
  92. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +0 -14
  93. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +0 -1
  94. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +0 -14
  95. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +0 -1
  96. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +0 -16
  97. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +0 -1
  98. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +0 -19
  99. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +0 -1
  100. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +0 -14
  101. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +0 -1
  102. package/dist/billing/modules/checkout/components/OrderSummary.d.ts +0 -22
  103. package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +0 -1
  104. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +0 -19
  105. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +0 -1
  106. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +0 -19
  107. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +0 -1
  108. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +0 -25
  109. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +0 -1
  110. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +0 -13
  111. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +0 -1
  112. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +0 -13
  113. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +0 -1
  114. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +0 -16
  115. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +0 -1
  116. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +0 -26
  117. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +0 -1
  118. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +0 -23
  119. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +0 -1
  120. package/dist/billing/modules/checkout/components/index.d.ts +0 -20
  121. package/dist/billing/modules/checkout/components/index.d.ts.map +0 -1
  122. package/dist/billing/modules/checkout/graphql/index.d.ts +0 -6
  123. package/dist/billing/modules/checkout/graphql/index.d.ts.map +0 -1
  124. package/dist/billing/modules/checkout/hooks/index.d.ts +0 -9
  125. package/dist/billing/modules/checkout/hooks/index.d.ts.map +0 -1
  126. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +0 -69
  127. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +0 -1
  128. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +0 -26
  129. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +0 -1
  130. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +0 -19
  131. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +0 -1
  132. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +0 -59
  133. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +0 -1
  134. package/dist/billing/modules/checkout/index.d.ts +0 -24
  135. package/dist/billing/modules/checkout/index.d.ts.map +0 -1
  136. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +0 -4
  137. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +0 -1
  138. package/dist/billing/modules/checkout/pages/index.d.ts +0 -5
  139. package/dist/billing/modules/checkout/pages/index.d.ts.map +0 -1
  140. package/dist/billing/modules/checkout/types/index.d.ts +0 -270
  141. package/dist/billing/modules/checkout/types/index.d.ts.map +0 -1
  142. package/dist/billing/modules/checkout/utils/storeOrder.d.ts +0 -20
  143. package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +0 -1
  144. package/dist/billing/modules/coupons/index.d.ts +0 -5
  145. package/dist/billing/modules/coupons/index.d.ts.map +0 -1
  146. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +0 -4
  147. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +0 -1
  148. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +0 -4
  149. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +0 -1
  150. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +0 -4
  151. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +0 -1
  152. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +0 -4
  153. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +0 -1
  154. package/dist/billing/modules/coupons/pages/index.d.ts +0 -8
  155. package/dist/billing/modules/coupons/pages/index.d.ts.map +0 -1
  156. package/dist/billing/modules/credits/hooks/index.d.ts +0 -5
  157. package/dist/billing/modules/credits/hooks/index.d.ts.map +0 -1
  158. package/dist/billing/modules/credits/hooks/useCredits.d.ts +0 -75
  159. package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +0 -1
  160. package/dist/billing/modules/credits/index.d.ts +0 -6
  161. package/dist/billing/modules/credits/index.d.ts.map +0 -1
  162. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +0 -4
  163. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +0 -1
  164. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +0 -4
  165. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +0 -1
  166. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +0 -4
  167. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +0 -1
  168. package/dist/billing/modules/credits/pages/CreditsPage.d.ts +0 -4
  169. package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +0 -1
  170. package/dist/billing/modules/credits/pages/index.d.ts +0 -8
  171. package/dist/billing/modules/credits/pages/index.d.ts.map +0 -1
  172. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +0 -14
  173. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +0 -1
  174. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +0 -111
  175. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +0 -1
  176. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +0 -16
  177. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +0 -1
  178. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +0 -13
  179. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +0 -1
  180. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +0 -15
  181. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +0 -1
  182. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +0 -27
  183. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +0 -1
  184. package/dist/billing/modules/dashboard/components/index.d.ts +0 -10
  185. package/dist/billing/modules/dashboard/components/index.d.ts.map +0 -1
  186. package/dist/billing/modules/dashboard/hooks/index.d.ts +0 -6
  187. package/dist/billing/modules/dashboard/hooks/index.d.ts.map +0 -1
  188. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +0 -17
  189. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +0 -1
  190. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +0 -145
  191. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +0 -1
  192. package/dist/billing/modules/dashboard/index.d.ts +0 -8
  193. package/dist/billing/modules/dashboard/index.d.ts.map +0 -1
  194. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +0 -4
  195. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +0 -1
  196. package/dist/billing/modules/dashboard/pages/index.d.ts +0 -5
  197. package/dist/billing/modules/dashboard/pages/index.d.ts.map +0 -1
  198. package/dist/billing/modules/discounts/index.d.ts +0 -6
  199. package/dist/billing/modules/discounts/index.d.ts.map +0 -1
  200. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +0 -4
  201. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +0 -1
  202. package/dist/billing/modules/discounts/pages/index.d.ts +0 -6
  203. package/dist/billing/modules/discounts/pages/index.d.ts.map +0 -1
  204. package/dist/billing/modules/earnings/api.d.ts +0 -135
  205. package/dist/billing/modules/earnings/api.d.ts.map +0 -1
  206. package/dist/billing/modules/earnings/index.d.ts +0 -4
  207. package/dist/billing/modules/earnings/index.d.ts.map +0 -1
  208. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +0 -4
  209. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +0 -1
  210. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +0 -4
  211. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +0 -1
  212. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +0 -4
  213. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +0 -1
  214. package/dist/billing/modules/plans/hooks/index.d.ts +0 -7
  215. package/dist/billing/modules/plans/hooks/index.d.ts.map +0 -1
  216. package/dist/billing/modules/plans/hooks/usePlans.d.ts +0 -46
  217. package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +0 -1
  218. package/dist/billing/modules/plans/hooks/useQuotas.d.ts +0 -27
  219. package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +0 -1
  220. package/dist/billing/modules/plans/index.d.ts +0 -7
  221. package/dist/billing/modules/plans/index.d.ts.map +0 -1
  222. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +0 -4
  223. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +0 -1
  224. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +0 -4
  225. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +0 -1
  226. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +0 -4
  227. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +0 -1
  228. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +0 -4
  229. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +0 -1
  230. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +0 -4
  231. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +0 -1
  232. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +0 -4
  233. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +0 -1
  234. package/dist/billing/modules/plans/pages/index.d.ts +0 -11
  235. package/dist/billing/modules/plans/pages/index.d.ts.map +0 -1
  236. package/dist/billing/modules/quota/hooks/index.d.ts +0 -6
  237. package/dist/billing/modules/quota/hooks/index.d.ts.map +0 -1
  238. package/dist/billing/modules/quota/hooks/useQuota.d.ts +0 -102
  239. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +0 -1
  240. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +0 -39
  241. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +0 -1
  242. package/dist/billing/modules/quota/index.d.ts +0 -6
  243. package/dist/billing/modules/quota/index.d.ts.map +0 -1
  244. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +0 -4
  245. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +0 -1
  246. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +0 -4
  247. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +0 -1
  248. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +0 -4
  249. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +0 -1
  250. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +0 -4
  251. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +0 -1
  252. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +0 -4
  253. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +0 -1
  254. package/dist/billing/modules/quota/pages/index.d.ts +0 -9
  255. package/dist/billing/modules/quota/pages/index.d.ts.map +0 -1
  256. package/dist/billing/modules/settings/index.d.ts +0 -5
  257. package/dist/billing/modules/settings/index.d.ts.map +0 -1
  258. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +0 -4
  259. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +0 -1
  260. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +0 -4
  261. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +0 -1
  262. package/dist/billing/modules/settings/pages/index.d.ts +0 -6
  263. package/dist/billing/modules/settings/pages/index.d.ts.map +0 -1
  264. package/dist/billing/modules/store/graphql/index.d.ts +0 -6
  265. package/dist/billing/modules/store/graphql/index.d.ts.map +0 -1
  266. package/dist/billing/modules/store/index.d.ts +0 -6
  267. package/dist/billing/modules/store/index.d.ts.map +0 -1
  268. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +0 -11
  269. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +0 -1
  270. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +0 -12
  271. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +0 -1
  272. package/dist/billing/modules/subscriptions/hooks/index.d.ts +0 -6
  273. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +0 -1
  274. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +0 -92
  275. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +0 -1
  276. package/dist/billing/modules/subscriptions/index.d.ts +0 -7
  277. package/dist/billing/modules/subscriptions/index.d.ts.map +0 -1
  278. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +0 -4
  279. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +0 -1
  280. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +0 -4
  281. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +0 -1
  282. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +0 -4
  283. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +0 -1
  284. package/dist/billing/modules/subscriptions/pages/index.d.ts +0 -8
  285. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +0 -1
  286. package/dist/billing/modules/usage/hooks/index.d.ts +0 -6
  287. package/dist/billing/modules/usage/hooks/index.d.ts.map +0 -1
  288. package/dist/billing/modules/usage/hooks/useUsage.d.ts +0 -241
  289. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +0 -1
  290. package/dist/billing/modules/usage/index.d.ts +0 -6
  291. package/dist/billing/modules/usage/index.d.ts.map +0 -1
  292. package/dist/billing/modules/usage/pages/UsagePage.d.ts +0 -4
  293. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +0 -1
  294. package/dist/billing/modules/usage/pages/index.d.ts +0 -5
  295. package/dist/billing/modules/usage/pages/index.d.ts.map +0 -1
  296. package/dist/billing/providers/BillingProvider.d.ts +0 -16
  297. package/dist/billing/providers/BillingProvider.d.ts.map +0 -1
  298. package/dist/billing/shared/components/AccessDenied.d.ts +0 -8
  299. package/dist/billing/shared/components/AccessDenied.d.ts.map +0 -1
  300. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +0 -11
  301. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +0 -1
  302. package/dist/billing/shared/components/EmptyState.d.ts +0 -11
  303. package/dist/billing/shared/components/EmptyState.d.ts.map +0 -1
  304. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +0 -11
  305. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +0 -1
  306. package/dist/billing/shared/components/PageHeader.d.ts +0 -11
  307. package/dist/billing/shared/components/PageHeader.d.ts.map +0 -1
  308. package/dist/billing/shared/components/ServerError.d.ts +0 -11
  309. package/dist/billing/shared/components/ServerError.d.ts.map +0 -1
  310. package/dist/billing/shared/components/StatCard.d.ts +0 -15
  311. package/dist/billing/shared/components/StatCard.d.ts.map +0 -1
  312. package/dist/billing/shared/components/index.d.ts +0 -11
  313. package/dist/billing/shared/components/index.d.ts.map +0 -1
  314. package/dist/billing/shared/index.d.ts +0 -8
  315. package/dist/billing/shared/index.d.ts.map +0 -1
  316. package/dist/billing/shared/types/graphql.d.ts +0 -928
  317. package/dist/billing/shared/types/graphql.d.ts.map +0 -1
  318. package/dist/billing/shared/types/index.d.ts +0 -96
  319. package/dist/billing/shared/types/index.d.ts.map +0 -1
  320. package/dist/billing/shared/utils/directActivityGraphql.d.ts +0 -13
  321. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +0 -1
  322. package/dist/billing/shared/utils/directBillingGraphql.d.ts +0 -13
  323. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +0 -1
  324. package/dist/billing/shared/utils/error.d.ts +0 -30
  325. package/dist/billing/shared/utils/error.d.ts.map +0 -1
  326. package/dist/billing/shared/utils/format.d.ts +0 -28
  327. package/dist/billing/shared/utils/format.d.ts.map +0 -1
  328. package/dist/billing/shared/utils/gatewayGraphql.d.ts +0 -15
  329. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +0 -1
  330. package/dist/billing/shared/utils/index.d.ts +0 -13
  331. package/dist/billing/shared/utils/index.d.ts.map +0 -1
  332. package/dist/billing/shared/utils/navigation.d.ts +0 -2
  333. package/dist/billing/shared/utils/navigation.d.ts.map +0 -1
  334. package/dist/billing/shared/utils/paymentTheme.d.ts +0 -18
  335. package/dist/billing/shared/utils/paymentTheme.d.ts.map +0 -1
  336. package/dist/billing/shared/utils/status.d.ts +0 -28
  337. package/dist/billing/shared/utils/status.d.ts.map +0 -1
  338. package/dist/billing/shared/utils/tokens.d.ts +0 -156
  339. package/dist/billing/shared/utils/tokens.d.ts.map +0 -1
  340. package/dist/billing/types/index.d.ts +0 -268
  341. package/dist/billing/types/index.d.ts.map +0 -1
  342. package/dist/billing/utils/index.d.ts +0 -128
  343. package/dist/billing/utils/index.d.ts.map +0 -1
  344. package/dist/dev/main.d.ts +0 -2
  345. package/dist/dev/main.d.ts.map +0 -1
  346. package/dist/generated/global-operations.d.ts +0 -9595
  347. package/dist/generated/global-operations.d.ts.map +0 -1
  348. package/dist/generated/global-types.d.ts +0 -22485
  349. package/dist/generated/global-types.d.ts.map +0 -1
  350. package/dist/generated/wspace-operations.d.ts +0 -61
  351. package/dist/generated/wspace-operations.d.ts.map +0 -1
  352. package/dist/generated/wspace-types.d.ts +0 -49106
  353. package/dist/generated/wspace-types.d.ts.map +0 -1
  354. package/dist/index.d.ts +0 -8
  355. package/dist/index.d.ts.map +0 -1
  356. package/dist/utils/nativeBridge.d.ts +0 -3
  357. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- interface StripePaymentFormProps {
4
- clientSecret: string;
5
- publishableKey: string;
6
- amount: number;
7
- currency: string;
8
- onSuccess: (paymentIntentId: string) => void;
9
- onError: (error: string) => void;
10
- onCancel?: () => void;
11
- disabled?: boolean;
12
- isCompletingExistingPayment?: boolean;
13
- }
14
- export declare const StripePaymentForm: FC<StripePaymentFormProps>;
15
- export {};
16
- //# sourceMappingURL=StripePaymentForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StripePaymentForm.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/components/StripePaymentForm.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAA4C,MAAM,OAAO,CAAC;AAgD1E,UAAU,sBAAsB;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAmCD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwXxD,CAAC"}
@@ -1,26 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- interface Subscription {
4
- id: string;
5
- status: string;
6
- startDate: string;
7
- endDate: string;
8
- plan?: {
9
- id: string;
10
- name: string;
11
- productID?: string;
12
- product?: {
13
- id: string;
14
- name: string;
15
- } | null;
16
- } | null;
17
- }
18
- interface SubscriptionSelectorProps {
19
- subscriptions: Subscription[];
20
- selectedSubscriptionId: string | null;
21
- onSelect: (subscriptionId: string | null) => void;
22
- isLoading?: boolean;
23
- }
24
- export declare const SubscriptionSelector: FC<SubscriptionSelectorProps>;
25
- export {};
26
- //# sourceMappingURL=SubscriptionSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SubscriptionSelector.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/components/SubscriptionSelector.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAK7D,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE;YACR,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;SACd,GAAG,IAAI,CAAC;KACV,GAAG,IAAI,CAAC;CACV;AAED,UAAU,yBAAyB;IACjC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAuI9D,CAAC"}
@@ -1,23 +0,0 @@
1
- import { FC } from 'react';
2
- import { SavedPaymentMethod } from '../types';
3
-
4
- interface UnifiedPaymentMethodSelectorProps {
5
- savedPaymentMethods: SavedPaymentMethod[];
6
- selectedPaymentMethodId: string | null;
7
- onSelectSavedCard: (id: string | null) => void;
8
- selectedProvider: 'CREDITS' | 'STRIPE' | 'RAZORPAY' | 'AUTO';
9
- onSelectProvider: (provider: 'CREDITS' | 'STRIPE' | 'RAZORPAY') => void;
10
- stripeEnabled: boolean;
11
- razorpayEnabled: boolean;
12
- canPayWithCredits: boolean;
13
- availableCredits: number;
14
- totalAmount: number;
15
- billingCountry?: string;
16
- saveCard: boolean;
17
- onSaveCardChange: (save: boolean) => void;
18
- autoRenewEnabled?: boolean;
19
- isLoading?: boolean;
20
- }
21
- export declare const UnifiedPaymentMethodSelector: FC<UnifiedPaymentMethodSelectorProps>;
22
- export {};
23
- //# sourceMappingURL=UnifiedPaymentMethodSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnifiedPaymentMethodSelector.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/components/UnifiedPaymentMethodSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,UAAU,iCAAiC;IAEzC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC1C,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAG/C,gBAAgB,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,KAAK,IAAI,CAAC;IAGxE,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAG1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAeD,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC,iCAAiC,CAkU9E,CAAC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Checkout Module Components
3
- */
4
- export { BillingAccountSelector } from './BillingAccountSelector';
5
- export { NativeCheckoutView } from './NativeCheckoutView';
6
- export { PaymentProviderSelector } from './PaymentProviderSelector';
7
- export { SavedCardSelector } from './SavedCardSelector';
8
- export { CurrencySelector } from './CurrencySelector';
9
- export { OrderSummary } from './OrderSummary';
10
- export { PromoCodeInput } from './PromoCodeInput';
11
- export { CreditsPaymentOption } from './CreditsPaymentOption';
12
- export { CreditsAmountInput } from './CreditsAmountInput';
13
- export { StripePaymentForm } from './StripePaymentForm';
14
- export { RazorpayPaymentButton } from './RazorpayPaymentButton';
15
- export { SubscriptionSelector } from './SubscriptionSelector';
16
- export { AutoPayToggle } from './AutoPayToggle';
17
- export { CompactAutoPayToggle } from './CompactAutoPayToggle';
18
- export { SimpleAutoPayToggle } from './SimpleAutoPayToggle';
19
- export { UnifiedPaymentMethodSelector } from './UnifiedPaymentMethodSelector';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Checkout Module GraphQL Operations
3
- * Re-exports typed documents from generated operations
4
- */
5
- export { GetPaymentProviderConfigCheckoutDocument as GET_PAYMENT_PROVIDER_CONFIG, GetBillingAccountsCheckoutDocument as GET_BILLING_ACCOUNTS, GetDefaultBillingAccountCheckoutDocument as GET_DEFAULT_BILLING_ACCOUNT, GetPlanCheckoutDocument as GET_PLAN, GetSelectedAddonCheckoutDocument as GET_ADDON, GetCostOfCreditsCheckoutDocument as GET_COST_OF_CREDITS, ConvertCurrencyDocument as CONVERT_CURRENCY, GetDiscountByCodeDocument as GET_DISCOUNT_BY_CODE, InitiatePaymentCheckoutDocument as INITIATE_PAYMENT, GetPaymentMethodsCheckoutDocument as GET_PAYMENT_METHODS, SpendCreditsCheckoutDocument as SPEND_CREDITS, GetPaymentStatusDocument as GET_PAYMENT_STATUS, GetCreditTransactionStatusDocument as GET_CREDIT_TRANSACTION_STATUS, GetActiveSubscriptionsDocument as GET_ACTIVE_SUBSCRIPTIONS, CalculateTaxDocument as CALCULATE_TAX, GetStoreOrderDocument as GET_STORE_ORDER, } from '../../../../generated/global-operations';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/graphql/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,wCAAwC,IAAI,2BAA2B,EACvE,kCAAkC,IAAI,oBAAoB,EAC1D,wCAAwC,IAAI,2BAA2B,EACvE,uBAAuB,IAAI,QAAQ,EACnC,gCAAgC,IAAI,SAAS,EAC7C,gCAAgC,IAAI,mBAAmB,EACvD,uBAAuB,IAAI,gBAAgB,EAC3C,yBAAyB,IAAI,oBAAoB,EACjD,+BAA+B,IAAI,gBAAgB,EACnD,iCAAiC,IAAI,mBAAmB,EACxD,4BAA4B,IAAI,aAAa,EAC7C,wBAAwB,IAAI,kBAAkB,EAC9C,kCAAkC,IAAI,6BAA6B,EACnE,8BAA8B,IAAI,wBAAwB,EAC1D,oBAAoB,IAAI,aAAa,EACrC,qBAAqB,IAAI,eAAe,GACzC,MAAM,yCAAyC,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Checkout Module Hooks
3
- */
4
- export { useCheckout } from './useCheckout';
5
- export { useNativeCheckout } from './useNativeCheckout';
6
- export { usePaymentProviders } from './usePaymentProviders';
7
- export { usePaymentStatusPolling } from './usePaymentStatusPolling';
8
- export type { PaymentStatus, CreditTransactionStatus, UnifiedPaymentStatus, PaymentStatusResult, UsePaymentStatusPollingOptions, UsePaymentStatusPollingResult, } from './usePaymentStatusPolling';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EACV,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
@@ -1,69 +0,0 @@
1
- import { CheckoutItem, CheckoutBillingAccount, PaymentProvider, Currency, CheckoutState, PaymentInitResponse, PromoCodeResult } from '../types';
2
-
3
- interface UseCheckoutOptions {
4
- billingAccountId?: string;
5
- defaultCurrency?: Currency;
6
- defaultSaveCard?: boolean;
7
- upgradeFromSubscriptionId?: string;
8
- /** For plan downgrades — old sub auto-renewal cancelled, runs to natural expiry */
9
- downgradeFromSubscriptionId?: string;
10
- /** For addon purchases - pre-selected subscription ID */
11
- defaultSubscriptionId?: string;
12
- }
13
- interface UseCheckoutResult {
14
- items: CheckoutItem[];
15
- billingAccount: CheckoutBillingAccount | null;
16
- selectedProvider: PaymentProvider;
17
- selectedCurrency: Currency;
18
- promoCode: string;
19
- promoDiscount: number;
20
- promoDiscountType: 'PERCENTAGE' | 'FIXED';
21
- useCredits: boolean;
22
- creditsToUse: number;
23
- checkoutState: CheckoutState;
24
- error: string | null;
25
- selectedPaymentMethodId: string | null;
26
- saveCard: boolean;
27
- autoRenew: boolean;
28
- autoRenewPaymentMethodId: string | null;
29
- selectedSubscriptionId: string | null;
30
- subtotal: number;
31
- subtotalUSD: number;
32
- discountAmount: number;
33
- taxAmount: number;
34
- taxRate: number;
35
- taxType: string;
36
- total: number;
37
- totalInSelectedCurrency: number;
38
- availableCredits: number;
39
- hasEnoughCredits: boolean;
40
- canPayWithCredits: boolean;
41
- isLoading: boolean;
42
- isProcessing: boolean;
43
- isCalculatingTax: boolean;
44
- conversionRate: number;
45
- convertedAmount: number | null;
46
- addItem: (item: CheckoutItem) => void;
47
- removeItem: (itemId: string) => void;
48
- updateItemQuantity: (itemId: string, quantity: number) => void;
49
- updateItemPrice: (itemId: string, price: number, currency?: Currency) => void;
50
- clearItems: () => void;
51
- setBillingAccount: (account: CheckoutBillingAccount | null) => void;
52
- setPaymentProvider: (provider: PaymentProvider) => void;
53
- setCurrency: (currency: Currency) => void;
54
- setPromoCode: (code: string) => void;
55
- validatePromoCode: () => Promise<PromoCodeResult>;
56
- clearPromoCode: () => void;
57
- setUseCredits: (use: boolean) => void;
58
- setCreditsToUse: (amount: number) => void;
59
- setSelectedPaymentMethodId: (id: string | null) => void;
60
- setSaveCard: (save: boolean) => void;
61
- setAutoRenew: (enabled: boolean) => void;
62
- setAutoRenewPaymentMethodId: (id: string | null) => void;
63
- setSelectedSubscriptionId: (id: string | null) => void;
64
- initiatePayment: () => Promise<PaymentInitResponse>;
65
- reset: () => void;
66
- }
67
- export declare function useCheckout(options?: UseCheckoutOptions): UseCheckoutResult;
68
- export {};
69
- //# sourceMappingURL=useCheckout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCheckout.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/useCheckout.ts"],"names":[],"mappings":"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"}
@@ -1,26 +0,0 @@
1
- import { Product, Transaction } from '@capgo/native-purchases';
2
- import { CheckoutState, PurchaseType } from '../types';
3
-
4
- export type { Product, Transaction };
5
- interface UseNativeCheckoutOptions {
6
- billingAccountId?: string;
7
- purchaseType?: PurchaseType;
8
- /** Store product identifier — passed to getProducts to load the specific product. */
9
- productId?: string;
10
- }
11
- interface UseNativeCheckoutResult {
12
- isAvailable: boolean;
13
- products: Product[];
14
- checkoutState: CheckoutState;
15
- error: string | null;
16
- isLoading: boolean;
17
- loadProducts: (productIdentifiers?: string[]) => Promise<void>;
18
- purchaseProduct: (product: Product) => Promise<{
19
- success: boolean;
20
- }>;
21
- restorePurchases: () => Promise<{
22
- success: boolean;
23
- }>;
24
- }
25
- export declare function useNativeCheckout({ billingAccountId, purchaseType, productId, }?: UseNativeCheckoutOptions): UseNativeCheckoutResult;
26
- //# sourceMappingURL=useNativeCheckout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useNativeCheckout.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/hooks/useNativeCheckout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAWH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG5D,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAErC,UAAU,wBAAwB;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACrE,gBAAgB,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACvD;AAED,wBAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAChB,YAAY,EACZ,SAAS,GACV,GAAE,wBAA6B,GAAG,uBAAuB,CA+HzD"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,59 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- export declare const CheckoutPage: FC;
4
- //# sourceMappingURL=CheckoutPage.d.ts.map
@@ -1 +0,0 @@
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,EAw1D1B,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Checkout Module - Pages
3
- */
4
- export { CheckoutPage } from './CheckoutPage';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/checkout/pages/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,270 +0,0 @@
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
- }
140
- /**
141
- * Promo code validation result
142
- */
143
- export interface PromoCodeResult {
144
- valid: boolean;
145
- code: string;
146
- discountType: 'PERCENTAGE' | 'FIXED';
147
- discountValue: number;
148
- error?: string;
149
- }
150
- /**
151
- * Checkout form data
152
- */
153
- export interface CheckoutFormData {
154
- billingAccountId: string;
155
- purchaseType: PurchaseType;
156
- paymentProvider: PaymentProvider;
157
- currency: string;
158
- promoCode?: string;
159
- creditAmount?: number;
160
- planId?: string;
161
- isAnnual?: boolean;
162
- addonId?: string;
163
- addonQuantity?: number;
164
- useCredits?: boolean;
165
- creditsToUse?: number;
166
- }
167
- /**
168
- * Checkout context value
169
- */
170
- export interface CheckoutContextValue {
171
- items: CheckoutItem[];
172
- billingAccount: CheckoutBillingAccount | null;
173
- selectedProvider: PaymentProvider;
174
- selectedCurrency: Currency;
175
- promoCode: string;
176
- promoDiscount: number;
177
- useCredits: boolean;
178
- creditsToUse: number;
179
- checkoutState: CheckoutState;
180
- error: string | null;
181
- subtotal: number;
182
- taxAmount: number;
183
- taxRate: number;
184
- total: number;
185
- availableCredits: number;
186
- hasEnoughCredits: boolean;
187
- addItem: (item: CheckoutItem) => void;
188
- removeItem: (itemId: string) => void;
189
- updateItemQuantity: (itemId: string, quantity: number) => void;
190
- setBillingAccount: (account: CheckoutBillingAccount) => void;
191
- setPaymentProvider: (provider: PaymentProvider) => void;
192
- setCurrency: (currency: Currency) => void;
193
- setPromoCode: (code: string) => void;
194
- applyPromoCode: () => Promise<PromoCodeResult>;
195
- setUseCredits: (use: boolean) => void;
196
- setCreditsToUse: (amount: number) => void;
197
- processPayment: () => Promise<PaymentInitResponse>;
198
- reset: () => void;
199
- }
200
- /**
201
- * Stripe Elements and Payment types for checkout flow
202
- */
203
- export interface CheckoutStripeElements {
204
- create: (type: string, options?: object) => CheckoutStripePaymentElement;
205
- getElement: (type: string) => CheckoutStripePaymentElement | null;
206
- }
207
- export interface CheckoutStripePaymentElement {
208
- mount: (element: string | HTMLElement) => void;
209
- unmount: () => void;
210
- destroy: () => void;
211
- }
212
- export interface CheckoutStripePaymentConfirmResult {
213
- error?: {
214
- message: string;
215
- };
216
- paymentIntent?: {
217
- id: string;
218
- status: string;
219
- };
220
- }
221
- export interface CheckoutStripeInstance {
222
- elements: (options?: {
223
- clientSecret?: string;
224
- appearance?: object;
225
- }) => CheckoutStripeElements;
226
- confirmPayment: (options: {
227
- elements: CheckoutStripeElements;
228
- confirmParams?: {
229
- return_url?: string;
230
- };
231
- redirect?: 'if_required' | 'always';
232
- }) => Promise<CheckoutStripePaymentConfirmResult>;
233
- }
234
- /**
235
- * Razorpay Checkout types
236
- */
237
- export interface RazorpaySuccessResponse {
238
- razorpay_payment_id: string;
239
- razorpay_order_id: string;
240
- razorpay_signature: string;
241
- }
242
- export interface CheckoutRazorpayOptions {
243
- key: string;
244
- amount: number;
245
- currency: string;
246
- name: string;
247
- description: string;
248
- order_id: string;
249
- prefill?: {
250
- name?: string;
251
- email?: string;
252
- contact?: string;
253
- };
254
- notes?: Record<string, string>;
255
- theme?: {
256
- color?: string;
257
- };
258
- handler?: (response: RazorpaySuccessResponse) => void;
259
- modal?: {
260
- ondismiss?: () => void;
261
- escape?: boolean;
262
- confirm_close?: boolean;
263
- };
264
- }
265
- export interface CheckoutRazorpayInstance {
266
- open: () => void;
267
- close: () => void;
268
- on: (event: string, handler: (response: unknown) => void) => void;
269
- }
270
- //# sourceMappingURL=index.d.ts.map