Class: Pago::V2026_04::Services::CustomerPortal::CustomerSession

Inherits:
Service
  • Object
show all
Defined in:
lib/pago/v2026_04/services/customer_portal.rb,
sig/pago/v2026_04/generated.rbs

Instance Attribute Summary

Attributes inherited from Service

#client

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Pago::Service

Instance Method Details

#get_authenticated_userModels::PortalAuthenticatedUser

Get information about the currently authenticated portal user.

Scopes: customer_portal:read customer_portal:write

Returns:

Raises:



519
520
521
522
523
524
525
526
527
528
529
# File 'lib/pago/v2026_04/services/customer_portal.rb', line 519

def get_authenticated_user()
  data = client.request(
    http_method: "GET",
    path: "/v1/customer-portal/customer-session/user",
    path_params: {},
    query: {},
    response_type: :json,
    errors: {  }
  )
  Models::PortalAuthenticatedUser.from_json(data)
end

#introspectModels::CustomerCustomerSession

Introspect the current session and return its information.

Scopes: customer_portal:read customer_portal:write

Returns:

Raises:



501
502
503
504
505
506
507
508
509
510
511
# File 'lib/pago/v2026_04/services/customer_portal.rb', line 501

def introspect()
  data = client.request(
    http_method: "GET",
    path: "/v1/customer-portal/customer-session/introspect",
    path_params: {},
    query: {},
    response_type: :json,
    errors: {  }
  )
  Models::CustomerCustomerSession.from_json(data)
end