Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit e011424

Browse files
authored
Release 2.20190313.1 (#89)
1 parent 838c915 commit e011424

File tree

9 files changed

+19
-38
lines changed

9 files changed

+19
-38
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## Version 2.20190313.1 (2019-03-21)
4+
5+
### Bug Fix: Connect v1
6+
7+
* Change `timecard_id` as path parameter for `ListTimecardEvents` endpoint
8+
* Change `ended_at` to string type for `V1CashDrawerShift` type
9+
310
## Version 2.20190313.0 (2019-03-13)
411

512
## New API: Labor API

docs/V1CashDrawerShift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**id** | **str** | The shift's unique ID. | [optional]
1212
**event_type** | **str** | The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values | [optional]
1313
**opened_at** | **str** | The time when the shift began, in ISO 8601 format. | [optional]
14-
**ended_at** | **bool** | The time when the shift ended, in ISO 8601 format. | [optional]
14+
**ended_at** | **str** | The time when the shift ended, in ISO 8601 format. | [optional]
1515
**closed_at** | **str** | The time when the shift was closed, in ISO 8601 format. | [optional]
1616
**employee_ids** | **list[str]** | The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. | [optional]
1717
**opening_employee_id** | **str** | The ID of the employee that started the cash drawer shift. | [optional]

docs/V1ListTimecardEventsRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**timecard_id** | **str** | The ID of the timecard to list events for. |
1211

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "squareconnect"
7-
VERSION = "2.20190313.0"
7+
VERSION = "2.20190313.1"
88

99

1010

squareconnect/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
7575
self.default_headers[header_name] = header_value
7676
self.cookie = cookie
7777
# Set default User-Agent.
78-
self.user_agent = 'Square-Connect-Python/2.20190313.0'
78+
self.user_agent = 'Square-Connect-Python/2.20190313.1'
7979

8080
@property
8181
def user_agent(self):

squareconnect/apis/v1_employees_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,10 @@ def list_timecard_events(self, timecard_id, **kwargs):
661661

662662
resource_path = '/v1/me/timecards/{timecard_id}/events'.replace('{format}', 'json')
663663
path_params = {}
664+
if 'timecard_id' in params:
665+
path_params['timecard_id'] = params['timecard_id']
664666

665667
query_params = {}
666-
if 'timecard_id' in params and params['timecard_id'] is not None:
667-
query_params['timecard_id'] = params['timecard_id']
668668

669669
header_params = {}
670670
header_params['Square-Version'] = "2019-03-13"

squareconnect/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,5 @@ def to_debug_report(self):
229229
"OS: {env}\n"\
230230
"Python Version: {pyversion}\n"\
231231
"Version of the API: 2.0\n"\
232-
"SDK Package Version: 2.20190313.0".\
232+
"SDK Package Version: 2.20190313.1".\
233233
format(env=sys.platform, pyversion=sys.version)

squareconnect/models/v1_cash_drawer_shift.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, id=None, event_type=None, opened_at=None, ended_at=None, clos
4040
'id': 'str',
4141
'event_type': 'str',
4242
'opened_at': 'str',
43-
'ended_at': 'bool',
43+
'ended_at': 'str',
4444
'closed_at': 'str',
4545
'employee_ids': 'list[str]',
4646
'opening_employee_id': 'str',
@@ -176,7 +176,7 @@ def ended_at(self):
176176
The time when the shift ended, in ISO 8601 format.
177177
178178
:return: The ended_at of this V1CashDrawerShift.
179-
:rtype: bool
179+
:rtype: str
180180
"""
181181
return self._ended_at
182182

@@ -187,7 +187,7 @@ def ended_at(self, ended_at):
187187
The time when the shift ended, in ISO 8601 format.
188188
189189
:param ended_at: The ended_at of this V1CashDrawerShift.
190-
:type: bool
190+
:type: str
191191
"""
192192

193193
self._ended_at = ended_at

squareconnect/models/v1_list_timecard_events_request.py

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class V1ListTimecardEventsRequest(object):
2727
NOTE: This class is auto generated by the swagger code generator program.
2828
Do not edit the class manually.
2929
"""
30-
def __init__(self, timecard_id=None):
30+
def __init__(self):
3131
"""
3232
V1ListTimecardEventsRequest - a model defined in Swagger
3333
@@ -37,38 +37,13 @@ def __init__(self, timecard_id=None):
3737
and the value is json key in definition.
3838
"""
3939
self.swagger_types = {
40-
'timecard_id': 'str'
40+
4141
}
4242

4343
self.attribute_map = {
44-
'timecard_id': 'timecard_id'
44+
4545
}
4646

47-
self._timecard_id = timecard_id
48-
49-
@property
50-
def timecard_id(self):
51-
"""
52-
Gets the timecard_id of this V1ListTimecardEventsRequest.
53-
The ID of the timecard to list events for.
54-
55-
:return: The timecard_id of this V1ListTimecardEventsRequest.
56-
:rtype: str
57-
"""
58-
return self._timecard_id
59-
60-
@timecard_id.setter
61-
def timecard_id(self, timecard_id):
62-
"""
63-
Sets the timecard_id of this V1ListTimecardEventsRequest.
64-
The ID of the timecard to list events for.
65-
66-
:param timecard_id: The timecard_id of this V1ListTimecardEventsRequest.
67-
:type: str
68-
"""
69-
70-
self._timecard_id = timecard_id
71-
7247
def to_dict(self):
7348
"""
7449
Returns the model properties as a dict

0 commit comments

Comments
 (0)