LatticeStripe.Dispute.PaymentMethodDetails (LatticeStripe v1.7.12)

Copy Markdown View Source

Represents the polymorphic payment method details nested on a Stripe Dispute.

Branch on type to decide which raw sub-map (card, klarna, paypal, amazon_pay) is populated. Unknown fields from the Stripe API response are preserved in :extra for forward compatibility.

Summary

Types

t()

@type t() :: %LatticeStripe.Dispute.PaymentMethodDetails{
  amazon_pay: map() | nil,
  card: map() | nil,
  extra: map(),
  klarna: map() | nil,
  paypal: map() | nil,
  type: String.t() | nil
}

Functions

from_map(map)

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