Skip to content

Commit

Permalink
Add terms_of_service to consent_collection type (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmestad authored Oct 9, 2022
1 parent 0bd7615 commit c0ced07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/stripe/billing_portal/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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()
}
Expand All @@ -32,6 +34,7 @@ defmodule Stripe.BillingPortal.Session do
:id,
:object,
:created,
:configuration,
:customer,
:livemode,
:return_url,
Expand Down
4 changes: 3 additions & 1 deletion lib/stripe/checkout/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ defmodule Stripe.Session do
}

@type consent_collection :: %{
promotions: String.t()
promotions: String.t(),
terms_of_service: String.t()
}

@typedoc """
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit c0ced07

Please sign in to comment.