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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26d56344a87ef5e7967fb97ca50a3b1f60debd07a7a94d6ce7b49ccff026c140
4
- data.tar.gz: 7fd93a0f1d2d8fb0749ce199a6d59dcd9bd3d0f5ab07dd7d7aa77250ff873bb8
3
+ metadata.gz: 3689385935f53e88001e5703fabc163acf179b9987ef368dd4a8e24bd14b12dd
4
+ data.tar.gz: d40e27bb75a3e67327026f6c57d3a5fb746f75dc7c59771063c8d1ffd05c7fa5
5
5
  SHA512:
6
- metadata.gz: 0ff7aa62de40fa309a6e9130842ba7781d91b2dfaf624efb07f41267ea13651fdf6664c1d2069c7d87feeb8043f33b12364025f04a958f381fc0c35b15dee76b
7
- data.tar.gz: d6448bbd8fd17677870f7165050e6df9102105e62c2d939ee3c7ef614047a06bf72ae6085d1e4c9c7ab805353243adfe264a3c0bd5cf770dd6e1db4b16658d6a
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.0
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)
@@ -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** | **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]
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]
@@ -7,6 +7,5 @@
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **timecard_id** | **String** | The ID of the timecard to list events for. |
11
10
 
12
11
 
@@ -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.0"
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' => :'BOOLEAN',
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
- [timecard_id].hash
67
+ [].hash
83
68
  end
84
69
 
85
70
  # Builds the object from hash
@@ -8,5 +8,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
8
  =end
9
9
 
10
10
  module SquareConnect
11
- VERSION = "2.20190313.0"
11
+ VERSION = "2.20190313.1"
12
12
  end
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.0.278
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-13 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus