# `ExFattureincloud.Filter`
[🔗](https://github.com/elchemista/ex_fattureincloud/blob/v0.1.0/lib/ex_fattureincloud/filter.ex#L1)

Immutable query builder compatible with the official Go/TypeScript filter helpers.

    iex> alias ExFattureincloud.Filter
    iex> Filter.where("name", :contains, "Rossi") |> Filter.and_where("active", :eq, true) |> Filter.build()
    "(name contains 'Rossi' and active = true)"

Pass `build/1` directly as `q:`; Req URL-encodes it once. `nil` becomes `null`,
strings are quoted, booleans/numbers are unquoted. Apostrophes, backslashes and
control characters in string literals are rejected: the provider documents no
escaping contract for these values. Use a manually verified raw `q` if needed.
Field availability depends on the selected endpoint.

# `t`

```elixir
@type t() :: %ExFattureincloud.Filter{expression: String.t()}
```

# `value`

```elixir
@type value() :: String.t() | number() | boolean() | nil
```

# `all`

```elixir
@spec all(t(), t()) :: t()
```

Combines two filters with parenthesized AND.

# `and_where`

```elixir
@spec and_where(t(), String.t(), atom() | String.t(), value()) :: t()
```

Combines an existing filter and a new condition with AND.

# `any`

```elixir
@spec any(t(), t()) :: t()
```

Combines two filters with parenthesized OR.

# `build`

```elixir
@spec build(t()) :: String.t()
```

Returns the unencoded query string.

# `or_where`

```elixir
@spec or_where(t(), String.t(), atom() | String.t(), value()) :: t()
```

Combines an existing filter and a new condition with OR.

# `where`

```elixir
@spec where(String.t(), atom() | String.t(), value()) :: t()
```

Builds one condition. Operators are atoms (e.g. :eq) or official strings (e.g. =).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
