# `Stripe.Resources.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/resources/confirmation_token.ex#L542)

Nested struct within the parent resource.

# `t`

```elixir
@type t() ::
  %Stripe.Resources.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom{
    charge: String.t() | nil,
    payment_method_details:
      Stripe.Resources.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.t()
      | nil,
    setup_attempt: String.t() | Stripe.Resources.SetupAttempt.t() | nil
  }
```

* `charge` - The charge that created this object. Max length: 5000. Nullable.
* `payment_method_details` - Transaction-specific details of the payment method used in the payment. Nullable.
* `setup_attempt` - The ID of the SetupAttempt that generated this PaymentMethod, if any. Nullable.

---

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