Module: PlentyClient::Accounting
Constant Summary collapse
- LIST_VAT_OF_LOCATION =
'/vat/locations/{locationId}'
- LIST_VAT_OF_COUNTRY =
'/vat/locations/{locationId}/countries/{countryId}'
- LIST_VAT_CONFIGURATIONS =
'/vat'
- LIST_VAT_STANDARD =
'/vat/standard'
Class Method Summary collapse
- .list(headers = {}, &block) ⇒ Object
- .list_for_country(location_id, country_id, headers = {}, &block) ⇒ Object
- .list_for_location(location_id, headers = {}, &block) ⇒ Object
- .standard(headers = {}, &block) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.list(headers = {}, &block) ⇒ Object
14 15 16 |
# File 'lib/plenty_client/accounting.rb', line 14 def list(headers = {}, &block) get(build_endpoint(LIST_VAT_CONFIGURATIONS), headers, &block) end |
.list_for_country(location_id, country_id, headers = {}, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/plenty_client/accounting.rb', line 18 def list_for_country(location_id, country_id, headers = {}, &block) get(build_endpoint(LIST_VAT_OF_COUNTRY, location: location_id, country: country_id), headers, &block) end |
.list_for_location(location_id, headers = {}, &block) ⇒ Object
24 25 26 27 |
# File 'lib/plenty_client/accounting.rb', line 24 def list_for_location(location_id, headers = {}, &block) get(build_endpoint(LIST_VAT_OF_LOCATION, location: location_id), headers, &block) end |
.standard(headers = {}, &block) ⇒ Object
29 30 31 |
# File 'lib/plenty_client/accounting.rb', line 29 def standard(headers = {}, &block) get(build_endpoint(LIST_VAT_STANDARD), headers, &block) end |