Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: support additional tax ids (#38542)

Kevin Grünebergc0041e0c2821
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts
index 290af4077ed..b34098174b3 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts
@@ -10,13 +10,13 @@ export interface TaxId {
// Commented out countries are not currently supported by Orb API
export const TAX_IDS: TaxId[] = [
- /*{
+ {
name: 'AL TIN',
type: 'al_tin',
country: 'Albania',
placeholder: 'J12345678N',
countryIso2: 'AL',
- },*/
+ },
{
name: 'AE TRN',
type: 'ae_trn',
@@ -39,13 +39,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'A-123456-Z',
countryIso2: 'AD',
},
- /*{
+ {
name: 'AO TIN',
type: 'ao_tin',
country: 'Angola',
placeholder: '5123456789',
countryIso2: 'AO',
- },*/
+ },
{
name: 'AR CUIT',
type: 'ar_cuit',
@@ -53,7 +53,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12-3456789-01',
countryIso2: 'AR',
},
- /*{
+ {
name: 'AM TIN',
type: 'am_tin',
country: 'Armenia',
@@ -66,7 +66,7 @@ export const TAX_IDS: TaxId[] = [
country: 'Aruba',
placeholder: '12345678',
countryIso2: 'AW',
- },*/
+ },
{
name: 'AU ABN',
type: 'au_abn',
@@ -81,7 +81,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789123',
countryIso2: 'AU',
},
- /*{
+ {
name: 'AZ TIN',
type: 'az_tin',
country: 'Azerbaijan',
@@ -94,7 +94,7 @@ export const TAX_IDS: TaxId[] = [
country: 'Bahamas',
placeholder: '123.456.789',
countryIso2: 'BS',
- },*/
+ },
{
name: 'BH VAT',
type: 'bh_vat',
@@ -102,7 +102,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789012345',
countryIso2: 'BH',
},
- /*{
+ {
name: 'BD BIN',
type: 'bd_bin',
country: 'Bangladesh',
@@ -116,13 +116,6 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1123456789012',
countryIso2: 'BB',
},
- {
- name: 'BY TIN',
- type: 'by_tin',
- country: 'Belarus',
- placeholder: '123456789',
- countryIso2: 'BY',
- },*/
{
name: 'BE VAT',
type: 'eu_vat',
@@ -131,13 +124,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'BE',
countryIso2: 'BE',
},
- /*{
+ {
name: 'BJ IFU',
type: 'bj_ifu',
country: 'Benin',
placeholder: '1234567890123',
countryIso2: 'BJ',
- },*/
+ },
{
name: 'BO TIN',
type: 'bo_tin',
@@ -145,13 +138,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789',
countryIso2: 'BO',
},
- /*{
+ {
name: 'BA TIN',
type: 'ba_tin',
country: 'Bosnia & Herzegovina',
placeholder: '123456789012',
countryIso2: 'BA',
- },*/
+ },
{
name: 'BG VAT',
type: 'eu_vat',
@@ -160,6 +153,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'BG',
countryIso2: 'BG',
},
+ {
+ name: 'BG UIC',
+ type: 'bg_uic',
+ country: 'Bulgaria',
+ placeholder: '123456789',
+ countryIso2: 'BG',
+ },
{
name: 'BR CNPJ',
type: 'br_cnpj',
@@ -174,7 +174,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123.456.789-87',
countryIso2: 'BR',
},
- /*{
+ {
name: 'BF IFU',
type: 'bf_ifu',
country: 'Burkina Faso',
@@ -194,7 +194,7 @@ export const TAX_IDS: TaxId[] = [
country: 'Cameroon',
placeholder: 'M123456789000L',
countryIso2: 'CM',
- },*/
+ },
{
name: 'CA BN',
type: 'ca_bn',
@@ -225,7 +225,7 @@ export const TAX_IDS: TaxId[] = [
},
{
name: 'CA PST-SK',
- type: 'ca_pst_mb',
+ type: 'ca_pst_sk',
country: 'Canada',
placeholder: '1234567',
countryIso2: 'CA',
@@ -237,13 +237,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1234567890TQ1234',
countryIso2: 'CA',
},
- /*{
+ {
name: 'CV NIF',
type: 'cv_nif',
country: 'Cape Verde',
placeholder: '213456789',
countryIso2: 'CV',
- },*/
+ },
{
name: 'CH VAT',
type: 'ch_vat',
@@ -252,6 +252,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'CHE',
countryIso2: 'CH',
},
+ {
+ name: 'CH UID',
+ type: 'ch_uid',
+ country: 'Switzerland',
+ placeholder: 'CHE-123.456.789 HR ',
+ countryIso2: 'CH',
+ },
{
name: 'CL TIN',
type: 'cl_tin',
@@ -273,13 +280,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123.456.789-0',
countryIso2: 'CO',
},
- /*{
+ {
name: 'CD NIF',
type: 'cd_nif',
country: 'Congo (DRC)',
placeholder: 'A0123456M',
countryIso2: 'CD',
- },*/
+ },
{
name: 'CR TIN',
type: 'cr_tin',
@@ -311,6 +318,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'DE',
countryIso2: 'DE',
},
+ {
+ name: 'DE STN',
+ type: 'de_stn',
+ country: 'Germany',
+ placeholder: '1234567890',
+ countryIso2: 'DE',
+ },
{
name: 'DK VAT',
type: 'eu_vat',
@@ -347,13 +361,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1234-567890-123-4',
countryIso2: 'SV',
},
- /*{
+ {
name: 'ET TIN',
type: 'et_tin',
country: 'Ethiopia',
placeholder: '1234567890',
countryIso2: 'ET',
- },*/
+ },
{
name: 'EE VAT',
type: 'eu_vat',
@@ -377,13 +391,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'ES',
countryIso2: 'ES',
},
- /*{
+ {
name: 'SR FIN',
type: 'sr_fin',
country: 'Suriname',
placeholder: '1234567890',
countryIso2: 'SR',
- },*/
+ },
{
name: 'FI VAT',
type: 'eu_vat',
@@ -408,6 +422,14 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'GB',
countryIso2: 'GB',
},
+ {
+ name: 'UK VAT',
+ type: 'gb_vat',
+ country: 'United Kingdom',
+ placeholder: 'GB123456789',
+ vatPrefix: 'GB',
+ countryIso2: 'GB',
+ },
{
name: 'GE VAT',
type: 'ge_vat',
@@ -423,13 +445,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'EL123456789',
vatPrefix: 'EL',
},
- /*{
+ {
name: 'GN NIF',
type: 'gn_nif',
country: 'Guinea',
placeholder: '123456789',
countryIso2: 'GN',
- },*/
+ },
{
name: 'HK BR',
type: 'hk_br',
@@ -445,6 +467,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'HR',
countryIso2: 'HR',
},
+ {
+ name: 'HR OIB',
+ type: 'hr_oib',
+ country: 'Croatia',
+ placeholder: '12345678901',
+ countryIso2: 'HR',
+ },
{
name: 'HU VAT',
type: 'eu_vat',
@@ -453,6 +482,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'HU',
countryIso2: 'HU',
},
+ {
+ name: 'HU TIN',
+ type: 'hu_tin',
+ country: 'Hungary',
+ placeholder: '12345678-1-23',
+ countryIso2: 'HU',
+ },
{
name: 'ID NPWP',
type: 'id_npwp',
@@ -498,11 +534,11 @@ export const TAX_IDS: TaxId[] = [
countryIso2: 'IT',
},
{
- name: 'JP CN',
- type: 'jp_cn',
- country: 'Japan',
- placeholder: '1234567891234',
- countryIso2: 'JP',
+ name: 'KE PIN',
+ type: 'ke_pin',
+ country: 'Kenya',
+ placeholder: 'P000111111A',
+ countryIso2: 'KE',
},
{
name: 'KZ BIN',
@@ -512,19 +548,19 @@ export const TAX_IDS: TaxId[] = [
countryIso2: 'KZ',
},
{
- name: 'KE PIN',
- type: 'ke_pin',
- country: 'Kenya',
- placeholder: 'P000111111A',
- countryIso2: 'KE',
- },
- /*{
name: 'KG TIN',
type: 'kg_tin',
country: 'Kyrgyzstan',
placeholder: '12345678901234',
countryIso2: 'KG',
- },*/
+ },
+ {
+ name: 'JP CN',
+ type: 'jp_cn',
+ country: 'Japan',
+ placeholder: '1234567891234',
+ countryIso2: 'JP',
+ },
{
name: 'JP RN',
type: 'jp_rn',
@@ -532,6 +568,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12345',
countryIso2: 'JP',
},
+ {
+ name: 'JP TRN',
+ type: 'jp_trn',
+ country: 'Japan',
+ placeholder: 'T1234567891234',
+ countryIso2: 'JP',
+ },
{
name: 'KR BRN',
type: 'kr_brn',
@@ -546,6 +589,14 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'CHE123456789',
countryIso2: 'LI',
},
+ {
+ name: 'LI VAT',
+ type: 'li_vat',
+ country: 'Liechtenstein',
+ placeholder: '12345',
+ vatPrefix: 'LI',
+ countryIso2: 'LI',
+ },
{
name: 'LT VAT',
type: 'eu_vat',
@@ -562,13 +613,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'LU',
countryIso2: 'LU',
},
- /*{
+ {
name: 'LA TIN',
type: 'la_tin',
country: 'Laos',
placeholder: '123456789-000',
countryIso2: 'LA',
- },*/
+ },
{
name: 'LV VAT',
type: 'eu_vat',
@@ -585,13 +636,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'MT',
countryIso2: 'MT',
},
- /*{
+ {
name: 'MR NIF',
type: 'mr_nif',
country: 'Mauritania',
placeholder: '12345678',
countryIso2: 'MR',
- },*/
+ },
{
name: 'MX RFC',
type: 'mx_rfc',
@@ -599,7 +650,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'ABC010203AB9',
countryIso2: 'MX',
},
- /* {
+ {
name: 'MD VAT',
type: 'md_vat',
country: 'Moldova',
@@ -619,7 +670,7 @@ export const TAX_IDS: TaxId[] = [
country: 'Morocco',
placeholder: '12345678',
countryIso2: 'MA',
- },*/
+ },
{
name: 'MY FRP',
type: 'my_frp',
@@ -641,13 +692,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'A12-3456-78912345',
countryIso2: 'MY',
},
- /*{
+ {
name: 'NP PAN',
type: 'np_pan',
country: 'Nepal',
placeholder: '123456789',
countryIso2: 'NP',
- },*/
+ },
{
name: 'NL VAT',
type: 'eu_vat',
@@ -663,13 +714,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12345678-0001',
countryIso2: 'NG',
},
- /*{
+ {
name: 'MK VAT',
type: 'mk_vat',
country: 'North Macedonia',
placeholder: 'MK1234567890123',
countryIso2: 'MK',
- },*/
+ },
{
name: 'nz_gst',
type: 'nz_gst',
@@ -684,6 +735,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789MVA',
countryIso2: 'NO',
},
+ {
+ name: 'NO VOEC',
+ type: 'no_voec',
+ country: 'Norway',
+ placeholder: '1234567 ',
+ countryIso2: 'NO',
+ },
{
name: 'OM VAT',
type: 'om_vat',
@@ -736,6 +794,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'RO',
countryIso2: 'RO',
},
+ {
+ name: 'RO TIN',
+ type: 'ro_tin',
+ country: 'Romania',
+ placeholder: '1234567890123',
+ countryIso2: 'RO',
+ },
{
name: 'RU INN',
type: 'ru_inn',
@@ -757,13 +822,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789012345',
countryIso2: 'SA',
},
- /*{
+ {
name: 'SN NINEA',
type: 'sn_ninea',
country: 'Senegal',
placeholder: '12345672A2',
countryIso2: 'SN',
- },*/
+ },
{
name: 'RS PIB',
type: 'rs_pib',
@@ -801,6 +866,13 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'SI',
countryIso2: 'SI',
},
+ {
+ name: 'SI TIN',
+ type: 'si_tin',
+ country: 'Slovenia',
+ placeholder: '12345678',
+ countryIso2: 'SI',
+ },
{
name: 'SK VAT',
type: 'eu_vat',
@@ -830,7 +902,7 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12345678',
countryIso2: 'TW',
},
- /* {
+ {
name: 'TJ TIN',
type: 'tj_tin',
country: 'Tajikistan',
@@ -843,14 +915,14 @@ export const TAX_IDS: TaxId[] = [
country: 'Tanzania',
placeholder: '12345678A',
countryIso2: 'TZ',
- },*/
- /*{
+ },
+ {
name: 'UG TIN',
type: 'ug_tin',
country: 'Uganda',
placeholder: '0123456789',
countryIso2: 'UG',
- },*/
+ },
{
name: 'UA VAT',
type: 'ua_vat',
@@ -887,20 +959,20 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789012',
countryIso2: 'UY',
},
- /* {
+ {
name: 'UZ TIN',
type: 'uz_tin',
country: 'Uzbekistan',
placeholder: '123456789',
countryIso2: 'UZ',
},
- {
+ {
name: 'UZ VAT',
type: 'uz_vat',
country: 'Uzbekistan',
placeholder: '123456789012',
countryIso2: 'UZ',
- },*/
+ },
{
name: 'VE RIF',
type: 've_rif',
@@ -915,7 +987,6 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1234567890',
countryIso2: 'VN',
},
- /*
{
name: 'ZM TIN',
type: 'zm_tin',
@@ -929,5 +1000,5 @@ export const TAX_IDS: TaxId[] = [
country: 'Zimbabwe',
placeholder: '1234567890',
countryIso2: 'ZW',
- },*/
+ },
]