Skip to content

Commit f2d2514

Browse files
committed
generates xero-python-1.12.0 from OAS 2.17.4
1 parent fd4b000 commit f2d2514

File tree

28 files changed

+159
-21
lines changed

28 files changed

+159
-21
lines changed

docs/v1/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5976,7 +5976,7 @@
59765976
<nav id="scrollingNav">
59775977
<ul class="sidenav nav nav-list">
59785978
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
5979-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.11.0</li>
5979+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.12.0b1</li>
59805980
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
59815981
<li data-group="Accounting" data-name="createAccount" class="">
59825982
<a href="#api-Accounting-createAccount">createAccount</a>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def read_file(filename):
4848
keywords="xero python sdk API oAuth",
4949
name="xero_python",
5050
packages=find_packages(include=["xero_python", "xero_python.*"]),
51-
version="1.11.0",
51+
version="1.12.0b1",
5252
)

xero_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Xero Developer API"""
44
__email__ = "[email protected]"
5-
__version__ = "1.11.0"
5+
__version__ = "1.12.0b1"

xero_python/accounting/api/accounting_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.2
13+
OpenAPI spec version: 2.17.4
1414
"""
1515

1616
import importlib

xero_python/appstore/api/app_store_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.2
13+
OpenAPI spec version: 2.17.4
1414
"""
1515

1616
import importlib

xero_python/appstore/docs/Plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **str** | The unique identifier of the plan |
77
**name** | **str** | The name of the plan. It is used in the invoice line item description. |
8-
**status** | **str** | Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. |
8+
**status** | **str** | Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. |
99
**subscription_items** | [**list[SubscriptionItem]**](SubscriptionItem.md) | List of the subscription items belonging to the plan. It does not include cancelled subscription items. |
1010

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

xero_python/appstore/docs/SubscriptionItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**price** | [**Price**](Price.md) | |
99
**product** | [**Product**](Product.md) | |
1010
**start_date** | **datetime** | Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven&#39;t taken effect yet. |
11+
**status** | **str** | Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. |
1112
**test_mode** | **bool** | If the subscription is a test subscription | [optional]
1213

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

xero_python/appstore/models/plan.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def name(self, name):
115115
def status(self):
116116
"""Gets the status of this Plan. # noqa: E501
117117
118-
Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. # noqa: E501
118+
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501
119119
120120
:return: The status of this Plan. # noqa: E501
121121
:rtype: str
@@ -126,7 +126,7 @@ def status(self):
126126
def status(self, status):
127127
"""Sets the status of this Plan.
128128
129-
Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. # noqa: E501
129+
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501
130130
131131
:param status: The status of this Plan. # noqa: E501
132132
:type: str
@@ -135,7 +135,12 @@ def status(self, status):
135135
raise ValueError(
136136
"Invalid value for `status`, must not be `None`"
137137
) # noqa: E501
138-
allowed_values = ["ACTIVE", "PENDING_ACTIVATION", "None"] # noqa: E501
138+
allowed_values = [
139+
"ACTIVE",
140+
"CANCELED",
141+
"PENDING_ACTIVATION",
142+
"None",
143+
] # noqa: E501
139144

140145
if status:
141146
if status not in allowed_values:

xero_python/appstore/models/subscription.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,15 @@ def status(self, status):
265265
raise ValueError(
266266
"Invalid value for `status`, must not be `None`"
267267
) # noqa: E501
268+
allowed_values = ["ACTIVE", "CANCELED", "PAST_DUE", "None"] # noqa: E501
269+
270+
if status:
271+
if status not in allowed_values:
272+
raise ValueError(
273+
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
274+
status, allowed_values
275+
)
276+
)
268277

269278
self._status = status
270279

xero_python/appstore/models/subscription_item.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class SubscriptionItem(BaseModel):
3535
"price": "Price",
3636
"product": "Product",
3737
"start_date": "datetime",
38+
"status": "str",
3839
"test_mode": "bool",
3940
}
4041

@@ -44,6 +45,7 @@ class SubscriptionItem(BaseModel):
4445
"price": "price",
4546
"product": "product",
4647
"start_date": "startDate",
48+
"status": "status",
4749
"test_mode": "testMode",
4850
}
4951

@@ -54,6 +56,7 @@ def __init__(
5456
price=None,
5557
product=None,
5658
start_date=None,
59+
status=None,
5760
test_mode=None,
5861
): # noqa: E501
5962
"""SubscriptionItem - a model defined in OpenAPI""" # noqa: E501
@@ -63,6 +66,7 @@ def __init__(
6366
self._price = None
6467
self._product = None
6568
self._start_date = None
69+
self._status = None
6670
self._test_mode = None
6771
self.discriminator = None
6872

@@ -72,6 +76,7 @@ def __init__(
7276
self.price = price
7377
self.product = product
7478
self.start_date = start_date
79+
self.status = status
7580
if test_mode is not None:
7681
self.test_mode = test_mode
7782

@@ -200,6 +205,47 @@ def start_date(self, start_date):
200205

201206
self._start_date = start_date
202207

208+
@property
209+
def status(self):
210+
"""Gets the status of this SubscriptionItem. # noqa: E501
211+
212+
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501
213+
214+
:return: The status of this SubscriptionItem. # noqa: E501
215+
:rtype: str
216+
"""
217+
return self._status
218+
219+
@status.setter
220+
def status(self, status):
221+
"""Sets the status of this SubscriptionItem.
222+
223+
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501
224+
225+
:param status: The status of this SubscriptionItem. # noqa: E501
226+
:type: str
227+
"""
228+
if status is None:
229+
raise ValueError(
230+
"Invalid value for `status`, must not be `None`"
231+
) # noqa: E501
232+
allowed_values = [
233+
"ACTIVE",
234+
"CANCELED",
235+
"PENDING_ACTIVATION",
236+
"None",
237+
] # noqa: E501
238+
239+
if status:
240+
if status not in allowed_values:
241+
raise ValueError(
242+
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
243+
status, allowed_values
244+
)
245+
)
246+
247+
self._status = status
248+
203249
@property
204250
def test_mode(self):
205251
"""Gets the test_mode of this SubscriptionItem. # noqa: E501

0 commit comments

Comments
 (0)