# `StripeManaged.TaxCode`
[🔗](https://github.com/safemyprivacy0-bit/stripe_managed/blob/main/lib/stripe_managed/tax_code.ex#L1)

Eligible tax codes for Stripe Managed Payments.

Only products with these tax codes can be sold through
Managed Payments. These cover digital products: SaaS,
software, games, digital media, online courses, etc.

## Usage

    # Get tax code for SaaS (personal use)
    StripeManaged.TaxCode.saas_personal()
    # => "txcd_10103001"

    # Check if a tax code is eligible
    StripeManaged.TaxCode.eligible?("txcd_10103001")
    # => true

    # List all eligible codes
    StripeManaged.TaxCode.all()

# `all`

```elixir
@spec all() :: map()
```

Returns all eligible tax codes as a map of code => description.

# `description`

```elixir
@spec description(String.t()) :: String.t() | nil
```

Returns the description for a tax code, or nil.

# `ebooks_personal`

# `eligible?`

```elixir
@spec eligible?(String.t()) :: boolean()
```

Returns true if the given tax code is eligible for Managed Payments.

# `online_courses_personal`

# `saas_business`

# `saas_personal`

# `software_business`

# `software_personal`

# `video_games_personal`

---

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