:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(billing): stop promising YC credit renewal when credits do not renew (#117841)
Pawel Cebula122ee57fe0da
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex ae5dc4597f9c..badd1fa11e8b 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -16268,6 +16268,18 @@ snapshots:hash: v1.k794b7964.327140e7888b473bf72795b84b3524a8effa471cdf5da775e81e9b060ae5ae5b.DyCRhAUTLZNQm4YUA_GDmPQ-FXb0z7XI0x0p8me4E8sscenes-other-billing--billing-on-startup-plan--light:hash: v1.k794b7964.b086982ce16a9753467cb3c1f0211f6237645e32c9b8c7ae6ef7354d42fca71d.8l6mR6Mwd61jrzB0Y3FpRm9oUetB1MxkF5hNmfnDYe8+ scenes-other-billing--billing-on-yc-plan--dark:+ hash: v1.k794b7964.302e21de5c6b81b0d707034a5c4bb294018b68cb8f2a53342a0c4d5bba2bc6b7.JWB4raEImsa_59LNB7nOQTtATxIn2eOY8zFwSv5YIik+ scenes-other-billing--billing-on-yc-plan--light:+ hash: v1.k794b7964.3e8a055a5d3c033741786e9ceaae94c1bb3339307b94d7b519d8a710790ffc4a.ptlX46z4SQyFBTCPaW8_vnN35Aibwo36_T6Th1Ad_mE+ scenes-other-billing--billing-on-yc-plan-with-credits-not-renewing--dark:+ hash: v1.k794b7964.26aae4f066c654970de77e9783ad66d1405cebb2b4abd4a6ef3b04748a3fe110.5LnGbERpDzCmq_qlYjllKJjdXQCXMJ1T49y-ZT-wVlE+ scenes-other-billing--billing-on-yc-plan-with-credits-not-renewing--light:+ hash: v1.k794b7964.614a3155163025e600ce7dc4b31edc7a77b9c40264c75197f611a09603620810.18chGQ73kcIS9whWslXPH_FxVXvVs2ymVRdv4w1Qs44+ scenes-other-billing--billing-on-yc-plan-with-credits-used--dark:+ hash: v1.k794b7964.cbe4f589cb40058f9676be2b06e4b1ff658978df294928bc3f15de111505a6ec.U8AaG-5zxOVvr3-lQ1226t-uHsPeCc5Wt11zLHwhiq4+ scenes-other-billing--billing-on-yc-plan-with-credits-used--light:+ hash: v1.k794b7964.d3bff33a7811045c39561f41df630a1053d0b65a5618d6ec37eeac8dc1d2ce92.kh5CoCE0LhWbSy2fzhCbQ8YqdOcTk36r8JYB8JohWdkscenes-other-billing--billing-purchase-credits-modal--dark:hash: v1.k794b7964.6e796c6b85111be979b53ee5eea0a61da0816a519d8b7262607eb5a02ee90b17.1Ir7Y5HD9bAF0h5L3F-TYo73R5sg36-11r1cyIIHInwscenes-other-billing--billing-purchase-credits-modal--light:diff --git a/frontend/src/scenes/billing/Billing.stories.tsx b/frontend/src/scenes/billing/Billing.stories.tsxindex b821f7806804..d1ed26f6d11b 100644--- a/frontend/src/scenes/billing/Billing.stories.tsx+++ b/frontend/src/scenes/billing/Billing.stories.tsx@@ -1,5 +1,7 @@import { Meta, StoryObj } from '@storybook/react'+import { dayjs } from 'lib/dayjs'+import { mswDecorator, useStorybookMocks } from '~/mocks/browser'import { billingJson } from '~/mocks/fixtures/_billing'import { billingUnsubscribedJson } from '~/mocks/fixtures/_billing_unsubscribed'@@ -133,6 +135,51 @@ export const BillingOnStartupPlan: Story = {},}+const billingJsonOnYCPlan: BillingType = {+ ...billingJson,+ startup_program_label: StartupProgramLabel.YC,+ discount_amount_usd: '42000.00',+ // In the middle of the billing period, to show that YC keeps its own expiry date+ amount_off_expires_at: dayjs('2024-03-20T12:00:00Z'),+ startup_program_credits_renew: true,+}++export const BillingOnYCPlan: Story = {+ render: () => {+ useStorybookMocks({+ get: {+ '/api/billing/': billingJsonOnYCPlan,+ },+ })++ return <Billing />+ },+}++export const BillingOnYCPlanWithCreditsUsed: Story = {+ render: () => {+ useStorybookMocks({+ get: {+ '/api/billing/': { ...billingJsonOnYCPlan, discount_amount_usd: undefined },+ },+ })++ return <Billing />+ },+}++export const BillingOnYCPlanWithCreditsNotRenewing: Story = {+ render: () => {+ useStorybookMocks({+ get: {+ '/api/billing/': { ...billingJsonOnYCPlan, startup_program_credits_renew: false },+ },+ })++ return <Billing />+ },+}+export const BillingWithDiscount: Story = {render: () => {useStorybookMocks({diff --git a/frontend/src/scenes/billing/BillingHero.tsx b/frontend/src/scenes/billing/BillingHero.tsxindex c93d772e75d3..ea56055af400 100644--- a/frontend/src/scenes/billing/BillingHero.tsx+++ b/frontend/src/scenes/billing/BillingHero.tsx@@ -4,6 +4,7 @@ import { LemonButton } from '@posthog/lemon-ui'import { Link } from '@posthog/lemon-ui'import { BillingUpgradeCTA } from 'lib/components/BillingUpgradeCTA'+import { Dayjs } from 'lib/dayjs'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { BillingPlan, BillingProductV2Type, StartupProgramLabel } from '~/types'@@ -15,7 +16,7 @@ import planStartup from 'public/plan_startup.svg'import planTeams from 'public/plan_teams.png'import planYc from 'public/plan_yc.svg'-import { billingLogic } from './billingLogic'+import { YcCreditsState, billingLogic } from './billingLogic'import { billingProductLogic } from './billingProductLogic'import { paymentEntryLogic } from './paymentEntryLogic'import { PlanComparisonModal } from './PlanComparison'@@ -37,10 +38,28 @@ const STARTUP_PROGRAM_BADGES: Record<StartupProgramLabel, string> = {interface CopyVariation {title: string | nullsubtitle: string | null- getDescription: (billingPlan: BillingPlan, scrollToProduct: (productType: string) => void) => JSX.Element+ getDescription: (+ billingPlan: BillingPlan,+ scrollToProduct: (productType: string) => void,+ ycCreditsSummary: string+ ) => JSX.ElementbackgroundColor: string}+const getYcCreditsSummary = (ycCreditsState: YcCreditsState | null, expiresAt: Dayjs | undefined): string => {+ const expiryDate = expiresAt?.format('LL')+ switch (ycCreditsState) {+ case 'ending':+ return expiryDate+ ? `Your YC credits expire on ${expiryDate} and won't renew.`+ : "Your YC credits won't renew."+ case 'used_until_renewal':+ return `You'll get $50K in credits every year, forever, until you hit $25M in funding. You've used this year's credits, so you pay for usage until they renew${expiryDate ? ` on ${expiryDate}` : ''}.`+ default:+ return "You'll get $50K in credits every year, forever, until you hit $25M in funding. Your credits will renew automatically."+ }+}+const BADGE_CONFIG: Record<BillingPlan | StartupProgramLabel, CopyVariation> = {[BillingPlan.Free]: {title: 'Get the whole hog.',@@ -143,12 +162,13 @@ const BADGE_CONFIG: Record<BillingPlan | StartupProgramLabel, CopyVariation> = {title: 'Lucky you!',subtitle: "You're on the YC plan.",backgroundColor: 'bg-warning-highlight',- getDescription: (_billingPlan: BillingPlan, scrollToProduct: (productType: string) => void) => (+ getDescription: (+ _billingPlan: BillingPlan,+ scrollToProduct: (productType: string) => void,+ ycCreditsSummary: string+ ) => (<>- <p>- You'll get $50K in credits every year, forever, until you hit $25M in funding. Your credits will- renew automatically.- </p>+ <p>{ycCreditsSummary}</p><p>If you're growing like crazy, you might want to check out our{' '}{scrollToProduct ? (@@ -172,7 +192,8 @@ const BADGE_CONFIG: Record<BillingPlan | StartupProgramLabel, CopyVariation> = {export const BillingHero = ({ product }: { product: BillingProductV2Type }): JSX.Element | null => {const { startPaymentEntryFlow } = useActions(paymentEntryLogic)- const { redirectPath, billingPlan, startupProgramLabelCurrent, isManagedAccount } = useValues(billingLogic)+ const { billing, redirectPath, billingPlan, startupProgramLabelCurrent, ycCreditsState, isManagedAccount } =+ useValues(billingLogic)const { scrollToProduct } = useActions(billingLogic)const { isPlanComparisonModalOpen, billingProductLoading } = useValues(billingProductLogic({ product }))const { toggleIsPlanComparisonModalOpen } = useActions(billingProductLogic({ product }))@@ -183,11 +204,13 @@ export const BillingHero = ({ product }: { product: BillingProductV2Type }): JSX}const showUpgradeOptions = billingPlan === BillingPlan.Free && (!isManagedAccount || showUpgradeToManagedAccount)+ // YC credits that are used up and do not renew no longer cover any usage, so show the plan the customer pays on+ const startupProgramLabel = ycCreditsState === 'ended' ? null : startupProgramLabelCurrentconst copyVariation =- (startupProgramLabelCurrent ? BADGE_CONFIG[startupProgramLabelCurrent] : BADGE_CONFIG[billingPlan]) ||+ (startupProgramLabel ? BADGE_CONFIG[startupProgramLabel] : BADGE_CONFIG[billingPlan]) ||BADGE_CONFIG[BillingPlan.Paid]const planBadge =- (startupProgramLabelCurrent ? STARTUP_PROGRAM_BADGES[startupProgramLabelCurrent] : PLAN_BADGES[billingPlan]) ||+ (startupProgramLabel ? STARTUP_PROGRAM_BADGES[startupProgramLabel] : PLAN_BADGES[billingPlan]) ||PLAN_BADGES[BillingPlan.Paid]return (@@ -195,16 +218,18 @@ export const BillingHero = ({ product }: { product: BillingProductV2Type }): JSX<div className="@container p-4 relative"><imgsrc={planBadge}- alt={- startupProgramLabelCurrent- ? `${startupProgramLabelCurrent} plan badge`- : `${billingPlan} plan badge`- }+ alt={startupProgramLabel ? `${startupProgramLabel} plan badge` : `${billingPlan} plan badge`}className="float-right w-[33cqw] min-w-32 max-w-48 ml-6 mb-4"/>{copyVariation.title && <h1 className="mb-0">{copyVariation.title}</h1>}{copyVariation.subtitle && <h1 className="text-danger leading-tight">{copyVariation.subtitle}</h1>}- <div className="mt-2">{copyVariation.getDescription(billingPlan, scrollToProduct)}</div>+ <div className="mt-2">+ {copyVariation.getDescription(+ billingPlan,+ scrollToProduct,+ getYcCreditsSummary(ycCreditsState, billing?.amount_off_expires_at)+ )}+ </div>{showUpgradeOptions && (<div className="flex items-center gap-2"><BillingUpgradeCTAdiff --git a/frontend/src/scenes/billing/billingLogic.test.ts b/frontend/src/scenes/billing/billingLogic.test.tsindex 42811bfa5231..f5b88d02fc87 100644--- a/frontend/src/scenes/billing/billingLogic.test.ts+++ b/frontend/src/scenes/billing/billingLogic.test.ts@@ -6,6 +6,7 @@ import { expectLogic } from 'kea-test-utils'import posthog from 'posthog-js'import { FEATURE_FLAGS, OrganizationMembershipLevel } from 'lib/constants'+import { dayjs } from 'lib/dayjs'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { BillingAPIErrorCodes, billingLogic } from 'scenes/billing/billingLogic'import { organizationLogic } from 'scenes/organizationLogic'@@ -18,7 +19,7 @@ import preflightJson from '~/mocks/fixtures/_preflight.json'import { useMocks } from '~/mocks/jest'import { ProductKey } from '~/queries/schema/schema-general'import { initKeaTests } from '~/test/init'-import { BillingProductV2Type, BillingProvider, BillingType } from '~/types'+import { BillingProductV2Type, BillingProvider, BillingType, StartupProgramLabel } from '~/types'const creditOverviewResponse = {eligible: false,@@ -274,6 +275,92 @@ describe('billingLogic', () => {expect(billingLogic.values.isProductAtOrOverUsageLimit(ProductKey.PRODUCT_ANALYTICS)).toBe(false)})+ it.each([+ {+ name: 'YC credits left that renew',+ label: StartupProgramLabel.YC,+ credits: '100.00',+ renew: true,+ expected: 'renewing',+ },+ {+ name: 'YC credits used that renew',+ label: StartupProgramLabel.YC,+ credits: undefined,+ renew: true,+ expected: 'used_until_renewal',+ },+ {+ name: 'YC credits left that do not renew',+ label: StartupProgramLabel.YC,+ credits: '100.00',+ renew: false,+ expected: 'ending',+ },+ {+ name: 'YC credits used that do not renew',+ label: StartupProgramLabel.YC,+ credits: undefined,+ renew: false,+ expected: 'ended',+ },+ {+ name: 'a YC response without the renewal field',+ label: StartupProgramLabel.YC,+ credits: undefined,+ renew: undefined,+ expected: 'used_until_renewal',+ },+ {+ name: 'Startup credits used',+ label: StartupProgramLabel.Startup,+ credits: undefined,+ renew: false,+ expected: null,+ },+ ])('derives the YC credits state for $name', async ({ label, credits, renew, expected }) => {+ billingState = {+ ...billingWithProducts([productWithUsage(0.5)]),+ startup_program_label: label,+ discount_amount_usd: credits,+ startup_program_credits_renew: renew,+ }+ billingLogic.mount()++ await expectLogic(billingLogic, () => {+ billingLogic.actions.loadBilling()+ }).toFinishAllListeners()++ expect(billingLogic.values.ycCreditsState).toBe(expected)+ })++ it.each([+ { name: 'keeps the date for YC credits', label: StartupProgramLabel.YC, expected: '2024-03-15T12:00:00Z' },+ {+ name: 'moves the date to the period end for other credits',+ label: StartupProgramLabel.Startup,+ expected: '2024-03-31T00:00:00Z',+ },+ ])('$name that expire mid-period', async ({ label, expected }) => {+ billingState = {+ ...billingWithProducts([productWithUsage(0.5)]),+ startup_program_label: label,+ amount_off_expires_at: dayjs('2024-03-15T12:00:00Z'),+ billing_period: {+ current_period_start: dayjs('2024-03-01T00:00:00Z'),+ current_period_end: dayjs('2024-03-31T00:00:00Z'),+ interval: 'month',+ },+ }+ billingLogic.mount()++ await expectLogic(billingLogic, () => {+ billingLogic.actions.loadBilling()+ }).toFinishAllListeners()++ expect(billingLogic.values.billing?.amount_off_expires_at?.toISOString()).toBe(new Date(expected).toISOString())+ })+it.each([{ name: 'eligible for credits', eligible: true, partnerName: 'Example Partner', shownName: 'Example Partner' },{diff --git a/frontend/src/scenes/billing/billingLogic.tsx b/frontend/src/scenes/billing/billingLogic.tsxindex 1a40247908e5..ca01941f12da 100644--- a/frontend/src/scenes/billing/billingLogic.tsx+++ b/frontend/src/scenes/billing/billingLogic.tsx@@ -111,6 +111,14 @@ export type SwitchPlanPayload = {to_plan_key: string}+/**+ * renewing: credits left, and they renew every year+ * used_until_renewal: no credits left until the next yearly renewal+ * ending: credits left, but they do not renew+ * ended: no credits left, and they do not renew+ */+export type YcCreditsState = 'renewing' | 'used_until_renewal' | 'ending' | 'ended'+// Billing can answer with an empty body (a proxy error page, an upstream failure), so this takes null.export const parseBillingResponse = (data: Partial<BillingType> | null): BillingType | null => {if (!data) {@@ -126,8 +134,10 @@ export const parseBillingResponse = (data: Partial<BillingType> | null): Billingdata.free_trial_until = data.free_trial_until ? dayjs(data.free_trial_until) : undefineddata.amount_off_expires_at = data.amount_off_expires_at ? dayjs(data.amount_off_expires_at) : undefined- // If expiration is in the middle of the current period, we let it expire at the end of the period+ // If expiration is in the middle of the current period, we let it expire at the end of the period.+ // YC credits are the exception: billing renews or ends them on the expiry date itself.if (+ data.startup_program_label !== StartupProgramLabel.YC &&data.amount_off_expires_at &&data.billing_period &&data.amount_off_expires_at.isBefore(data.billing_period.current_period_end) &&@@ -318,6 +328,7 @@ export interface billingLogicValues {unsubscribeError: UnsubscribeError | nullunusedPlatformAddonAmount: numberupgradeLink: string+ ycCreditsState: YcCreditsState | null}// Generated by kea-typegen. Update if you're an agent, ignore if you're human.@@ -668,6 +679,7 @@ export interface billingLogicMeta {) => string | nullstartupProgramLabelCurrent: (billing: BillingType | null) => StartupProgramLabel | nullstartupProgramLabelPrevious: (billing: BillingType | null) => StartupProgramLabel | null+ ycCreditsState: (billing: BillingType | null) => YcCreditsState | nullisAnnualPlanCustomer: (billing: BillingType | null) => booleanisProductAtOrOverUsageLimit: (billing: BillingType | null) => (productKey: ProductKey) => booleanbillingPeriodUTC: (billing: BillingType | null) => BillingPeriod@@ -1275,6 +1287,20 @@ export const billingLogic = kea<billingLogicType>([(billing: BillingType | null): StartupProgramLabel | null =>billing?.startup_program_label_previous || null,],+ ycCreditsState: [+ (s) => [s.billing],+ (billing: BillingType | null): YcCreditsState | null => {+ if (billing?.startup_program_label !== StartupProgramLabel.YC) {+ return null+ }+ const hasCredits = Number(billing.discount_amount_usd ?? 0) > 0+ // Older billing responses do not send the field, so only an explicit false stops the renewal copy+ if (billing.startup_program_credits_renew === false) {+ return hasCredits ? 'ending' : 'ended'+ }+ return hasCredits ? 'renewing' : 'used_until_renewal'+ },+ ],isAnnualPlanCustomer: [(s) => [s.billing],(billing: BillingType | null): boolean => billing?.is_annual_plan_customer || false,diff --git a/frontend/src/scenes/startups/StartupProgram.test.tsx b/frontend/src/scenes/startups/StartupProgram.test.tsxnew file mode 100644index 000000000000..fdb427c76396--- /dev/null+++ b/frontend/src/scenes/startups/StartupProgram.test.tsx@@ -0,0 +1,79 @@+/* oxlint-disable react-hooks/rules-of-hooks -- useMocks is a test helper, not a React hook */+import '@testing-library/jest-dom'++import { cleanup, render, screen, within } from '@testing-library/react'+import { BindLogic } from 'kea'+import { expectLogic } from 'kea-test-utils'++import { billingLogic } from 'scenes/billing/billingLogic'++import { billingJson } from '~/mocks/fixtures/_billing'+import { useMocks } from '~/mocks/jest'+import { initKeaTests } from '~/test/init'+import { StartupProgramLabel } from '~/types'++import { StartupProgram } from './StartupProgram'+import { startupProgramLogic } from './startupProgramLogic'++describe('StartupProgram', () => {+ beforeEach(() => {+ initKeaTests()+ })++ afterEach(cleanup)++ it.each(+ [undefined, 'yc'].flatMap((referrer) =>+ [+ {+ credits: 100,+ renews: false,+ message: "Your YC credits expire on March 20, 2024 and won't renew.",+ },+ { credits: 0, renews: false, message: "Your YC credits are used up and won't renew." },+ {+ credits: 0,+ renews: true,+ message:+ "You've used this year's YC credits, so you pay for usage until they renew on March 20, 2024.",+ },+ { credits: 100, renews: true, message: /Your credits will renew automatically/ },+ { credits: 100, renews: undefined, message: /Your credits will renew automatically/ },+ ].map((state) => ({ referrer, ...state }))+ )+ )(+ 'shows the current YC status on /startups/$referrer with $credits credits and renews=$renews',+ async ({ referrer, credits, renews, message }) => {+ useMocks({+ get: {+ '/api/billing': [+ 200,+ {+ ...billingJson,+ startup_program_label: StartupProgramLabel.YC,+ startup_program_credits_renew: renews,+ discount_amount_usd: credits,+ amount_off_expires_at: '2024-03-20T00:00:00Z',+ is_annual_plan_customer: false,+ },+ ],+ },+ })+ billingLogic.mount()+ await expectLogic(billingLogic, () => billingLogic.actions.loadBilling()).toFinishAllListeners()++ render(+ <BindLogic logic={startupProgramLogic} props={{ referrer }}>+ <StartupProgram />+ </BindLogic>+ )++ const title = referrer ? "You're in the YC Program" : 'You are already in the YC Program'+ const notice = within(screen.getByText(title).closest<HTMLElement>('[data-slot="card"]')!)+ expect(notice.getByText(message)).toBeInTheDocument()+ if (renews === false) {+ expect(notice.queryByText(/Your credits will renew automatically/)).not.toBeInTheDocument()+ }+ }+ )+})diff --git a/frontend/src/scenes/startups/StartupProgram.tsx b/frontend/src/scenes/startups/StartupProgram.tsxindex 709aa67c5f3c..a559bf6e91bf 100644--- a/frontend/src/scenes/startups/StartupProgram.tsx+++ b/frontend/src/scenes/startups/StartupProgram.tsx@@ -131,7 +131,22 @@ export function StartupProgram(): JSX.Element {shouldShowEmailDomainBlockedGate,user,} = useValues(startupProgramLogic)- const { billing, billingLoading, accountOwner } = useValues(billingLogic)+ const { billing, billingLoading, accountOwner, ycCreditsState } = useValues(billingLogic)++ const expiryDate = billing?.amount_off_expires_at?.format('LL')+ const ycCreditsMessage = {+ renewing: (+ <>+ Your credits will renew automatically <span className="font-semibold">every year, forever</span>, until+ you hit $25M in funding.+ </>+ ),+ ending: expiryDate+ ? `Your YC credits expire on ${expiryDate} and won't renew.`+ : "Your YC credits won't renew.",+ ended: "Your YC credits are used up and won't renew.",+ used_until_renewal: `You've used this year's YC credits, so you pay for usage until they renew${expiryDate ? ` on ${expiryDate}` : ''}.`,+ }[ycCreditsState ?? 'renewing']const currentProgramName = currentStartupProgramLabel === StartupProgramLabel.YC ? 'YC Program' : 'Startup Program'const platformAndSupportProduct = billing?.products?.find(@@ -144,12 +159,7 @@ export function StartupProgram(): JSX.Element {return (<StartupProgramNotice title={`You are already in the ${currentProgramName}`}><Text>It looks like your organization is already part of our {currentProgramName}.</Text>- {currentStartupProgramLabel === StartupProgramLabel.YC && (- <Text>- Your credits will renew automatically <span className="font-semibold">every year, forever</span>- , until you hit $25M in funding.- </Text>- )}+ {currentStartupProgramLabel === StartupProgramLabel.YC && <Text>{ycCreditsMessage}</Text>}<Text>If you have any questions, please contact our support team.</Text></StartupProgramNotice>)@@ -387,11 +397,7 @@ export function StartupProgram(): JSX.Element {</CardHeader><CardContent className="flex flex-col items-start gap-2">{currentStartupProgramLabel === StartupProgramLabel.YC ? (- <Text>- Your credits will renew automatically{' '}- <span className="font-semibold">every year, forever</span>, until you- hit $25M in funding.- </Text>+ <Text>{ycCreditsMessage}</Text>) : (<Text>If you qualify for the YC Program and your Startup Program creditsdiff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 805fe0789c11..c8ed19bffd37 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -2509,6 +2509,8 @@ export interface BillingType {billing_plan: BillingPlan | nullstartup_program_label?: StartupProgramLabel | nullstartup_program_label_previous?: StartupProgramLabel | null+ /** False when the YC credits do not renew, for example after a YC program block */+ startup_program_credits_renew?: booleanis_annual_plan_customer?: boolean | nullaccount_owner?: {email?: string