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

The `subscription_update` branch of a `LatticeStripe.BillingPortal.Session.FlowData`.

Populated when `flow_data.type == "subscription_update"`. Provides deep-link access
to the plan-change flow for a specific subscription.

`subscription` is the Stripe subscription ID (`sub_*`) to deep-link into.

Parent struct: `LatticeStripe.BillingPortal.Session.FlowData`.

# `t`

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

# `from_map`

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

---

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