Skip to content

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

feat: support new tax ids (#37284)

Kevin Grüneberg78c4b8f238fc
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 4b2d7a2b407..dcc09c8e795 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants.ts
@@ -12,7 +12,16 @@ export interface TaxId {
vatPrefix?: string
}
+// 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',
@@ -35,6 +44,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',
@@ -42,6 +58,20 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12-3456789-01',
countryIso2: 'AR',
},
+ /*{
+ name: 'AM TIN',
+ type: 'am_tin',
+ country: 'Armenia',
+ placeholder: '02538904',
+ countryIso2: 'AM',
+ },
+ {
+ name: 'AW TIN',
+ type: 'aw_tin',
+ country: 'Aruba',
+ placeholder: '12345678',
+ countryIso2: 'AW',
+ },*/
{
name: 'AU ABN',
type: 'au_abn',
@@ -56,6 +86,48 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789123',
countryIso2: 'AU',
},
+ /*{
+ name: 'AZ TIN',
+ type: 'az_tin',
+ country: 'Azerbaijan',
+ placeholder: '0123456789',
+ countryIso2: 'AZ',
+ },
+ {
+ name: 'BS TIN',
+ type: 'bs_tin',
+ country: 'Bahamas',
+ placeholder: '123.456.789',
+ countryIso2: 'BS',
+ },*/
+ {
+ name: 'BH VAT',
+ type: 'bh_vat',
+ country: 'Bahrain',
+ placeholder: '123456789012345',
+ countryIso2: 'BH',
+ },
+ /*{
+ name: 'BD BIN',
+ type: 'bd_bin',
+ country: 'Bangladesh',
+ placeholder: '123456789-0123',
+ countryIso2: 'BD',
+ },
+ {
+ name: 'BB TIN',
+ type: 'bb_tin',
+ country: 'Barbados',
+ placeholder: '1123456789012',
+ countryIso2: 'BB',
+ },
+ {
+ name: 'BY TIN',
+ type: 'by_tin',
+ country: 'Belarus',
+ placeholder: '123456789',
+ countryIso2: 'BY',
+ },*/
{
name: 'BE VAT',
type: 'eu_vat',
@@ -64,6 +136,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',
@@ -71,6 +150,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',
@@ -93,6 +179,27 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123.456.789-87',
countryIso2: 'BR',
},
+ /*{
+ name: 'BF IFU',
+ type: 'bf_ifu',
+ country: 'Burkina Faso',
+ placeholder: '12345678A',
+ countryIso2: 'BF',
+ },
+ {
+ name: 'KH TIN',
+ type: 'kh_tin',
+ country: 'Cambodia',
+ placeholder: '1001-123456789',
+ countryIso2: 'KH',
+ },
+ {
+ name: 'CM NIU',
+ type: 'cm_niu',
+ country: 'Cameroon',
+ placeholder: 'M123456789000L',
+ countryIso2: 'CM',
+ },*/
{
name: 'CA BN',
type: 'ca_bn',
@@ -135,6 +242,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',
@@ -164,6 +278,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',
@@ -210,6 +331,34 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123-4567890-1',
countryIso2: 'DO',
},
+ {
+ name: 'EC RUC',
+ type: 'ec_ruc',
+ country: 'Ecuador',
+ placeholder: '1234567890001',
+ countryIso2: 'EC',
+ },
+ {
+ name: 'EG TIN',
+ type: 'eg_tin',
+ country: 'Egypt',
+ placeholder: '1234567890',
+ countryIso2: 'EG',
+ },
+ {
+ name: 'SV NIT',
+ type: 'sv_nit',
+ country: 'El Salvador',
+ 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',
@@ -233,6 +382,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',
@@ -272,6 +428,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',
@@ -299,7 +462,7 @@ export const TAX_IDS: TaxId[] = [
name: 'ID NPWP',
type: 'id_npwp',
country: 'Indonesia',
- placeholder: '12.345.678.9-012.345',
+ placeholder: '012.345.678.9-012.345',
countryIso2: 'ID',
},
{
@@ -346,6 +509,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1234567891234',
countryIso2: 'JP',
},
+ {
+ name: 'KZ BIN',
+ type: 'kz_bin',
+ country: 'Kazakhstan',
+ placeholder: '123456789012',
+ countryIso2: 'KZ',
+ },
{
name: 'KE PIN',
type: 'ke_pin',
@@ -353,6 +523,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'P000111111A',
countryIso2: 'KE',
},
+ /*{
+ name: 'KG TIN',
+ type: 'kg_tin',
+ country: 'Kyrgyzstan',
+ placeholder: '12345678901234',
+ countryIso2: 'KG',
+ },*/
{
name: 'JP RN',
type: 'jp_rn',
@@ -390,6 +567,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',
@@ -406,6 +590,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',
@@ -413,6 +604,27 @@ export const TAX_IDS: TaxId[] = [
placeholder: 'ABC010203AB9',
countryIso2: 'MX',
},
+ /* {
+ name: 'MD VAT',
+ type: 'md_vat',
+ country: 'Moldova',
+ placeholder: '1234567',
+ countryIso2: 'MD',
+ },
+ {
+ name: 'ME PIB',
+ type: 'me_pib',
+ country: 'Montenegro',
+ placeholder: '12345678',
+ countryIso2: 'ME',
+ },
+ {
+ name: 'MA VAT',
+ type: 'ma_vat',
+ country: 'Morocco',
+ placeholder: '12345678',
+ countryIso2: 'MA',
+ },*/
{
name: 'MY FRP',
type: 'my_frp',
@@ -434,6 +646,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',
@@ -442,6 +661,27 @@ export const TAX_IDS: TaxId[] = [
vatPrefix: 'NL',
countryIso2: 'NL',
},
+ {
+ name: 'NG TIN',
+ type: 'ng_tin',
+ country: 'Nigeria',
+ placeholder: '12345678-0001',
+ countryIso2: 'NG',
+ },
+ /*{
+ name: 'MK VAT',
+ type: 'mk_vat',
+ country: 'North Macedonia',
+ placeholder: 'MK1234567890123',
+ countryIso2: 'MK',
+ },*/
+ {
+ name: 'nz_gst',
+ type: 'nz_gst',
+ country: 'New Zealand',
+ placeholder: '123456789',
+ countryIso2: 'NZ',
+ },
{
name: 'NO VAT',
type: 'no_vat',
@@ -449,6 +689,13 @@ export const TAX_IDS: TaxId[] = [
placeholder: '123456789MVA',
countryIso2: 'NO',
},
+ {
+ name: 'OM VAT',
+ type: 'om_vat',
+ country: 'Oman',
+ placeholder: 'OM1234567890',
+ countryIso2: 'OM',
+ },
{
name: 'PE RUC',
type: 'pe_ruc',
@@ -515,6 +762,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',
@@ -581,6 +835,27 @@ export const TAX_IDS: TaxId[] = [
placeholder: '12345678',
countryIso2: 'TW',
},
+ /* {
+ name: 'TJ TIN',
+ type: 'tj_tin',
+ country: 'Tajikistan',
+ placeholder: '123456789',
+ countryIso2: 'TJ',
+ },
+ {
+ name: 'TZ VAT',
+ type: 'tz_vat',
+ country: 'Tanzania',
+ placeholder: '12345678A',
+ countryIso2: 'TZ',
+ },*/
+ /*{
+ name: 'UG TIN',
+ type: 'ug_tin',
+ country: 'Uganda',
+ placeholder: '0123456789',
+ countryIso2: 'UG',
+ },*/
{
name: 'UA VAT',
type: 'ua_vat',
@@ -617,6 +892,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',
@@ -631,4 +920,19 @@ export const TAX_IDS: TaxId[] = [
placeholder: '1234567890',
countryIso2: 'VN',
},
+ /*
+ {
+ name: 'ZM TIN',
+ type: 'zm_tin',
+ country: 'Zambia',
+ placeholder: '1004751879',
+ countryIso2: 'ZM',
+ },
+ {
+ name: 'ZW TIN',
+ type: 'zw_tin',
+ country: 'Zimbabwe',
+ placeholder: '1234567890',
+ countryIso2: 'ZW',
+ },*/
]