Skip to content

Commit

Permalink
Update typespec for Stripe.Customer (#650)
Browse files Browse the repository at this point in the history
When `expand: ["invoice_settings.default_payment_method"]` is used with `Stripe.Customer.retrieve/2`, the typespec is incorrect.
  • Loading branch information
jsmestad authored Feb 17, 2021
1 parent b1f2735 commit b0d1651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe/subscriptions/invoice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ defmodule Stripe.Invoice do
})

@type invoice_settings :: %{
optional(:default_payment_method) => String.t(),
optional(:default_payment_method) => String.t() | Stripe.PaymentMethod.t(),
optional(:custom_fields) => custom_fields,
optional(:footer) => String.t()
}
Expand Down

0 comments on commit b0d1651

Please sign in to comment.