Module: Automation::API::Requests::TaxRateServiceTaxes
- Includes:
- Helper
- Included in:
- Client
- Defined in:
- lib/automation/api/requests/tax_rate_service_taxes.rb
Overview
Automation::API::Requests::TaxRateServiceTaxes
Instance Method Summary collapse
- #trs_create_tax(tax:) ⇒ Object
- #trs_delete_tax(id:) ⇒ Object
- #trs_tax(id:) ⇒ Object
- #trs_taxes ⇒ Object
- #trs_update_tax(id:, tax:) ⇒ Object
Instance Method Details
#trs_create_tax(tax:) ⇒ Object
20 21 22 |
# File 'lib/automation/api/requests/tax_rate_service_taxes.rb', line 20 def trs_create_tax(tax:) post("#{@trs_uri}/taxes", headers: jwt_headers, params: tax) end |
#trs_delete_tax(id:) ⇒ Object
28 29 30 |
# File 'lib/automation/api/requests/tax_rate_service_taxes.rb', line 28 def trs_delete_tax(id:) delete("#{@trs_uri}/taxes/#{id}", headers: jwt_headers) end |
#trs_tax(id:) ⇒ Object
16 17 18 |
# File 'lib/automation/api/requests/tax_rate_service_taxes.rb', line 16 def trs_tax(id:) get("#{@trs_uri}/taxes/#{id}", headers: jwt_headers) end |
#trs_taxes ⇒ Object
12 13 14 |
# File 'lib/automation/api/requests/tax_rate_service_taxes.rb', line 12 def trs_taxes get("#{@trs_uri}/taxes", headers: jwt_headers) end |
#trs_update_tax(id:, tax:) ⇒ Object
24 25 26 |
# File 'lib/automation/api/requests/tax_rate_service_taxes.rb', line 24 def trs_update_tax(id:, tax:) patch("#{@trs_uri}/taxes/#{id}", headers: jwt_headers, params: tax) end |