From 08460f93d4402658c7663ced7cf2d0f28f53a500 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 2 May 2026 00:09:05 +0200 Subject: [PATCH] Billing rework --- src/types/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index 6fcb599..35b9a9d 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -312,6 +312,13 @@ export interface OnboardingInput { soulMd?: string; agentsMd?: string; packages?: string[]; - billingAddress: BillingAddress; + /** + * Bug 35: optional at the type level because the wizard skips the + * billing step entirely when the org already has an `org_billing` + * record. The onboarding API enforces "billing must be resolved by + * the end" — either from `org_billing` lookup or from this field — + * via runtime checks; the type just allows both paths. + */ + billingAddress?: BillingAddress; billingNotes?: string; }