shop.modules.vat_rate ===================== .. py:module:: shop.modules.vat_rate Attributes ---------- .. autoapisummary:: shop.modules.vat_rate.logger Classes ------- .. autoapisummary:: shop.modules.vat_rate.VatRate Module Contents --------------- .. py:data:: logger .. py:class:: VatRate Bases: :py:obj:`shop.modules.abstract.ShopModuleAbstract`, :py:obj:`viur.core.prototypes.List` .. py:attribute:: moduleName :value: 'vat_rate' .. py:attribute:: kindName :value: '{{viur_shop_modulename}}_vat_rate' .. py:method:: adminInfo() .. py:method:: vat_rates() Cache the vat rates Since this configuration will not change much, we cache the whole thing persistently within the instance. So after changing the VAT rates, the instance would have to be restarted -- or someone would have to create a pull request with an alternative solution. .. py:method:: _vat_skel() .. py:method:: get_vat_rate_for_country(*, country = None, category) Get the configured vat rate percentage for a country.