{
    "name": "financeiro",
    "displayName": "Financeiro",
    "version": "1.0.0",
    "description": "Planos de assinatura, faturas, comissões e controle financeiro de parceiros.",
    "author": "Clube67",
    "category": "business",
    "enabled": true,
    "canDisable": true,
    "dependencies": [
        "core-auth",
        "partners"
    ],
    "backend": {
        "routePrefix": "/api/finance",
        "hasMigrations": true
    },
    "frontend": {
        "menuItems": [
            {
                "id": "finance-dashboard",
                "label": "Financeiro",
                "icon": "DollarSign",
                "href": "/admin/finance",
                "roles": [
                    "super_admin",
                    "finance"
                ],
                "order": 50
            },
            {
                "id": "finance-invoices",
                "label": "Faturas",
                "icon": "FileText",
                "href": "/partner/invoices",
                "roles": [
                    "partner_admin"
                ],
                "order": 55
            }
        ],
        "widgets": [
            {
                "id": "finance-mrr",
                "component": "MRRWidget",
                "span": 2,
                "roles": [
                    "super_admin",
                    "finance"
                ],
                "order": 30
            }
        ]
    },
    "hooks": {
        "subscribes": [
            "partner:created",
            "partner:deactivated"
        ],
        "emits": [
            "invoice:created",
            "invoice:paid",
            "invoice:overdue"
        ]
    }
}
