Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

Server admin: self-serve sign-up and Stripe Tax switch without reason dialog (PR 1931)

Janikafe64a7f00aa
diff --git a/apps/api/src/audit.ts b/apps/api/src/audit.ts
index a8bb0b17..c94a0af0 100644
--- a/apps/api/src/audit.ts
+++ b/apps/api/src/audit.ts
@@ -226,7 +226,8 @@ export const AUDITED_ACTIONS: Record<string, AuditKind> = {
// A stored Stripe event processed again by an instance admin.
'billing.reprocessEvent': 'admin',
// Server admin › Billing: every change to a bill, its money or the install's billing
- // rules, each with the admin's reason in its input; reads are not listed.
+ // rules, each with the admin's reason in its input (not the self-serve and Stripe Tax switches, which
+ // act at once with Undo; their input says which way they went); reads are not listed.
'billing.credit': 'admin',
'billing.refund': 'admin',
'billing.adminSetStatus': 'admin',
diff --git a/apps/api/src/billing-admin.ts b/apps/api/src/billing-admin.ts
index 932031b8..b2308501 100644
--- a/apps/api/src/billing-admin.ts
+++ b/apps/api/src/billing-admin.ts
@@ -3,8 +3,9 @@
// Who: `instance:admin` (the registry, with the admin's passkey check for every Server admin action). Every write here
// also refuses an AI agent's setup link, an API key, a personal key and an impersonation, and needs the
// passkey-confirmed session itself (`refuseMoneyChange`, as for the Stripe keys and the billing switch), so a stolen
-// session cookie without the passkey, a leaked key or an agent cannot move money. Every write takes a `reason`, kept
-// with its input in the audit log (AUDITED_ACTIONS); every ledger entry here carries the admin as `actor_id`.
+// session cookie without the passkey, a leaked key or an agent cannot move money. Every write is kept with its input in
+// the audit log (AUDITED_ACTIONS) and takes a `reason`, except the two switches that act at once with Undo: self-serve
+// sign-up and Stripe Tax alone (Janik, 2026-11-26); every ledger entry here carries the admin as `actor_id`.
//
// Money: entries are posted with `postEntry` under the bill's balance lock (lock order: balance first, then the
// recharge row), with the request id of the page as their source key, so a retried request posts once. A refund picks
@@ -1137,7 +1138,8 @@ export const billingAdminHandlers: Record<string, Handler> = {
'billingRules.set': async (
{ tx, actor, now, onCommit },
- input: { rules: Record<string, unknown>; reason: string },
+ // No reason only for a change of only the Stripe Tax switch (the action's input check).
+ input: { rules: Record<string, unknown>; reason?: string },
) => {
refuseMoneyChange(actor)
const checked = checkBillingRules(withoutResets(input.rules))
@@ -1170,7 +1172,7 @@ export const billingAdminHandlers: Record<string, Handler> = {
return { rows: {}, data: { ...(await rulesData(tx)), changed } }
},
- 'signup.setSelfServe': async ({ tx, actor, now, onCommit }, input: { on: boolean; reason: string }) => {
+ 'signup.setSelfServe': async ({ tx, actor, now, onCommit }, input: { on: boolean }) => {
// On opens the install to anyone: the same check as the money actions. Off is open to every instance admin.
if (input.on) refuseMoneyChange(actor)
const before = await selfServe(tx)
@@ -1180,9 +1182,7 @@ export const billingAdminHandlers: Record<string, Handler> = {
throw Reject.t('server.api.signup.termsMissing', { vars: before.termsMissing.join(', ') })
await writeSetting(tx, SELF_SERVE_KEY, input.on ? 'on' : 'off', actor, now)
if (before.on !== input.on)
- onCommit?.(async () =>
- alertInstanceAdmins(selfServeAlert({ actor: await alertActor(actor), on: input.on, reason: input.reason })),
- )
+ onCommit?.(async () => alertInstanceAdmins(selfServeAlert({ actor: await alertActor(actor), on: input.on })))
return { rows: {}, data: await selfServe(tx) }
},
diff --git a/apps/api/src/billing-tax.ts b/apps/api/src/billing-tax.ts
index d5c034f2..5e11dc80 100644
--- a/apps/api/src/billing-tax.ts
+++ b/apps/api/src/billing-tax.ts
@@ -75,10 +75,10 @@ export function resetTaxAddressCount() {
}
/**
- * How many paying customers Stripe Tax cannot tax (no billing address), for the admin before turning tax on. Asked
- * only when the confirm dialog needs it (`billing.adminTaxAddressMissing`), never on a read of the rules, and never
+ * How many paying customers Stripe Tax cannot tax (no billing address), for the admin who just turned tax on. Asked
+ * only by the page right after that (`billing.adminTaxAddressMissing`), never on a read of the rules, and never
* inside a transaction: the customer ids are read first, then Stripe is asked for exactly those (security review of
- * #1105, N-1). The answer is kept for TAX_ADDRESS_COUNT_MS for the same customers, so opening the dialog again, or a
+ * #1105, N-1). The answer is kept for TAX_ADDRESS_COUNT_MS for the same customers, so turning tax on again, or a
* read-scoped key asking in a loop, does not use up the Stripe rate limit recharges share; a failure (null) is kept
* for TAX_ADDRESS_FAILED_MS. Null: billing is off, or Stripe could not be asked.
*/
diff --git a/apps/api/src/emails/alerts.ts b/apps/api/src/emails/alerts.ts
index 77ac5c33..dfe0a307 100644
--- a/apps/api/src/emails/alerts.ts
+++ b/apps/api/src/emails/alerts.ts
@@ -325,18 +325,22 @@ export const billingSwitchAlert =
/** The install's billing rules changed (Server admin › Billing): every instance admin hears which fields. */
export const billingRulesAlert =
- ({ actor, fields, reason }: { actor: AlertActor; fields: string[]; reason: string }): AdminAlertText =>
+ ({ actor, fields, reason }: { actor: AlertActor; fields: string[]; reason?: string }): AdminAlertText =>
locale => {
const { t } = getT(locale)
const values = {
actor: actorLabel(actor, locale),
fields: fields.length ? fields.join(', ') : t('email.adminAlert.billingRules.reset'),
- reason,
}
+ // The Stripe Tax switch alone is changed without a reason: no reason line then.
+ const text =
+ reason === undefined
+ ? t('email.adminAlert.billingRules.textNoReason', values)
+ : t('email.adminAlert.billingRules.text', { ...values, reason })
return {
subject: t('email.adminAlert.billingRules.subject'),
blocks: [
- { kind: 'text', text: t('email.adminAlert.billingRules.text', values) },
+ { kind: 'text', text },
{ kind: 'text', text: t('email.adminAlert.checkBilling') },
],
}
@@ -344,10 +348,10 @@ export const billingRulesAlert =
/** Self-serve sign-up turned on or off (Server admin › Sign-up & access, `signup.selfServe`). */
export const selfServeAlert =
- ({ actor, on, reason }: { actor: AlertActor; on: boolean; reason: string }): AdminAlertText =>
+ ({ actor, on }: { actor: AlertActor; on: boolean }): AdminAlertText =>
locale => {
const { t } = getT(locale)
- const values = { actor: actorLabel(actor, locale), on: on ? 'yes' : 'no', reason }
+ const values = { actor: actorLabel(actor, locale), on: on ? 'yes' : 'no' }
return {
subject: t('email.adminAlert.selfServe.subject', values),
blocks: [
diff --git a/apps/api/test/billing-admin.test.ts b/apps/api/test/billing-admin.test.ts
index fe8b4feb..33722104 100644
--- a/apps/api/test/billing-admin.test.ts
+++ b/apps/api/test/billing-admin.test.ts
@@ -340,7 +340,8 @@ describe('who may', () => {
['billing.transferOwner', { billingAccountId: billId, userId: ws.owner.userId, reason }],
['billing.reviewHold', { billingAccountId: billId, decision: 'approve', reason }],
['billingRules.set', { rules: {}, reason }],
- ['signup.setSelfServe', { on: false, reason }],
+ ['billingRules.set', { rules: { automaticTax: true } }],
+ ['signup.setSelfServe', { on: false }],
['signup.setRules', { rules: { turnstile: false }, reason }],
]
for (const [name, input] of writes) {
@@ -372,7 +373,8 @@ describe('who may', () => {
['billing.transferOwner', { billingAccountId: billId, userId: operator.userId, reason }],
['billing.reviewHold', { billingAccountId: billId, decision: 'approve', reason }],
['billingRules.set', { rules: {}, reason }],
- ['signup.setSelfServe', { on: true, reason }],
+ ['billingRules.set', { rules: { automaticTax: true } }],
+ ['signup.setSelfServe', { on: true }],
['signup.setRules', { rules: { turnstile: false }, reason }],
['billing.reprocessEvent', { eventId: rid('evt'), reason }],
]
@@ -430,7 +432,8 @@ describe('who may', () => {
['billing.moveWorkspace', { workspaceId: other.id, toBillingAccountId: billId, reason, requestId: rid('req') }],
['billing.transferOwner', { billingAccountId: billId, userId: operator.userId, reason }],
['billingRules.set', { rules: { includedStandardSeconds: 1_000_000 }, reason }],
- ['signup.setSelfServe', { on: true, reason }],
+ ['billingRules.set', { rules: { automaticTax: true } }],
+ ['signup.setSelfServe', { on: true }],
['signup.setRules', { rules: { turnstile: false }, reason }],
['billing.reprocessEvent', { eventId: rid('evt'), reason }],
]
@@ -451,6 +454,10 @@ describe('who may', () => {
})
expect(answer.status).toBe(422)
expect(await balance(billId)).toBe(0)
+ // Only the Stripe Tax switch alone goes without one (Janik, 2026-11-26): any other rule, or tax with another, needs it.
+ for (const rules of [{ trialDays: 7 }, { automaticTax: true, trialDays: 7 }, {}])
+ expect((await act(operator, 'billingRules.set', { rules })).status, JSON.stringify(rules)).toBe(422)
+ expect(await db.select().from(instance_settings).where(eq(instance_settings.key, BILLING_RULES_KEY))).toEqual([])
})
})
@@ -1517,6 +1524,29 @@ describe('the billing rules editor', () => {
expect((await lastCommand('billingRules.set'))?.input).toMatchObject({ reason })
})
+ test('the Stripe Tax switch alone needs no reason: stored, audited with the new value, emailed without a reason line', async () => {
+ const mails = mailbox()
+ const on = await act(operator, 'billingRules.set', { rules: { automaticTax: !BILLING_DEFAULTS.automaticTax } })
+ expect(on.status).toBe(200)
+ expect(on.body.data.changed).toEqual(['automaticTax'])
+ expect((await billingRules(db)).automaticTax).toBe(!BILLING_DEFAULTS.automaticTax)
+ await vi.waitFor(() => expect(mails.some(m => m.subject === 'The billing rules were changed')).toBe(true))
+ const mail = mails.find(m => m.subject === 'The billing rules were changed')!
+ expect(mail.text).toContain('automaticTax')
+ expect(mail.text).not.toContain('Reason')
+ const { entries } = (await request(operator, 'GET', '/v1/admin/audit?kind=admin&limit=50')).body as {
+ entries: { what: string; input?: unknown }[]
+ }
+ expect(entries.find(e => e.what === 'billingRules.set')?.input).toEqual({
+ rules: { automaticTax: !BILLING_DEFAULTS.automaticTax },
+ })
+ // Undo is the same action the other way.
+ expect(
+ (await act(operator, 'billingRules.set', { rules: { automaticTax: BILLING_DEFAULTS.automaticTax } })).status,
+ ).toBe(200)
+ expect((await billingRules(db)).automaticTax).toBe(BILLING_DEFAULTS.automaticTax)
+ })
+
test("the server's minimum price per minute holds (Linedesk Cloud); without it 0 is allowed", async () => {
const free = { levels: { standard: { microsPerMinute: 0, allowanceFactor: 1 } } }
expect((await act(operator, 'billingRules.set', { rules: free, reason })).status).toBe(200)
@@ -1527,7 +1557,7 @@ describe('the billing rules editor', () => {
expect((await act(operator, 'billingRules.get', {})).body.data.minMicrosPerMinute).toBe(10_000)
})
- test('a read of the rules never asks Stripe; the confirm dialog asks for the tax-address count on its own (review #1105, N-1)', async () => {
+ test('a read of the rules never asks Stripe; the page asks for the tax-address count on its own after tax is turned on (review #1105, N-1)', async () => {
expect((await act(operator, 'billingRules.get', {})).body.data).not.toHaveProperty('taxAddressMissing')
// Billing through Stripe is not in effect here: not known.
expect((await act(operator, 'billing.adminTaxAddressMissing', {})).body).toMatchObject({
@@ -1611,7 +1641,7 @@ describe('self-serve sign-up', () => {
problems: [],
termsMissing: allMissing,
})
- const refused = await act(operator, 'signup.setSelfServe', { on: true, reason })
+ const refused = await act(operator, 'signup.setSelfServe', { on: true })
expect(refused.status).toBe(409)
expect(await db.select().from(instance_settings).where(eq(instance_settings.key, SELF_SERVE_KEY))).toEqual([])
// Billing in effect: Stripe keys stored and the switch on (a fake Stripe confirms the account).
@@ -1632,7 +1662,7 @@ describe('self-serve sign-up', () => {
).toBe(200)
expect((await act(operator, 'billingEnabled.set', { on: true })).status).toBe(200)
// No terms in the environment (A9): refused, and the answer names what to set.
- const noTerms = await act(operator, 'signup.setSelfServe', { on: true, reason })
+ const noTerms = await act(operator, 'signup.setSelfServe', { on: true })
expect(noTerms.status).toBe(409)
expect(noTerms.body.error).toContain('TERMS_URL, TERMS_VERSION, PRIVACY_URL, PRIVACY_VERSION')
vi.stubEnv('TERMS_URL', 'https://desk.example.com/terms')
@@ -1640,7 +1670,8 @@ describe('self-serve sign-up', () => {
vi.stubEnv('PRIVACY_URL', 'https://desk.example.com/privacy')
vi.stubEnv('PRIVACY_VERSION', '2026-11-17')
const mails = mailbox()
- const on = await act(operator, 'signup.setSelfServe', { on: true, reason })
+ // No reason asked (Janik, 2026-11-26): the switch acts at once, with Undo in the page.
+ const on = await act(operator, 'signup.setSelfServe', { on: true })
expect(on.status).toBe(200)
// Switched on, but closed until Turnstile has keys: the page says so instead of showing only the switch.
expect(on.body.data).toMatchObject({
@@ -1652,7 +1683,10 @@ describe('self-serve sign-up', () => {
termsMissing: [],
})
await vi.waitFor(() => expect(mails.some(m => m.subject === 'Self-serve sign-up was turned on')).toBe(true))
- expect((await lastCommand('signup.setSelfServe'))?.input).toMatchObject({ on: true, reason })
+ const turnedOn = mails.find(m => m.subject === 'Self-serve sign-up was turned on')!
+ expect(turnedOn.text).toContain('turned self-serve sign-up on')
+ expect(turnedOn.text).not.toContain('Reason')
+ expect((await lastCommand('signup.setSelfServe'))?.input).toEqual({ on: true })
// Without the bot check it is open.
const rules = await act(operator, 'signup.setRules', { rules: { turnstile: false }, reason })
expect(rules.status).toBe(200)
@@ -1679,7 +1713,8 @@ describe('self-serve sign-up', () => {
{ field: 'turnstile', from: true, to: false },
])
expect((await act(operator, 'signup.setRules', { rules: { turnstile: null }, reason })).status).toBe(200)
- expect((await act(operator, 'signup.setSelfServe', { on: false, reason })).body.data.on).toBe(false)
+ expect((await act(operator, 'signup.setSelfServe', { on: false })).body.data.on).toBe(false)
+ await vi.waitFor(() => expect(mails.some(m => m.subject === 'Self-serve sign-up was turned off')).toBe(true))
vi.unstubAllEnvs()
})
diff --git a/apps/web/src/admin/AuditLog.tsx b/apps/web/src/admin/AuditLog.tsx
index 649b0047..be601127 100644
--- a/apps/web/src/admin/AuditLog.tsx
+++ b/apps/web/src/admin/AuditLog.tsx
@@ -487,8 +487,14 @@ export function auditLabel(
return t('admin.audit.billingTransferOwner')
case 'billing.reviewHold':
return t('admin.audit.billingReview', { decision: input.decision === 'approve' ? 'approve' : 'deny' })
- case 'billingRules.set':
- return t('admin.audit.billingRulesSet')
+ case 'billingRules.set': {
+ // The Stripe Tax switch saves only its own field: the log says which way it went.
+ const rules = input.rules as Record<string, unknown> | undefined
+ const tax = rules && Object.keys(rules).length === 1 ? rules.automaticTax : undefined
+ return typeof tax === 'boolean'
+ ? t('admin.audit.stripeTaxSet', { on: tax ? 'yes' : 'no' })
+ : t('admin.audit.billingRulesSet')
+ }
case 'signup.setSelfServe':
return t('admin.audit.selfServeSet', { on: input.on === true ? 'yes' : 'no' })
case 'signup.setRules':
diff --git a/apps/web/src/admin/Billing.test.tsx b/apps/web/src/admin/Billing.test.tsx
index deb4ca43..05c0c024 100644
--- a/apps/web/src/admin/Billing.test.tsx
+++ b/apps/web/src/admin/Billing.test.tsx
@@ -3,7 +3,7 @@
import type { AdminBillDetail, SelfServeData } from '@linedesk/actions'
import { SIGNUP_DEFAULTS } from '@linedesk/db/types'
import { renderToStaticMarkup } from 'react-dom/server'
-import { expect, test, vi } from 'vitest'
+import { describe, expect, test, vi } from 'vitest'
const data: Record<string, unknown> = {}
const useQuery = vi.fn((key: string | null) => ({
@@ -11,9 +11,24 @@ const useQuery = vi.fn((key: string | null) => ({
error: null,
reload: async () => {},
}))
-vi.mock('../cachedQuery.ts', async original => ({ ...(await original<object>()), useQuery }))
+vi.mock('../cachedQuery.ts', async original => ({
+ ...(await original<object>()),
+ useQuery,
+ setQueryData: () => {},
+ refreshQuery: async () => {},
+}))
+const admin = vi.hoisted(() => ({ calls: [] as unknown[], answers: {} as Record<string, unknown> }))
+vi.mock('./api.ts', async original => ({
+ ...(await original<object>()),
+ runAdmin: async (name: string, input: unknown) => {
+ admin.calls.push([name, input])
+ return admin.answers[name]
+ },
+}))
-const { Billing, billActions, SelfServeCard, SignupRulesCard } = await import('./Billing.tsx')
+const { Billing, billActions, SelfServeCard, SignupRulesCard, setSelfServe, setStripeTax } = await import(
+ './Billing.tsx'
+)
const { i18n } = await import('../i18n/index.tsx')
const bill: AdminBillDetail = {
@@ -255,17 +270,29 @@ test('a part of Billing shows only that part: no status line, no tabs above it',
expect(html).not.toContain('Not connected')
})
-test('turning Stripe Tax on: the count of customers without an address shows once asked, "counting" meanwhile (review #1105, N-1)', async () => {
- const { taxChange } = await import('./Billing.tsx')
- const { i18n } = await import('../i18n/index.tsx')
- const t = i18n().t as Parameters<typeof taxChange>[2]
- const note = (missing: number | null | undefined) => renderToStaticMarkup(taxChange(true, missing, t))
- expect(note(undefined)).toContain('Counting paying customers without a billing address')
- expect(note(2)).toContain('2 paying customers have no billing address')
- expect(note(2)).not.toContain('Counting')
- // Not known (billing off, Stripe not answering): only what the switch does.
- expect(note(null)).toContain('Running subscriptions are taxed from their next invoice.')
- expect(note(null)).not.toMatch(/Counting|no billing address/)
- // Turning it off asks nothing.
- expect(renderToStaticMarkup(taxChange(false, undefined, t))).not.toContain('Counting')
+describe('the Stripe Tax and self-serve sign-up switches act at once, without asking why (Janik, 2026-11-26)', () => {
+ test('Stripe Tax: saves only its own field, says what it means, and asks for the address count only when turned on', async () => {
+ admin.calls = []
+ admin.answers = {
+ 'billingRules.set': { effective: { automaticTax: true } },
+ 'billing.adminTaxAddressMissing': { taxAddressMissing: 2 },
+ }
+ const missing: (number | null)[] = []
+ const text = await setStripeTax(true, count => missing.push(count))
+ expect(text).toBe('Stripe Tax is on: running subscriptions are taxed from their next invoice')
+ expect(admin.calls[0]).toEqual(['billingRules.set', { rules: { automaticTax: true } }])
+ await vi.waitFor(() => expect(missing).toEqual([null, 2]))
+ admin.calls = []
+ expect(await setStripeTax(false)).toBe(
+ 'Stripe Tax is off: running subscriptions stop collecting tax from their next invoice',
+ )
+ expect(admin.calls).toEqual([['billingRules.set', { rules: { automaticTax: false } }]])
+ })
+
+ test('self-serve sign-up: one call with only the switch, the toast says the new state', async () => {
+ admin.calls = []
+ admin.answers = { 'signup.setSelfServe': selfServe({ on: true }) }
+ expect(await setSelfServe(true)).toBe('Self-serve sign-up is on')
+ expect(admin.calls).toEqual([['signup.setSelfServe', { on: true }]])
+ })
})
diff --git a/apps/web/src/admin/Billing.tsx b/apps/web/src/admin/Billing.tsx
index 21afacd7..eb3dc0c4 100644
--- a/apps/web/src/admin/Billing.tsx
+++ b/apps/web/src/admin/Billing.tsx
@@ -28,6 +28,7 @@ import { T, useT } from '@linedesk/i18n/react'
import { type FormEvent, Fragment, type ReactNode, useContext, useEffect, useMemo, useState } from 'react'
import { refreshQuery, setQueryData, useQuery } from '../cachedQuery.ts'
import { fmt } from '../i18n/format.ts'
+import { i18n } from '../i18n/index.tsx'
import { AppLink, appLink, LinkButton } from '../ui/AppLink.tsx'
import { Checkbox, Select, Switch } from '../ui/controls.tsx'
import { LineGroup, LinkLine } from '../ui/FeatureLine.tsx'
@@ -104,7 +105,6 @@ const BILLS = 'admin.billing.bills'
const REVIEW = 'admin.billing.review'
const RULES = 'admin.billing.rules'
const SUMMARY = 'admin.billing.summary'
-const TAX_ADDRESS = 'admin.billing.taxAddressMissing'
export const SELF_SERVE = 'admin.billing.selfServe'
const billKey = (id: string) => `admin.billing.bill.${id}`
const eventsKey = (filter: BillingEventFilter) => `admin.billing.events.${filter}`
@@ -753,17 +753,49 @@ function EventsCard({ notify }: { notify: Notify }) {
// ---- Stripe Tax ----
/**
- * The Stripe Tax switch (`BillingRules.automaticTax`), a line on Billing's page under the billing switch. A change
- * reaches running subscriptions and every admin is emailed, so it is confirmed with what it means and a reason (kept in
- * the audit log, security review of #1105) and stored like any billing rule, only this field.
+ * A switch that acts at once (design principles, rule 5): it shows its new position while it saves and goes back if
+ * the save fails; the toast offers Undo, the opposite switch through the same action. Each save asks the server, which
+ * still checks the admin's passkey and keeps the change in the audit log.
*/
+function useInstantSwitch(save: (on: boolean) => Promise<string>, notify: Notify) {
+ const [pending, setPending] = useState<boolean | null>(null)
+ async function change(on: boolean) {
+ setPending(on)
+ try {
+ const text = await save(on)
+ notify(text, () => save(!on))
+ } catch (err) {
+ notify(errorText(err))
+ } finally {
+ setPending(null)
+ }
+ }
+ return { pending, change: (on: boolean) => void change(on) }
+}
+
+/**
+ * Turns Stripe Tax on or off (`BillingRules.automaticTax`, stored like any billing rule, only this field) and answers
+ * the toast, which says what it means for running subscriptions (security review of #1105, M-1). No reason: every
+ * admin is still emailed and the audit log keeps who did it (Janik, 2026-11-26). Turned on, it asks Stripe how many
+ * paying customers have no billing address, then and only then (review #1105, N-1): `onMissing` gets the count.
+ */
+export async function setStripeTax(on: boolean, onMissing: (count: number | null) => void = () => {}) {
+ const t = i18n().t
+ const next = (await runAdmin('billingRules.set', { rules: { automaticTax: on } })) as unknown as BillingRulesData
+ setQueryData<BillingRulesData | undefined>(RULES, next, KEPT)
+ await refreshQuery(SUMMARY)
+ onMissing(null)
+ if (on) void loadTaxAddress().then(onMissing, () => onMissing(null))
+ return t(on ? 'admin.bills.tax.turnedOn' : 'admin.bills.tax.turnedOff')
+}
+
+/** The Stripe Tax switch, a line on Billing's page under the billing switch. */
function TaxLine({ notify }: { notify: Notify }) {
const t = useT()
const query = useQuery(RULES, loadRules, KEPT)
- const on = query.data?.effective.automaticTax
- const [asking, setAsking] = useState<boolean | null>(null)
- // Asked of Stripe only while the confirm dialog turns tax on, never with the rules (security review of #1105, N-1).
- const taxAddress = useQuery(asking === true ? TAX_ADDRESS : null, loadTaxAddress)
+ const [missing, setMissing] = useState<number | null>(null)
+ const { pending, change } = useInstantSwitch(on => setStripeTax(on, setMissing), notify)
+ const on = pending ?? query.data?.effective.automaticTax
return (
<section id="adm-stripe-tax" className="k-card k-feature" aria-label={t('admin.bills.rules.automaticTax')}>
<SettingRow
@@ -778,31 +810,19 @@ function TaxLine({ notify }: { notify: Notify }) {
onRetry={() => void query.reload()}
skeleton={<Skeleton width={34} height={20} className="sk-round" />}
>
- <Switch on={on ?? false} onChange={setAsking} label={t('admin.bills.rules.automaticTax')} />
+ <Switch
+ on={on ?? false}
+ onChange={change}
+ disabled={pending !== null}
+ label={t('admin.bills.rules.automaticTax')}
+ />
</Loading>
}
/>
- {asking !== null && query.data && (
- <ReasonDialog
- title={t(asking ? 'admin.bills.tax.confirmOn' : 'admin.bills.tax.confirmOff')}
- description={t('admin.bills.tax.confirmText')}
- submit={t(asking ? 'admin.bills.tax.confirmOn' : 'admin.bills.tax.confirmOff')}
- run={async reason => {
- const automaticTax = asking === query.data?.defaults.automaticTax ? null : asking
- const next = (await runAdmin('billingRules.set', {
- rules: { automaticTax },
- reason,
- })) as unknown as BillingRulesData
- setQueryData<BillingRulesData | undefined>(RULES, next, KEPT)
- await refreshQuery(SUMMARY)
- return t('admin.bills.tax.saved')
- }}
- notify={notify}
- onClose={() => setAsking(null)}
- >
- {/* The switch reaches running subscriptions: what that means, before the admin confirms (review #1105, M-1). */}
- {taxChange(asking, taxAddress.error ? null : taxAddress.data, t)}
- </ReasonDialog>
+ {on && !!missing && (
+ <div className="adm-line-notes">
+ <Note tone="warning">{t('admin.bills.rules.automaticTax.missing', { count: missing })}</Note>
+ </div>
)}
</section>
)
@@ -810,16 +830,25 @@ function TaxLine({ notify }: { notify: Notify }) {
// ---- Self-serve sign-up ----
+/** Turns self-serve sign-up on or off and answers the toast. No reason: every server admin is still emailed. */
+export async function setSelfServe(on: boolean) {
+ const t = i18n().t
+ const saved = (await runAdmin('signup.setSelfServe', { on })) as unknown as SelfServeData
+ setQueryData<SelfServeData | undefined>(SELF_SERVE, saved, KEPT)
+ await refreshQuery(SUMMARY)
+ return t(saved.on ? 'admin.bills.selfServe.turnedOn' : 'admin.bills.selfServe.turnedOff')
+}
+
/**
* Self-serve sign-up as a line of its own on Sign-up & access: the switch and whether sign-up is really open. Switched
* on is not open while something it needs is missing (billing through Stripe, the Turnstile keys while the bot check is
- * on, the terms), and the line says so plainly under it. Turning it on or off still asks why: every server admin is
- * emailed with the reason (billing-admin's money check).
+ * on, the terms), and the line says so plainly under it. The switch acts at once with Undo; every server admin is
+ * emailed, and turning it on needs the passkey (billing-admin's money check).
*/
export function SelfServeCard({ notify }: { notify: Notify }) {
const t = useT()
const query = useQuery(SELF_SERVE, loadSelfServe, KEPT)
- const [asking, setAsking] = useState<boolean | null>(null)
+ const { pending, change } = useInstantSwitch(setSelfServe, notify)
const data = query.data
const link = { link: appLink('#admin/billing') }
// Switched on but closed (a key or the terms missing) needs the admin: a red badge next to the switch, the reason
@@ -848,11 +877,13 @@ export function SelfServeCard({ notify }: { notify: Notify }) {
>
{closedWhileOn && <Badge tone="danger">{t('admin.bills.selfServe.state.closed')}</Badge>}
<Switch
- on={data?.on ?? false}
- onChange={setAsking}
+ on={pending ?? data?.on ?? false}
+ onChange={change}
label={t('admin.bills.selfServe.switch')}
// Off always works; on needs billing through Stripe in effect and the terms set (A9).
- disabled={!data || (!data.on && (!data.billingInEffect || data.termsMissing.length > 0))}
+ disabled={
+ !data || pending !== null || (!data.on && (!data.billingInEffect || data.termsMissing.length > 0))
+ }
/>
</Loading>
}
@@ -878,21 +909,6 @@ export function SelfServeCard({ notify }: { notify: Notify }) {
)}
</div>
)}
- {asking !== null && (
- <ReasonDialog
- title={t(asking ? 'admin.bills.selfServe.onTitle' : 'admin.bills.selfServe.offTitle')}
- description={t(asking ? 'admin.bills.selfServe.onText' : 'admin.bills.selfServe.offText')}
- submit={t(asking ? 'admin.bills.selfServe.on' : 'admin.bills.selfServe.off')}
- run={async reason => {
- const saved = (await runAdmin('signup.setSelfServe', { on: asking, reason })) as unknown as SelfServeData
- setQueryData<SelfServeData | undefined>(SELF_SERVE, saved, KEPT)
- await refreshQuery(SUMMARY)
- return t(saved.on ? 'admin.bills.selfServe.turnedOn' : 'admin.bills.selfServe.turnedOff')
- }}
- notify={notify}
- onClose={() => setAsking(null)}
- />
- )}
</section>
)
}
@@ -1406,21 +1422,6 @@ function RulesCard({ notify }: { notify: Notify }) {
)
}
-/**
- * The confirm dialog's note when the Stripe Tax switch turns `on` (true) or off. `missing`: the count of paying
- * customers without a billing address (undefined while it is asked for, null when it is not known).
- */
-export function taxChange(on: boolean, missing: number | null | undefined, t: ReturnType<typeof useT>) {
- if (!on) return <Note>{t('admin.bills.rules.automaticTax.offConfirm')}</Note>
- return (
- <Note>
- {t('admin.bills.rules.automaticTax.onConfirm')}
- {missing === undefined && <> {t('admin.bills.rules.automaticTax.onConfirmCounting')}</>}
- {typeof missing === 'number' && <> {t('admin.bills.rules.automaticTax.onConfirmMissing', { count: missing })}</>}
- </Note>
- )
-}
-
// ---- One bill ----
type Open =
diff --git a/apps/web/src/admin/api.ts b/apps/web/src/admin/api.ts
index 51837f26..bd9d2749 100644
--- a/apps/web/src/admin/api.ts
+++ b/apps/web/src/admin/api.ts
@@ -399,8 +399,9 @@ export type AdminInputs = {
'billing.moveWorkspace': { workspaceId: string; toBillingAccountId: string; reason: string; requestId: string }
'billing.transferOwner': { billingAccountId: string; userId: string; reason: string }
'billing.reviewHold': { billingAccountId: string; decision: 'approve' | 'deny'; reason: string }
- 'billingRules.set': { rules: Record<string, unknown>; reason: string }
- 'signup.setSelfServe': { on: boolean; reason: string }
+ // The Stripe Tax switch alone needs no reason (`{ rules: { automaticTax } }`); every other change of the rules does.
+ 'billingRules.set': { rules: { automaticTax: boolean } } | { rules: Record<string, unknown>; reason: string }
+ 'signup.setSelfServe': { on: boolean }
'signup.setRules': { rules: Record<string, unknown>; reason: string }
// Server admin › Partners (Partners.tsx, docs/white-label.md).
'partner.adminList': Record<string, never>
diff --git a/packages/actions/src/billing-admin.ts b/packages/actions/src/billing-admin.ts
index fc6b5349..75293290 100644
--- a/packages/actions/src/billing-admin.ts
+++ b/packages/actions/src/billing-admin.ts
@@ -1,7 +1,8 @@
// Server admin › Billing: the bills of this install, their ledger and payments, the
// Stripe event inbox, the review holds, the install's billing rules and whether anyone may sign up. Instance admins
// only. Every write that moves money or changes what a bill may spend also needs the admin signed in as themselves
-// with their passkey (no setup link, API key, personal key or impersonation), carries a reason for the audit log, and the ones that
+// with their passkey (no setup link, API key, personal key or impersonation), carries a reason for the audit log (not the
+// self-serve and Stripe Tax switches, which act at once with Undo), and the ones that
// ask Stripe carry a request id, the idempotency key of every Stripe request it makes.
import type { BillingRules, SignupRules } from '@linedesk/db/types'
import type { BillingEnabledData } from './billing.ts'
@@ -204,16 +205,30 @@ export const billingReviewHold = defineAction({
export const billingRulesSet = defineAction({
name: 'billingRules.set',
description:
- "Set the install's billing rules. Every field is checked; anything out of range refuses the whole change. Merged over the stored rules: a field left out keeps its value, a field set to null goes back to its default (a level too, inside levels). Plan prices have a floor (the server's BILLING_MIN_PLAN_CENTS, else the included minutes at the Standard price; yearly 12 times it) and a yearly price is at most 12 monthly ones. Every instance admin is emailed.",
- input: z.object({ rules: z.record(z.string(), z.unknown()), reason }),
+ "Set the install's billing rules. Every field is checked; anything out of range refuses the whole change. Merged over the stored rules: a field left out keeps its value, a field set to null goes back to its default (a level too, inside levels). Plan prices have a floor (the server's BILLING_MIN_PLAN_CENTS, else the included minutes at the Standard price; yearly 12 times it) and a yearly price is at most 12 monthly ones. A reason is required, except for a change of only `automaticTax` (the Stripe Tax switch). Every instance admin is emailed.",
+ input: z
+ .object({ rules: z.record(z.string(), z.unknown()), reason: reason.optional() })
+ .refine(i => i.reason !== undefined || onlyAutomaticTax(i.rules), {
+ message: msg('server.input.billing.reason'),
+ path: ['reason'],
+ }),
permission: 'instance:admin',
})
+/**
+ * The Stripe Tax switch is a billing rule of its own: a change of only it needs no reason (Janik, 2026-11-26). It is
+ * still audited, emailed to every instance admin and needs the passkey, like every billing rule.
+ */
+export const onlyAutomaticTax = (rules: Record<string, unknown>) => {
+ const keys = Object.keys(rules)
+ return keys.length === 1 && keys[0] === 'automaticTax'
+}
+
export const signupSetSelfServe = defineAction({
name: 'signup.setSelfServe',
description:
- 'Let anyone sign up and start a trial on their own (off by default). Works only while billing through Stripe is in effect.',
- input: z.object({ on: z.boolean(), reason }),
+ 'Let anyone sign up and start a trial on their own (off by default). Works only while billing through Stripe is in effect. Every instance admin is emailed.',
+ input: z.object({ on: z.boolean() }),
permission: 'instance:admin',
})
@@ -383,8 +398,8 @@ export type BillingRulesData = {
}
/**
- * billing.adminTaxAddressMissing: how many paying customers have no address Stripe can tax, shown before the admin
- * turns Stripe Tax on (their recharges are then charged without tax until they add one). Null: not known (billing off,
+ * billing.adminTaxAddressMissing: how many paying customers have no address Stripe can tax, shown right after the
+ * admin turns Stripe Tax on (their recharges are then charged without tax until they add one). Null: not known (billing off,
* Stripe not answering).
*/
export type TaxAddressMissingData = { taxAddressMissing: number | null }
diff --git a/packages/i18n/locales/de/admin.json b/packages/i18n/locales/de/admin.json
index bd39c6bc..8d93cc0d 100644
--- a/packages/i18n/locales/de/admin.json
+++ b/packages/i18n/locales/de/admin.json
@@ -584,10 +584,6 @@
"bills.risk.unknown": "Unbekannt",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "Stripe berechnet Umsatzsteuer bei jedem Checkout, jedem Abonnement und jeder Rechnung, schlägt sie auf die Preise auf und fragt beim Checkout nach Rechnungsadresse und Steuernummer. Dafür muss Stripe Tax in deinem Stripe-Konto eingerichtet sein (Adresse des Hauptsitzes und Registrierungen); der Anbietertest prüft das. Schalte es aus, wenn du Stripe Tax nicht nutzt. Das Guthaben erhält immer den Betrag vor Steuern.",
- "bills.rules.automaticTax.offConfirm": "Laufende Abonnements erheben ab ihrer nächsten Rechnung keine Steuer mehr, und Aufladungen werden ohne Steuer abgebucht.",
- "bills.rules.automaticTax.onConfirm": "Laufende Abonnements werden ab ihrer nächsten Rechnung besteuert.",
- "bills.rules.automaticTax.onConfirmCounting": "Zahlende Kunden ohne Rechnungsadresse werden gezählt…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {Jeder zahlende Kunde hat eine Rechnungsadresse.} one {# zahlender Kunde hat keine Rechnungsadresse: Seine Aufladungen und sein Tarif werden ohne Steuer abgebucht, bis er eine hinzufügt.} other {# zahlende Kunden haben keine Rechnungsadresse: Ihre Aufladungen und Tarife werden ohne Steuer abgebucht, bis sie eine hinzufügen.}}",
"bills.rules.automaticTax.short": "Schlägt Sales Tax und Mehrwertsteuer auf die Preise auf, im Checkout und auf jeder Rechnung.",
"bills.rules.confirmText": "Neue Tarifpreise und die Länge der Testphase gelten für neue Checkouts; laufende Abonnements behalten den Preis, mit dem sie begonnen haben. Anrufpreise und Limits gelten ab jetzt für Anrufe. Jeder Server-Admin bekommt eine E-Mail.",
"bills.rules.confirmTitle": "Abrechnungsregeln ändern",
@@ -636,12 +632,6 @@
"bills.search": "Abrechnungen suchen",
"bills.selfServe.closed.billing": "Die Registrierung ist eingeschaltet, aber geschlossen: Die Abrechnung über Stripe ist nicht aktiv. Schalte sie unter <link>Abrechnung › Stripe</link> ein.",
"bills.selfServe.closed.botCheck": "Die Registrierung ist eingeschaltet, aber geschlossen: Die Bot-Prüfung (Cloudflare Turnstile) hat keine Schlüssel. Niemand kann sich registrieren, bis du sie unter <link>Anbieter › Bot-Prüfung</link> hinzufügst.",
- "bills.selfServe.off": "Ausschalten",
- "bills.selfServe.offText": "Neue Registrierungen enden; wer schon registriert ist, behält seine Workspaces. Jeder Server-Admin bekommt eine E-Mail.",
- "bills.selfServe.offTitle": "Selbstregistrierung ausschalten",
- "bills.selfServe.on": "Einschalten",
- "bills.selfServe.onText": "Dann kann sich jeder registrieren und mit einer Karte eine Testphase starten. Jeder Server-Admin bekommt eine E-Mail.",
- "bills.selfServe.onTitle": "Selbstregistrierung einschalten",
"bills.selfServe.openNow": "Jeder kann sich jetzt registrieren und eine Testphase starten.",
"bills.selfServe.state.closed": "Geschlossen",
"bills.selfServe.switch": "Selbstregistrierung",
@@ -722,10 +712,6 @@
"bills.tab.overview": "Übersicht",
"bills.tab.review": "Prüfung",
"bills.tab.rules": "Preise und Regeln",
- "bills.tax.confirmOff": "Stripe Tax ausschalten",
- "bills.tax.confirmOn": "Stripe Tax einschalten",
- "bills.tax.confirmText": "Jeder Server-Admin bekommt eine E-Mail.",
- "bills.tax.saved": "Stripe Tax gespeichert",
"bills.unit.calls": "Anrufe",
"bills.unit.days": "Tage",
"bills.unit.minutes": "Min.",
diff --git a/packages/i18n/locales/de/email.json b/packages/i18n/locales/de/email.json
index 51916127..21fe148e 100644
--- a/packages/i18n/locales/de/email.json
+++ b/packages/i18n/locales/de/email.json
@@ -151,7 +151,6 @@
"adminAlert.seatsSync.subject": "Partner-Plätze auf {brand} konnten in Stripe nicht aktualisiert werden",
"adminAlert.seatsSync.text": "Ein Kunden-Workspace ist der Partner-Abrechnung {bill} beigetreten oder hat sie verlassen, aber Stripe konnte auch nach mehreren Versuchen nicht aktualisiert werden. Stripe berechnet jetzt eine andere Zahl von Plätzen, als die Abrechnung hat.",
"adminAlert.selfServe.subject": "Selbstregistrierung wurde {on, select, yes {eingeschaltet} other {ausgeschaltet}}",
- "adminAlert.selfServe.text": "{actor} hat die Selbstregistrierung {on, select, yes {eingeschaltet: Jeder kann sich registrieren und mit einer Karte eine Testphase starten} other {ausgeschaltet: Nur Server-Admins erstellen Workspaces}} (Server-Admin › Registrierung & Zugang). Angegebener Grund: {reason}",
"adminAlert.settings.agentEnds": "Dieser Admin beendet den Link mit „Zugriff beenden“ auf der Einrichtungsseite; das Deaktivieren des Admins beendet ihn ebenfalls.",
"adminAlert.settings.moneyText": "{actor} hat {change, select, changed {die Einstellungen von {provider} geändert} removed {die Einstellungen von {provider} entfernt} other {die Einstellungen von {provider} geändert}} (Server-Admin › Abrechnung). Diese Einstellungen steuern die Abrechnung: Zahlungen, Erstattungen und Kunden.",
"adminAlert.settings.moneyTextAgent": "{actor} hat über den Einrichtungslink für KI-Agenten {prefix}…{hasMade, select, yes { (erstellt {made})} other {}} {change, select, changed {die Einstellungen von {provider} geändert} removed {die Einstellungen von {provider} entfernt} other {die Einstellungen von {provider} geändert}}. Diese Einstellungen steuern die Abrechnung: Zahlungen, Erstattungen und Kunden.",
diff --git a/packages/i18n/locales/en/admin.json b/packages/i18n/locales/en/admin.json
index eca26453..2e9f3a21 100644
--- a/packages/i18n/locales/en/admin.json
+++ b/packages/i18n/locales/en/admin.json
@@ -337,6 +337,7 @@
"audit.sipOutboundSet": "Changed how calls are put through from the workspace's own phone system",
"audit.spendingCapRemoved": "Removed the spending cap",
"audit.spendingCapSet": "Set the spending cap to {amount}",
+ "audit.stripeTaxSet": "{on, select, yes {Turned Stripe Tax on} other {Turned Stripe Tax off}}",
"audit.systemPromptReset": "Reset the system prompt part {part} to the default",
"audit.systemPromptSet": "Changed the system prompt part {part}",
"audit.teamInvite": "{known, select, yes {Invited {email}} other {Invited someone}}",
@@ -597,10 +598,7 @@
"bills.risk.unknown": "Unknown",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "Stripe computes sales tax and VAT on every Checkout, subscription and invoice, adds it on top of the prices, and asks for the billing address and tax ID at Checkout. It needs Stripe Tax set up in your Stripe account (head office address and registrations); the provider test checks it. Turn it off if you do not use Stripe Tax. The balance always gets the amount before tax.",
- "bills.rules.automaticTax.offConfirm": "Running subscriptions stop collecting tax from their next invoice, and recharges are charged without tax.",
- "bills.rules.automaticTax.onConfirm": "Running subscriptions are taxed from their next invoice.",
- "bills.rules.automaticTax.onConfirmCounting": "Counting paying customers without a billing address…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {Every paying customer has a billing address.} one {# paying customer has no billing address: their recharges and plan are charged without tax until they add one.} other {# paying customers have no billing address: their recharges and plans are charged without tax until they add one.}}",
+ "bills.rules.automaticTax.missing": "{count, plural, one {# paying customer has no billing address: their recharges and plan are charged without tax until they add one.} other {# paying customers have no billing address: their recharges and plans are charged without tax until they add one.}}",
"bills.rules.automaticTax.short": "Adds sales tax and VAT on top of the prices, at Checkout and on every invoice.",
"bills.rules.confirmText": "New plan prices and trial length apply to new Checkouts; running subscriptions keep the price they started on. Call prices and limits apply to calls from now on. Every server admin is emailed.",
"bills.rules.confirmTitle": "Change the billing rules",
@@ -658,12 +656,6 @@
"bills.selfServe.closed.billing": "Sign-up is switched on but closed: billing through Stripe is not in effect. Turn it on in <link>Billing</link>.",
"bills.selfServe.closed.botCheck": "Sign-up is switched on but closed: the bot check (Cloudflare Turnstile) has no keys. Nobody can sign up until you add them under <link>Providers › Bot check</link>.",
"bills.selfServe.needsBillingLink": "Turn on billing in <link>Billing</link> first.",
- "bills.selfServe.off": "Turn off",
- "bills.selfServe.offText": "New sign-ups stop; people already signed up keep their workspaces. Every server admin is emailed.",
- "bills.selfServe.offTitle": "Turn off self-serve sign-up",
- "bills.selfServe.on": "Turn on",
- "bills.selfServe.onText": "Anyone can then sign up and start a trial with a card. Every server admin is emailed.",
- "bills.selfServe.onTitle": "Turn on self-serve sign-up",
"bills.selfServe.openNow": "Anyone can sign up and start a trial now.",
"bills.selfServe.state.closed": "Closed",
"bills.selfServe.switch": "Self-serve sign-up",
@@ -744,10 +736,8 @@
"bills.tab.overview": "Overview",
"bills.tab.review": "Review",
"bills.tab.rules": "Prices and rules",
- "bills.tax.confirmOff": "Turn Stripe Tax off",
- "bills.tax.confirmOn": "Turn Stripe Tax on",
- "bills.tax.confirmText": "Every server admin is emailed.",
- "bills.tax.saved": "Stripe Tax saved",
+ "bills.tax.turnedOff": "Stripe Tax is off: running subscriptions stop collecting tax from their next invoice",
+ "bills.tax.turnedOn": "Stripe Tax is on: running subscriptions are taxed from their next invoice",
"bills.unit.calls": "calls",
"bills.unit.days": "days",
"bills.unit.minutes": "min",
diff --git a/packages/i18n/locales/en/email.json b/packages/i18n/locales/en/email.json
index 13514643..fe8d60e7 100644
--- a/packages/i18n/locales/en/email.json
+++ b/packages/i18n/locales/en/email.json
@@ -41,6 +41,7 @@
"adminAlert.billingRules.reset": "every rule is back to its default",
"adminAlert.billingRules.subject": "The billing rules were changed",
"adminAlert.billingRules.text": "{actor} changed this install's billing rules (Server admin › Billing): {fields}. Reason given: {reason}",
+ "adminAlert.billingRules.textNoReason": "{actor} changed this install's billing rules (Server admin › Billing): {fields}.",
"adminAlert.billingSwitch.subject": "Billing was turned {on, select, yes {on} other {off}}",
"adminAlert.billingSwitch.text": "{actor} turned billing {on, select, yes {on, with the Stripe account {account} in {mode} mode: businesses on this install are charged} other {off: nothing is charged and no card is used}} (Server admin › Billing).",
"adminAlert.billingUnusable.fix": "Run the migrations again, or fix the keys in Server admin › Providers › Stripe. You get this email once; billing comes back on its own once it works.",
@@ -151,7 +152,7 @@
"adminAlert.seatsSync.subject": "Partner seats on {brand} could not be updated in Stripe",
"adminAlert.seatsSync.text": "A client workspace joined or left partner bill {bill}, but Stripe could not be updated after several tries. Stripe now charges for a different number of seats than the bill has.",
"adminAlert.selfServe.subject": "Self-serve sign-up was turned {on, select, yes {on} other {off}}",
- "adminAlert.selfServe.text": "{actor} turned self-serve sign-up {on, select, yes {on: anyone can sign up and start a trial with a card} other {off: only server admins create workspaces}} (Server admin › Sign-up & access). Reason given: {reason}",
+ "adminAlert.selfServe.text": "{actor} turned self-serve sign-up {on, select, yes {on: anyone can sign up and start a trial with a card} other {off: only server admins create workspaces}} (Server admin › Sign-up & access).",
"adminAlert.settings.agentEnds": "That admin ends the link with End access on the setup page; disabling the admin ends it too.",
"adminAlert.settings.moneyText": "{actor} {change, select, changed {changed the {provider} settings} removed {removed the {provider} settings} other {changed the {provider} settings}} (Server admin › Billing). They control billing: charges, refunds and customers.",
"adminAlert.settings.moneyTextAgent": "{actor} {change, select, changed {changed the {provider} settings} removed {removed the {provider} settings} other {changed the {provider} settings}} through the AI agent setup link {prefix}…{hasMade, select, yes {, made {made}} other {}}. They control billing: charges, refunds and customers.",
diff --git a/packages/i18n/locales/en/server.json b/packages/i18n/locales/en/server.json
index 518839f4..6663d855 100644
--- a/packages/i18n/locales/en/server.json
+++ b/packages/i18n/locales/en/server.json
@@ -384,6 +384,7 @@
"input.billing.amountNotZero": "an amount other than 0",
"input.billing.creditAdds": "a credit or write-off adds to the balance",
"input.billing.onlyAdjustmentCorrects": "only an adjustment corrects an entry",
+ "input.billing.reason": "a reason (3 to 500 characters)",
"input.billing.rechargeIsCredit": "a recharge attempt is credited with kind credit",
"input.billing.requestId": "a request id (8 to 64 letters, digits, - or _)",
"input.billing.stripeCustomerId": "a Stripe customer id (cus_…)",
diff --git a/packages/i18n/locales/es/admin.json b/packages/i18n/locales/es/admin.json
index 15a99cbd..9ce4e024 100644
--- a/packages/i18n/locales/es/admin.json
+++ b/packages/i18n/locales/es/admin.json
@@ -584,10 +584,6 @@
"bills.risk.unknown": "Desconocido",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "Stripe calcula el impuesto sobre las ventas y el IVA en cada Checkout, suscripción y factura, lo suma a los precios y pide la dirección de facturación y el número de identificación fiscal en el Checkout. Requiere Stripe Tax configurado en tu cuenta de Stripe (dirección de la sede y registros); la prueba del proveedor lo comprueba. Desactívalo si no usas Stripe Tax. El saldo siempre recibe el importe antes de impuestos.",
- "bills.rules.automaticTax.offConfirm": "Las suscripciones en curso dejan de cobrar impuestos desde su próxima factura, y las recargas se cobran sin impuestos.",
- "bills.rules.automaticTax.onConfirm": "Las suscripciones en curso pagan impuestos desde su próxima factura.",
- "bills.rules.automaticTax.onConfirmCounting": "Contando los clientes que pagan sin dirección de facturación…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {Todos los clientes que pagan tienen dirección de facturación.} one {# cliente que paga no tiene dirección de facturación: sus recargas y su plan se cobran sin impuestos hasta que agregue una.} many {# clientes que pagan no tienen dirección de facturación: sus recargas y planes se cobran sin impuestos hasta que agreguen una.} other {# clientes que pagan no tienen dirección de facturación: sus recargas y planes se cobran sin impuestos hasta que agreguen una.}}",
"bills.rules.automaticTax.short": "Agrega el impuesto sobre las ventas y el IVA a los precios, en el Checkout y en cada factura.",
"bills.rules.confirmText": "Los nuevos precios del plan y la duración de la prueba se aplican a los nuevos Checkouts; las suscripciones en curso mantienen el precio con el que empezaron. Los precios de las llamadas y los límites se aplican a las llamadas a partir de ahora. Se envía un correo a cada administrador del servidor.",
"bills.rules.confirmTitle": "Cambiar las reglas de facturación",
@@ -636,12 +632,6 @@
"bills.search": "Buscar facturas",
"bills.selfServe.closed.billing": "El registro está activado pero cerrado: la facturación con Stripe no está en vigor. Actívala en <link>Facturación › Stripe</link>.",
"bills.selfServe.closed.botCheck": "El registro está activado pero cerrado: la verificación anti-bots (Cloudflare Turnstile) no tiene claves. Nadie puede registrarse hasta que las agregues en <link>Proveedores › Verificación anti-bots</link>.",
- "bills.selfServe.off": "Desactivar",
- "bills.selfServe.offText": "Se detienen los registros nuevos; quienes ya se registraron conservan sus espacios de trabajo. Se envía un correo a cada administrador del servidor.",
- "bills.selfServe.offTitle": "Desactivar el registro autónomo",
- "bills.selfServe.on": "Activar",
- "bills.selfServe.onText": "Entonces cualquiera puede registrarse e iniciar una prueba con una tarjeta. Se envía un correo a cada administrador del servidor.",
- "bills.selfServe.onTitle": "Activar el registro autónomo",
"bills.selfServe.openNow": "Cualquiera puede registrarse e iniciar una prueba ahora.",
"bills.selfServe.state.closed": "Cerrado",
"bills.selfServe.switch": "Registro autónomo",
@@ -722,10 +712,6 @@
"bills.tab.overview": "Resumen",
"bills.tab.review": "Revisión",
"bills.tab.rules": "Precios y reglas",
- "bills.tax.confirmOff": "Desactivar Stripe Tax",
- "bills.tax.confirmOn": "Activar Stripe Tax",
- "bills.tax.confirmText": "Se envía un correo a cada administrador del servidor.",
- "bills.tax.saved": "Stripe Tax guardado",
"bills.unit.calls": "llamadas",
"bills.unit.days": "días",
"bills.unit.minutes": "min",
diff --git a/packages/i18n/locales/es/email.json b/packages/i18n/locales/es/email.json
index 7f381ee3..5f424bcb 100644
--- a/packages/i18n/locales/es/email.json
+++ b/packages/i18n/locales/es/email.json
@@ -151,7 +151,6 @@
"adminAlert.seatsSync.subject": "No se pudieron actualizar en Stripe los puestos de partner de {brand}",
"adminAlert.seatsSync.text": "Un espacio de trabajo de cliente entró o salió de la factura de partner {bill}, pero no se pudo actualizar Stripe tras varios intentos. Ahora Stripe cobra un número de puestos distinto del que tiene la factura.",
"adminAlert.selfServe.subject": "Se {on, select, yes {activó} other {desactivó}} el registro por cuenta propia",
- "adminAlert.selfServe.text": "{actor} {on, select, yes {activó el registro por cuenta propia: cualquiera puede registrarse y empezar una prueba con una tarjeta} other {desactivó el registro por cuenta propia: solo los administradores del servidor crean espacios de trabajo}} (Administración del servidor › Registro y acceso). Motivo indicado: {reason}",
"adminAlert.settings.agentEnds": "Ese administrador termina el enlace con Terminar el acceso en la página de configuración; desactivar al administrador también lo termina.",
"adminAlert.settings.moneyText": "{actor} {change, select, changed {cambió la configuración de {provider}} removed {quitó la configuración de {provider}} other {cambió la configuración de {provider}}} (Administración del servidor › Facturación). Esta configuración controla la facturación: cobros, reembolsos y clientes.",
"adminAlert.settings.moneyTextAgent": "{actor} {change, select, changed {cambió la configuración de {provider}} removed {quitó la configuración de {provider}} other {cambió la configuración de {provider}}} mediante el enlace de configuración para agentes de IA {prefix}…{hasMade, select, yes {, creado el {made}} other {}}. Esta configuración controla la facturación: cobros, reembolsos y clientes.",
diff --git a/packages/i18n/locales/fr/admin.json b/packages/i18n/locales/fr/admin.json
index e79023c5..d066d449 100644
--- a/packages/i18n/locales/fr/admin.json
+++ b/packages/i18n/locales/fr/admin.json
@@ -584,10 +584,6 @@
"bills.risk.unknown": "Inconnu",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "Stripe calcule la taxe sur les ventes et la TVA à chaque Checkout, abonnement et facture, l'ajoute aux prix et demande l'adresse de facturation et le numéro fiscal au Checkout. Il faut que Stripe Tax soit configuré dans votre compte Stripe (adresse du siège et immatriculations) ; le test du fournisseur le vérifie. Désactivez-le si vous n'utilisez pas Stripe Tax. Le solde reçoit toujours le montant hors taxes.",
- "bills.rules.automaticTax.offConfirm": "Les abonnements en cours ne collectent plus de taxe à partir de leur prochaine facture, et les recharges sont débitées sans taxe.",
- "bills.rules.automaticTax.onConfirm": "Les abonnements en cours sont taxés à partir de leur prochaine facture.",
- "bills.rules.automaticTax.onConfirmCounting": "Décompte des clients payants sans adresse de facturation…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {Tous les clients payants ont une adresse de facturation.} one {# client payant n'a pas d'adresse de facturation : ses recharges et son forfait sont débités sans taxe jusqu'à ce qu'il en ajoute une.} many {# clients payants n'ont pas d'adresse de facturation : leurs recharges et forfaits sont débités sans taxe jusqu'à ce qu'ils en ajoutent une.} other {# clients payants n'ont pas d'adresse de facturation : leurs recharges et forfaits sont débités sans taxe jusqu'à ce qu'ils en ajoutent une.}}",
"bills.rules.automaticTax.short": "Ajoute la taxe de vente et la TVA aux prix, au Checkout et sur chaque facture.",
"bills.rules.confirmText": "Les nouveaux prix des forfaits et la durée de l'essai s'appliquent aux nouveaux Checkouts ; les abonnements en cours gardent le prix de départ. Les prix des appels et les limites s'appliquent aux appels à partir de maintenant. Chaque administrateur du serveur reçoit un e-mail.",
"bills.rules.confirmTitle": "Modifier les règles de facturation",
@@ -636,12 +632,6 @@
"bills.search": "Rechercher des factures",
"bills.selfServe.closed.billing": "L'inscription est activée mais fermée : la facturation via Stripe n'est pas en vigueur. Activez-la dans <link>Facturation › Stripe</link>.",
"bills.selfServe.closed.botCheck": "L'inscription est activée mais fermée : la vérification anti-robot (Cloudflare Turnstile) n'a pas de clés. Personne ne peut s'inscrire tant que vous ne les avez pas ajoutées dans <link>Fournisseurs › Vérification anti-robot</link>.",
- "bills.selfServe.off": "Désactiver",
- "bills.selfServe.offText": "Les nouvelles inscriptions s'arrêtent ; les personnes déjà inscrites gardent leurs espaces de travail. Chaque administrateur du serveur reçoit un e-mail.",
- "bills.selfServe.offTitle": "Désactiver l'inscription libre",
- "bills.selfServe.on": "Activer",
- "bills.selfServe.onText": "Tout le monde peut alors s'inscrire et démarrer un essai avec une carte. Chaque administrateur du serveur reçoit un e-mail.",
- "bills.selfServe.onTitle": "Activer l'inscription libre",
"bills.selfServe.openNow": "Tout le monde peut maintenant s'inscrire et démarrer un essai.",
"bills.selfServe.state.closed": "Fermé",
"bills.selfServe.switch": "Inscription libre",
@@ -722,10 +712,6 @@
"bills.tab.overview": "Vue d'ensemble",
"bills.tab.review": "Vérification",
"bills.tab.rules": "Prix et règles",
- "bills.tax.confirmOff": "Désactiver Stripe Tax",
- "bills.tax.confirmOn": "Activer Stripe Tax",
- "bills.tax.confirmText": "Chaque administrateur du serveur reçoit un e-mail.",
- "bills.tax.saved": "Stripe Tax enregistré",
"bills.unit.calls": "appels",
"bills.unit.days": "jours",
"bills.unit.minutes": "min",
diff --git a/packages/i18n/locales/fr/email.json b/packages/i18n/locales/fr/email.json
index 98df29df..5ecbf835 100644
--- a/packages/i18n/locales/fr/email.json
+++ b/packages/i18n/locales/fr/email.json
@@ -151,7 +151,6 @@
"adminAlert.seatsSync.subject": "Les sièges partenaires sur {brand} n'ont pas pu être mis à jour dans Stripe",
"adminAlert.seatsSync.text": "Un espace de travail client a rejoint ou quitté la facture partenaire {bill}, mais Stripe n'a pas pu être mis à jour après plusieurs tentatives. Stripe facture maintenant un autre nombre de sièges que celui de la facture.",
"adminAlert.selfServe.subject": "L'inscription en libre-service a été {on, select, yes {activée} other {désactivée}}",
- "adminAlert.selfServe.text": "{actor} a {on, select, yes {activé l'inscription en libre-service : tout le monde peut s'inscrire et commencer un essai avec une carte} other {désactivé l'inscription en libre-service : seuls les administrateurs du serveur créent des espaces de travail}} (Administration du serveur › Inscription et accès). Motif indiqué : {reason}",
"adminAlert.settings.agentEnds": "Cet administrateur met fin au lien avec Mettre fin à l'accès sur la page de configuration ; désactiver l'administrateur y met fin aussi.",
"adminAlert.settings.moneyText": "{actor} {change, select, changed {a modifié les réglages {provider}} removed {a supprimé les réglages {provider}} other {a modifié les réglages {provider}}} (Administration du serveur › Facturation). Ces réglages contrôlent la facturation : paiements, remboursements et clients.",
"adminAlert.settings.moneyTextAgent": "{actor} {change, select, changed {a modifié les réglages {provider}} removed {a supprimé les réglages {provider}} other {a modifié les réglages {provider}}} via le lien de configuration pour agent IA {prefix}…{hasMade, select, yes {, créé le {made}} other {}}. Ces réglages contrôlent la facturation : paiements, remboursements et clients.",
diff --git a/packages/i18n/locales/ja/admin.json b/packages/i18n/locales/ja/admin.json
index 6453736a..2fe68ad1 100644
--- a/packages/i18n/locales/ja/admin.json
+++ b/packages/i18n/locales/ja/admin.json
@@ -584,10 +584,6 @@
"bills.risk.unknown": "不明",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "Stripeが毎回のCheckout、サブスクリプション、請求書で売上税と付加価値税を計算して価格に上乗せし、Checkoutで請求先住所と税番号を尋ねます。StripeアカウントでStripe Taxの設定(本社住所と税務登録)が必要で、プロバイダーのテストで確認できます。Stripe Taxを使わない場合はオフにしてください。残高には常に税抜きの金額が入ります。",
- "bills.rules.automaticTax.offConfirm": "現在のサブスクリプションは次回の請求書から税金を徴収しなくなり、チャージは税抜きで請求されます。",
- "bills.rules.automaticTax.onConfirm": "現在のサブスクリプションは次回の請求書から課税されます。",
- "bills.rules.automaticTax.onConfirmCounting": "請求先住所のない有料顧客を数えています…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {すべての有料顧客に請求先住所があります。} other {#人の有料顧客に請求先住所がありません。住所が追加されるまで、チャージとプランは税抜きで請求されます。}}",
"bills.rules.automaticTax.short": "Checkoutとすべての請求書で、料金に売上税と付加価値税(VAT)を上乗せします。",
"bills.rules.confirmText": "新しいプラン料金とトライアル期間は新しいCheckoutに適用され、現在のサブスクリプションは開始時の料金のままです。通話料金と上限は今後の通話に適用されます。すべてのサーバー管理者にメールが届きます。",
"bills.rules.confirmTitle": "請求ルールを変更",
@@ -636,12 +632,6 @@
"bills.search": "請求を検索",
"bills.selfServe.closed.billing": "登録はオンですが、受け付けていません。Stripeによる請求が有効になっていません。<link>請求 › Stripe</link>でオンにしてください。",
"bills.selfServe.closed.botCheck": "登録はオンですが、受け付けていません。ボットチェック(Cloudflare Turnstile)にキーがありません。<link>プロバイダー › ボットチェック</link>でキーを追加するまで、誰も登録できません。",
- "bills.selfServe.off": "オフにする",
- "bills.selfServe.offText": "新規登録は停止します。登録済みのユーザーはワークスペースをそのまま使えます。すべてのサーバー管理者にメールが届きます。",
- "bills.selfServe.offTitle": "セルフ登録をオフにする",
- "bills.selfServe.on": "オンにする",
- "bills.selfServe.onText": "誰でもカードを使って登録し、トライアルを開始できるようになります。すべてのサーバー管理者にメールが届きます。",
- "bills.selfServe.onTitle": "セルフ登録をオンにする",
"bills.selfServe.openNow": "現在、誰でも登録してトライアルを開始できます。",
"bills.selfServe.state.closed": "停止中",
"bills.selfServe.switch": "セルフ登録",
@@ -722,10 +712,6 @@
"bills.tab.overview": "概要",
"bills.tab.review": "審査",
"bills.tab.rules": "料金とルール",
- "bills.tax.confirmOff": "Stripe Taxをオフにする",
- "bills.tax.confirmOn": "Stripe Taxをオンにする",
- "bills.tax.confirmText": "すべてのサーバー管理者にメールが届きます。",
- "bills.tax.saved": "Stripe Taxを保存しました",
"bills.unit.calls": "件",
"bills.unit.days": "日",
"bills.unit.minutes": "分",
diff --git a/packages/i18n/locales/ja/email.json b/packages/i18n/locales/ja/email.json
index e22503b5..6cc40d11 100644
--- a/packages/i18n/locales/ja/email.json
+++ b/packages/i18n/locales/ja/email.json
@@ -151,7 +151,6 @@
"adminAlert.seatsSync.subject": "{brand}のパートナーのシート数をStripeで更新できませんでした",
"adminAlert.seatsSync.text": "クライアントのワークスペースがパートナーの請求{bill}に追加または削除されましたが、何度か試してもStripeを更新できませんでした。現在、Stripeは請求とは異なるシート数を請求しています。",
"adminAlert.selfServe.subject": "セルフサービスの登録が{on, select, yes {オン} other {オフ}}になりました",
- "adminAlert.selfServe.text": "{actor}がセルフサービスの登録を{on, select, yes {オンにしました。誰でも登録してカードで試用を開始できます} other {オフにしました。ワークスペースを作成できるのはサーバー管理者だけです}}(サーバー管理 › 登録とアクセス)。理由:{reason}",
"adminAlert.settings.agentEnds": "その管理者は、セットアップページの「アクセスを終了」でリンクを終了できます。管理者を無効にしてもリンクは終了します。",
"adminAlert.settings.moneyText": "{actor}が{change, select, changed {{provider}の設定を変更しました} removed {{provider}の設定を削除しました} other {{provider}の設定を変更しました}}(サーバー管理 › 請求)。これらの設定は請求(支払い、返金、顧客)を管理します。",
"adminAlert.settings.moneyTextAgent": "{actor}が、AIエージェントのセットアップリンク{prefix}…{hasMade, select, yes {(作成日時:{made})} other {}}を通じて{change, select, changed {{provider}の設定を変更しました} removed {{provider}の設定を削除しました} other {{provider}の設定を変更しました}}。これらの設定は請求(支払い、返金、顧客)を管理します。",
diff --git a/packages/i18n/locales/pt-BR/admin.json b/packages/i18n/locales/pt-BR/admin.json
index 67ec7c38..77d7a171 100644
--- a/packages/i18n/locales/pt-BR/admin.json
+++ b/packages/i18n/locales/pt-BR/admin.json
@@ -584,10 +584,6 @@
"bills.risk.unknown": "Desconhecido",
"bills.rules.automaticTax": "Stripe Tax",
"bills.rules.automaticTax.help": "O Stripe calcula o imposto sobre vendas e o IVA em cada Checkout, assinatura e fatura, soma aos preços e pede o endereço de cobrança e o número fiscal no Checkout. É preciso ter o Stripe Tax configurado na sua conta do Stripe (endereço da sede e registros); o teste do provedor verifica isso. Desative se você não usa o Stripe Tax. O saldo sempre recebe o valor antes dos impostos.",
- "bills.rules.automaticTax.offConfirm": "As assinaturas em andamento deixam de cobrar impostos a partir da próxima fatura, e as recargas são cobradas sem impostos.",
- "bills.rules.automaticTax.onConfirm": "As assinaturas em andamento passam a ser tributadas a partir da próxima fatura.",
- "bills.rules.automaticTax.onConfirmCounting": "Contando os clientes pagantes sem endereço de cobrança…",
- "bills.rules.automaticTax.onConfirmMissing": "{count, plural, =0 {Todos os clientes pagantes têm endereço de cobrança.} one {# cliente pagante não tem endereço de cobrança: as recargas e o plano dele são cobrados sem impostos até que ele adicione um.} many {# clientes pagantes não têm endereço de cobrança: as recargas e os planos deles são cobrados sem impostos até que adicionem um.} other {# clientes pagantes não têm endereço de cobrança: as recargas e os planos deles são cobrados sem impostos até que adicionem um.}}",
"bills.rules.automaticTax.short": "Adiciona o imposto sobre vendas e o IVA aos preços, no Checkout e em cada fatura.",
"bills.rules.confirmText": "Os novos preços dos planos e a duração do teste valem para novos Checkouts; as assinaturas em andamento mantêm o preço com que começaram. Os preços das chamadas e os limites valem para as chamadas a partir de agora. Todos os administradores do servidor recebem um e-mail.",
"bills.rules.confirmTitle": "Alterar as regras de cobrança",
@@ -636,12 +632,6 @@
"bills.search": "Buscar faturas",
"bills.selfServe.closed.billing": "O cadastro está ativado, mas fechado: a cobrança pelo Stripe não está em vigor. Ative-a em <link>Cobrança › Stripe</link>.",
"bills.selfServe.closed.botCheck": "O cadastro está ativado, mas fechado: a verificação contra bots (Cloudflare Turnstile) não tem chaves. Ninguém consegue se cadastrar até você adicioná-las em <link>Provedores › Verificação contra bots</link>.",
- "bills.selfServe.off": "Desativar",
- "bills.selfServe.offText": "Novos cadastros param; quem já se cadastrou mantém seus espaços de trabalho. Todos os administradores do servidor recebem um e-mail.",
- "bills.selfServe.offTitle": "Desativar o cadastro livre",
- "bills.selfServe.on": "Ativar",
- "bills.selfServe.onText": "Qualquer pessoa poderá se cadastrar e iniciar um período de teste com um cartão. Todos os administradores do servidor recebem um e-mail.",
- "bills.selfServe.onTitle": "Ativar o cadastro livre",
"bills.selfServe.openNow": "Qualquer pessoa pode se cadastrar e iniciar um teste agora.",
"bills.selfServe.state.closed": "Fechado",
"bills.selfServe.switch": "Cadastro livre",
@@ -722,10 +712,6 @@
"bills.tab.overview": "Visão geral",
"bills.tab.review": "Revisão",
"bills.tab.rules": "Preços e regras",
- "bills.tax.confirmOff": "Desativar o Stripe Tax",
- "bills.tax.confirmOn": "Ativar o Stripe Tax",
- "bills.tax.confirmText": "Todos os administradores do servidor recebem um e-mail.",
- "bills.tax.saved": "Stripe Tax salvo",
"bills.unit.calls": "chamadas",
"bills.unit.days": "dias",
"bills.unit.minutes": "min",
diff --git a/packages/i18n/locales/pt-BR/email.json b/packages/i18n/locales/pt-BR/email.json
index e9ec3c9e..3f49f962 100644
--- a/packages/i18n/locales/pt-BR/email.json
+++ b/packages/i18n/locales/pt-BR/email.json
@@ -151,7 +151,6 @@
"adminAlert.seatsSync.subject": "Não foi possível atualizar no Stripe as licenças de parceiro do {brand}",
"adminAlert.seatsSync.text": "Um espaço de trabalho de cliente entrou ou saiu da fatura de parceiro {bill}, mas não foi possível atualizar o Stripe depois de várias tentativas. Agora o Stripe cobra um número de licenças diferente do que a fatura tem.",
"adminAlert.selfServe.subject": "O cadastro self-service foi {on, select, yes {ativado} other {desativado}}",
- "adminAlert.selfServe.text": "{actor} {on, select, yes {ativou o cadastro self-service: qualquer pessoa pode se cadastrar e começar um teste com um cartão} other {desativou o cadastro self-service: só administradores do servidor criam espaços de trabalho}} (Administração do servidor › Cadastro e acesso). Motivo informado: {reason}",
"adminAlert.settings.agentEnds": "Esse administrador encerra o link com Encerrar acesso na página de configuração; desativar o administrador também o encerra.",
"adminAlert.settings.moneyText": "{actor} {change, select, changed {alterou as configurações de {provider}} removed {removeu as configurações de {provider}} other {alterou as configurações de {provider}}} (Administração do servidor › Cobrança). Essas configurações controlam a cobrança: pagamentos, reembolsos e clientes.",
"adminAlert.settings.moneyTextAgent": "{actor} {change, select, changed {alterou as configurações de {provider}} removed {removeu as configurações de {provider}} other {alterou as configurações de {provider}}} pelo link de configuração para agente de IA {prefix}…{hasMade, select, yes {, criado em {made}} other {}}. Essas configurações controlam a cobrança: pagamentos, reembolsos e clientes.",