LatticeStripe.Tax.Settings.Defaults (LatticeStripe v2.0.0)

Copy Markdown View Source

The defaults object embedded in your account's Stripe Tax settings.

Reachable from LatticeStripe.Tax.Settings.t/0. These values apply to calculations that do not override them — notably tax_behavior, which decides whether your prices are treated as tax-inclusive or tax-exclusive.

Embedded value struct: fields are additive. Keys Stripe adds later appear under :extra rather than being dropped, so a new field never breaks decoding.

Summary

Types

t()

@type t() :: %LatticeStripe.Tax.Settings.Defaults{
  extra: map(),
  provider: String.t() | nil,
  tax_behavior: atom() | String.t() | nil,
  tax_code: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map() | nil) :: t() | nil