Skip to content

Commit

Permalink
Add default_tax_rate to typespecs for Subscription and Invoice (#631)
Browse files Browse the repository at this point in the history
* Add optional default tax rates to subscription typespecs

* Add optional default tax rates to invoice typespecs as well
  • Loading branch information
John-Goff authored Nov 3, 2020
1 parent e29c959 commit c7e953e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stripe/subscriptions/invoice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ defmodule Stripe.Invoice do
optional(:days_until_due) => integer,
optional(:default_payment_method) => String.t(),
optional(:default_source) => String.t(),
optional(:default_tax_rates) => [Stripe.id()],
optional(:description) => String.t(),
optional(:due_date) => Stripe.timestamp(),
optional(:footer) => String.t(),
Expand Down Expand Up @@ -248,6 +249,7 @@ defmodule Stripe.Invoice do
optional(:days_until_due) => integer,
optional(:default_payment_method) => String.t(),
optional(:default_source) => String.t(),
optional(:default_tax_rates) => [Stripe.id()],
optional(:description) => String.t(),
optional(:due_date) => Stripe.timestamp(),
optional(:footer) => String.t(),
Expand Down
2 changes: 2 additions & 0 deletions lib/stripe/subscriptions/subscription.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ defmodule Stripe.Subscription do
}
],
optional(:default_payment_method) => Stripe.id(),
optional(:default_tax_rates) => [Stripe.id()],
optional(:metadata) => Stripe.Types.metadata(),
optional(:prorate) => boolean,
optional(:proration_behavior) => String.t(),
Expand Down Expand Up @@ -202,6 +203,7 @@ defmodule Stripe.Subscription do
}
],
optional(:default_payment_method) => Stripe.id(),
optional(:default_tax_rates) => [Stripe.id()],
optional(:metadata) => Stripe.Types.metadata(),
optional(:prorate) => boolean,
optional(:proration_behavior) => String.t(),
Expand Down

0 comments on commit c7e953e

Please sign in to comment.