Zoonk.Billing.TaxIdData (Zoonk v0.1.0-dev)

View Source

Provides data for tax ID types and their associated countries.

These are the Tax ID types used by Stripe.

Summary

Functions

Returns tax ID types and their display names for a given country ISO2 code.

Functions

types_for_country(iso2)

Returns tax ID types and their display names for a given country ISO2 code.

Returns a list of tuples where each tuple contains {display_name, type}.

Examples

iex> types_for_country("US")
[{"EIN", "us_ein"}]

iex> types_for_country("BR")
[{"CNPJ", "br_cnpj"}, {"CPF", "br_cpf"}]

iex> types_for_country("DE")
[{"STN", "de_stn"}, {"VAT", "eu_vat"}, {"OSS VAT", "eu_oss_vat"}]