summaryrefslogtreecommitdiff
path: root/src/countries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/countries.cpp')
-rw-r--r--src/countries.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/countries.cpp b/src/countries.cpp
index 4456284..337b10b 100644
--- a/src/countries.cpp
+++ b/src/countries.cpp
@@ -250,6 +250,14 @@ bool country::is_EU(char* country_code)
return country_map[index].is_EU;
}
+bool country::is_enabled(char* country_code)
+{
+ s32 index = get_index_by_country_code(country_code);
+ if (index == -1) return 0;
+
+ return country_map[index].enabled;
+}
+
time_t country::get_default_invoice_expire_duration(char* country_code)
{
s32 index = get_index_by_country_code(country_code);