Class: FinchAPI::Resources::Sandbox::Individual
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Sandbox::Individual
- Defined in:
- lib/finch_api/resources/sandbox/individual.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Individual
constructor
private
A new instance of Individual.
-
#update(individual_id, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::IndividualUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::IndividualUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ Individual
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 Individual.
59 60 61 |
# File 'lib/finch_api/resources/sandbox/individual.rb', line 59 def initialize(client:) @client = client end |
Instance Method Details
#update(individual_id, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::IndividualUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::IndividualUpdateParams for more details.
Update sandbox individual
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/finch_api/resources/sandbox/individual.rb', line 45 def update(individual_id, params = {}) parsed, = FinchAPI::Sandbox::IndividualUpdateParams.dump_request(params) @client.request( method: :put, path: ["sandbox/individual/%1$s", individual_id], body: parsed, model: FinchAPI::Models::Sandbox::IndividualUpdateResponse, options: ) end |