Class: FinchAPI::Resources::Connect::Sessions
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Connect::Sessions
- Defined in:
- lib/finch_api/resources/connect/sessions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Sessions
constructor
private
A new instance of Sessions.
-
#new(customer_id: , customer_name: , products: , customer_email: nil, integration: nil, manual: nil, minutes_to_expire: nil, redirect_uri: nil, sandbox: nil, request_options: {}) ⇒ FinchAPI::Models::Connect::SessionNewResponse
Some parameter documentations has been truncated, see Models::Connect::SessionNewParams for more details.
-
#reauthenticate(connection_id: , minutes_to_expire: nil, products: nil, redirect_uri: nil, request_options: {}) ⇒ FinchAPI::Models::Connect::SessionReauthenticateResponse
Some parameter documentations has been truncated, see Models::Connect::SessionReauthenticateParams for more details.
Constructor Details
#initialize(client:) ⇒ Sessions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Sessions.
82 83 84 |
# File 'lib/finch_api/resources/connect/sessions.rb', line 82 def initialize(client:) @client = client end |
Instance Method Details
#new(customer_id: , customer_name: , products: , customer_email: nil, integration: nil, manual: nil, minutes_to_expire: nil, redirect_uri: nil, sandbox: nil, request_options: {}) ⇒ FinchAPI::Models::Connect::SessionNewResponse
Some parameter documentations has been truncated, see Models::Connect::SessionNewParams for more details.
Create a new connect session for an employer
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/finch_api/resources/connect/sessions.rb', line 37 def new(params) parsed, = FinchAPI::Connect::SessionNewParams.dump_request(params) @client.request( method: :post, path: "connect/sessions", body: parsed, model: FinchAPI::Models::Connect::SessionNewResponse, options: ) end |
#reauthenticate(connection_id: , minutes_to_expire: nil, products: nil, redirect_uri: nil, request_options: {}) ⇒ FinchAPI::Models::Connect::SessionReauthenticateResponse
Some parameter documentations has been truncated, see Models::Connect::SessionReauthenticateParams for more details.
Create a new Connect session for reauthenticating an existing connection
68 69 70 71 72 73 74 75 76 77 |
# File 'lib/finch_api/resources/connect/sessions.rb', line 68 def reauthenticate(params) parsed, = FinchAPI::Connect::SessionReauthenticateParams.dump_request(params) @client.request( method: :post, path: "connect/sessions/reauthenticate", body: parsed, model: FinchAPI::Models::Connect::SessionReauthenticateResponse, options: ) end |