Class: Smartbill::Sdk::Services::ConfigurationService
- Inherits:
-
BaseService
- Object
- BaseService
- Smartbill::Sdk::Services::ConfigurationService
- Defined in:
- lib/smartbill/sdk/services/configuration_service.rb
Overview
/tax and /series endpoints.
Note: on a Client, both client.taxes and client.series are the same ConfigurationService instance.
Instance Method Summary collapse
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Smartbill::Sdk::Services::BaseService
Instance Method Details
#series(cif, type: nil) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/smartbill/sdk/services/configuration_service.rb', line 18 def series(cif, type: nil) params = { "cif" => cif } params["type"] = type unless type.nil? parse(execute(build_request( method: "GET", base_url: @client.base_url, path: "series", params: params, auth_header: @client.auth_header )), Models::SeriesListResponse) end |
#taxes(cif) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/smartbill/sdk/services/configuration_service.rb', line 11 def taxes(cif) parse(execute(build_request( method: "GET", base_url: @client.base_url, path: "tax", params: { "cif" => cif }, auth_header: @client.auth_header )), Models::TaxesResponse) end |