# `Stripe.Resources.Invoice.Parent.SubscriptionDetails`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/resources/invoice.ex#L484)

Nested struct within the parent resource.

# `t`

```elixir
@type t() :: %Stripe.Resources.Invoice.Parent.SubscriptionDetails{
  metadata: %{required(String.t()) =&gt; String.t()} | nil,
  subscription: String.t() | Stripe.Resources.Subscription.t() | nil,
  subscription_proration_date: integer() | nil
}
```

* `metadata` - Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
*Note: This attribute is populated only for invoices created on or after June 29, 2023.* Nullable.
* `subscription` - The subscription that generated this invoice
* `subscription_proration_date` - Only set for upcoming invoices that preview prorations. The time used to calculate prorations. Format: Unix timestamp.

---

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