# Spec 035 — FOSSBilling Products (template)

**Actualizar após criação manual no Admin FOSS** com IDs reais.

Base URL Admin: `https://financeiro.ligbox.com.br/admin`

---

## Hosting server

| Campo | Valor |
|-------|-------|
| Nome | VM123 OpenPanel |
| Manager | OpenPanel |
| Hostname | `10.10.10.123:18087` |
| ID | 1 (existente) |

---

## Produtos a criar

### ligbox-mail-starter

```yaml
title: Ligbox Mail Starter
slug: ligbox-mail-starter
type: hosting
category: Ligbox Mail
pricing:
  type: recurrent
  recurrent: monthly
  price: 249.00
  setup: 0
plugin: OpenPanel
plugin_config:
  plan: ligbox-mail-starter
description: |
  Até 10 contas email · 20 GB/caixa · 100 GB Nextcloud · EasyDMARC · subdomínio
custom_fields:
  - name: domain
    required: true
  - name: manager_email
    required: true
```

### ligbox-mail-business

```yaml
title: Ligbox Mail Business
slug: ligbox-mail-business
pricing:
  price: 549.00
plugin_config:
  plan: ligbox-mail-business
description: |
  Até 25 contas · 30 GB/caixa · 200 GB Nextcloud · EasyDMARC · subdomínio
```

### ligbox-mail-enterprise

```yaml
title: Ligbox Mail Enterprise
slug: ligbox-mail-enterprise
pricing:
  price: 999.00
plugin_config:
  plan: ligbox-mail-enterprise
description: |
  Até 50 contas · 50 GB/caixa · 300 GB Nextcloud · EasyDMARC · subdomínio
```

### ligbox-mail-custom

```yaml
title: Ligbox Mail Personalizado
slug: ligbox-mail-custom
pricing:
  type: recurrent
  price: 99.00  # base fee
config_options:
  - id: seats
    name: Número de contas email
    type: select
    options:
      - value: 10
        price: 0
      - value: 25
        price: 50
      - value: 30
        price: 80
      - value: 40
        price: 120
      - value: 50
        price: 180
  - id: mail_gb
    name: GB email por conta
    type: select
    options:
      - { value: 20, price: 0 }
      - { value: 30, price: 15 }
      - { value: 40, price: 30 }
      - { value: 50, price: 45 }
  - id: files_gb
    name: GB Nextcloud por conta
    type: select
    options:
      - { value: 100, price: 0 }
      - { value: 200, price: 25 }
      - { value: 300, price: 50 }
      - { value: 400, price: 75 }
      - { value: 500, price: 100 }
plugin_config:
  plan: ligbox-mail-custom
```

---

## OpenPanel plans (OpenAdmin)

| plan_name | max_domains | notes |
|-----------|-------------|-------|
| ligbox-mail-starter | 1 | hub gerente |
| ligbox-mail-business | 1 | hub gerente |
| ligbox-mail-enterprise | 1 | hub gerente |
| ligbox-mail-custom | 1 | metadata JSON quotas |

Script provision:

```bash
ssh root@10.10.10.123
# Após criar plans no OpenAdmin, testar:
bash /opt/ligbox-ops-platform/projects/finance/deploy/vm123-finance-stack/test-foss-openpanel-order.sh
```

---

## IDs reais (preencher pós-criação)

| Produto | FOSS product_id | OP plan (hp) | Slug |
|---------|-----------------|--------------|------|
| Starter | _TBD_ | _TBD_ | ligbox-mail-starter |
| **Business** | **3** | **2** | **ligbox-mail-business** |
| Enterprise | _TBD_ | _TBD_ | ligbox-mail-enterprise |
| Custom | _TBD_ | _TBD_ | ligbox-mail-custom |
| Site CMS | 2 | 1 | ligbox-site-cms-hosting |

**Criado:** 2026-07-01 · VM123 · `deploy/vm123-finance-stack/create-foss-mail-business.sh`
