From b0d16518118248ddce150915b0b63ca4465a3693 Mon Sep 17 00:00:00 2001 From: Justin Smestad Date: Tue, 16 Feb 2021 20:09:45 -0700 Subject: [PATCH] Update typespec for Stripe.Customer (#650) When `expand: ["invoice_settings.default_payment_method"]` is used with `Stripe.Customer.retrieve/2`, the typespec is incorrect. --- lib/stripe/subscriptions/invoice.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe/subscriptions/invoice.ex b/lib/stripe/subscriptions/invoice.ex index c410e61f..d03f94d0 100644 --- a/lib/stripe/subscriptions/invoice.ex +++ b/lib/stripe/subscriptions/invoice.ex @@ -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() }