diff --git a/lib/stripe/billing_portal/session.ex b/lib/stripe/billing_portal/session.ex index 5605408e..2554c078 100644 --- a/lib/stripe/billing_portal/session.ex +++ b/lib/stripe/billing_portal/session.ex @@ -16,6 +16,7 @@ defmodule Stripe.BillingPortal.Session do :id => Stripe.id(), :object => String.t(), :created => Stripe.timestamp(), + :configuration => String.t(), :customer => Stripe.id() | Stripe.Customer.t(), :livemode => boolean(), :return_url => String.t(), @@ -24,6 +25,7 @@ defmodule Stripe.BillingPortal.Session do @type create_params :: %{ :customer => String.t(), + optional(:configuration) => String.t(), optional(:return_url) => String.t(), optional(:locale) => String.t() } @@ -32,6 +34,7 @@ defmodule Stripe.BillingPortal.Session do :id, :object, :created, + :configuration, :customer, :livemode, :return_url, diff --git a/lib/stripe/checkout/session.ex b/lib/stripe/checkout/session.ex index bd74da24..ecf7b0c1 100644 --- a/lib/stripe/checkout/session.ex +++ b/lib/stripe/checkout/session.ex @@ -128,7 +128,8 @@ defmodule Stripe.Session do } @type consent_collection :: %{ - promotions: String.t() + promotions: String.t(), + terms_of_service: String.t() } @typedoc """ @@ -246,6 +247,7 @@ defmodule Stripe.Session do :success_url => String.t(), optional(:mode) => String.t(), optional(:client_reference_id) => String.t(), + optional(:currency) => String.t(), optional(:customer) => String.t(), optional(:customer_email) => String.t(), optional(:line_items) => list(line_item_data()),