# `LatticeStripe.SubscriptionSchedule.CurrentPhase`
[🔗](https://github.com/szTheory/lattice_stripe/blob/v2.2.2/lib/lattice_stripe/subscription_schedule/current_phase.ex#L1)

The current phase of a Subscription Schedule, or `nil` if the schedule has
not yet started or has completed.

Contains two Unix timestamps bounding the currently-active phase. This is a
small read-only summary view — for the full phase configuration, look up the
matching element of `schedule.phases` by date range.

# `t`

```elixir
@type t() :: %LatticeStripe.SubscriptionSchedule.CurrentPhase{
  end_date: integer() | nil,
  extra: map(),
  start_date: integer() | nil
}
```

The current phase summary on a Stripe Subscription Schedule.

# `from_map`

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

Converts a decoded Stripe API map to a `%CurrentPhase{}` struct.

Returns `nil` when given `nil` (schedule has no current phase).

---

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