pyinvoiceninja/invoice_ninja/models/clientSettings.py
2023-12-17 10:05:51 -05:00

39 lines
1.3 KiB
Python

class ClientSettings(object):
def __init__(self, language_id: str = None,
currency_id: str = None,
payment_terms: str = None,
valid_until: str = None,
default_task_rate: float = 0,
send_reminders: bool = None):
# The language ID for the client, for the full list of languages,
# please see this resource - optional
#
# https://invoiceninja.github.io/docs/statics/#languages
self.language_id = language_id
# The currency ID - optional
# See this resource for full list:
#
# https://invoiceninja.github.io/docs/statics/#currencies
self.currency_id = currency_id
# The payment terms - in days - optional
self.payment_terms = payment_terms
# The quote terms - optional
#
# How many days the quote will be valid for.
self.valid_until = valid_until
# The task rate for this client - optional
#
# A value of 0 equates to disabled.
self.default_task_rate = default_task_rate
# Whether the client will receive reminders - optional
#
# When left unset, this setting will rely on the company
# settings as the override/default
self.send_reminders = send_reminders