zugferd_code_lists/zugferd_2_3_3/
vatcat.rs

1#![allow(non_camel_case_types)]
2
3#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
4pub enum VATCAT {
5    /// Petroleum tax
6    ///
7    /// A tax levied on the volume of petroleum being transacted.
8    PetroleumTax,
9    /// Provisional countervailing duty cash
10    ///
11    /// Countervailing duty paid in cash prior to a formal finding of subsidization by Customs.
12    ProvisionalCountervailingDutyCash,
13    /// Provisional countervailing duty bond
14    ///
15    /// Countervailing duty paid by posting a bond during an investigation period prior to a formal decision on subsidization by Customs.
16    ProvisionalCountervailingDutyBond,
17    /// Tobacco tax
18    ///
19    /// A tax levied on tobacco products.
20    TobaccoTax,
21    /// Energy fee
22    ///
23    /// General fee or tax for the use of energy.
24    EnergyFee,
25    /// Coffee tax
26    ///
27    /// A tax levied specifically on coffee products.
28    CoffeeTax,
29    /// Harmonised sales tax, Canadian
30    ///
31    /// A harmonized sales tax consisting of a goods and service tax, a Canadian provincial sales tax and, as applicable, a Quebec sales tax which is recoverable.
32    HarmonisedSalesTaxCanadian,
33    /// Quebec sales tax
34    ///
35    /// A sales tax charged within the Canadian province of Quebec which is recoverable.
36    QuebecSalesTax,
37    /// Canadian provincial sales tax
38    ///
39    /// A sales tax charged within Canadian provinces which is non-recoverable.
40    CanadianProvincialSalesTax,
41    /// Tax on replacement part
42    ///
43    /// A tax levied on a replacement part, where the original part is returned.
44    TaxOnReplacementPart,
45    /// Mineral oil tax
46    ///
47    /// Tax that is levied specifically on products containing mineral oil.
48    MineralOilTax,
49    /// Special tax
50    ///
51    /// To indicate a special type of tax.
52    SpecialTax,
53    /// Insurance tax
54    ///
55    /// A tax levied specifically on insurances.
56    InsuranceTax,
57    /// Provincial Cannabis Tax
58    ///
59    /// A tax levied on Cannabis products
60    ProvincialCannabisTax,
61    /// Outstanding duty interest
62    ///
63    /// Fee levied due to outstanding duties to be paid
64    OutstandingDutyInterest,
65    /// Anti-dumping duty
66    ///
67    /// Duty applied to goods ruled to have been dumped in an import market at a price lower than that in the exporter's domestic market.
68    AntiDumpingDuty,
69    /// Stamp duty (Imposta di Bollo)
70    ///
71    /// Tax required in Italy, which may be fixed or graduated in various circumstances (e.g. VAT exempt documents or bank receipts).
72    StampDutyImpostaDiBollo,
73    /// Agricultural levy
74    ///
75    /// Levy imposed on agricultural products where there is a difference between the selling price between trading countries.
76    AgriculturalLevy,
77    /// Car tax
78    ///
79    /// A tax that is levied on the value of the automobile.
80    CarTax,
81    /// Paper consortium tax (Italy)
82    ///
83    /// Italian Paper consortium tax.
84    PaperConsortiumTaxItaly,
85    /// Commodity specific tax
86    ///
87    /// Tax related to a specified commodity, e.g. illuminants, salts.
88    CommoditySpecificTax,
89    /// Customs duty
90    ///
91    /// Duties laid down in the Customs tariff, to which goods are liable on entering or leaving the Customs territory (CCC).
92    CustomsDuty,
93    /// Countervailing duty
94    ///
95    /// A duty on imported goods applied for compensate for subsidies granted to those goods in the exporting country.
96    CountervailingDuty,
97    /// Environmental tax
98    ///
99    /// Tax assessed for funding or assuring environmental protection or clean-up.
100    EnvironmentalTax,
101    /// Excise duty
102    ///
103    /// Customs or fiscal authorities code to identify a specific or ad valorem levy on a specific commodity, applied either domestically or at time of importation.
104    ExciseDuty,
105    /// Agricultural export rebate
106    ///
107    /// Monetary rebate given to the seller in certain circumstances when agricultural products are exported.
108    AgriculturalExportRebate,
109    /// Federal excise tax
110    ///
111    /// Tax levied by the federal government on the manufacture of specific items.
112    FederalExciseTax,
113    /// Free
114    ///
115    /// No tax levied.
116    Free,
117    /// General construction tax
118    ///
119    /// General tax for construction.
120    GeneralConstructionTax,
121    /// Goods and services tax
122    ///
123    /// Tax levied on the final consumption of goods and services throughout the production and distribution chain.
124    GoodsAndServicesTax,
125    /// Illuminants tax
126    ///
127    /// Tax of illuminants.
128    IlluminantsTax,
129    /// Import tax
130    ///
131    /// Tax assessed on imports.
132    ImportTax,
133    /// Individual tax
134    ///
135    /// A tax levied based on an individual's ability to pay.
136    IndividualTax,
137    /// Business license fee
138    ///
139    /// Government assessed charge for permit to do business.
140    BusinessLicenseFee,
141    /// Local construction tax
142    ///
143    /// Local tax for construction.
144    LocalConstructionTax,
145    /// Light dues payable
146    ///
147    /// Fee levied on a vessel to pay for port navigation lights.
148    LightDuesPayable,
149    /// Local sales tax
150    ///
151    /// Assessment charges on sale of goods or services by city, borough country or other taxing authorities below state or provincial level.
152    LocalSalesTax,
153    /// Lust tax
154    ///
155    /// Tax imposed for clean-up of leaky underground storage tanks.
156    LustTax,
157    /// Monetary compensatory amount
158    ///
159    /// Levy on Common Agricultural Policy (European Union) goods used to compensate for fluctuating currencies between member states.
160    MonetaryCompensatoryAmount,
161    /// Miscellaneous cash deposit
162    ///
163    /// Duty paid and held on deposit, by Customs, during an investigation period prior to a final decision being made on any aspect related to imported goods (except valuation) by Customs.
164    MiscellaneousCashDeposit,
165    /// Other taxes
166    ///
167    /// Unspecified, miscellaneous tax charges.
168    OtherTaxes,
169    /// Provisional duty bond
170    ///
171    /// Anti-dumping duty paid by posting a bond during an investigation period prior to a formal decision on dumping by Customs.
172    ProvisionalDutyBond,
173    /// Provisional duty cash
174    ///
175    /// Anti-dumping duty paid in cash prior to a formal finding of dumping by Customs.
176    ProvisionalDutyCash,
177    /// Preference duty
178    ///
179    /// Duties laid down in the Customs tariff, to which goods are liable on entering or leaving the Customs territory falling under a preferential regime such as Generalised System of Preferences (GSP).
180    PreferenceDuty,
181    /// Special construction tax
182    ///
183    /// Special tax for construction.
184    SpecialConstructionTax,
185    /// Shifted social securities
186    ///
187    /// Social securities share of the invoice amount to be paid directly to the social securities collector.
188    ShiftedSocialSecurities,
189    /// State/provincial sales tax
190    ///
191    /// All applicable sale taxes by authorities at the state or provincial level, below national level.
192    StateProvincialSalesTax,
193    /// Suspended duty
194    ///
195    /// Duty suspended or deferred from payment.
196    SuspendedDuty,
197    /// Surtax
198    ///
199    /// A tax or duty applied on and in addition to existing duties and taxes.
200    Surtax,
201    /// Shifted wage tax
202    ///
203    /// Wage tax share of the invoice amount to be paid directly to the tax collector(s office).
204    ShiftedWageTax,
205    /// Alcohol mark tax
206    ///
207    /// A tax levied based on the type of alcohol being obtained.
208    AlcoholMarkTax,
209    /// Total
210    ///
211    /// The summary amount of all taxes.
212    Total,
213    /// Turnover tax
214    ///
215    /// Tax levied on the total sales/turnover of a corporation.
216    TurnoverTax,
217    /// Tonnage taxes
218    ///
219    /// Tax levied based on the vessel's net tonnage.
220    TonnageTaxes,
221    /// Valuation deposit
222    ///
223    /// Duty paid and held on deposit, by Customs, during an investigation period prior to a formal decision on valuation of the goods being made.
224    ValuationDeposit,
225    /// Value added tax
226    ///
227    /// A tax on domestic or imported goods applied to the value added at each stage in the production/distribution cycle.
228    ValueAddedTax,
229}
230
231impl crate::Code for VATCAT {
232    fn code(self) -> &'static str {
233        match self {
234            VATCAT::PetroleumTax => "AAA",
235            VATCAT::ProvisionalCountervailingDutyCash => "AAB",
236            VATCAT::ProvisionalCountervailingDutyBond => "AAC",
237            VATCAT::TobaccoTax => "AAD",
238            VATCAT::EnergyFee => "AAE",
239            VATCAT::CoffeeTax => "AAF",
240            VATCAT::HarmonisedSalesTaxCanadian => "AAG",
241            VATCAT::QuebecSalesTax => "AAH",
242            VATCAT::CanadianProvincialSalesTax => "AAI",
243            VATCAT::TaxOnReplacementPart => "AAJ",
244            VATCAT::MineralOilTax => "AAK",
245            VATCAT::SpecialTax => "AAL",
246            VATCAT::InsuranceTax => "AAM",
247            VATCAT::ProvincialCannabisTax => "AAO",
248            VATCAT::OutstandingDutyInterest => "AAP",
249            VATCAT::AntiDumpingDuty => "ADD",
250            VATCAT::StampDutyImpostaDiBollo => "BOL",
251            VATCAT::AgriculturalLevy => "CAP",
252            VATCAT::CarTax => "CAR",
253            VATCAT::PaperConsortiumTaxItaly => "COC",
254            VATCAT::CommoditySpecificTax => "CST",
255            VATCAT::CustomsDuty => "CUD",
256            VATCAT::CountervailingDuty => "CVD",
257            VATCAT::EnvironmentalTax => "ENV",
258            VATCAT::ExciseDuty => "EXC",
259            VATCAT::AgriculturalExportRebate => "EXP",
260            VATCAT::FederalExciseTax => "FET",
261            VATCAT::Free => "FRE",
262            VATCAT::GeneralConstructionTax => "GCN",
263            VATCAT::GoodsAndServicesTax => "GST",
264            VATCAT::IlluminantsTax => "ILL",
265            VATCAT::ImportTax => "IMP",
266            VATCAT::IndividualTax => "IND",
267            VATCAT::BusinessLicenseFee => "LAC",
268            VATCAT::LocalConstructionTax => "LCN",
269            VATCAT::LightDuesPayable => "LDP",
270            VATCAT::LocalSalesTax => "LOC",
271            VATCAT::LustTax => "LST",
272            VATCAT::MonetaryCompensatoryAmount => "MCA",
273            VATCAT::MiscellaneousCashDeposit => "MCD",
274            VATCAT::OtherTaxes => "OTH",
275            VATCAT::ProvisionalDutyBond => "PDB",
276            VATCAT::ProvisionalDutyCash => "PDC",
277            VATCAT::PreferenceDuty => "PRF",
278            VATCAT::SpecialConstructionTax => "SCN",
279            VATCAT::ShiftedSocialSecurities => "SSS",
280            VATCAT::StateProvincialSalesTax => "STT",
281            VATCAT::SuspendedDuty => "SUP",
282            VATCAT::Surtax => "SUR",
283            VATCAT::ShiftedWageTax => "SWT",
284            VATCAT::AlcoholMarkTax => "TAC",
285            VATCAT::Total => "TOT",
286            VATCAT::TurnoverTax => "TOX",
287            VATCAT::TonnageTaxes => "TTA",
288            VATCAT::ValuationDeposit => "VAD",
289            VATCAT::ValueAddedTax => "VAT",
290        }
291    }
292}
293
294impl crate::Description for VATCAT {
295    fn description(self) -> &'static str {
296        match self {
297            VATCAT::PetroleumTax => "Petroleum tax",
298            VATCAT::ProvisionalCountervailingDutyCash => "Provisional countervailing duty cash",
299            VATCAT::ProvisionalCountervailingDutyBond => "Provisional countervailing duty bond",
300            VATCAT::TobaccoTax => "Tobacco tax",
301            VATCAT::EnergyFee => "Energy fee",
302            VATCAT::CoffeeTax => "Coffee tax",
303            VATCAT::HarmonisedSalesTaxCanadian => "Harmonised sales tax, Canadian",
304            VATCAT::QuebecSalesTax => "Quebec sales tax",
305            VATCAT::CanadianProvincialSalesTax => "Canadian provincial sales tax",
306            VATCAT::TaxOnReplacementPart => "Tax on replacement part",
307            VATCAT::MineralOilTax => "Mineral oil tax",
308            VATCAT::SpecialTax => "Special tax",
309            VATCAT::InsuranceTax => "Insurance tax",
310            VATCAT::ProvincialCannabisTax => "Provincial Cannabis Tax",
311            VATCAT::OutstandingDutyInterest => "Outstanding duty interest",
312            VATCAT::AntiDumpingDuty => "Anti-dumping duty",
313            VATCAT::StampDutyImpostaDiBollo => "Stamp duty (Imposta di Bollo)",
314            VATCAT::AgriculturalLevy => "Agricultural levy",
315            VATCAT::CarTax => "Car tax",
316            VATCAT::PaperConsortiumTaxItaly => "Paper consortium tax (Italy)",
317            VATCAT::CommoditySpecificTax => "Commodity specific tax",
318            VATCAT::CustomsDuty => "Customs duty",
319            VATCAT::CountervailingDuty => "Countervailing duty",
320            VATCAT::EnvironmentalTax => "Environmental tax",
321            VATCAT::ExciseDuty => "Excise duty",
322            VATCAT::AgriculturalExportRebate => "Agricultural export rebate",
323            VATCAT::FederalExciseTax => "Federal excise tax",
324            VATCAT::Free => "Free",
325            VATCAT::GeneralConstructionTax => "General construction tax",
326            VATCAT::GoodsAndServicesTax => "Goods and services tax",
327            VATCAT::IlluminantsTax => "Illuminants tax",
328            VATCAT::ImportTax => "Import tax",
329            VATCAT::IndividualTax => "Individual tax",
330            VATCAT::BusinessLicenseFee => "Business license fee",
331            VATCAT::LocalConstructionTax => "Local construction tax",
332            VATCAT::LightDuesPayable => "Light dues payable",
333            VATCAT::LocalSalesTax => "Local sales tax",
334            VATCAT::LustTax => "Lust tax",
335            VATCAT::MonetaryCompensatoryAmount => "Monetary compensatory amount",
336            VATCAT::MiscellaneousCashDeposit => "Miscellaneous cash deposit",
337            VATCAT::OtherTaxes => "Other taxes",
338            VATCAT::ProvisionalDutyBond => "Provisional duty bond",
339            VATCAT::ProvisionalDutyCash => "Provisional duty cash",
340            VATCAT::PreferenceDuty => "Preference duty",
341            VATCAT::SpecialConstructionTax => "Special construction tax",
342            VATCAT::ShiftedSocialSecurities => "Shifted social securities",
343            VATCAT::StateProvincialSalesTax => "State/provincial sales tax",
344            VATCAT::SuspendedDuty => "Suspended duty",
345            VATCAT::Surtax => "Surtax",
346            VATCAT::ShiftedWageTax => "Shifted wage tax",
347            VATCAT::AlcoholMarkTax => "Alcohol mark tax",
348            VATCAT::Total => "Total",
349            VATCAT::TurnoverTax => "Turnover tax",
350            VATCAT::TonnageTaxes => "Tonnage taxes",
351            VATCAT::ValuationDeposit => "Valuation deposit",
352            VATCAT::ValueAddedTax => "Value added tax",
353        }
354    }
355}
356
357impl crate::FromCode for VATCAT {
358    fn from_code(code: &str) -> Option<Self>
359    where
360        Self: Sized,
361    {
362        match code {
363            "AAA" => Some(VATCAT::PetroleumTax),
364            "AAB" => Some(VATCAT::ProvisionalCountervailingDutyCash),
365            "AAC" => Some(VATCAT::ProvisionalCountervailingDutyBond),
366            "AAD" => Some(VATCAT::TobaccoTax),
367            "AAE" => Some(VATCAT::EnergyFee),
368            "AAF" => Some(VATCAT::CoffeeTax),
369            "AAG" => Some(VATCAT::HarmonisedSalesTaxCanadian),
370            "AAH" => Some(VATCAT::QuebecSalesTax),
371            "AAI" => Some(VATCAT::CanadianProvincialSalesTax),
372            "AAJ" => Some(VATCAT::TaxOnReplacementPart),
373            "AAK" => Some(VATCAT::MineralOilTax),
374            "AAL" => Some(VATCAT::SpecialTax),
375            "AAM" => Some(VATCAT::InsuranceTax),
376            "AAO" => Some(VATCAT::ProvincialCannabisTax),
377            "AAP" => Some(VATCAT::OutstandingDutyInterest),
378            "ADD" => Some(VATCAT::AntiDumpingDuty),
379            "BOL" => Some(VATCAT::StampDutyImpostaDiBollo),
380            "CAP" => Some(VATCAT::AgriculturalLevy),
381            "CAR" => Some(VATCAT::CarTax),
382            "COC" => Some(VATCAT::PaperConsortiumTaxItaly),
383            "CST" => Some(VATCAT::CommoditySpecificTax),
384            "CUD" => Some(VATCAT::CustomsDuty),
385            "CVD" => Some(VATCAT::CountervailingDuty),
386            "ENV" => Some(VATCAT::EnvironmentalTax),
387            "EXC" => Some(VATCAT::ExciseDuty),
388            "EXP" => Some(VATCAT::AgriculturalExportRebate),
389            "FET" => Some(VATCAT::FederalExciseTax),
390            "FRE" => Some(VATCAT::Free),
391            "GCN" => Some(VATCAT::GeneralConstructionTax),
392            "GST" => Some(VATCAT::GoodsAndServicesTax),
393            "ILL" => Some(VATCAT::IlluminantsTax),
394            "IMP" => Some(VATCAT::ImportTax),
395            "IND" => Some(VATCAT::IndividualTax),
396            "LAC" => Some(VATCAT::BusinessLicenseFee),
397            "LCN" => Some(VATCAT::LocalConstructionTax),
398            "LDP" => Some(VATCAT::LightDuesPayable),
399            "LOC" => Some(VATCAT::LocalSalesTax),
400            "LST" => Some(VATCAT::LustTax),
401            "MCA" => Some(VATCAT::MonetaryCompensatoryAmount),
402            "MCD" => Some(VATCAT::MiscellaneousCashDeposit),
403            "OTH" => Some(VATCAT::OtherTaxes),
404            "PDB" => Some(VATCAT::ProvisionalDutyBond),
405            "PDC" => Some(VATCAT::ProvisionalDutyCash),
406            "PRF" => Some(VATCAT::PreferenceDuty),
407            "SCN" => Some(VATCAT::SpecialConstructionTax),
408            "SSS" => Some(VATCAT::ShiftedSocialSecurities),
409            "STT" => Some(VATCAT::StateProvincialSalesTax),
410            "SUP" => Some(VATCAT::SuspendedDuty),
411            "SUR" => Some(VATCAT::Surtax),
412            "SWT" => Some(VATCAT::ShiftedWageTax),
413            "TAC" => Some(VATCAT::AlcoholMarkTax),
414            "TOT" => Some(VATCAT::Total),
415            "TOX" => Some(VATCAT::TurnoverTax),
416            "TTA" => Some(VATCAT::TonnageTaxes),
417            "VAD" => Some(VATCAT::ValuationDeposit),
418            "VAT" => Some(VATCAT::ValueAddedTax),
419            _ => None,
420        }
421    }
422}