-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathbalance_details.py
More file actions
128 lines (93 loc) · 3.75 KB
/
balance_details.py
File metadata and controls
128 lines (93 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# 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 BalanceDetails(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 = {
"balance": "float",
"currency_code": "str",
"currency_rate": "float",
}
attribute_map = {
"balance": "Balance",
"currency_code": "CurrencyCode",
"currency_rate": "CurrencyRate",
}
def __init__(
self, balance=None, currency_code=None, currency_rate=None
): # noqa: E501
"""BalanceDetails - a model defined in OpenAPI""" # noqa: E501
self._balance = None
self._currency_code = None
self._currency_rate = None
self.discriminator = None
if balance is not None:
self.balance = balance
if currency_code is not None:
self.currency_code = currency_code
if currency_rate is not None:
self.currency_rate = currency_rate
@property
def balance(self):
"""Gets the balance of this BalanceDetails. # noqa: E501
The opening balances of the account. Debits are positive, credits are negative values # noqa: E501
:return: The balance of this BalanceDetails. # noqa: E501
:rtype: float
"""
return self._balance
@balance.setter
def balance(self, balance):
"""Sets the balance of this BalanceDetails.
The opening balances of the account. Debits are positive, credits are negative values # noqa: E501
:param balance: The balance of this BalanceDetails. # noqa: E501
:type: float
"""
self._balance = balance
@property
def currency_code(self):
"""Gets the currency_code of this BalanceDetails. # noqa: E501
The currency of the balance (Not required for base currency) # noqa: E501
:return: The currency_code of this BalanceDetails. # noqa: E501
:rtype: str
"""
return self._currency_code
@currency_code.setter
def currency_code(self, currency_code):
"""Sets the currency_code of this BalanceDetails.
The currency of the balance (Not required for base currency) # noqa: E501
:param currency_code: The currency_code of this BalanceDetails. # noqa: E501
:type: str
"""
self._currency_code = currency_code
@property
def currency_rate(self):
"""Gets the currency_rate of this BalanceDetails. # noqa: E501
(Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied # noqa: E501
:return: The currency_rate of this BalanceDetails. # noqa: E501
:rtype: float
"""
return self._currency_rate
@currency_rate.setter
def currency_rate(self, currency_rate):
"""Sets the currency_rate of this BalanceDetails.
(Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied # noqa: E501
:param currency_rate: The currency_rate of this BalanceDetails. # noqa: E501
:type: float
"""
self._currency_rate = currency_rate