Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add budget and timeBudget to class CustomerEditForm #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 57 additions & 3 deletions kimai_python/models/customer_edit_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ class CustomerEditForm(object):
'homepage': 'str',
'timezone': 'str',
'color': 'str',
'visible': 'bool'
'visible': 'bool',
'budget': 'str',
'timeBudget': 'str'
}

attribute_map = {
Expand All @@ -67,10 +69,12 @@ class CustomerEditForm(object):
'homepage': 'homepage',
'timezone': 'timezone',
'color': 'color',
'visible': 'visible'
'visible': 'visible',
'budget': 'budget',
'timeBudget': 'timeBudget'
}

def __init__(self, name=None, number=None, comment=None, company=None, vat_id=None, contact=None, address=None, country=None, currency=None, phone=None, fax=None, mobile=None, email=None, homepage=None, timezone=None, color=None, visible=None): # noqa: E501
def __init__(self, name=None, number=None, comment=None, company=None, vat_id=None, contact=None, address=None, country=None, currency=None, phone=None, fax=None, mobile=None, email=None, homepage=None, timezone=None, color=None, visible=None, budget=None, timeBudget=None): # noqa: E501
"""CustomerEditForm - a model defined in Swagger""" # noqa: E501

self._name = None
Expand All @@ -90,6 +94,8 @@ def __init__(self, name=None, number=None, comment=None, company=None, vat_id=No
self._timezone = None
self._color = None
self._visible = None
self._budget = None
self._timeBudget = None
self.discriminator = None

self.name = name
Expand Down Expand Up @@ -119,6 +125,8 @@ def __init__(self, name=None, number=None, comment=None, company=None, vat_id=No
self.homepage = homepage
self.timezone = timezone
self.color = color
self.budget = budget
self.timeBudget = timeBudget
if visible is not None:
self.visible = visible

Expand Down Expand Up @@ -445,6 +453,52 @@ def timezone(self, timezone):

self._timezone = timezone

@property
def budget(self):
"""Gets the budget of this CustomerEditForm. # noqa: E501


:return: The budget of this CustomerEditForm. # noqa: E501
:rtype: str
"""
return self._budget

@budget.setter
def budget(self, budget):
"""Sets the budget of this CustomerEditForm.


:param budget: The budget of this CustomerEditForm. # noqa: E501
:type: str
"""
if budget is None:
raise ValueError("Invalid value for `budget`, must not be `None`") # noqa: E501

self._budget = budget

@property
def timeBudget(self):
"""Gets the timeBudget of this CustomerEditForm. # noqa: E501


:return: The timeBudget of this CustomerEditForm. # noqa: E501
:rtype: str
"""
return self._timeBudget

@timeBudget.setter
def timeBudget(self, timeBudget):
"""Sets the timeBudget of this CustomerEditForm.


:param timeBudget: The timeBudget of this CustomerEditForm. # noqa: E501
:type: str
"""
if timeBudget is None:
raise ValueError("Invalid value for `timeBudget`, must not be `None`") # noqa: E501

self._timeBudget = timeBudget

@property
def color(self):
"""Gets the color of this CustomerEditForm. # noqa: E501
Expand Down