Method: AvaTax::Client::CostCenter#update_cost_center

Defined in:
lib/avatax/client/costcenter.rb

#update_cost_center(companyid, costcenterid, model) ⇒ Object

Update a single cost center

Updates a single cost center owned by the company. Use the costcenterId path parameter to identify the cost center to update. Swagger Name: AvaTaxClient

Parameters:

  • companyid (Integer)

    The ID of the company that owns this cost center object

  • costcenterid (Integer)

    The primary key of this cost center

  • model (Object)

    The cost center object you wish to update.

Returns:

  • (Object)


83
84
# File 'lib/avatax/client/costcenter.rb', line 83

def update_cost_center(companyid, costcenterid, model)        path = "/api/v2/companies/#{companyid}/costcenters/#{costcenterid}"
put(path, model, {}, AvaTax::VERSION)      end