lib/stripe/resources/billing_portal/session.rb in stripe-10.8.0.pre.beta.1 vs lib/stripe/resources/billing_portal/session.rb in stripe-10.8.0

- old
+ new

@@ -19,8 +19,18 @@ # Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal). class Session < APIResource extend Stripe::APIOperations::Create OBJECT_NAME = "billing_portal.session" + + # Creates a session of the customer portal. + def self.create(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: "/v1/billing_portal/sessions", + params: params, + opts: opts + ) + end end end end