Class: CandidApiClient::ExternalPaymentAccountConfig::V1::AsyncV1Client
- Inherits:
-
Object
- Object
- CandidApiClient::ExternalPaymentAccountConfig::V1::AsyncV1Client
- Defined in:
- lib/candidhealth/external_payment_account_config/v_1/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #get_multi(limit: nil, page_token: nil, request_options: nil) ⇒ CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage
- #initialize(request_client:) ⇒ CandidApiClient::ExternalPaymentAccountConfig::V1::AsyncV1Client constructor
Constructor Details
#initialize(request_client:) ⇒ CandidApiClient::ExternalPaymentAccountConfig::V1::AsyncV1Client
54 55 56 |
# File 'lib/candidhealth/external_payment_account_config/v_1/client.rb', line 54 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ CandidApiClient::AsyncRequestClient (readonly)
50 51 52 |
# File 'lib/candidhealth/external_payment_account_config/v_1/client.rb', line 50 def request_client @request_client end |
Instance Method Details
#get_multi(limit: nil, page_token: nil, request_options: nil) ⇒ CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/candidhealth/external_payment_account_config/v_1/client.rb', line 65 def get_multi(limit: nil, page_token: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "limit": limit, "page_token": page_token }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/external-payment-account-config/v1" end CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage.from_json(json_object: response.body) end end |