From c7e953ef5fd9c5c94dc5e45998765805f5d1a19a Mon Sep 17 00:00:00 2001 From: John-Goff <33040621+John-Goff@users.noreply.github.com> Date: Mon, 2 Nov 2020 23:18:46 -0500 Subject: [PATCH] Add default_tax_rate to typespecs for Subscription and Invoice (#631) * Add optional default tax rates to subscription typespecs * Add optional default tax rates to invoice typespecs as well --- lib/stripe/subscriptions/invoice.ex | 2 ++ lib/stripe/subscriptions/subscription.ex | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/stripe/subscriptions/invoice.ex b/lib/stripe/subscriptions/invoice.ex index 2e5ec5ac..e5d88fd1 100644 --- a/lib/stripe/subscriptions/invoice.ex +++ b/lib/stripe/subscriptions/invoice.ex @@ -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(), @@ -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(), diff --git a/lib/stripe/subscriptions/subscription.ex b/lib/stripe/subscriptions/subscription.ex index b3fd0d54..f0baec2e 100644 --- a/lib/stripe/subscriptions/subscription.ex +++ b/lib/stripe/subscriptions/subscription.ex @@ -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(), @@ -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(),