wip, but tests are not picked up
This commit is contained in:
parent
0137179396
commit
60ae3f2844
2 changed files with 318 additions and 0 deletions
|
|
@ -41,3 +41,71 @@ seeds:
|
||||||
min_value: 0
|
min_value: 0
|
||||||
max_value: 8
|
max_value: 8
|
||||||
strictly: False
|
strictly: False
|
||||||
|
|
||||||
|
- name: stg_guest_services_vat_rates_by_country
|
||||||
|
description: |
|
||||||
|
A list of applicable VAT rates for guest services, by country.
|
||||||
|
|
||||||
|
The list was provided by the Finance team. A value of 0% does not
|
||||||
|
necessarily mean that the country doesn't have VAT, but rather that we
|
||||||
|
don't need to charge it to guests from that country.
|
||||||
|
|
||||||
|
Country names and codes follow ISO 3166-1. More here: https://en.wikipedia.org/wiki/ISO_3166-1
|
||||||
|
|
||||||
|
Read more here: https://www.notion.so/knowyourguest-superhog/Guest-Services-Taxes-How-to-calculate-a5ab4c049d61427fafab669dbbffb3a2?pvs=4
|
||||||
|
|
||||||
|
config:
|
||||||
|
column_types:
|
||||||
|
country_code: varchar(3)
|
||||||
|
columns:
|
||||||
|
- name: country_name,alpha_2,alpha_3,country_code,vat_rate
|
||||||
|
data_type: character varying
|
||||||
|
description: The name of the country.
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
- name: alpha_2
|
||||||
|
data_type: character varying
|
||||||
|
description: |
|
||||||
|
The two characters ISO 3166-1 Alpha-2 code for the country.
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
|
regex: "^[A-Za-z]{2}$"
|
||||||
|
- name: alpha_3
|
||||||
|
data_type: character varying
|
||||||
|
description: |
|
||||||
|
The three characters ISO 3166-1 Alpha-3 code for the country.
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
|
regex: "^[A-Za-z]{3}$"
|
||||||
|
- name: country_code
|
||||||
|
data_type: character varying
|
||||||
|
description: |
|
||||||
|
The three digit ISO 3166-1 Numeric code for the country.
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
- dbt_expectations.expect_column_values_to_match_regex:
|
||||||
|
regex: "^[0-9]{3}$"
|
||||||
|
- name: vat_rate
|
||||||
|
data_type: numeric
|
||||||
|
description: |
|
||||||
|
The Superhog applicable VAT rate for guests of this country. A value
|
||||||
|
of 0% does not necessarily mean that the country doesn't have VAT, but
|
||||||
|
rather that we don't need to charge it to guests from that country.
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
|
min_value: 0
|
||||||
|
max_value: 1
|
||||||
|
strictly: false
|
||||||
|
|
|
||||||
250
seeds/stg_seed__guest_services_vat_rates_by_country.csv
Normal file
250
seeds/stg_seed__guest_services_vat_rates_by_country.csv
Normal file
|
|
@ -0,0 +1,250 @@
|
||||||
|
country_name,alpha_2,alpha_3,country_code,vat_rate
|
||||||
|
Afghanistan,AF,AFG,004,0.00
|
||||||
|
Åland Islands,AX,ALA,248,0.00
|
||||||
|
Albania,AL,ALB,008,0.00
|
||||||
|
Algeria,DZ,DZA,012,0.00
|
||||||
|
American Samoa,AS,ASM,016,0.00
|
||||||
|
Andorra,AD,AND,020,0.00
|
||||||
|
Angola,AO,AGO,024,0.00
|
||||||
|
Anguilla,AI,AIA,660,0.00
|
||||||
|
Antarctica,AQ,ATA,010,0.00
|
||||||
|
Antigua and Barbuda,AG,ATG,028,0.00
|
||||||
|
Argentina,AR,ARG,032,0.00
|
||||||
|
Armenia,AM,ARM,051,0.00
|
||||||
|
Aruba,AW,ABW,533,0.00
|
||||||
|
Australia,AU,AUS,036,0.00
|
||||||
|
Austria,AT,AUT,040,0.20
|
||||||
|
Azerbaijan,AZ,AZE,031,0.00
|
||||||
|
Bahamas,BS,BHS,044,0.00
|
||||||
|
Bahrain,BH,BHR,048,0.00
|
||||||
|
Bangladesh,BD,BGD,050,0.00
|
||||||
|
Barbados,BB,BRB,052,0.00
|
||||||
|
Belarus,BY,BLR,112,0.00
|
||||||
|
Belgium,BE,BEL,056,0.21
|
||||||
|
Belize,BZ,BLZ,084,0.00
|
||||||
|
Benin,BJ,BEN,204,0.00
|
||||||
|
Bermuda,BM,BMU,060,0.00
|
||||||
|
Bhutan,BT,BTN,064,0.00
|
||||||
|
"Bolivia, Plurinational State of",BO,BOL,068,0.00
|
||||||
|
"Bonaire, Sint Eustatius and Saba",BQ,BES,535,0.00
|
||||||
|
Bosnia and Herzegovina,BA,BIH,070,0.00
|
||||||
|
Botswana,BW,BWA,072,0.00
|
||||||
|
Bouvet Island,BV,BVT,074,0.00
|
||||||
|
Brazil,BR,BRA,076,0.00
|
||||||
|
British Indian Ocean Territory,IO,IOT,086,0.00
|
||||||
|
Brunei Darussalam,BN,BRN,096,0.00
|
||||||
|
Bulgaria,BG,BGR,100,0.20
|
||||||
|
Burkina Faso,BF,BFA,854,0.00
|
||||||
|
Burundi,BI,BDI,108,0.00
|
||||||
|
Cabo Verde,CV,CPV,132,0.00
|
||||||
|
Cambodia,KH,KHM,116,0.00
|
||||||
|
Cameroon,CM,CMR,120,0.00
|
||||||
|
Canada,CA,CAN,124,0.00
|
||||||
|
Cayman Islands,KY,CYM,136,0.00
|
||||||
|
Central African Republic,CF,CAF,140,0.00
|
||||||
|
Chad,TD,TCD,148,0.00
|
||||||
|
Chile,CL,CHL,152,0.00
|
||||||
|
China,CN,CHN,156,0.00
|
||||||
|
Christmas Island,CX,CXR,162,0.00
|
||||||
|
Cocos (Keeling) Islands,CC,CCK,166,0.00
|
||||||
|
Colombia,CO,COL,170,0.00
|
||||||
|
Comoros,KM,COM,174,0.00
|
||||||
|
Congo,CG,COG,178,0.00
|
||||||
|
"Congo, Democratic Republic of the",CD,COD,180,0.00
|
||||||
|
Cook Islands,CK,COK,184,0.00
|
||||||
|
Costa Rica,CR,CRI,188,0.00
|
||||||
|
Côte d'Ivoire,CI,CIV,384,0.00
|
||||||
|
Croatia,HR,HRV,191,0.25
|
||||||
|
Cuba,CU,CUB,192,0.00
|
||||||
|
Curaçao,CW,CUW,531,0.00
|
||||||
|
Cyprus,CY,CYP,196,0.19
|
||||||
|
Czechia,CZ,CZE,203,0.21
|
||||||
|
Denmark,DK,DNK,208,0.25
|
||||||
|
Djibouti,DJ,DJI,262,0.00
|
||||||
|
Dominica,DM,DMA,212,0.00
|
||||||
|
Dominican Republic,DO,DOM,214,0.00
|
||||||
|
Ecuador,EC,ECU,218,0.00
|
||||||
|
Egypt,EG,EGY,818,0.00
|
||||||
|
El Salvador,SV,SLV,222,0.00
|
||||||
|
Equatorial Guinea,GQ,GNQ,226,0.00
|
||||||
|
Eritrea,ER,ERI,232,0.00
|
||||||
|
Estonia,EE,EST,233,0.22
|
||||||
|
Eswatini,SZ,SWZ,748,0.00
|
||||||
|
Ethiopia,ET,ETH,231,0.00
|
||||||
|
Falkland Islands (Malvinas),FK,FLK,238,0.00
|
||||||
|
Faroe Islands,FO,FRO,234,0.00
|
||||||
|
Fiji,FJ,FJI,242,0.00
|
||||||
|
Finland,FI,FIN,246,0.24
|
||||||
|
France,FR,FRA,250,0.20
|
||||||
|
French Guiana,GF,GUF,254,0.00
|
||||||
|
French Polynesia,PF,PYF,258,0.00
|
||||||
|
French Southern Territories,TF,ATF,260,0.00
|
||||||
|
Gabon,GA,GAB,266,0.00
|
||||||
|
Gambia,GM,GMB,270,0.00
|
||||||
|
Georgia,GE,GEO,268,0.00
|
||||||
|
Germany,DE,DEU,276,0.19
|
||||||
|
Ghana,GH,GHA,288,0.00
|
||||||
|
Gibraltar,GI,GIB,292,0.00
|
||||||
|
Greece,GR,GRC,300,0.24
|
||||||
|
Greenland,GL,GRL,304,0.00
|
||||||
|
Grenada,GD,GRD,308,0.00
|
||||||
|
Guadeloupe,GP,GLP,312,0.00
|
||||||
|
Guam,GU,GUM,316,0.00
|
||||||
|
Guatemala,GT,GTM,320,0.00
|
||||||
|
Guernsey,GG,GGY,831,0.00
|
||||||
|
Guinea,GN,GIN,324,0.00
|
||||||
|
Guinea-Bissau,GW,GNB,624,0.00
|
||||||
|
Guyana,GY,GUY,328,0.00
|
||||||
|
Haiti,HT,HTI,332,0.00
|
||||||
|
Heard Island and McDonald Islands,HM,HMD,334,0.00
|
||||||
|
Holy See,VA,VAT,336,0.00
|
||||||
|
Honduras,HN,HND,340,0.00
|
||||||
|
Hong Kong,HK,HKG,344,0.00
|
||||||
|
Hungary,HU,HUN,348,0.27
|
||||||
|
Iceland,IS,ISL,352,0.00
|
||||||
|
India,IN,IND,356,0.00
|
||||||
|
Indonesia,ID,IDN,360,0.00
|
||||||
|
"Iran, Islamic Republic of",IR,IRN,364,0.00
|
||||||
|
Iraq,IQ,IRQ,368,0.00
|
||||||
|
Ireland,IE,IRL,372,0.23
|
||||||
|
Isle of Man,IM,IMN,833,0.00
|
||||||
|
Israel,IL,ISR,376,0.00
|
||||||
|
Italy,IT,ITA,380,0.22
|
||||||
|
Jamaica,JM,JAM,388,0.00
|
||||||
|
Japan,JP,JPN,392,0.00
|
||||||
|
Jersey,JE,JEY,832,0.00
|
||||||
|
Jordan,JO,JOR,400,0.00
|
||||||
|
Kazakhstan,KZ,KAZ,398,0.00
|
||||||
|
Kenya,KE,KEN,404,0.00
|
||||||
|
Kiribati,KI,KIR,296,0.00
|
||||||
|
"Korea, Democratic People's Republic of",KP,PRK,408,0.00
|
||||||
|
"Korea, Republic of",KR,KOR,410,0.00
|
||||||
|
Kuwait,KW,KWT,414,0.00
|
||||||
|
Kyrgyzstan,KG,KGZ,417,0.00
|
||||||
|
Lao People's Democratic Republic,LA,LAO,418,0.00
|
||||||
|
Latvia,LV,LVA,428,0.21
|
||||||
|
Lebanon,LB,LBN,422,0.00
|
||||||
|
Lesotho,LS,LSO,426,0.00
|
||||||
|
Liberia,LR,LBR,430,0.00
|
||||||
|
Libya,LY,LBY,434,0.00
|
||||||
|
Liechtenstein,LI,LIE,438,0.00
|
||||||
|
Lithuania,LT,LTU,440,0.21
|
||||||
|
Luxembourg,LU,LUX,442,0.17
|
||||||
|
Macao,MO,MAC,446,0.00
|
||||||
|
Madagascar,MG,MDG,450,0.00
|
||||||
|
Malawi,MW,MWI,454,0.00
|
||||||
|
Malaysia,MY,MYS,458,0.00
|
||||||
|
Maldives,MV,MDV,462,0.00
|
||||||
|
Mali,ML,MLI,466,0.00
|
||||||
|
Malta,MT,MLT,470,0.18
|
||||||
|
Marshall Islands,MH,MHL,584,0.00
|
||||||
|
Martinique,MQ,MTQ,474,0.00
|
||||||
|
Mauritania,MR,MRT,478,0.00
|
||||||
|
Mauritius,MU,MUS,480,0.00
|
||||||
|
Mayotte,YT,MYT,175,0.00
|
||||||
|
Mexico,MX,MEX,484,0.00
|
||||||
|
"Micronesia, Federated States of",FM,FSM,583,0.00
|
||||||
|
"Moldova, Republic of",MD,MDA,498,0.00
|
||||||
|
Monaco,MC,MCO,492,0.20
|
||||||
|
Mongolia,MN,MNG,496,0.00
|
||||||
|
Montenegro,ME,MNE,499,0.00
|
||||||
|
Montserrat,MS,MSR,500,0.00
|
||||||
|
Morocco,MA,MAR,504,0.00
|
||||||
|
Mozambique,MZ,MOZ,508,0.00
|
||||||
|
Myanmar,MM,MMR,104,0.00
|
||||||
|
Namibia,NA,NAM,516,0.00
|
||||||
|
Nauru,NR,NRU,520,0.00
|
||||||
|
Nepal,NP,NPL,524,0.00
|
||||||
|
"Netherlands, Kingdom of the",NL,NLD,528,0.21
|
||||||
|
New Caledonia,NC,NCL,540,0.00
|
||||||
|
New Zealand,NZ,NZL,554,0.00
|
||||||
|
Nicaragua,NI,NIC,558,0.00
|
||||||
|
Niger,NE,NER,562,0.00
|
||||||
|
Nigeria,NG,NGA,566,0.00
|
||||||
|
Niue,NU,NIU,570,0.00
|
||||||
|
Norfolk Island,NF,NFK,574,0.00
|
||||||
|
North Macedonia,MK,MKD,807,0.00
|
||||||
|
Northern Mariana Islands,MP,MNP,580,0.00
|
||||||
|
Norway,NO,NOR,578,0.00
|
||||||
|
Oman,OM,OMN,512,0.00
|
||||||
|
Pakistan,PK,PAK,586,0.00
|
||||||
|
Palau,PW,PLW,585,0.00
|
||||||
|
"Palestine, State of",PS,PSE,275,0.00
|
||||||
|
Panama,PA,PAN,591,0.00
|
||||||
|
Papua New Guinea,PG,PNG,598,0.00
|
||||||
|
Paraguay,PY,PRY,600,0.00
|
||||||
|
Peru,PE,PER,604,0.00
|
||||||
|
Philippines,PH,PHL,608,0.00
|
||||||
|
Pitcairn,PN,PCN,612,0.00
|
||||||
|
Poland,PL,POL,616,0.23
|
||||||
|
Portugal,PT,PRT,620,0.23
|
||||||
|
Puerto Rico,PR,PRI,630,0.00
|
||||||
|
Qatar,QA,QAT,634,0.00
|
||||||
|
Réunion,RE,REU,638,0.00
|
||||||
|
Romania,RO,ROU,642,0.19
|
||||||
|
Russian Federation,RU,RUS,643,0.00
|
||||||
|
Rwanda,RW,RWA,646,0.00
|
||||||
|
Saint Barthélemy,BL,BLM,652,0.00
|
||||||
|
"Saint Helena, Ascension and Tristan da Cunha",SH,SHN,654,0.00
|
||||||
|
Saint Kitts and Nevis,KN,KNA,659,0.00
|
||||||
|
Saint Lucia,LC,LCA,662,0.00
|
||||||
|
Saint Martin (French part),MF,MAF,663,0.00
|
||||||
|
Saint Pierre and Miquelon,PM,SPM,666,0.00
|
||||||
|
Saint Vincent and the Grenadines,VC,VCT,670,0.00
|
||||||
|
Samoa,WS,WSM,882,0.00
|
||||||
|
San Marino,SM,SMR,674,0.00
|
||||||
|
Sao Tome and Principe,ST,STP,678,0.00
|
||||||
|
Saudi Arabia,SA,SAU,682,0.00
|
||||||
|
Senegal,SN,SEN,686,0.00
|
||||||
|
Serbia,RS,SRB,688,0.00
|
||||||
|
Seychelles,SC,SYC,690,0.00
|
||||||
|
Sierra Leone,SL,SLE,694,0.00
|
||||||
|
Singapore,SG,SGP,702,0.00
|
||||||
|
Sint Maarten (Dutch part),SX,SXM,534,0.00
|
||||||
|
Slovakia,SK,SVK,703,0.20
|
||||||
|
Slovenia,SI,SVN,705,0.22
|
||||||
|
Solomon Islands,SB,SLB,090,0.00
|
||||||
|
Somalia,SO,SOM,706,0.00
|
||||||
|
South Africa,ZA,ZAF,710,0.00
|
||||||
|
South Georgia and the South Sandwich Islands,GS,SGS,239,0.00
|
||||||
|
South Sudan,SS,SSD,728,0.00
|
||||||
|
Spain,ES,ESP,724,0.21
|
||||||
|
Sri Lanka,LK,LKA,144,0.00
|
||||||
|
Sudan,SD,SDN,729,0.00
|
||||||
|
Suriname,SR,SUR,740,0.00
|
||||||
|
Svalbard and Jan Mayen,SJ,SJM,744,0.00
|
||||||
|
Sweden,SE,SWE,752,0.25
|
||||||
|
Switzerland,CH,CHE,756,0.00
|
||||||
|
Syrian Arab Republic,SY,SYR,760,0.00
|
||||||
|
"Taiwan, Province of China",TW,TWN,158,0.00
|
||||||
|
Tajikistan,TJ,TJK,762,0.00
|
||||||
|
"Tanzania, United Republic of",TZ,TZA,834,0.00
|
||||||
|
Thailand,TH,THA,764,0.00
|
||||||
|
Timor-Leste,TL,TLS,626,0.00
|
||||||
|
Togo,TG,TGO,768,0.00
|
||||||
|
Tokelau,TK,TKL,772,0.00
|
||||||
|
Tonga,TO,TON,776,0.00
|
||||||
|
Trinidad and Tobago,TT,TTO,780,0.00
|
||||||
|
Tunisia,TN,TUN,788,0.00
|
||||||
|
Türkiye,TR,TUR,792,0.00
|
||||||
|
Turkmenistan,TM,TKM,795,0.00
|
||||||
|
Turks and Caicos Islands,TC,TCA,796,0.00
|
||||||
|
Tuvalu,TV,TUV,798,0.00
|
||||||
|
Uganda,UG,UGA,800,0.00
|
||||||
|
Ukraine,UA,UKR,804,0.00
|
||||||
|
United Arab Emirates,AE,ARE,784,0.00
|
||||||
|
United Kingdom of Great Britain and Northern Ireland,GB,GBR,826,0.20
|
||||||
|
United States of America,US,USA,840,0.00
|
||||||
|
United States Minor Outlying Islands,UM,UMI,581,0.00
|
||||||
|
Uruguay,UY,URY,858,0.00
|
||||||
|
Uzbekistan,UZ,UZB,860,0.00
|
||||||
|
Vanuatu,VU,VUT,548,0.00
|
||||||
|
"Venezuela, Bolivarian Republic of",VE,VEN,862,0.00
|
||||||
|
Viet Nam,VN,VNM,704,0.00
|
||||||
|
Virgin Islands (British),VG,VGB,092,0.00
|
||||||
|
Virgin Islands (U.S.),VI,VIR,850,0.00
|
||||||
|
Wallis and Futuna,WF,WLF,876,0.00
|
||||||
|
Western Sahara,EH,ESH,732,0.00
|
||||||
|
Yemen,YE,YEM,887,0.00
|
||||||
|
Zambia,ZM,ZMB,894,0.00
|
||||||
|
Zimbabwe,ZW,ZWE,716,0.00
|
||||||
|
Loading…
Add table
Add a link
Reference in a new issue