We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
is_paytm_activated shouldn't be a read only attribute
**Describe the bug**
 Alipay, Omise, and PayPal have a property to enable them(e.g. `is_paypal_activated`). They were hybrid properties(condition was like `if client_key and secret_key then true`), so they had a dump_only=True. We need to remove this as we've moved away from such a practice. The reason for this is because we need the keys to be stored, whether the property is enabled/disabled

**Additional context**
Working on this.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `app/api/schema/settings.py`
Content:
```
1 from marshmallow_jsonapi import fields
2 from marshmallow_jsonapi.flask import Schema
3 
4 from app.api.helpers.utilities import dasherize
5 from app.settings import Environment
6 from utils.common import use_defaults
7 
8 
9 class SettingSchemaPublic(Schema):
10     """
11     Public Api schema for settings Model
12     """
13     class Meta:
14         """
15         Meta class for setting Api Schema
16         """
17         type_ = 'setting'
18         self_view = 'v1.setting_detail'
19         self_view_kwargs = {'id': '<id>'}
20         inflect = dasherize
21 
22     id = fields.Str(dump_only=True)
23 
24     # Name of the application. (Eg. Event Yay!, Open Event)
25     app_name = fields.Str(allow_none=True)
26 
27     # Tagline for the application. (Eg. Event Management and Ticketing, Home)
28     tagline = fields.Str(allow_none=True)
29 
30     # Order Expiry Time
31     order_expiry_time = fields.Integer(allow_none=False, default=15, validate=lambda n: 1 <= n <= 60)
32 
33     # Google Analytics
34     analytics_key = fields.Str(allow_none=True)
35 
36     # FB
37     fb_client_id = fields.Str(allow_none=True)
38 
39     #
40     # Social links
41     #
42     google_url = fields.Str(allow_none=True)
43     github_url = fields.Str(allow_none=True)
44     twitter_url = fields.Str(allow_none=True)
45     support_url = fields.Str(allow_none=True)
46     facebook_url = fields.Str(allow_none=True)
47     youtube_url = fields.Str(allow_none=True)
48 
49     # Url of Frontend
50     frontend_url = fields.Url(allow_none=True)
51 
52     #
53     # Cookie Policy
54     #
55     cookie_policy = fields.Str(allow_none=True)
56     cookie_policy_link = fields.Str(allow_none=True)
57 
58     #
59     # Online Payment Flags
60     #
61     is_paytm_activated = fields.Bool(dump_only=True, allow_none=False, default=False)
62     is_paypal_activated = fields.Bool(dump_only=True)
63     is_stripe_activated = fields.Bool(dump_only=True)
64     is_omise_activated = fields.Bool(dump_only=True)
65     is_alipay_activated = fields.Bool(dump_only=True)
66 
67 
68 class SettingSchemaNonAdmin(SettingSchemaPublic):
69     """
70     Non Admin Api schema for settings Model
71     """
72     class Meta:
73         """
74         Meta class for setting Api Schema
75         """
76         type_ = 'setting'
77         self_view = 'v1.setting_detail'
78         self_view_kwargs = {'id': '<id>'}
79         inflect = dasherize
80 
81     id = fields.Str(dump_only=True)
82 
83     # Stripe Keys
84     stripe_client_id = fields.Str(allow_none=True)
85     stripe_publishable_key = fields.Str(allow_none=True)
86     stripe_test_secret_key = fields.Str(allow_none=True)
87     stripe_test_publishable_key = fields.Str(allow_none=True)
88 
89     #
90     # Generators
91     #
92     android_app_url = fields.Str(allow_none=True)
93     web_app_url = fields.Str(allow_none=True)
94 
95 
96 @use_defaults()
97 class SettingSchemaAdmin(SettingSchemaNonAdmin):
98     """
99     Admin Api schema for settings Model
100     """
101     class Meta:
102         """
103         Meta class for setting Api Schema
104         """
105         type_ = 'setting'
106         self_view = 'v1.setting_detail'
107         self_view_kwargs = {'id': '<id>'}
108         inflect = dasherize
109 
110     id = fields.Str(dump_only=True)
111     #
112     # General
113     #
114 
115     app_environment = fields.Str(default=Environment.PRODUCTION)
116 
117     # App secret
118     secret = fields.Str(allow_none=True)
119     # Static domain
120     static_domain = fields.Str(allow_none=True)
121 
122     #
123     #  STORAGE
124     #
125 
126     # storage place, local, s3, .. can be more in future
127     storage_place = fields.Str(allow_none=True)
128     # S3
129     aws_key = fields.Str(allow_none=True)
130     aws_secret = fields.Str(allow_none=True)
131     aws_bucket_name = fields.Str(allow_none=True)
132     aws_region = fields.Str(allow_none=True)
133     # Google Storage
134     gs_key = fields.Str(allow_none=True)
135     gs_secret = fields.Str(allow_none=True)
136     gs_bucket_name = fields.Str(allow_none=True)
137 
138     #
139     # CAPTCHA
140     #
141 
142     # Google reCAPTCHA
143     is_google_recaptcha_enabled = fields.Bool(allow_none=False, default=False)
144     google_recaptcha_site = fields.Str(allow_none=True)
145     google_recaptcha_secret = fields.Str(allow_none=True)
146 
147     #
148     # Social Login
149     #
150 
151     # Google Auth
152     google_client_id = fields.Str(allow_none=True)
153     google_client_secret = fields.Str(allow_none=True)
154     # FB
155     fb_client_id = fields.Str(allow_none=True)
156     fb_client_secret = fields.Str(allow_none=True)
157     # Twitter
158     tw_consumer_key = fields.Str(allow_none=True)
159     tw_consumer_secret = fields.Str(allow_none=True)
160     # Instagram
161     in_client_id = fields.Str(allow_none=True)
162     in_client_secret = fields.Str(allow_none=True)
163 
164     #
165     # Payment Gateway
166     #
167 
168     # Stripe secret key
169     stripe_secret_key = fields.Str(allow_none=True)
170 
171     # PayPal Credentials
172     paypal_mode = fields.Str(allow_none=True)
173     paypal_client = fields.Str(allow_none=True)
174     paypal_secret = fields.Str(allow_none=True)
175     paypal_sandbox_client = fields.Str(allow_none=True)
176     paypal_sandbox_secret = fields.Str(allow_none=True)
177 
178     # Omise Credentials
179     omise_mode = fields.Str(allow_none=True)
180     omise_test_public = fields.Str(allow_none=True)
181     omise_test_secret = fields.Str(allow_none=True)
182     omise_live_public = fields.Str(allow_none=True)
183     omise_live_secret = fields.Str(allow_none=True)
184 
185     #
186     alipay_publishable_key = fields.Str(allow_none=True)
187     alipay_secret_key = fields.Str(allow_none=True)
188 
189     # payTM credentials
190     paytm_mode = fields.Str(allow_none=True)
191     paytm_live_merchant = fields.Str(allow_none=True)
192     paytm_live_secret = fields.Str(allow_none=True)
193     paytm_sandbox_merchant = fields.Str(allow_none=True)
194     paytm_sandbox_secret = fields.Str(allow_none=True)
195     #
196     # EMAIL
197     #
198 
199     # Email service. (sendgrid,smtp)
200     email_service = fields.Str(allow_none=True)
201     email_from = fields.Str(allow_none=True)
202     email_from_name = fields.Str(allow_none=True)
203     # Sendgrid
204     sendgrid_key = fields.Str(allow_none=True)
205     # SMTP
206     smtp_host = fields.Str(allow_none=True)
207     smtp_username = fields.Str(allow_none=True)
208     smtp_password = fields.Str(allow_none=True)
209     smtp_port = fields.Integer(allow_none=True)
210     smtp_encryption = fields.Str(allow_none=True)  # Can be tls, ssl, none
211 
212     # Event Invoices settings
213     invoice_sending_day = fields.Integer(allow_none=False, default=1)
214     invoice_sending_timezone = fields.Str(allow_none=False, default="UTC")
215 
216     # Admin Invoice Details
217     admin_billing_contact_name = fields.Str(allow_none=True)
218     admin_billing_phone = fields.Str(allow_none=True)
219     admin_billing_email = fields.Email(allow_none=True)
220     admin_billing_state = fields.Str(allow_none=True)
221     admin_billing_country = fields.Str(allow_none=True)
222     admin_billing_tax_info = fields.Str(allow_none=True)
223     admin_company = fields.Str(allow_none=True)
224     admin_billing_address = fields.Str(allow_none=True)
225     admin_billing_city = fields.Str(allow_none=True)
226     admin_billing_zip = fields.Str(allow_none=True)
227     admin_billing_additional_info = fields.Str(allow_none=True)
228
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/app/api/schema/settings.py b/app/api/schema/settings.py
--- a/app/api/schema/settings.py
+++ b/app/api/schema/settings.py
@@ -58,7 +58,7 @@
     #
     # Online Payment Flags
     #
-    is_paytm_activated = fields.Bool(dump_only=True, allow_none=False, default=False)
+    is_paytm_activated = fields.Bool(default=False)
     is_paypal_activated = fields.Bool(dump_only=True)
     is_stripe_activated = fields.Bool(dump_only=True)
     is_omise_activated = fields.Bool(dump_only=True)

{"golden_diff": "diff --git a/app/api/schema/settings.py b/app/api/schema/settings.py\n--- a/app/api/schema/settings.py\n+++ b/app/api/schema/settings.py\n@@ -58,7 +58,7 @@\n     #\n     # Online Payment Flags\n     #\n-    is_paytm_activated = fields.Bool(dump_only=True, allow_none=False, default=False)\n+    is_paytm_activated = fields.Bool(default=False)\n     is_paypal_activated = fields.Bool(dump_only=True)\n     is_stripe_activated = fields.Bool(dump_only=True)\n     is_omise_activated = fields.Bool(dump_only=True)\n", "issue": "is_paytm_activated shouldn't be a read only attribute\n**Describe the bug**\r\n Alipay, Omise, and PayPal have a property to enable them(e.g. `is_paypal_activated`). They were hybrid properties(condition was like `if client_key and secret_key then true`), so they had a dump_only=True. We need to remove this as we've moved away from such a practice. The reason for this is because we need the keys to be stored, whether the property is enabled/disabled\r\n\r\n**Additional context**\r\nWorking on this.\n", "before_files": [{"content": "from marshmallow_jsonapi import fields\nfrom marshmallow_jsonapi.flask import Schema\n\nfrom app.api.helpers.utilities import dasherize\nfrom app.settings import Environment\nfrom utils.common import use_defaults\n\n\nclass SettingSchemaPublic(Schema):\n    \"\"\"\n    Public Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n\n    # Name of the application. (Eg. Event Yay!, Open Event)\n    app_name = fields.Str(allow_none=True)\n\n    # Tagline for the application. (Eg. Event Management and Ticketing, Home)\n    tagline = fields.Str(allow_none=True)\n\n    # Order Expiry Time\n    order_expiry_time = fields.Integer(allow_none=False, default=15, validate=lambda n: 1 <= n <= 60)\n\n    # Google Analytics\n    analytics_key = fields.Str(allow_none=True)\n\n    # FB\n    fb_client_id = fields.Str(allow_none=True)\n\n    #\n    # Social links\n    #\n    google_url = fields.Str(allow_none=True)\n    github_url = fields.Str(allow_none=True)\n    twitter_url = fields.Str(allow_none=True)\n    support_url = fields.Str(allow_none=True)\n    facebook_url = fields.Str(allow_none=True)\n    youtube_url = fields.Str(allow_none=True)\n\n    # Url of Frontend\n    frontend_url = fields.Url(allow_none=True)\n\n    #\n    # Cookie Policy\n    #\n    cookie_policy = fields.Str(allow_none=True)\n    cookie_policy_link = fields.Str(allow_none=True)\n\n    #\n    # Online Payment Flags\n    #\n    is_paytm_activated = fields.Bool(dump_only=True, allow_none=False, default=False)\n    is_paypal_activated = fields.Bool(dump_only=True)\n    is_stripe_activated = fields.Bool(dump_only=True)\n    is_omise_activated = fields.Bool(dump_only=True)\n    is_alipay_activated = fields.Bool(dump_only=True)\n\n\nclass SettingSchemaNonAdmin(SettingSchemaPublic):\n    \"\"\"\n    Non Admin Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n\n    # Stripe Keys\n    stripe_client_id = fields.Str(allow_none=True)\n    stripe_publishable_key = fields.Str(allow_none=True)\n    stripe_test_secret_key = fields.Str(allow_none=True)\n    stripe_test_publishable_key = fields.Str(allow_none=True)\n\n    #\n    # Generators\n    #\n    android_app_url = fields.Str(allow_none=True)\n    web_app_url = fields.Str(allow_none=True)\n\n\n@use_defaults()\nclass SettingSchemaAdmin(SettingSchemaNonAdmin):\n    \"\"\"\n    Admin Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n    #\n    # General\n    #\n\n    app_environment = fields.Str(default=Environment.PRODUCTION)\n\n    # App secret\n    secret = fields.Str(allow_none=True)\n    # Static domain\n    static_domain = fields.Str(allow_none=True)\n\n    #\n    #  STORAGE\n    #\n\n    # storage place, local, s3, .. can be more in future\n    storage_place = fields.Str(allow_none=True)\n    # S3\n    aws_key = fields.Str(allow_none=True)\n    aws_secret = fields.Str(allow_none=True)\n    aws_bucket_name = fields.Str(allow_none=True)\n    aws_region = fields.Str(allow_none=True)\n    # Google Storage\n    gs_key = fields.Str(allow_none=True)\n    gs_secret = fields.Str(allow_none=True)\n    gs_bucket_name = fields.Str(allow_none=True)\n\n    #\n    # CAPTCHA\n    #\n\n    # Google reCAPTCHA\n    is_google_recaptcha_enabled = fields.Bool(allow_none=False, default=False)\n    google_recaptcha_site = fields.Str(allow_none=True)\n    google_recaptcha_secret = fields.Str(allow_none=True)\n\n    #\n    # Social Login\n    #\n\n    # Google Auth\n    google_client_id = fields.Str(allow_none=True)\n    google_client_secret = fields.Str(allow_none=True)\n    # FB\n    fb_client_id = fields.Str(allow_none=True)\n    fb_client_secret = fields.Str(allow_none=True)\n    # Twitter\n    tw_consumer_key = fields.Str(allow_none=True)\n    tw_consumer_secret = fields.Str(allow_none=True)\n    # Instagram\n    in_client_id = fields.Str(allow_none=True)\n    in_client_secret = fields.Str(allow_none=True)\n\n    #\n    # Payment Gateway\n    #\n\n    # Stripe secret key\n    stripe_secret_key = fields.Str(allow_none=True)\n\n    # PayPal Credentials\n    paypal_mode = fields.Str(allow_none=True)\n    paypal_client = fields.Str(allow_none=True)\n    paypal_secret = fields.Str(allow_none=True)\n    paypal_sandbox_client = fields.Str(allow_none=True)\n    paypal_sandbox_secret = fields.Str(allow_none=True)\n\n    # Omise Credentials\n    omise_mode = fields.Str(allow_none=True)\n    omise_test_public = fields.Str(allow_none=True)\n    omise_test_secret = fields.Str(allow_none=True)\n    omise_live_public = fields.Str(allow_none=True)\n    omise_live_secret = fields.Str(allow_none=True)\n\n    #\n    alipay_publishable_key = fields.Str(allow_none=True)\n    alipay_secret_key = fields.Str(allow_none=True)\n\n    # payTM credentials\n    paytm_mode = fields.Str(allow_none=True)\n    paytm_live_merchant = fields.Str(allow_none=True)\n    paytm_live_secret = fields.Str(allow_none=True)\n    paytm_sandbox_merchant = fields.Str(allow_none=True)\n    paytm_sandbox_secret = fields.Str(allow_none=True)\n    #\n    # EMAIL\n    #\n\n    # Email service. (sendgrid,smtp)\n    email_service = fields.Str(allow_none=True)\n    email_from = fields.Str(allow_none=True)\n    email_from_name = fields.Str(allow_none=True)\n    # Sendgrid\n    sendgrid_key = fields.Str(allow_none=True)\n    # SMTP\n    smtp_host = fields.Str(allow_none=True)\n    smtp_username = fields.Str(allow_none=True)\n    smtp_password = fields.Str(allow_none=True)\n    smtp_port = fields.Integer(allow_none=True)\n    smtp_encryption = fields.Str(allow_none=True)  # Can be tls, ssl, none\n\n    # Event Invoices settings\n    invoice_sending_day = fields.Integer(allow_none=False, default=1)\n    invoice_sending_timezone = fields.Str(allow_none=False, default=\"UTC\")\n\n    # Admin Invoice Details\n    admin_billing_contact_name = fields.Str(allow_none=True)\n    admin_billing_phone = fields.Str(allow_none=True)\n    admin_billing_email = fields.Email(allow_none=True)\n    admin_billing_state = fields.Str(allow_none=True)\n    admin_billing_country = fields.Str(allow_none=True)\n    admin_billing_tax_info = fields.Str(allow_none=True)\n    admin_company = fields.Str(allow_none=True)\n    admin_billing_address = fields.Str(allow_none=True)\n    admin_billing_city = fields.Str(allow_none=True)\n    admin_billing_zip = fields.Str(allow_none=True)\n    admin_billing_additional_info = fields.Str(allow_none=True)\n", "path": "app/api/schema/settings.py"}], "after_files": [{"content": "from marshmallow_jsonapi import fields\nfrom marshmallow_jsonapi.flask import Schema\n\nfrom app.api.helpers.utilities import dasherize\nfrom app.settings import Environment\nfrom utils.common import use_defaults\n\n\nclass SettingSchemaPublic(Schema):\n    \"\"\"\n    Public Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n\n    # Name of the application. (Eg. Event Yay!, Open Event)\n    app_name = fields.Str(allow_none=True)\n\n    # Tagline for the application. (Eg. Event Management and Ticketing, Home)\n    tagline = fields.Str(allow_none=True)\n\n    # Order Expiry Time\n    order_expiry_time = fields.Integer(allow_none=False, default=15, validate=lambda n: 1 <= n <= 60)\n\n    # Google Analytics\n    analytics_key = fields.Str(allow_none=True)\n\n    # FB\n    fb_client_id = fields.Str(allow_none=True)\n\n    #\n    # Social links\n    #\n    google_url = fields.Str(allow_none=True)\n    github_url = fields.Str(allow_none=True)\n    twitter_url = fields.Str(allow_none=True)\n    support_url = fields.Str(allow_none=True)\n    facebook_url = fields.Str(allow_none=True)\n    youtube_url = fields.Str(allow_none=True)\n\n    # Url of Frontend\n    frontend_url = fields.Url(allow_none=True)\n\n    #\n    # Cookie Policy\n    #\n    cookie_policy = fields.Str(allow_none=True)\n    cookie_policy_link = fields.Str(allow_none=True)\n\n    #\n    # Online Payment Flags\n    #\n    is_paytm_activated = fields.Bool(default=False)\n    is_paypal_activated = fields.Bool(dump_only=True)\n    is_stripe_activated = fields.Bool(dump_only=True)\n    is_omise_activated = fields.Bool(dump_only=True)\n    is_alipay_activated = fields.Bool(dump_only=True)\n\n\nclass SettingSchemaNonAdmin(SettingSchemaPublic):\n    \"\"\"\n    Non Admin Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n\n    # Stripe Keys\n    stripe_client_id = fields.Str(allow_none=True)\n    stripe_publishable_key = fields.Str(allow_none=True)\n    stripe_test_secret_key = fields.Str(allow_none=True)\n    stripe_test_publishable_key = fields.Str(allow_none=True)\n\n    #\n    # Generators\n    #\n    android_app_url = fields.Str(allow_none=True)\n    web_app_url = fields.Str(allow_none=True)\n\n\n@use_defaults()\nclass SettingSchemaAdmin(SettingSchemaNonAdmin):\n    \"\"\"\n    Admin Api schema for settings Model\n    \"\"\"\n    class Meta:\n        \"\"\"\n        Meta class for setting Api Schema\n        \"\"\"\n        type_ = 'setting'\n        self_view = 'v1.setting_detail'\n        self_view_kwargs = {'id': '<id>'}\n        inflect = dasherize\n\n    id = fields.Str(dump_only=True)\n    #\n    # General\n    #\n\n    app_environment = fields.Str(default=Environment.PRODUCTION)\n\n    # App secret\n    secret = fields.Str(allow_none=True)\n    # Static domain\n    static_domain = fields.Str(allow_none=True)\n\n    #\n    #  STORAGE\n    #\n\n    # storage place, local, s3, .. can be more in future\n    storage_place = fields.Str(allow_none=True)\n    # S3\n    aws_key = fields.Str(allow_none=True)\n    aws_secret = fields.Str(allow_none=True)\n    aws_bucket_name = fields.Str(allow_none=True)\n    aws_region = fields.Str(allow_none=True)\n    # Google Storage\n    gs_key = fields.Str(allow_none=True)\n    gs_secret = fields.Str(allow_none=True)\n    gs_bucket_name = fields.Str(allow_none=True)\n\n    #\n    # CAPTCHA\n    #\n\n    # Google reCAPTCHA\n    is_google_recaptcha_enabled = fields.Bool(allow_none=False, default=False)\n    google_recaptcha_site = fields.Str(allow_none=True)\n    google_recaptcha_secret = fields.Str(allow_none=True)\n\n    #\n    # Social Login\n    #\n\n    # Google Auth\n    google_client_id = fields.Str(allow_none=True)\n    google_client_secret = fields.Str(allow_none=True)\n    # FB\n    fb_client_id = fields.Str(allow_none=True)\n    fb_client_secret = fields.Str(allow_none=True)\n    # Twitter\n    tw_consumer_key = fields.Str(allow_none=True)\n    tw_consumer_secret = fields.Str(allow_none=True)\n    # Instagram\n    in_client_id = fields.Str(allow_none=True)\n    in_client_secret = fields.Str(allow_none=True)\n\n    #\n    # Payment Gateway\n    #\n\n    # Stripe secret key\n    stripe_secret_key = fields.Str(allow_none=True)\n\n    # PayPal Credentials\n    paypal_mode = fields.Str(allow_none=True)\n    paypal_client = fields.Str(allow_none=True)\n    paypal_secret = fields.Str(allow_none=True)\n    paypal_sandbox_client = fields.Str(allow_none=True)\n    paypal_sandbox_secret = fields.Str(allow_none=True)\n\n    # Omise Credentials\n    omise_mode = fields.Str(allow_none=True)\n    omise_test_public = fields.Str(allow_none=True)\n    omise_test_secret = fields.Str(allow_none=True)\n    omise_live_public = fields.Str(allow_none=True)\n    omise_live_secret = fields.Str(allow_none=True)\n\n    #\n    alipay_publishable_key = fields.Str(allow_none=True)\n    alipay_secret_key = fields.Str(allow_none=True)\n\n    # payTM credentials\n    paytm_mode = fields.Str(allow_none=True)\n    paytm_live_merchant = fields.Str(allow_none=True)\n    paytm_live_secret = fields.Str(allow_none=True)\n    paytm_sandbox_merchant = fields.Str(allow_none=True)\n    paytm_sandbox_secret = fields.Str(allow_none=True)\n    #\n    # EMAIL\n    #\n\n    # Email service. (sendgrid,smtp)\n    email_service = fields.Str(allow_none=True)\n    email_from = fields.Str(allow_none=True)\n    email_from_name = fields.Str(allow_none=True)\n    # Sendgrid\n    sendgrid_key = fields.Str(allow_none=True)\n    # SMTP\n    smtp_host = fields.Str(allow_none=True)\n    smtp_username = fields.Str(allow_none=True)\n    smtp_password = fields.Str(allow_none=True)\n    smtp_port = fields.Integer(allow_none=True)\n    smtp_encryption = fields.Str(allow_none=True)  # Can be tls, ssl, none\n\n    # Event Invoices settings\n    invoice_sending_day = fields.Integer(allow_none=False, default=1)\n    invoice_sending_timezone = fields.Str(allow_none=False, default=\"UTC\")\n\n    # Admin Invoice Details\n    admin_billing_contact_name = fields.Str(allow_none=True)\n    admin_billing_phone = fields.Str(allow_none=True)\n    admin_billing_email = fields.Email(allow_none=True)\n    admin_billing_state = fields.Str(allow_none=True)\n    admin_billing_country = fields.Str(allow_none=True)\n    admin_billing_tax_info = fields.Str(allow_none=True)\n    admin_company = fields.Str(allow_none=True)\n    admin_billing_address = fields.Str(allow_none=True)\n    admin_billing_city = fields.Str(allow_none=True)\n    admin_billing_zip = fields.Str(allow_none=True)\n    admin_billing_additional_info = fields.Str(allow_none=True)\n", "path": "app/api/schema/settings.py"}]}