/** * Billing settings — business info, tax IDs, payment methods, spending * caps, postpaid/prepaid enrolment. Sits alongside `billing` (usage / * invoices / credits) to cover the settings surface. * * Mirrors `apps/api/src/server/platform/routes/billing-settings.ts` — * paths sourced from `@sylphx/contract`. */ import type { Client } from './client.js'; export interface BillingSettings { readonly orgId: string; readonly businessName: string | null; readonly businessEmail: string | null; readonly businessAddress: Record | null; readonly taxIds: readonly { readonly type: string; readonly value: string; }[]; readonly spendingCap: number | null; readonly plan: 'postpaid' | 'prepaid'; readonly currency: string; } export declare const getSettings: (client: Client) => Promise<{ settings: BillingSettings; }>; export interface BusinessInfoInput { readonly businessName?: string; readonly businessEmail?: string; readonly businessAddress?: Record; } export declare const updateBusinessInfo: (client: Client, body: BusinessInfoInput) => Promise<{ settings: BillingSettings; }>; export declare const setTaxId: (client: Client, body: { readonly type: string; readonly value: string; }) => Promise<{ settings: BillingSettings; }>; export declare const removeTaxId: (client: Client) => Promise<{ settings: BillingSettings; }>; export interface PaymentMethod { readonly id: string; readonly type: 'card' | 'bank'; readonly brand: string | null; readonly last4: string | null; readonly expMonth: number | null; readonly expYear: number | null; readonly isDefault: boolean; } export declare const getPaymentMethods: (client: Client) => Promise<{ paymentMethods: readonly PaymentMethod[]; }>; export declare const createSetupIntent: (client: Client) => Promise<{ clientSecret: string; setupIntentId: string; }>; export declare const setDefaultPaymentMethod: (client: Client, paymentMethodId: string) => Promise<{ success: boolean; }>; export declare const removePaymentMethod: (client: Client, paymentMethodId: string) => Promise<{ success: boolean; }>; export declare const setSpendingCap: (client: Client, body: { readonly cap: number | null; }) => Promise<{ settings: BillingSettings; }>; export declare const enablePostpaid: (client: Client) => Promise<{ settings: BillingSettings; }>; export declare const enablePrepaid: (client: Client, body: { readonly initialCreditUsdCents: number; }) => Promise<{ settings: BillingSettings; }>; //# sourceMappingURL=billingSettings.d.ts.map