mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
[PM-289] Add taxIdType for more countries in TaxInfo (#3186)
* Add taxIdType for more countries in TaxInfo * Removed Afghanistan tax ID * Normalize country code in tax info model
This commit is contained in:
parent
b8b2efa767
commit
2aaef3cf64
@ -35,14 +35,23 @@ public class TaxInfo
|
|||||||
return _taxIdType;
|
return _taxIdType;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BillingAddressCountry)
|
switch (BillingAddressCountry.ToUpper())
|
||||||
{
|
{
|
||||||
|
case "AD":
|
||||||
|
_taxIdType = "ad_nrt";
|
||||||
|
break;
|
||||||
case "AE":
|
case "AE":
|
||||||
_taxIdType = "ae_trn";
|
_taxIdType = "ae_trn";
|
||||||
break;
|
break;
|
||||||
|
case "AR":
|
||||||
|
_taxIdType = "ar_cuit";
|
||||||
|
break;
|
||||||
case "AU":
|
case "AU":
|
||||||
_taxIdType = "au_abn";
|
_taxIdType = "au_abn";
|
||||||
break;
|
break;
|
||||||
|
case "BO":
|
||||||
|
_taxIdType = "bo_tin";
|
||||||
|
break;
|
||||||
case "BR":
|
case "BR":
|
||||||
_taxIdType = "br_cnpj";
|
_taxIdType = "br_cnpj";
|
||||||
break;
|
break;
|
||||||
@ -55,9 +64,45 @@ public class TaxInfo
|
|||||||
}
|
}
|
||||||
_taxIdType = "ca_bn";
|
_taxIdType = "ca_bn";
|
||||||
break;
|
break;
|
||||||
|
case "CH":
|
||||||
|
_taxIdType = "ch_vat";
|
||||||
|
break;
|
||||||
case "CL":
|
case "CL":
|
||||||
_taxIdType = "cl_tin";
|
_taxIdType = "cl_tin";
|
||||||
break;
|
break;
|
||||||
|
case "CN":
|
||||||
|
_taxIdType = "cn_tin";
|
||||||
|
break;
|
||||||
|
case "CO":
|
||||||
|
_taxIdType = "co_nit";
|
||||||
|
break;
|
||||||
|
case "CR":
|
||||||
|
_taxIdType = "cr_tin";
|
||||||
|
break;
|
||||||
|
case "DO":
|
||||||
|
_taxIdType = "do_rcn";
|
||||||
|
break;
|
||||||
|
case "EC":
|
||||||
|
_taxIdType = "ec_ruc";
|
||||||
|
break;
|
||||||
|
case "EG":
|
||||||
|
_taxIdType = "eg_tin";
|
||||||
|
break;
|
||||||
|
case "GE":
|
||||||
|
_taxIdType = "ge_vat";
|
||||||
|
break;
|
||||||
|
case "ID":
|
||||||
|
_taxIdType = "id_npwp";
|
||||||
|
break;
|
||||||
|
case "IL":
|
||||||
|
_taxIdType = "il_vat";
|
||||||
|
break;
|
||||||
|
case "IS":
|
||||||
|
_taxIdType = "is_vat";
|
||||||
|
break;
|
||||||
|
case "KE":
|
||||||
|
_taxIdType = "ke_pin";
|
||||||
|
break;
|
||||||
case "AT":
|
case "AT":
|
||||||
case "BE":
|
case "BE":
|
||||||
case "BG":
|
case "BG":
|
||||||
@ -115,6 +160,15 @@ public class TaxInfo
|
|||||||
case "NZ":
|
case "NZ":
|
||||||
_taxIdType = "nz_gst";
|
_taxIdType = "nz_gst";
|
||||||
break;
|
break;
|
||||||
|
case "PE":
|
||||||
|
_taxIdType = "pe_ruc";
|
||||||
|
break;
|
||||||
|
case "PH":
|
||||||
|
_taxIdType = "ph_tin";
|
||||||
|
break;
|
||||||
|
case "RS":
|
||||||
|
_taxIdType = "rs_pib";
|
||||||
|
break;
|
||||||
case "RU":
|
case "RU":
|
||||||
_taxIdType = "ru_inn";
|
_taxIdType = "ru_inn";
|
||||||
break;
|
break;
|
||||||
@ -124,15 +178,33 @@ public class TaxInfo
|
|||||||
case "SG":
|
case "SG":
|
||||||
_taxIdType = "sg_gst";
|
_taxIdType = "sg_gst";
|
||||||
break;
|
break;
|
||||||
|
case "SV":
|
||||||
|
_taxIdType = "sv_nit";
|
||||||
|
break;
|
||||||
case "TH":
|
case "TH":
|
||||||
_taxIdType = "th_vat";
|
_taxIdType = "th_vat";
|
||||||
break;
|
break;
|
||||||
|
case "TR":
|
||||||
|
_taxIdType = "tr_tin";
|
||||||
|
break;
|
||||||
case "TW":
|
case "TW":
|
||||||
_taxIdType = "tw_vat";
|
_taxIdType = "tw_vat";
|
||||||
break;
|
break;
|
||||||
|
case "UA":
|
||||||
|
_taxIdType = "ua_vat";
|
||||||
|
break;
|
||||||
case "US":
|
case "US":
|
||||||
_taxIdType = "us_ein";
|
_taxIdType = "us_ein";
|
||||||
break;
|
break;
|
||||||
|
case "UY":
|
||||||
|
_taxIdType = "uy_ruc";
|
||||||
|
break;
|
||||||
|
case "VE":
|
||||||
|
_taxIdType = "ve_rif";
|
||||||
|
break;
|
||||||
|
case "VN":
|
||||||
|
_taxIdType = "vn_tin";
|
||||||
|
break;
|
||||||
case "ZA":
|
case "ZA":
|
||||||
_taxIdType = "za_vat";
|
_taxIdType = "za_vat";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user