Files
supabase/apps/studio/components/interfaces/Organization/restriction.constants.ts
Kevin Grüneberg f5567f3a3c feat: missing billing info banner (#38575)
For compliance reasons we need a billing address for all paying customers. This PR adds a nudge for customers that have not yet put down their billing address.
2025-09-10 13:26:27 +08:00

30 lines
1.1 KiB
TypeScript

// Add at the top of the file, with other imports
export const RESTRICTION_MESSAGES = {
GRACE_PERIOD: {
title: 'Organization plan has exceeded its quota',
message: (date: string) => `You are given a grace period until ${date}`,
},
GRACE_PERIOD_OVER: {
title: 'Grace period is over',
message: 'Your Projects will not be able to serve requests when you used up your quota.',
},
RESTRICTED: {
title: 'Services Restricted',
message:
'Your Projects are unable to serve any requests as your Organization plan has used up its quota.',
},
OVERDUE_INVOICES: {
title: 'Outstanding Invoices',
message: 'Please pay invoices to avoid service disruption.',
},
OVERDUE_INVOICES_FROM_OTHER_ORGS: {
title: 'Outstanding Invoices in other Organization',
message: 'Please pay invoices for other Organization to avoid service disruption.',
},
MISSING_BILLING_INFO: {
title: 'Missing Billing Information',
message:
'Please add a billing address. If you are a registered business, please add a tax ID too.',
},
} as const