Skip to content

Commit

Permalink
Support :status param in typespec for Stripe.Invoice.list/2
Browse files Browse the repository at this point in the history
This is supported by the Stripe API, but was missing from the typespec.
  • Loading branch information
jonleighton committed Jan 8, 2021
1 parent 05a11f0 commit 0da32df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stripe/subscriptions/invoice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ defmodule Stripe.Invoice do
optional(:ending_before) => t | Stripe.id(),
optional(:limit) => 1..100,
optional(:starting_after) => t | Stripe.id(),
optional(:subscription) => Stripe.id() | Stripe.Subscription.t()
optional(:subscription) => Stripe.id() | Stripe.Subscription.t(),
optional(:status) => String.t()
}
| %{}
def list(params \\ %{}, opts \\ []) do
Expand Down

0 comments on commit 0da32df

Please sign in to comment.