Skip to content
Merged
Show file tree
Hide file tree
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
612 changes: 511 additions & 101 deletions README.md

Large diffs are not rendered by default.

80,871 changes: 44,293 additions & 36,578 deletions docs/v1/accounting/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def read_file(filename):
keywords="xero python sdk API oAuth",
name="xero_python",
packages=find_packages(include=["xero_python", "xero_python.*"]),
version="1.7.0",
version="1.8.0",
)
2 changes: 1 addition & 1 deletion xero_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Xero Developer API"""
__email__ = "api@xero.com"
__version__ = "1.7.0"
__version__ = "1.8.0"
3 changes: 2 additions & 1 deletion xero_python/accounting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
from xero_python.accounting.models.branding_theme import BrandingTheme
from xero_python.accounting.models.branding_themes import BrandingThemes
from xero_python.accounting.models.budget import Budget
from xero_python.accounting.models.budget_lines import BudgetLines
from xero_python.accounting.models.budget_balance import BudgetBalance
from xero_python.accounting.models.budget_line import BudgetLine
from xero_python.accounting.models.budgets import Budgets
from xero_python.accounting.models.cis_org_setting import CISOrgSetting
from xero_python.accounting.models.cis_org_settings import CISOrgSettings
Expand Down
2 changes: 1 addition & 1 deletion xero_python/accounting/api/accounting_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.13.2
OpenAPI spec version: 2.13.4
"""

import importlib
Expand Down
4 changes: 2 additions & 2 deletions xero_python/accounting/docs/Budget.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Name | Type | Description | Notes
**type** | **str** | Type of Budget. OVERALL or TRACKING | [optional]
**description** | **str** | The Budget description | [optional]
**updated_date_utc** | **datetime** | UTC timestamp of last update to budget | [optional]
**budget_lines** | [**BudgetLines**](BudgetLines.md) | | [optional]
**tracking** | [**TrackingCategory**](TrackingCategory.md) | | [optional]
**budget_lines** | [**list[BudgetLine]**](BudgetLine.md) | | [optional]
**tracking** | [**list[TrackingCategory]**](TrackingCategory.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
13 changes: 13 additions & 0 deletions xero_python/accounting/docs/BudgetBalance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# BudgetBalance

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**period** | **date** | Period the amount applies to (e.g. “2019-08”) | [optional]
**amount** | **int** | LineItem Quantity | [optional]
**unit_amount** | **int** | Budgeted amount | [optional]
**notes** | **str** | Any footnotes associated with this balance | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


12 changes: 12 additions & 0 deletions xero_python/accounting/docs/BudgetLine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BudgetLine

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_id** | **str** | See Accounts | [optional]
**account_code** | **str** | See Accounts | [optional]
**budget_balances** | [**list[BudgetBalance]**](BudgetBalance.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


3 changes: 2 additions & 1 deletion xero_python/accounting/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
from xero_python.accounting.models.branding_theme import BrandingTheme
from xero_python.accounting.models.branding_themes import BrandingThemes
from xero_python.accounting.models.budget import Budget
from xero_python.accounting.models.budget_lines import BudgetLines
from xero_python.accounting.models.budget_balance import BudgetBalance
from xero_python.accounting.models.budget_line import BudgetLine
from xero_python.accounting.models.budgets import Budgets
from xero_python.accounting.models.cis_org_setting import CISOrgSetting
from xero_python.accounting.models.cis_org_settings import CISOrgSettings
Expand Down
12 changes: 6 additions & 6 deletions xero_python/accounting/models/budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Budget(BaseModel):
"type": "str",
"description": "str",
"updated_date_utc": "datetime[ms-format]",
"budget_lines": "BudgetLines",
"tracking": "TrackingCategory",
"budget_lines": "list[BudgetLine]",
"tracking": "list[TrackingCategory]",
}

attribute_map = {
Expand Down Expand Up @@ -191,7 +191,7 @@ def budget_lines(self):


:return: The budget_lines of this Budget. # noqa: E501
:rtype: BudgetLines
:rtype: list[BudgetLine]
"""
return self._budget_lines

Expand All @@ -201,7 +201,7 @@ def budget_lines(self, budget_lines):


:param budget_lines: The budget_lines of this Budget. # noqa: E501
:type: BudgetLines
:type: list[BudgetLine]
"""

self._budget_lines = budget_lines
Expand All @@ -212,7 +212,7 @@ def tracking(self):


:return: The tracking of this Budget. # noqa: E501
:rtype: TrackingCategory
:rtype: list[TrackingCategory]
"""
return self._tracking

Expand All @@ -222,7 +222,7 @@ def tracking(self, tracking):


:param tracking: The tracking of this Budget. # noqa: E501
:type: TrackingCategory
:type: list[TrackingCategory]
"""

self._tracking = tracking
161 changes: 161 additions & 0 deletions xero_python/accounting/models/budget_balance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# coding: utf-8

"""
Xero Accounting API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401

from xero_python.models import BaseModel


class BudgetBalance(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
"""

"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
"period": "date[ms-format]",
"amount": "int",
"unit_amount": "int",
"notes": "str",
}

attribute_map = {
"period": "Period",
"amount": "Amount",
"unit_amount": "UnitAmount",
"notes": "Notes",
}

def __init__(
self, period=None, amount=None, unit_amount=None, notes=None
): # noqa: E501
"""BudgetBalance - a model defined in OpenAPI""" # noqa: E501

self._period = None
self._amount = None
self._unit_amount = None
self._notes = None
self.discriminator = None

if period is not None:
self.period = period
if amount is not None:
self.amount = amount
if unit_amount is not None:
self.unit_amount = unit_amount
if notes is not None:
self.notes = notes

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

Period the amount applies to (e.g. “2019-08”) # noqa: E501

:return: The period of this BudgetBalance. # noqa: E501
:rtype: date
"""
return self._period

@period.setter
def period(self, period):
"""Sets the period of this BudgetBalance.

Period the amount applies to (e.g. “2019-08”) # noqa: E501

:param period: The period of this BudgetBalance. # noqa: E501
:type: date
"""

self._period = period

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

LineItem Quantity # noqa: E501

:return: The amount of this BudgetBalance. # noqa: E501
:rtype: int
"""
return self._amount

@amount.setter
def amount(self, amount):
"""Sets the amount of this BudgetBalance.

LineItem Quantity # noqa: E501

:param amount: The amount of this BudgetBalance. # noqa: E501
:type: int
"""

self._amount = amount

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

Budgeted amount # noqa: E501

:return: The unit_amount of this BudgetBalance. # noqa: E501
:rtype: int
"""
return self._unit_amount

@unit_amount.setter
def unit_amount(self, unit_amount):
"""Sets the unit_amount of this BudgetBalance.

Budgeted amount # noqa: E501

:param unit_amount: The unit_amount of this BudgetBalance. # noqa: E501
:type: int
"""

self._unit_amount = unit_amount

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

Any footnotes associated with this balance # noqa: E501

:return: The notes of this BudgetBalance. # noqa: E501
:rtype: str
"""
return self._notes

@notes.setter
def notes(self, notes):
"""Sets the notes of this BudgetBalance.

Any footnotes associated with this balance # noqa: E501

:param notes: The notes of this BudgetBalance. # noqa: E501
:type: str
"""
if notes is not None and len(notes) > 255:
raise ValueError(
"Invalid value for `notes`, "
"length must be less than or equal to `255`"
) # noqa: E501

self._notes = notes
Loading