# `PaperTiger.AutomaticTax`
[🔗](https://github.com/EnaiaInc/paper_tiger/blob/v1.2.2/lib/paper_tiger/automatic_tax.ex#L1)

Deterministic Stripe Tax helpers for PaperTiger's local test surface.

This intentionally models only the automatic-tax totals that tests need.
It is not a standalone Tax Calculations/Transactions API implementation.

# `apply_to_line_items`

```elixir
@spec apply_to_line_items([map()], map(), atom()) :: {[map()], map()}
```

Applies deterministic automatic-tax fields to line items and returns totals.

# `automatic_tax`

```elixir
@spec automatic_tax(map(), atom()) :: map()
```

Returns a Stripe-shaped automatic_tax map from request params or a resource.

# `enabled?`

```elixir
@spec enabled?(map()) :: boolean()
```

True when `automatic_tax[enabled]=true` was requested.

---

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