Class: Pago::V2026_04::Services::CustomerPortal::CustomerSession
- Defined in:
- lib/pago/v2026_04/services/customer_portal.rb,
sig/pago/v2026_04/generated.rbs
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#get_authenticated_user ⇒ Models::PortalAuthenticatedUser
Get information about the currently authenticated portal user.
-
#introspect ⇒ Models::CustomerCustomerSession
Introspect the current session and return its information.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Pago::Service
Instance Method Details
#get_authenticated_user ⇒ Models::PortalAuthenticatedUser
Get information about the currently authenticated portal user.
Scopes: customer_portal:read customer_portal:write
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 |
#introspect ⇒ Models::CustomerCustomerSession
Introspect the current session and return its information.
Scopes: customer_portal:read customer_portal:write
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 |