square_connect 2.20190313.0.278 → 2.20190313.1.282
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +1 -1
- data/docs/V1CashDrawerShift.md +1 -1
- data/docs/V1ListTimecardEventsRequest.md +0 -1
- data/lib/square_connect/api/v1_employees_api.rb +1 -2
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/v1_cash_drawer_shift.rb +1 -1
- data/lib/square_connect/models/v1_list_timecard_events_request.rb +2 -17
- data/lib/square_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3689385935f53e88001e5703fabc163acf179b9987ef368dd4a8e24bd14b12dd
|
4
|
+
data.tar.gz: d40e27bb75a3e67327026f6c57d3a5fb746f75dc7c59771063c8d1ffd05c7fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0db81d307b556a942c5a7b0c4b80b38e8b4b5508a43f8604108f4560763b796b1c9aeeb034488cb446b361da65cc25c9a9e949bb336b84ab43223d6555885a2b
|
7
|
+
data.tar.gz: 0ec9266c61d630612539eb7fa0bba24b7c6247c27d195598550d8643e8a33ca6dcd7749500ebc607af04a1ee00e5a6d69b919299402d7bf02ce0dc3d9d39e16c
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
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
|
+
|
3
10
|
## Version 2.20190313.0 (2019-03-13)
|
4
11
|
|
5
12
|
## New API: Labor API
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
|
|
10
10
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
11
11
|
|
12
12
|
- API version: 2.0
|
13
|
-
- Package version: 2.20190313.
|
13
|
+
- Package version: 2.20190313.1
|
14
14
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
15
15
|
|
16
16
|
For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)
|
data/docs/V1CashDrawerShift.md
CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**id** | **String** | The shift's unique ID. | [optional]
|
11
11
|
**event_type** | **String** | The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values | [optional]
|
12
12
|
**opened_at** | **String** | The time when the shift began, in ISO 8601 format. | [optional]
|
13
|
-
**ended_at** | **
|
13
|
+
**ended_at** | **String** | The time when the shift ended, in ISO 8601 format. | [optional]
|
14
14
|
**closed_at** | **String** | The time when the shift was closed, in ISO 8601 format. | [optional]
|
15
15
|
**employee_ids** | **Array<String>** | The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. | [optional]
|
16
16
|
**opening_employee_id** | **String** | The ID of the employee that started the cash drawer shift. | [optional]
|
@@ -473,11 +473,10 @@ module SquareConnect
|
|
473
473
|
# verify the required parameter 'timecard_id' is set
|
474
474
|
fail ArgumentError, "Missing the required parameter 'timecard_id' when calling V1EmployeesApi.list_timecard_events" if timecard_id.nil?
|
475
475
|
# 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)
|
477
477
|
|
478
478
|
# query parameters
|
479
479
|
query_params = {}
|
480
|
-
query_params[:'timecard_id'] = timecard_id
|
481
480
|
|
482
481
|
# header parameters
|
483
482
|
header_params = {}
|
@@ -30,7 +30,7 @@ module SquareConnect
|
|
30
30
|
@config = config
|
31
31
|
|
32
32
|
# Construct user agent string. Returns slightly different string for JRuby
|
33
|
-
@user_agent = "Square-Connect-Ruby/2.20190313.
|
33
|
+
@user_agent = "Square-Connect-Ruby/2.20190313.1"
|
34
34
|
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => "application/json",
|
@@ -122,7 +122,7 @@ module SquareConnect
|
|
122
122
|
:'id' => :'String',
|
123
123
|
:'event_type' => :'String',
|
124
124
|
:'opened_at' => :'String',
|
125
|
-
:'ended_at' => :'
|
125
|
+
:'ended_at' => :'String',
|
126
126
|
:'closed_at' => :'String',
|
127
127
|
:'employee_ids' => :'Array<String>',
|
128
128
|
:'opening_employee_id' => :'String',
|
@@ -12,21 +12,16 @@ require 'date'
|
|
12
12
|
module SquareConnect
|
13
13
|
#
|
14
14
|
class V1ListTimecardEventsRequest
|
15
|
-
# The ID of the timecard to list events for.
|
16
|
-
attr_accessor :timecard_id
|
17
|
-
|
18
15
|
|
19
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
17
|
def self.attribute_map
|
21
18
|
{
|
22
|
-
:'timecard_id' => :'timecard_id'
|
23
19
|
}
|
24
20
|
end
|
25
21
|
|
26
22
|
# Attribute type mapping.
|
27
23
|
def self.swagger_types
|
28
24
|
{
|
29
|
-
:'timecard_id' => :'String'
|
30
25
|
}
|
31
26
|
end
|
32
27
|
|
@@ -38,27 +33,18 @@ module SquareConnect
|
|
38
33
|
# convert string to symbol for hash key
|
39
34
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
40
35
|
|
41
|
-
if attributes.has_key?(:'timecard_id')
|
42
|
-
self.timecard_id = attributes[:'timecard_id']
|
43
|
-
end
|
44
|
-
|
45
36
|
end
|
46
37
|
|
47
38
|
# Show invalid properties with the reasons. Usually used together with valid?
|
48
39
|
# @return Array for valid properies with the reasons
|
49
40
|
def list_invalid_properties
|
50
41
|
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
|
-
|
55
42
|
return invalid_properties
|
56
43
|
end
|
57
44
|
|
58
45
|
# Check to see if the all the properties in the model are valid
|
59
46
|
# @return true if the model is valid
|
60
47
|
def valid?
|
61
|
-
return false if @timecard_id.nil?
|
62
48
|
return true
|
63
49
|
end
|
64
50
|
|
@@ -66,8 +52,7 @@ module SquareConnect
|
|
66
52
|
# @param [Object] Object to be compared
|
67
53
|
def ==(o)
|
68
54
|
return true if self.equal?(o)
|
69
|
-
self.class == o.class
|
70
|
-
timecard_id == o.timecard_id
|
55
|
+
self.class == o.class
|
71
56
|
end
|
72
57
|
|
73
58
|
# @see the `==` method
|
@@ -79,7 +64,7 @@ module SquareConnect
|
|
79
64
|
# Calculates hash code according to all attributes.
|
80
65
|
# @return [Fixnum] Hash code
|
81
66
|
def hash
|
82
|
-
[
|
67
|
+
[].hash
|
83
68
|
end
|
84
69
|
|
85
70
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: square_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.20190313.
|
4
|
+
version: 2.20190313.1.282
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Square, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|