View Source ExOAPI.Stripe.Schemas.PaymentMethodCard (exoapi_stripe v0.1.4)

:brand :: :string

Card brand. Can be amex, diners, discover, jcb, mastercard, unionpay, visa, or unknown.

:checks :: ExOAPI.Stripe.Schemas.PaymentMethodCardChecks

Checks on Card address and CVC if provided.

:country :: :string

Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.

:exp_month :: :integer

Two-digit number representing the card's expiration month.

:exp_year :: :integer

Four-digit number representing the card's expiration year.

:fingerprint :: :string

Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.

Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.

:funding :: :string

Card funding type. Can be credit, debit, prepaid, or unknown.

:generated_from :: ExOAPI.Stripe.Schemas.PaymentMethodCardGeneratedCard

Details of the original PaymentMethod that created this object.

:last4 :: :string

The last four digits of the card.

:networks :: ExOAPI.Stripe.Schemas.Networks

Contains information about card networks that can be used to process the payment.

:three_d_secure_usage :: ExOAPI.Stripe.Schemas.ThreeDSecureUsage

Contains details on how this Card maybe be used for 3D Secure authentication.

:wallet :: ExOAPI.Stripe.Schemas.PaymentMethodCardWallet

If this Card is part of a card wallet, this contains the details of the card wallet.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.PaymentMethodCard{
  brand: String.t() | nil,
  checks: ExOAPI.EctoTypes.AnyOf.t() | nil,
  country: String.t() | nil,
  exp_month: integer() | nil,
  exp_year: integer() | nil,
  fingerprint: String.t() | nil,
  funding: String.t() | nil,
  generated_from: ExOAPI.EctoTypes.AnyOf.t() | nil,
  last4: String.t() | nil,
  networks: ExOAPI.EctoTypes.AnyOf.t() | nil,
  three_d_secure_usage: ExOAPI.EctoTypes.AnyOf.t() | nil,
  wallet: ExOAPI.EctoTypes.AnyOf.t() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()