Class: FinchAPI::Resources::Sandbox::Individual

Inherits:
Object
  • Object
show all
Defined in:
lib/finch_api/resources/sandbox/individual.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



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, options = 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: options
  )
end