From 47d86a0c0ff00a83dfbfb94621f5cbb3ae311789 Mon Sep 17 00:00:00 2001 From: Jim Alexander Date: Tue, 19 Nov 2024 13:53:51 -0800 Subject: [PATCH] add location back to types --- lib/stripe/subscriptions/invoice.ex | 3 --- lib/stripe/types.ex | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/stripe/subscriptions/invoice.ex b/lib/stripe/subscriptions/invoice.ex index 4760953b..23b6fab0 100644 --- a/lib/stripe/subscriptions/invoice.ex +++ b/lib/stripe/subscriptions/invoice.ex @@ -12,9 +12,6 @@ defmodule Stripe.Invoice do Does not take options yet. Stripe API reference: https://stripe.com/docs/api#invoice - - DEPRECATED BUT STILL IN USE: - closed """ use Stripe.Entity diff --git a/lib/stripe/types.ex b/lib/stripe/types.ex index 309f79ee..1cac6df9 100644 --- a/lib/stripe/types.ex +++ b/lib/stripe/types.ex @@ -36,6 +36,12 @@ defmodule Stripe.Types do town: String.t() | nil } + @type location :: %{ + country: String.t(), + source: String.t(), + state: String.t() + } + @type metadata :: %{ optional(String.t()) => String.t() }