refactor(billing): split billing.ts by job #188
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!188
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "refactor/split-billing"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Splits
src/billing.tsby job. Code moves unchanged.chargebacks.ts:applyChargeback,reverseChargebackand their helpers.reconcile.ts:sweep,reconcile,endIfDueand the reconcile helpers.billing-core.ts: what billing and chargebacks share (Deps, user lock,grant,revoke,endNowand related). It keeps the two from importing each other.calendar.ts: the Amsterdam and Stockholm formatters and onezonedMidnight(zone, day), replacingamsterdamMidnightandstockholmMidnight. Both zones give the same result, since DST never changes at midnight.billing.tsdrops from 3632 to 2648 lines. 102 of 105 normalised top-level declarations are identical; the other three are the midnight helper rename. Typecheck, lint, build and the full suite (775 tests) pass. Tests change only in imports.Not in this PR: splitting
billing.test.ts.Closes #120