Class: Paddle::PortalSession

Inherits:
Object
  • Object
show all
Defined in:
lib/paddle/models/portal_session.rb

Class Method Summary collapse

Methods inherited from Object

#initialize, #to_ostruct, #update

Constructor Details

This class inherits a constructor from Paddle::Object

Class Method Details

.create(customer:, **params) ⇒ Object



4
5
6
7
# File 'lib/paddle/models/portal_session.rb', line 4

def create(customer:, **params)
  response = Client.post_request("customers/#{customer}/portal-sessions", body: params)
  PortalSession.new(response.body["data"])
end