LatticeStripe.Tax.ShipFromDetails (LatticeStripe v2.0.0)

Copy Markdown View Source

The ship_from_details object embedded in a Stripe Tax calculation.

Reachable from LatticeStripe.Tax.Calculation.t/0. Records the origin address for the shipment, which together with the destination determines the taxing 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.ShipFromDetails{address: map() | nil, extra: map()}

Functions

from_map(map)

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