get_around_owner 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c383fa0ba16fa198a346251862b35f3442ed90847f7be440ebbf926a470bb741
4
- data.tar.gz: 29c94c063d6c3a5055a088ef74038782852ef0cdb094477257c82e32d8338e7e
3
+ metadata.gz: 65f8a030784df3e7725858050ba0c109091b8866e147ffe01e6d75d05a7540ad
4
+ data.tar.gz: 4545088608d7c754fbf79b4907932fe307a56b8fb766061cb305ec3579debc54
5
5
  SHA512:
6
- metadata.gz: 4104dc44aece7c5726817cfa223fa4cfacfa21a56fd398c9a4a06270260b11f3a66171a2e78ee931c2a2f5878187755c79dd7f6caa0043c3afc2376b73465ab3
7
- data.tar.gz: 606c16725f677d862b8b1b96c33e9e838826866ba72a424c0b4de252111340d3c13d64b791c95b2cfb8f35a8adc1ab2defd4d3cacdc2e92e521dbc7dd964ee81
6
+ metadata.gz: 8cda383b491e422b915e06fcf8347673985e18ef26e1372815f0728af4ed264b3f0d2e43886633bf19abfc490701637640bf5370e1d9e46e59d50610037ea930
7
+ data.tar.gz: 617e53de49f3486b76d4aa82cdc458b369e505318f234f5e0fec8706c6010b6c2be84bff6528a2c1dfa8c840638f462f75764462d51b95b17b3dfa3584c0c9df
data/README.md CHANGED
@@ -7,7 +7,7 @@ GetAroundOwner - the Ruby gem for the Getaround Owner API
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.0.7
10
+ - Package version: 1.0.8
11
11
  - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build get_around_owner.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./get_around_owner-1.0.7.gem
26
+ gem install ./get_around_owner-1.0.8.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./get_around_owner-1.0.7.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./get_around_owner-1.0.8.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'get_around_owner', '~> 1.0.7'
35
+ gem 'get_around_owner', '~> 1.0.8'
36
36
 
37
37
  ### Install from Git
38
38
 
Binary file
@@ -80,10 +80,10 @@ module GetAroundOwner
80
80
  # @option opts [] :page Page number
81
81
  # @option opts [] :per_page Page size (default to 30)
82
82
  # @return [CheckinsIndex]
83
- def get_checkins(opts = {})
83
+ def get_checkins(start_date, end_date, opts = {})
84
84
  # Don't specify a return type to get raw response
85
85
  opts[:return_type] = nil
86
- data, status_code, headers = get_checkins_with_http_info(opts)
86
+ data, status_code, headers = get_checkins_with_http_info(start_date, end_date, opts)
87
87
 
88
88
  if status_code == 200 && data
89
89
  begin
@@ -80,10 +80,10 @@ module GetAroundOwner
80
80
  # @option opts [] :page Page number
81
81
  # @option opts [] :per_page Page size (default to 30)
82
82
  # @return [CheckoutsIndex]
83
- def get_checkouts(opts = {})
83
+ def get_checkouts(start_date, end_date, opts = {})
84
84
  # Don't specify a return type to get raw response
85
85
  opts[:return_type] = nil
86
- data, status_code, headers = get_checkouts_with_http_info(opts)
86
+ data, status_code, headers = get_checkouts_with_http_info(start_date, end_date, opts)
87
87
 
88
88
  if status_code == 200 && data
89
89
  begin
@@ -144,8 +144,23 @@ module GetAroundOwner
144
144
  # @param [Hash] opts the optional parameters
145
145
  # @return [RentalMessagesIndex]
146
146
  def get_messages_for_rental(rental_id, opts = {})
147
- data, _status_code, _headers = get_messages_for_rental_with_http_info(rental_id, opts)
148
- data
147
+ # Don't specify a return type to get raw response
148
+ opts[:return_type] = nil
149
+ data, status_code, headers = get_messages_for_rental_with_http_info(rental_id, opts)
150
+
151
+ if status_code == 200 && data
152
+ begin
153
+ # Parse JSON directly from response body
154
+ JSON.parse(data)
155
+ rescue JSON::ParserError => e
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug "Failed to parse JSON response: #{e.message}"
158
+ end
159
+ nil
160
+ end
161
+ else
162
+ nil
163
+ end
149
164
  end
150
165
 
151
166
  # Find messages associated to a rental
@@ -80,10 +80,10 @@ module GetAroundOwner
80
80
  # @option opts [] :page Page number
81
81
  # @option opts [] :per_page Page size (default to 30)
82
82
  # @return [PayoutsIndex]
83
- def get_payouts(opts = {})
83
+ def get_payouts(start_date, end_date, opts = {})
84
84
  # Don't specify a return type to get raw response
85
85
  opts[:return_type] = nil
86
- data, status_code, headers = get_payouts_with_http_info(opts)
86
+ data, status_code, headers = get_payouts_with_http_info(start_date, end_date, opts)
87
87
 
88
88
  if status_code == 200 && data
89
89
  begin
@@ -80,10 +80,10 @@ module GetAroundOwner
80
80
  # @option opts [] :page Page number
81
81
  # @option opts [] :per_page Page size (default to 30)
82
82
  # @return [RentalsIndex]
83
- def get_rentals(opts = {})
83
+ def get_rentals(start_date, end_date, opts = {})
84
84
  # Don't specify a return type to get raw response
85
85
  opts[:return_type] = nil
86
- data, status_code, headers = get_rentals_with_http_info(opts)
86
+ data, status_code, headers = get_rentals_with_http_info(start_date, end_date, opts)
87
87
 
88
88
  if status_code == 200 && data
89
89
  begin
@@ -138,8 +138,23 @@ module GetAroundOwner
138
138
  # @option opts [] :per_page Page size (default to 30)
139
139
  # @return [UnavailabilitiesIndex]
140
140
  def get_unavailabilities_for_car(start_date, end_date, car_id, opts = {})
141
- data, _status_code, _headers = get_unavailabilities_for_car_with_http_info(start_date, end_date, car_id, opts)
142
- data
141
+ # Don't specify a return type to get raw response
142
+ opts[:return_type] = nil
143
+ data, status_code, headers = get_unavailabilities_for_car_with_http_info(start_date, end_date, car_id, opts)
144
+
145
+ if status_code == 200 && data
146
+ begin
147
+ # Parse JSON directly from response body
148
+ JSON.parse(data)
149
+ rescue JSON::ParserError => e
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "Failed to parse JSON response: #{e.message}"
152
+ end
153
+ nil
154
+ end
155
+ else
156
+ nil
157
+ end
143
158
  end
144
159
 
145
160
  # Find Unavailabilities related to a car between dates
@@ -10,5 +10,5 @@ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  module GetAroundOwner
13
- VERSION = '1.0.7'
13
+ VERSION = '1.0.8'
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_around_owner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -220,6 +220,7 @@ files:
220
220
  - get_around_owner-1.0.4.gem
221
221
  - get_around_owner-1.0.5.gem
222
222
  - get_around_owner-1.0.6.gem
223
+ - get_around_owner-1.0.7.gem
223
224
  - get_around_owner.gemspec
224
225
  - getaround-api.gemspec
225
226
  - git_push.sh