Class: Pluggy::Services::ConnectorService
- Inherits:
-
BaseService
- Object
- BaseService
- Pluggy::Services::ConnectorService
- Defined in:
- lib/pluggy/services/other_services.rb
Instance Method Summary collapse
-
#list(countries: nil, types: nil, name: nil, sandbox: nil, health_details: nil, is_open_finance: nil, supports_payment_initiation: nil, supports_smart_transfers: nil, supports_automatic_pix: nil, page: nil, page_size: nil) ⇒ Object
GET /connectors.
-
#retrieve(id, health_details: nil) ⇒ Object
NOTE: a connector id is a NUMBER, not a UUID.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Pluggy::Services::BaseService
Instance Method Details
#list(countries: nil, types: nil, name: nil, sandbox: nil, health_details: nil, is_open_finance: nil, supports_payment_initiation: nil, supports_smart_transfers: nil, supports_automatic_pix: nil, page: nil, page_size: nil) ⇒ Object
GET /connectors. countries and types are comma-joined by the encoder.
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/pluggy/services/other_services.rb', line 136 def list(countries: nil, types: nil, name: nil, sandbox: nil, health_details: nil, is_open_finance: nil, supports_payment_initiation: nil, supports_smart_transfers: nil, supports_automatic_pix: nil, page: nil, page_size: nil) list_request("/connectors", klass: Resources::Connector, paginated: !page.nil? || !page_size.nil?, countries: countries, types: types, name: name, sandbox: sandbox, healthDetails: health_details, isOpenFinance: is_open_finance, supportsPaymentInitiation: supports_payment_initiation, supportsSmartTransfers: supports_smart_transfers, supportsAutomaticPix: supports_automatic_pix, page: page, pageSize: page_size) end |
#retrieve(id, health_details: nil) ⇒ Object
NOTE: a connector id is a NUMBER, not a UUID.
157 158 159 160 161 |
# File 'lib/pluggy/services/other_services.rb', line 157 def retrieve(id, health_details: nil) require_args!(id: id) object_request(:get, "/connectors/#{id}", klass: Resources::Connector, healthDetails: health_details) end |