feat(billing): make metering formula admin-configurable #44
Reference in New Issue
Block a user
Delete Branch "feature/billing-formula-admin-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
billing-admin-configservice backed byh5_billing_admin_config(admin-db > env).billSessionUsageand tkmind-proxy cost estimate path read effective config at charge time.H5_BILLING_CONFIG_SOURCE=envif needed.Test plan
node --test billing-admin-config.test.mjs billing.test.mjs billing-token-state.test.mjs.H5_MARGIN_MULTIPLIER=1.2).H5_BILLING_CONFIG_SOURCE=env, admin update is rejected.