Class: FinchAPI::Resources::Sandbox::Company
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Sandbox::Company
- Defined in:
- lib/finch_api/resources/sandbox/company.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Company
constructor
private
A new instance of Company.
-
#update(accounts: , departments: , ein: , entity: , legal_name: , locations: , primary_email: , primary_phone_number: , request_options: {}) ⇒ FinchAPI::Models::Sandbox::CompanyUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::CompanyUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ Company
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 Company.
49 50 51 |
# File 'lib/finch_api/resources/sandbox/company.rb', line 49 def initialize(client:) @client = client end |
Instance Method Details
#update(accounts: , departments: , ein: , entity: , legal_name: , locations: , primary_email: , primary_phone_number: , request_options: {}) ⇒ FinchAPI::Models::Sandbox::CompanyUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::CompanyUpdateParams for more details.
Update a sandbox company’s data
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/finch_api/resources/sandbox/company.rb', line 35 def update(params) parsed, = FinchAPI::Sandbox::CompanyUpdateParams.dump_request(params) @client.request( method: :put, path: "sandbox/company", body: parsed, model: FinchAPI::Models::Sandbox::CompanyUpdateResponse, options: ) end |