Add more tax categories
This commit is contained in:
parent
19294c15ff
commit
e7e748b7bd
|
|
@ -199,13 +199,21 @@ const String kTaxCategoryDigital = '2';
|
||||||
const String kTaxCategoryServices = '3';
|
const String kTaxCategoryServices = '3';
|
||||||
const String kTaxCategoryShipping = '4';
|
const String kTaxCategoryShipping = '4';
|
||||||
const String kTaxCategoryExempt = '5';
|
const String kTaxCategoryExempt = '5';
|
||||||
|
const String kTaxCategoryReducedTax = '6';
|
||||||
|
const String kTaxCategoryOverrideTax = '7';
|
||||||
|
const String kTaxCategoryZeroRated = '8';
|
||||||
|
const String kTaxCategoryReverseTax = '9';
|
||||||
|
|
||||||
const kTaxCategories = {
|
const kTaxCategories = {
|
||||||
kTaxCategoryPhysical: 'Physical Goods',
|
kTaxCategoryPhysical: 'physical_goods',
|
||||||
kTaxCategoryDigital: 'Digital Products',
|
kTaxCategoryDigital: 'digital_products',
|
||||||
kTaxCategoryServices: 'Services',
|
kTaxCategoryServices: 'services',
|
||||||
kTaxCategoryShipping: 'Shipping',
|
kTaxCategoryShipping: 'shipping',
|
||||||
kTaxCategoryExempt: 'Tax Exempt',
|
kTaxCategoryExempt: 'tax_exempt',
|
||||||
|
kTaxCategoryReducedTax: 'reduced_tax',
|
||||||
|
kTaxCategoryOverrideTax: 'override_tax',
|
||||||
|
kTaxCategoryZeroRated: 'zero_rated',
|
||||||
|
kTaxCategoryReverseTax: 'reverse_tax',
|
||||||
};
|
};
|
||||||
|
|
||||||
const String kCountryUnitedStates = '840';
|
const String kCountryUnitedStates = '840';
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
// STARTER: lang key - do not remove comment
|
// STARTER: lang key - do not remove comment
|
||||||
|
'reduced_tax': 'Reduced Tax',
|
||||||
|
'override_tax': 'Override Tax',
|
||||||
|
'zero_rated': 'Zero Rated',
|
||||||
|
'reverse_tax': 'Reverse Tax',
|
||||||
'updated_tax_category': 'Successfully updated the tax category',
|
'updated_tax_category': 'Successfully updated the tax category',
|
||||||
'updated_tax_categories': 'Successfully updated the tax categories',
|
'updated_tax_categories': 'Successfully updated the tax categories',
|
||||||
'set_tax_category': 'Set Tax Category',
|
'set_tax_category': 'Set Tax Category',
|
||||||
|
|
@ -99373,6 +99377,22 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
_localizedValues[localeCode]['updated_tax_categories'] ??
|
_localizedValues[localeCode]['updated_tax_categories'] ??
|
||||||
_localizedValues['en']['updated_tax_categories'];
|
_localizedValues['en']['updated_tax_categories'];
|
||||||
|
|
||||||
|
String get reducedTax =>
|
||||||
|
_localizedValues[localeCode]['reduced_tax'] ??
|
||||||
|
_localizedValues['en']['reduced_tax'];
|
||||||
|
|
||||||
|
String get overrideTax =>
|
||||||
|
_localizedValues[localeCode]['override_tax'] ??
|
||||||
|
_localizedValues['en']['override_tax'];
|
||||||
|
|
||||||
|
String get zeroRated =>
|
||||||
|
_localizedValues[localeCode]['zero_rated'] ??
|
||||||
|
_localizedValues['en']['zero_rated'];
|
||||||
|
|
||||||
|
String get reverseTax =>
|
||||||
|
_localizedValues[localeCode]['reverse_tax'] ??
|
||||||
|
_localizedValues['en']['reverse_tax'];
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue