Total public methods: 85 - __construct(?PDO $pdo = null) - hasColumn(string $table, string $column) - hasTable(string $table) - isProductionDatabase() - setProductionDbWriteLocked(bool $locked) - isProductionDbWriteLocked() - isPackagePriceSaveEnabled() - isPppSecretLinkEnabled() - resolveStableRouterId(string $sessionName, ?RouterosAPI $api = null) - getDashboardSummary(string $period) - getUpcomingDueInvoices(int $days = 7) - getRevenueTrend(int $months = 6) - getProfiles() - getProfilesByRouter(string $routerId = 'default', ?string $routerSession = null) - getProfileByRouterAndName(string $routerId, ?string $routerSession, string $profileName) - savePackagePrice(array $data) - getProfileIdByName(string $name) - getActiveCustomersWithProfile() - getProfileById(int $id) - getInvoiceByPeriod(int $customerId, string $period) - createProfile(array $data) - updateProfile(int $id, array $data) - deleteProfile(int $id) - getCustomers($filtersOrLimit = 100, int $offset = 0) - getAllCustomersWithProfile() - getCustomerById(int $id) - getCustomerByServiceNumber(string $serviceNumber) - getCustomerByPppoeUsername(string $username) - getCustomerByRouterAndPppoe(string $routerId, ?string $routerSession, string $username) - getCustomerByPhone(string $phone) - createCustomer(array $data) - updateCustomer(int $id, array $data) - getDiscoveredPppSecrets(string $session, ?RouterosAPI $api = null) - linkPppSecret(array $data) - deleteCustomer(int $id) - calculateDueDate(int $billingDay, string $period) - generateInvoiceNumber(int $customerId, string $period, string $routerId = 'default') - listInvoices(array $filters = [], int $limit = 100, int $offset = 0) - getInvoiceSummary(string $period, ?string $routerId = null, ?string $routerSession = null) - generateCustomerInvoice(int $customerId, string $period, bool $dryRun = false) - generateMonthlyInvoices(string $period, array $filters = [], bool $dryRun = false) - getLatestInvoiceForCustomer(int $customerId) - getInvoiceById(int $id) - updateInvoice(int $invoiceId, array $fields) - deleteInvoice(int $invoiceId) - generateInvoice(int $customerId, string $period, string $dueDate, float $amount, array $snapshot = [], array $extra = []) - recordInvoicePayment(int $invoiceId, float $amount, array $meta = []) - voidPayment(int $paymentId, string $reason, ?int $voidedBy = null, ?array $allowedRouterScope = null) - reconcileInvoice(int $invoiceId) - reconcileAllInvoices(?string $period = null, ?string $routerId = null) - getPaymentReport(array $filters = [], int $limit = 100, int $offset = 0) - getFinancialSummary(?string $startDate = null, ?string $endDate = null, ?string $routerId = null, ?string $routerSession = null) - getCombinedRevenueSummary(string $session, ?RouterosAPI $api = null) - markInvoicePaid(int $invoiceId, array $paymentData = []) - recordPayment(int $invoiceId, float $amount, array $meta = []) - payInvoiceWithAgentBalance(int $agentId, int $invoiceId, float $fee = 0.0) - setInvoiceStatus(int $invoiceId, string $status) - markInvoiceReminderSent(int $invoiceId, ?string $timestamp = null) - getSetting(string $key, $default = null) - setSetting(string $key, $value) - findCustomerForPortal(string $identifier) - cleanupExpiredPortalOtps() - createPortalOtp(int $customerId, string $identifier, int $digits = 6, int $expiryMinutes = 5, int $maxAttempts = 5) - verifyPortalOtp(int $customerId, string $identifier, string $otpInput) - clearPortalOtp(int $customerId, string $identifier) - getActivePaymentGateways() - updateCustomerIsolation(int $customerId, int $flag) - restoreCustomerProfile(int $customerId) - applyIsolationProfile(array $customer, array $invoice) - setLiveRouterOsWriteAllowed(bool $allowed) - isLiveRouterOsWriteAllowed() - evaluateReactivationEligibility(int $customerId, ?int $invoiceId = null, ?RouterOsReactivationAdapterInterface $adapter = null) - getReactivationPreview(int $customerId, ?int $invoiceId = null, ?RouterOsReactivationAdapterInterface $adapter = null) - simulateReactivation(int $customerId, ?int $invoiceId = null, ?MockRouterOsAdapter $adapter = null) - calculateRolling30DayExpiry($activationAnchor) - processPaymentSubscriptionUpdate(int $customerId, int $invoiceId, float $amountPaid, string $paymentDate) - beginReactivationJournal(int $customerId, ?int $invoiceId, string $targetProfile, string $previousProfile = 'ISOLIR', ?string $token = null, ?string $routerId = 'default', ?string $routerSession = 'default', ?string $username = '') - updateReactivationJournalStep(int $journalId, string $status, array $stepData, ?string $errorMessage = null) - processReactivationSuccess(int $customerId, string $reactivationTimestamp, array $planData = [], ?int $journalId = null) - getSubscriptionStatus(int $customerId) - logEvent(?int $customerId, ?int $invoiceId, string $event, array $metadata = []) - hasLogEvent(?int $customerId, ?int $invoiceId, string $event) - changeCustomerWifi(int $customerId, ?string $ssid = null, ?string $password = null) - getCustomerDeviceSnapshot(int $customerId) - getConnection()