LatticeStripe.Tax.CustomerDetails (LatticeStripe v2.0.0)

Copy Markdown View Source

The customer_details object embedded in a Stripe Tax calculation or transaction.

Reachable from LatticeStripe.Tax.Calculation.t/0 and LatticeStripe.Tax.Transaction.t/0. It records the address Stripe actually used to source the tax decision, which is what you inspect when a calculation lands in an unexpected jurisdiction.

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.CustomerDetails{
  address: map() | nil,
  address_source: String.t() | nil,
  extra: map(),
  ip_address: String.t() | nil,
  tax_ids: list() | nil,
  taxability_override: atom() | String.t() | nil
}

Functions

from_map(map)

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