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

Commit 3795d8b

Browse files
authored
Release 2.20190313.1 (#76)
1 parent 14a988e commit 3795d8b

File tree

9 files changed

+15
-25
lines changed

9 files changed

+15
-25
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
1010
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
1111

1212
- API version: 2.0
13-
- Package version: 2.20190313.0
13+
- Package version: 2.20190313.1
1414
- Build package: io.swagger.codegen.languages.RubyClientCodegen
1515

1616
For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)

docs/V1CashDrawerShift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**id** | **String** | The shift's unique ID. | [optional]
1111
**event_type** | **String** | The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values | [optional]
1212
**opened_at** | **String** | The time when the shift began, in ISO 8601 format. | [optional]
13-
**ended_at** | **BOOLEAN** | The time when the shift ended, in ISO 8601 format. | [optional]
13+
**ended_at** | **String** | The time when the shift ended, in ISO 8601 format. | [optional]
1414
**closed_at** | **String** | The time when the shift was closed, in ISO 8601 format. | [optional]
1515
**employee_ids** | **Array<String>** | The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. | [optional]
1616
**opening_employee_id** | **String** | 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
@@ -7,6 +7,5 @@
77
## Properties
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**timecard_id** | **String** | The ID of the timecard to list events for. |
1110

1211

lib/square_connect/api/v1_employees_api.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,10 @@ def list_timecard_events_with_http_info(timecard_id, opts = {})
473473
# verify the required parameter 'timecard_id' is set
474474
fail ArgumentError, "Missing the required parameter 'timecard_id' when calling V1EmployeesApi.list_timecard_events" if timecard_id.nil?
475475
# resource path
476-
local_var_path = "/v1/me/timecards/{timecard_id}/events".sub('{format}','json')
476+
local_var_path = "/v1/me/timecards/{timecard_id}/events".sub('{format}','json').sub('{' + 'timecard_id' + '}', timecard_id.to_s)
477477

478478
# query parameters
479479
query_params = {}
480-
query_params[:'timecard_id'] = timecard_id
481480

482481
# header parameters
483482
header_params = {}

lib/square_connect/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def initialize(config = Configuration.default)
3030
@config = config
3131

3232
# Construct user agent string. Returns slightly different string for JRuby
33-
@user_agent = "Square-Connect-Ruby/2.20190313.0"
33+
@user_agent = "Square-Connect-Ruby/2.20190313.1"
3434

3535
@default_headers = {
3636
'Content-Type' => "application/json",

lib/square_connect/models/v1_cash_drawer_shift.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def self.swagger_types
122122
:'id' => :'String',
123123
:'event_type' => :'String',
124124
:'opened_at' => :'String',
125-
:'ended_at' => :'BOOLEAN',
125+
:'ended_at' => :'String',
126126
:'closed_at' => :'String',
127127
:'employee_ids' => :'Array<String>',
128128
:'opening_employee_id' => :'String',

lib/square_connect/models/v1_list_timecard_events_request.rb

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,16 @@
1212
module SquareConnect
1313
#
1414
class V1ListTimecardEventsRequest
15-
# The ID of the timecard to list events for.
16-
attr_accessor :timecard_id
17-
1815

1916
# Attribute mapping from ruby-style variable name to JSON key.
2017
def self.attribute_map
2118
{
22-
:'timecard_id' => :'timecard_id'
2319
}
2420
end
2521

2622
# Attribute type mapping.
2723
def self.swagger_types
2824
{
29-
:'timecard_id' => :'String'
3025
}
3126
end
3227

@@ -38,36 +33,26 @@ def initialize(attributes = {})
3833
# convert string to symbol for hash key
3934
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
4035

41-
if attributes.has_key?(:'timecard_id')
42-
self.timecard_id = attributes[:'timecard_id']
43-
end
44-
4536
end
4637

4738
# Show invalid properties with the reasons. Usually used together with valid?
4839
# @return Array for valid properies with the reasons
4940
def list_invalid_properties
5041
invalid_properties = Array.new
51-
if @timecard_id.nil?
52-
invalid_properties.push("invalid value for 'timecard_id', timecard_id cannot be nil.")
53-
end
54-
5542
return invalid_properties
5643
end
5744

5845
# Check to see if the all the properties in the model are valid
5946
# @return true if the model is valid
6047
def valid?
61-
return false if @timecard_id.nil?
6248
return true
6349
end
6450

6551
# Checks equality by comparing each attribute.
6652
# @param [Object] Object to be compared
6753
def ==(o)
6854
return true if self.equal?(o)
69-
self.class == o.class &&
70-
timecard_id == o.timecard_id
55+
self.class == o.class
7156
end
7257

7358
# @see the `==` method
@@ -79,7 +64,7 @@ def eql?(o)
7964
# Calculates hash code according to all attributes.
8065
# @return [Fixnum] Hash code
8166
def hash
82-
[timecard_id].hash
67+
[].hash
8368
end
8469

8570
# Builds the object from hash

lib/square_connect/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
=end
99

1010
module SquareConnect
11-
VERSION = "2.20190313.0"
11+
VERSION = "2.20190313.1"
1212
end

0 commit comments

Comments
 (0)