Module: AvaTax::Client::APConfigSetting
- Defined in:
- lib/avatax/client/apconfigsetting.rb
Instance Method Summary collapse
-
#create_a_p_config_setting(companyid, model) ⇒ Object
Create new rule.
-
#get_a_p_config_setting_by_company(companyid, options = {}) ⇒ FetchResult
Retrieve rule for this company.
-
#query_a_p_config_setting(options = {}) ⇒ FetchResult
Retrieve all rules.
-
#update_a_p_config_setting(companyid, model) ⇒ Object
Update a AP config setting.
Instance Method Details
#create_a_p_config_setting(companyid, model) ⇒ Object
Create new rule
Swagger Name: AvaTaxClient
13 14 |
# File 'lib/avatax/client/apconfigsetting.rb', line 13 def create_a_p_config_setting(companyid, model) path = "/api/v2/companies/#{companyid}/apconfigsetting" post(path, model, {}, AvaTax::VERSION) end |
#get_a_p_config_setting_by_company(companyid, options = {}) ⇒ FetchResult
Retrieve rule for this company
Swagger Name: AvaTaxClient
27 28 |
# File 'lib/avatax/client/apconfigsetting.rb', line 27 def get_a_p_config_setting_by_company(companyid, ={}) path = "/api/v2/companies/#{companyid}/apconfigsetting" get(path, , AvaTax::VERSION) end |
#query_a_p_config_setting(options = {}) ⇒ FetchResult
Retrieve all rules
Swagger Name: AvaTaxClient
40 41 |
# File 'lib/avatax/client/apconfigsetting.rb', line 40 def query_a_p_config_setting(={}) path = "/api/v2/apconfigsetting" get(path, , AvaTax::VERSION) end |
#update_a_p_config_setting(companyid, model) ⇒ Object
Update a AP config setting
Swagger Name: AvaTaxClient
50 51 |
# File 'lib/avatax/client/apconfigsetting.rb', line 50 def update_a_p_config_setting(companyid, model) path = "/api/v2/companies/#{companyid}/apconfigsetting" put(path, model, {}, AvaTax::VERSION) end |