class MockChargebee::Models::PortalSession
Constants
- RESOURCE_ID_PREFIX
Public Class Methods
create(params)
click to toggle source
# File lib/mock_chargebee/models/portal_session.rb, line 10 def self.create(params) Validations::PortalSessions::CreateParams.validate_required(params) params['id'] ||= unique_id params['customer_id'] = params.dig(:customer, :id) portal_session = portal_session_fixture.merge(params) repositories.portal_sessions.store(portal_session['id'], portal_session) portal_session end