# `LatticeStripe.BillingPortal.Session.FlowData.AfterCompletion`
[🔗](https://github.com/szTheory/lattice_stripe/blob/v1.1.0/lib/lattice_stripe/billing_portal/session/flow_data/after_completion.ex#L1)

The `after_completion` sub-object of a `LatticeStripe.BillingPortal.Session.FlowData`.

Applies to all flow types. Describes what happens when a customer completes a portal
flow. `type` is one of `"hosted_confirmation"` (show an in-portal confirmation page)
or `"redirect"` (redirect the customer to a `return_url`).

The `redirect` and `hosted_confirmation` sub-objects are intentionally kept as raw
`map()` values per D-02 — shallow leaf objects do not warrant dedicated modules.
Parent struct: `LatticeStripe.BillingPortal.Session.FlowData`.

# `t`

```elixir
@type t() :: %LatticeStripe.BillingPortal.Session.FlowData.AfterCompletion{
  extra: map(),
  hosted_confirmation: map() | nil,
  redirect: map() | nil,
  type: String.t() | nil
}
```

# `from_map`

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

---

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