Class: Pago::V2026_04::Services::CustomerPortal::Organizations
- 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(slug) ⇒ Models::CustomerOrganizationData
Get a customer portal's organization by slug.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Pago::Service
Instance Method Details
#get(slug) ⇒ Models::CustomerOrganizationData
Get a customer portal's organization by slug.
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/pago/v2026_04/services/customer_portal.rb', line 1007 def get(slug) data = client.request( http_method: "GET", path: "/v1/customer-portal/organizations/{slug}", path_params: { "slug" => slug }, query: {}, response_type: :json, errors: { 404 => Errors::ResourceNotFound, 422 => Errors::HTTPValidationError } ) Models::CustomerOrganizationData.from_json(data) end |