Skip to content

Commit

Permalink
Add manual cast of object name for BillingPortal.Configuration (#791)
Browse files Browse the repository at this point in the history
fixes #790
  • Loading branch information
sb8244 committed Apr 9, 2023
1 parent d1253f8 commit 3768300
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stripe/util.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ defmodule Stripe.Util do
def atomize_key(k), do: k

@spec object_name_to_module(String.t()) :: module
def object_name_to_module("billing_portal.configuration"), do: Stripe.BillingPortal.Configuration
def object_name_to_module("billing_portal.session"), do: Stripe.BillingPortal.Session
def object_name_to_module("checkout.session"), do: Stripe.Checkout.Session
def object_name_to_module("radar.early_fraud_warning"), do: Stripe.Radar.EarlyFraudWarning
Expand Down

0 comments on commit 3768300

Please sign in to comment.