Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
billing: automated billing & pay as you go usage billing (#1773)
* billing: overusage * handle expired subscriptions and null usage * get subscription status * timestamp to millis * 0 on null usage * usage: handle null usage * default billing usage * null usage * overusage * overusage * overusage * overusage * overusage * billing: debug * billing: debug * billing: connected prod products * billing: added migration apis * stripe.js to stripe.ts & usage report * allow staging plan select * tmp subscription item * tmp switch to product id * tmp: fixed billing cycle for tests * billing: calculate overusage into upcoming invoice * billing: deprecated property on products * billing: added pay as you go items to update subscription * billing: bill at the end of the cycle * billing: upcoming invoice * billing: fix * billing: fix * billing: clear usage on update only when product is metered * billing: pay as you go lookup keys * billing: restore plan select * billing: report usage for each subscription item correctly * billing: retrieve upcoming invoices directly from stripe * billing: upcoming invoice * billing: added stripeCustomerId to upcoming invoice api * billing: fix upcoming invoice request! * billing: display stripe upcoming invoice total * billing: return subscription items * billing: display invoice breakdown in billing page * billing: display invoice breakdown in billing page * billing: display invoice breakdown in billing page * billing: better upcoming invoice * billing: billing page * billing: show prices and limits on upcoming invoice table * billing: better units display * billing: fix position of monthly price * billing: fix position of monthly price * billing: fix position of monthly price * billing: address some ui comments * billing: address some ui comments * billing: address some ui comments * billing: address some ui comments * billing: address some ui comments * billing: address some ui comments * billing: reset billing cycle on subscription update * billing: empty usage * billing: empy usage * billing: debug empty usage * usage: report usage cron * usage: fixed billing cycle for report usage testing * usage: fixed pay as you go plans for staging * usage: fix report usage query * usage: fix report query * usage: report usage fix * usage: added ingest origin for billing usage call * usage: report usage subscription items * usage: report usage cron * usage: report usage cron response * usage: report quantity of usage as number * usage: fix report timestamp & response * usage: report usage response * usage: cron: use api token for billing usage call * usage: fix name of delivery product for usage report * usage: remove test timestamps & update migration api to work in batches * billing: migrate test products users to prod, in batches * billing: migrate personal users to hacker api fix * billing: do not migrate users with a canceled or inactive subscription * billing: check if subscription exists on migrate api * billing: added subscription items to migration sub update * billing: added api to migrate Pro users to hacker plan + pay as you go * billing: avoid migration apis to run forever * billing: modify the migration apis to address review comments * billing: skip user migration when subscription is canceled or missing * billing: keep track of inactive subscriptions * billing: fix query boolean * billing: fix user check * billing: added migration api to revert users to personal for testing * billing: select null active subscription as well on migration * billing: don't migrate if stripe customer is missing * billing: added migrations log * billing: exclude june users from personal migration * billing: fix query * fix conflicts * billing: update pay as you go prices * usage: restore charts
- Loading branch information