ev-recharge-sdk 1.3.0 → 1.4.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +11 -11
  4. data/lib/shell_ev/configuration.rb +2 -2
  5. data/lib/shell_ev/exceptions/api_exception.rb +11 -0
  6. data/lib/shell_ev/exceptions/bad_request_exception.rb +13 -0
  7. data/lib/shell_ev/exceptions/internal_server_error_exception.rb +14 -0
  8. data/lib/shell_ev/exceptions/not_found_exception.rb +13 -0
  9. data/lib/shell_ev/exceptions/o_auth_provider_exception.rb +14 -0
  10. data/lib/shell_ev/exceptions/serviceunavailable_exception.rb +13 -0
  11. data/lib/shell_ev/exceptions/too_many_requests_exception.rb +13 -0
  12. data/lib/shell_ev/exceptions/unauthorized_exception.rb +13 -0
  13. data/lib/shell_ev/models/accessibility.rb +12 -0
  14. data/lib/shell_ev/models/active_response200_json.rb +13 -0
  15. data/lib/shell_ev/models/address.rb +14 -0
  16. data/lib/shell_ev/models/bad_request_err_msg.rb +14 -0
  17. data/lib/shell_ev/models/charge_error.rb +12 -0
  18. data/lib/shell_ev/models/charge_retrieve_state.rb +12 -0
  19. data/lib/shell_ev/models/chargesession_start_body.rb +13 -0
  20. data/lib/shell_ev/models/connector_vo.rb +18 -0
  21. data/lib/shell_ev/models/coordinates.rb +12 -0
  22. data/lib/shell_ev/models/data_active.rb +17 -0
  23. data/lib/shell_ev/models/data_retrieve.rb +17 -0
  24. data/lib/shell_ev/models/electrical_properties.rb +14 -0
  25. data/lib/shell_ev/models/evse_vo.rb +17 -0
  26. data/lib/shell_ev/models/get_charge_session_retrieve_response200_json.rb +13 -0
  27. data/lib/shell_ev/models/inline_response202.rb +13 -0
  28. data/lib/shell_ev/models/inline_response2021.rb +12 -0
  29. data/lib/shell_ev/models/inline_response202_data.rb +12 -0
  30. data/lib/shell_ev/models/internal_error_object.rb +13 -0
  31. data/lib/shell_ev/models/location_respone_object.rb +19 -0
  32. data/lib/shell_ev/models/multi_location_marker.rb +17 -0
  33. data/lib/shell_ev/models/not_found_err_msg.rb +14 -0
  34. data/lib/shell_ev/models/opening_hours_object.rb +14 -0
  35. data/lib/shell_ev/models/ratelimit_err_msg.rb +14 -0
  36. data/lib/shell_ev/models/response.rb +13 -0
  37. data/lib/shell_ev/models/serviceunavailable_err_msg.rb +14 -0
  38. data/lib/shell_ev/models/single_location_marker.rb +19 -0
  39. data/lib/shell_ev/models/single_location_marker_response.rb +13 -0
  40. data/lib/shell_ev/models/tariff.rb +17 -0
  41. data/lib/shell_ev/models/tariff_vo.rb +17 -0
  42. data/lib/shell_ev/models/unauthorized_err_msg.rb +14 -0
  43. data/lib/shell_ev/utilities/file_wrapper.rb +14 -2
  44. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c08d11ce3e4f2f892c4b59be20a39de22c0e7e476e5702d9be17f4b66921aaae
4
- data.tar.gz: e8494e4e2f1a1064f962d17ec9ceb54fe01cc4a952064b8f8ca40e80ec022425
3
+ metadata.gz: 5f958a760fdf4430c7366b744e7c56aace6ed34cf48f6ee7a06d938cf947c7dd
4
+ data.tar.gz: b8f570f5c8bbe7f0f2dc577867d8f43c59362717015a9ca56f779129efd0254b
5
5
  SHA512:
6
- metadata.gz: 25fd34b7d3077c0f930370af2daf61f31413b3ce455f4f5f1b82b8f265ee9a19b3fffb9d887d535eca31ae39679f10a2b5fc1160ea6330dd1770ce259dd8b6fb
7
- data.tar.gz: 0c057b181460a3e6d7df06ac143582ec45a8d7dd5bca887659cd26d8ff0a622e5d9181f71d1ce2ff6f47a9effdeeaea7a57bd7b304066bf18a110a0a11948cd7
6
+ metadata.gz: ec2964929d7df347bb30519395f465e3b1336acfb5967b5d57e97f237e7544613ffa579bcdc0204a4c43158049652f533de9b7db62ffbcb1ed39ce5118399835
7
+ data.tar.gz: 429bffca3aacd25c25ab4a8ed87bc1c6b56007c36e78c25290ce62b01277e021b5200a66b25934e37263944aed23c294a98e6eff8b7859cffa26ea257c05c448
data/LICENSE CHANGED
@@ -3,7 +3,7 @@ License:
3
3
  The MIT License (MIT)
4
4
  http://opensource.org/licenses/MIT
5
5
 
6
- Copyright (c) 2014 - 2024 APIMATIC Limited
6
+ Copyright (c) 2014 - 2025 APIMATIC Limited
7
7
 
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -28,16 +28,16 @@ Go to the Shell Developer Portal: [https://developer.shell.com](https://develope
28
28
  Install the gem from the command line:
29
29
 
30
30
  ```bash
31
- gem install ev-recharge-sdk -v 1.3.0
31
+ gem install ev-recharge-sdk -v 1.4.0
32
32
  ```
33
33
 
34
34
  Or add the gem to your Gemfile and run `bundle`:
35
35
 
36
36
  ```ruby
37
- gem 'ev-recharge-sdk', '1.3.0'
37
+ gem 'ev-recharge-sdk', '1.4.0'
38
38
  ```
39
39
 
40
- For additional gem details, see the [RubyGems page for the ev-recharge-sdk gem](https://rubygems.org/gems/ev-recharge-sdk/versions/1.3.0).
40
+ For additional gem details, see the [RubyGems page for the ev-recharge-sdk gem](https://rubygems.org/gems/ev-recharge-sdk/versions/1.4.0).
41
41
 
42
42
  ## Test the SDK
43
43
 
@@ -49,7 +49,7 @@ rake
49
49
 
50
50
  ## Initialize the API Client
51
51
 
52
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/client.md)
52
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/client.md)
53
53
 
54
54
  The following parameters are configurable for the API Client:
55
55
 
@@ -65,7 +65,7 @@ The following parameters are configurable for the API Client:
65
65
  | `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
66
66
  | `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
67
67
  | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
68
- | `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
68
+ | `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
69
69
 
70
70
  The API client can be initialized as follows:
71
71
 
@@ -94,16 +94,16 @@ The SDK can be configured to use a different environment for making API calls. A
94
94
 
95
95
  This API uses the following authentication schemes.
96
96
 
97
- * [`BearerAuth (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/auth/oauth-2-client-credentials-grant.md)
97
+ * [`BearerAuth (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/auth/oauth-2-client-credentials-grant.md)
98
98
 
99
99
  ## List of APIs
100
100
 
101
- * [Locations](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/controllers/locations.md)
102
- * [Charging](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/controllers/charging.md)
101
+ * [Locations](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/controllers/locations.md)
102
+ * [Charging](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/controllers/charging.md)
103
103
 
104
104
  ## Classes Documentation
105
105
 
106
- * [Utility Classes](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/utility-classes.md)
107
- * [HttpResponse](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/http-response.md)
108
- * [HttpRequest](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.3.0/doc/http-request.md)
106
+ * [Utility Classes](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/utility-classes.md)
107
+ * [HttpResponse](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/http-response.md)
108
+ * [HttpRequest](https://www.github.com/sdks-io/ev-recharge-ruby-sdk/tree/1.4.0/doc/http-request.md)
109
109
 
@@ -145,11 +145,11 @@ module ShellEv
145
145
  ENVIRONMENTS = {
146
146
  Environment::PRODUCTION => {
147
147
  Server::DEFAULT => 'https://api.shell.com/ev/v1',
148
- Server::ACCESS_TOKEN_SERVER => 'https://api.shell.com/v1/oauth'
148
+ Server::ACCESS_TOKEN_SERVER => 'https://api.shell.com/v2/oauth'
149
149
  },
150
150
  Environment::ENVIRONMENT2 => {
151
151
  Server::DEFAULT => 'https://api-test.shell.com/ev/v1',
152
- Server::ACCESS_TOKEN_SERVER => 'https://api.shell.com/v1/oauth'
152
+ Server::ACCESS_TOKEN_SERVER => 'https://api.shell.com/v2/oauth'
153
153
  }
154
154
  }.freeze
155
155
 
@@ -6,5 +6,16 @@
6
6
  module ShellEv
7
7
  # Class for exceptions when there is a network error, status code error, etc.
8
8
  class APIException < CoreLibrary::ApiException
9
+ # Provides a human-readable string representation of the object.
10
+ def to_s
11
+ class_name = self.class.name.split('::').last
12
+ "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>"
13
+ end
14
+
15
+ # Provides a debugging-friendly string with detailed object information.
16
+ def inspect
17
+ class_name = self.class.name.split('::').last
18
+ "<#{class_name} status_code: #{@response_code.inspect}, reason: #{@reason.inspect}>"
19
+ end
9
20
  end
10
21
  end
@@ -48,5 +48,18 @@ module ShellEv
48
48
 
49
49
  @errors = SKIP unless hash.key?('errors')
50
50
  end
51
+
52
+ # Provides a human-readable string representation of the object.
53
+ def to_s
54
+ class_name = self.class.name.split('::').last
55
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors}>"
56
+ end
57
+
58
+ # Provides a debugging-friendly string with detailed object information.
59
+ def inspect
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
62
+ " #{@errors.inspect}>"
63
+ end
51
64
  end
52
65
  end
@@ -53,5 +53,19 @@ module ShellEv
53
53
  @errors = SKIP unless hash.key?('errors')
54
54
  @details = hash.key?('details') ? hash['details'] : SKIP
55
55
  end
56
+
57
+ # Provides a human-readable string representation of the object.
58
+ def to_s
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors},"\
61
+ " details: #{@details}>"
62
+ end
63
+
64
+ # Provides a debugging-friendly string with detailed object information.
65
+ def inspect
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
68
+ " #{@errors.inspect}, details: #{@details.inspect}>"
69
+ end
56
70
  end
57
71
  end
@@ -50,5 +50,18 @@ module ShellEv
50
50
 
51
51
  @errors = SKIP unless hash.key?('errors')
52
52
  end
53
+
54
+ # Provides a human-readable string representation of the object.
55
+ def to_s
56
+ class_name = self.class.name.split('::').last
57
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors}>"
58
+ end
59
+
60
+ # Provides a debugging-friendly string with detailed object information.
61
+ def inspect
62
+ class_name = self.class.name.split('::').last
63
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
64
+ " #{@errors.inspect}>"
65
+ end
53
66
  end
54
67
  end
@@ -44,5 +44,19 @@ module ShellEv
44
44
  hash.key?('error_description') ? hash['error_description'] : SKIP
45
45
  @error_uri = hash.key?('error_uri') ? hash['error_uri'] : SKIP
46
46
  end
47
+
48
+ # Provides a human-readable string representation of the object.
49
+ def to_s
50
+ class_name = self.class.name.split('::').last
51
+ "<#{class_name} error: #{@error}, error_description: #{@error_description}, error_uri:"\
52
+ " #{@error_uri}>"
53
+ end
54
+
55
+ # Provides a debugging-friendly string with detailed object information.
56
+ def inspect
57
+ class_name = self.class.name.split('::').last
58
+ "<#{class_name} error: #{@error.inspect}, error_description: #{@error_description.inspect},"\
59
+ " error_uri: #{@error_uri.inspect}>"
60
+ end
47
61
  end
48
62
  end
@@ -48,5 +48,18 @@ module ShellEv
48
48
 
49
49
  @errors = SKIP unless hash.key?('errors')
50
50
  end
51
+
52
+ # Provides a human-readable string representation of the object.
53
+ def to_s
54
+ class_name = self.class.name.split('::').last
55
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors}>"
56
+ end
57
+
58
+ # Provides a debugging-friendly string with detailed object information.
59
+ def inspect
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
62
+ " #{@errors.inspect}>"
63
+ end
51
64
  end
52
65
  end
@@ -48,5 +48,18 @@ module ShellEv
48
48
 
49
49
  @errors = SKIP unless hash.key?('errors')
50
50
  end
51
+
52
+ # Provides a human-readable string representation of the object.
53
+ def to_s
54
+ class_name = self.class.name.split('::').last
55
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors}>"
56
+ end
57
+
58
+ # Provides a debugging-friendly string with detailed object information.
59
+ def inspect
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
62
+ " #{@errors.inspect}>"
63
+ end
51
64
  end
52
65
  end
@@ -47,5 +47,18 @@ module ShellEv
47
47
 
48
48
  @errors = SKIP unless hash.key?('errors')
49
49
  end
50
+
51
+ # Provides a human-readable string representation of the object.
52
+ def to_s
53
+ class_name = self.class.name.split('::').last
54
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, errors: #{@errors}>"
55
+ end
56
+
57
+ # Provides a debugging-friendly string with detailed object information.
58
+ def inspect
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, errors:"\
61
+ " #{@errors.inspect}>"
62
+ end
50
63
  end
51
64
  end
@@ -55,5 +55,17 @@ module ShellEv
55
55
  Accessibility.new(status,
56
56
  remark)
57
57
  end
58
+
59
+ # Provides a human-readable string representation of the object.
60
+ def to_s
61
+ class_name = self.class.name.split('::').last
62
+ "<#{class_name} status: #{@status}, remark: #{@remark}>"
63
+ end
64
+
65
+ # Provides a debugging-friendly string with detailed object information.
66
+ def inspect
67
+ class_name = self.class.name.split('::').last
68
+ "<#{class_name} status: #{@status.inspect}, remark: #{@remark.inspect}>"
69
+ end
58
70
  end
59
71
  end
@@ -74,5 +74,18 @@ module ShellEv
74
74
  status,
75
75
  data)
76
76
  end
77
+
78
+ # Provides a human-readable string representation of the object.
79
+ def to_s
80
+ class_name = self.class.name.split('::').last
81
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}>"
82
+ end
83
+
84
+ # Provides a debugging-friendly string with detailed object information.
85
+ def inspect
86
+ class_name = self.class.name.split('::').last
87
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
88
+ " #{@data.inspect}>"
89
+ end
77
90
  end
78
91
  end
@@ -75,5 +75,19 @@ module ShellEv
75
75
  city,
76
76
  country)
77
77
  end
78
+
79
+ # Provides a human-readable string representation of the object.
80
+ def to_s
81
+ class_name = self.class.name.split('::').last
82
+ "<#{class_name} street_and_number: #{@street_and_number}, postal_code: #{@postal_code},"\
83
+ " city: #{@city}, country: #{@country}>"
84
+ end
85
+
86
+ # Provides a debugging-friendly string with detailed object information.
87
+ def inspect
88
+ class_name = self.class.name.split('::').last
89
+ "<#{class_name} street_and_number: #{@street_and_number.inspect}, postal_code:"\
90
+ " #{@postal_code.inspect}, city: #{@city.inspect}, country: #{@country.inspect}>"
91
+ end
78
92
  end
79
93
  end
@@ -78,5 +78,19 @@ module ShellEv
78
78
  description,
79
79
  details)
80
80
  end
81
+
82
+ # Provides a human-readable string representation of the object.
83
+ def to_s
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description},"\
86
+ " details: #{@details}>"
87
+ end
88
+
89
+ # Provides a debugging-friendly string with detailed object information.
90
+ def inspect
91
+ class_name = self.class.name.split('::').last
92
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
93
+ " #{@description.inspect}, details: #{@details.inspect}>"
94
+ end
81
95
  end
82
96
  end
@@ -55,5 +55,17 @@ module ShellEv
55
55
  ChargeError.new(code,
56
56
  message)
57
57
  end
58
+
59
+ # Provides a human-readable string representation of the object.
60
+ def to_s
61
+ class_name = self.class.name.split('::').last
62
+ "<#{class_name} code: #{@code}, message: #{@message}>"
63
+ end
64
+
65
+ # Provides a debugging-friendly string with detailed object information.
66
+ def inspect
67
+ class_name = self.class.name.split('::').last
68
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}>"
69
+ end
58
70
  end
59
71
  end
@@ -59,5 +59,17 @@ module ShellEv
59
59
  ChargeRetrieveState.new(status,
60
60
  error)
61
61
  end
62
+
63
+ # Provides a human-readable string representation of the object.
64
+ def to_s
65
+ class_name = self.class.name.split('::').last
66
+ "<#{class_name} status: #{@status}, error: #{@error}>"
67
+ end
68
+
69
+ # Provides a debugging-friendly string with detailed object information.
70
+ def inspect
71
+ class_name = self.class.name.split('::').last
72
+ "<#{class_name} status: #{@status.inspect}, error: #{@error.inspect}>"
73
+ end
62
74
  end
63
75
  end
@@ -53,5 +53,18 @@ module ShellEv
53
53
  ChargesessionStartBody.new(ev_charge_number,
54
54
  evse_id)
55
55
  end
56
+
57
+ # Provides a human-readable string representation of the object.
58
+ def to_s
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} ev_charge_number: #{@ev_charge_number}, evse_id: #{@evse_id}>"
61
+ end
62
+
63
+ # Provides a debugging-friendly string with detailed object information.
64
+ def inspect
65
+ class_name = self.class.name.split('::').last
66
+ "<#{class_name} ev_charge_number: #{@ev_charge_number.inspect}, evse_id:"\
67
+ " #{@evse_id.inspect}>"
68
+ end
56
69
  end
57
70
  end
@@ -127,5 +127,23 @@ module ShellEv
127
127
  updated_by,
128
128
  deleted)
129
129
  end
130
+
131
+ # Provides a human-readable string representation of the object.
132
+ def to_s
133
+ class_name = self.class.name.split('::').last
134
+ "<#{class_name} uid: #{@uid}, external_id: #{@external_id}, connector_type:"\
135
+ " #{@connector_type}, electrical_properties: #{@electrical_properties}, fixed_cable:"\
136
+ " #{@fixed_cable}, tariff: #{@tariff}, updated: #{@updated}, updated_by: #{@updated_by},"\
137
+ " deleted: #{@deleted}>"
138
+ end
139
+
140
+ # Provides a debugging-friendly string with detailed object information.
141
+ def inspect
142
+ class_name = self.class.name.split('::').last
143
+ "<#{class_name} uid: #{@uid.inspect}, external_id: #{@external_id.inspect}, connector_type:"\
144
+ " #{@connector_type.inspect}, electrical_properties: #{@electrical_properties.inspect},"\
145
+ " fixed_cable: #{@fixed_cable.inspect}, tariff: #{@tariff.inspect}, updated:"\
146
+ " #{@updated.inspect}, updated_by: #{@updated_by.inspect}, deleted: #{@deleted.inspect}>"
147
+ end
130
148
  end
131
149
  end
@@ -65,5 +65,17 @@ module ShellEv
65
65
 
66
66
  true
67
67
  end
68
+
69
+ # Provides a human-readable string representation of the object.
70
+ def to_s
71
+ class_name = self.class.name.split('::').last
72
+ "<#{class_name} latitude: #{@latitude}, longitude: #{@longitude}>"
73
+ end
74
+
75
+ # Provides a debugging-friendly string with detailed object information.
76
+ def inspect
77
+ class_name = self.class.name.split('::').last
78
+ "<#{class_name} latitude: #{@latitude.inspect}, longitude: #{@longitude.inspect}>"
79
+ end
68
80
  end
69
81
  end
@@ -131,5 +131,22 @@ module ShellEv
131
131
  def to_custom_stopped_at
132
132
  DateTimeHelper.to_rfc3339(stopped_at)
133
133
  end
134
+
135
+ # Provides a human-readable string representation of the object.
136
+ def to_s
137
+ class_name = self.class.name.split('::').last
138
+ "<#{class_name} id: #{@id}, user_id: #{@user_id}, ema_id: #{@ema_id}, evse_id: #{@evse_id},"\
139
+ " started_at: #{@started_at}, stopped_at: #{@stopped_at}, session_state: #{@session_state},"\
140
+ " last_updated: #{@last_updated}>"
141
+ end
142
+
143
+ # Provides a debugging-friendly string with detailed object information.
144
+ def inspect
145
+ class_name = self.class.name.split('::').last
146
+ "<#{class_name} id: #{@id.inspect}, user_id: #{@user_id.inspect}, ema_id:"\
147
+ " #{@ema_id.inspect}, evse_id: #{@evse_id.inspect}, started_at: #{@started_at.inspect},"\
148
+ " stopped_at: #{@stopped_at.inspect}, session_state: #{@session_state.inspect},"\
149
+ " last_updated: #{@last_updated.inspect}>"
150
+ end
134
151
  end
135
152
  end
@@ -130,5 +130,22 @@ module ShellEv
130
130
  def to_custom_stopped_at
131
131
  DateTimeHelper.to_rfc3339(stopped_at)
132
132
  end
133
+
134
+ # Provides a human-readable string representation of the object.
135
+ def to_s
136
+ class_name = self.class.name.split('::').last
137
+ "<#{class_name} id: #{@id}, user_id: #{@user_id}, ema_id: #{@ema_id}, evse_id: #{@evse_id},"\
138
+ " last_updated: #{@last_updated}, started_at: #{@started_at}, stopped_at: #{@stopped_at},"\
139
+ " session_state: #{@session_state}>"
140
+ end
141
+
142
+ # Provides a debugging-friendly string with detailed object information.
143
+ def inspect
144
+ class_name = self.class.name.split('::').last
145
+ "<#{class_name} id: #{@id.inspect}, user_id: #{@user_id.inspect}, ema_id:"\
146
+ " #{@ema_id.inspect}, evse_id: #{@evse_id.inspect}, last_updated: #{@last_updated.inspect},"\
147
+ " started_at: #{@started_at.inspect}, stopped_at: #{@stopped_at.inspect}, session_state:"\
148
+ " #{@session_state.inspect}>"
149
+ end
133
150
  end
134
151
  end
@@ -75,5 +75,19 @@ module ShellEv
75
75
  amperage,
76
76
  max_electric_power)
77
77
  end
78
+
79
+ # Provides a human-readable string representation of the object.
80
+ def to_s
81
+ class_name = self.class.name.split('::').last
82
+ "<#{class_name} power_type: #{@power_type}, voltage: #{@voltage}, amperage: #{@amperage},"\
83
+ " max_electric_power: #{@max_electric_power}>"
84
+ end
85
+
86
+ # Provides a debugging-friendly string with detailed object information.
87
+ def inspect
88
+ class_name = self.class.name.split('::').last
89
+ "<#{class_name} power_type: #{@power_type.inspect}, voltage: #{@voltage.inspect}, amperage:"\
90
+ " #{@amperage.inspect}, max_electric_power: #{@max_electric_power.inspect}>"
91
+ end
78
92
  end
79
93
  end
@@ -134,5 +134,22 @@ module ShellEv
134
134
  deleted,
135
135
  physical_reference)
136
136
  end
137
+
138
+ # Provides a human-readable string representation of the object.
139
+ def to_s
140
+ class_name = self.class.name.split('::').last
141
+ "<#{class_name} uid: #{@uid}, external_id: #{@external_id}, evse_id: #{@evse_id}, status:"\
142
+ " #{@status}, connectors: #{@connectors}, authorization_methods: #{@authorization_methods},"\
143
+ " updated: #{@updated}, deleted: #{@deleted}, physical_reference: #{@physical_reference}>"
144
+ end
145
+
146
+ # Provides a debugging-friendly string with detailed object information.
147
+ def inspect
148
+ class_name = self.class.name.split('::').last
149
+ "<#{class_name} uid: #{@uid.inspect}, external_id: #{@external_id.inspect}, evse_id:"\
150
+ " #{@evse_id.inspect}, status: #{@status.inspect}, connectors: #{@connectors.inspect},"\
151
+ " authorization_methods: #{@authorization_methods.inspect}, updated: #{@updated.inspect},"\
152
+ " deleted: #{@deleted.inspect}, physical_reference: #{@physical_reference.inspect}>"
153
+ end
137
154
  end
138
155
  end
@@ -74,5 +74,18 @@ module ShellEv
74
74
  status,
75
75
  data)
76
76
  end
77
+
78
+ # Provides a human-readable string representation of the object.
79
+ def to_s
80
+ class_name = self.class.name.split('::').last
81
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}>"
82
+ end
83
+
84
+ # Provides a debugging-friendly string with detailed object information.
85
+ def inspect
86
+ class_name = self.class.name.split('::').last
87
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
88
+ " #{@data.inspect}>"
89
+ end
77
90
  end
78
91
  end
@@ -72,5 +72,18 @@ module ShellEv
72
72
  status,
73
73
  data)
74
74
  end
75
+
76
+ # Provides a human-readable string representation of the object.
77
+ def to_s
78
+ class_name = self.class.name.split('::').last
79
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}>"
80
+ end
81
+
82
+ # Provides a debugging-friendly string with detailed object information.
83
+ def inspect
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
86
+ " #{@data.inspect}>"
87
+ end
75
88
  end
76
89
  end
@@ -54,5 +54,17 @@ module ShellEv
54
54
  InlineResponse2021.new(request_id,
55
55
  status)
56
56
  end
57
+
58
+ # Provides a human-readable string representation of the object.
59
+ def to_s
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}>"
62
+ end
63
+
64
+ # Provides a debugging-friendly string with detailed object information.
65
+ def inspect
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}>"
68
+ end
57
69
  end
58
70
  end
@@ -46,5 +46,17 @@ module ShellEv
46
46
  # Create object from extracted values.
47
47
  InlineResponse202Data.new(session_id)
48
48
  end
49
+
50
+ # Provides a human-readable string representation of the object.
51
+ def to_s
52
+ class_name = self.class.name.split('::').last
53
+ "<#{class_name} session_id: #{@session_id}>"
54
+ end
55
+
56
+ # Provides a debugging-friendly string with detailed object information.
57
+ def inspect
58
+ class_name = self.class.name.split('::').last
59
+ "<#{class_name} session_id: #{@session_id.inspect}>"
60
+ end
49
61
  end
50
62
  end
@@ -66,5 +66,18 @@ module ShellEv
66
66
  message,
67
67
  description)
68
68
  end
69
+
70
+ # Provides a human-readable string representation of the object.
71
+ def to_s
72
+ class_name = self.class.name.split('::').last
73
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description}>"
74
+ end
75
+
76
+ # Provides a debugging-friendly string with detailed object information.
77
+ def inspect
78
+ class_name = self.class.name.split('::').last
79
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
80
+ " #{@description.inspect}>"
81
+ end
69
82
  end
70
83
  end
@@ -161,5 +161,24 @@ module ShellEv
161
161
  operator_comment,
162
162
  location_type)
163
163
  end
164
+
165
+ # Provides a human-readable string representation of the object.
166
+ def to_s
167
+ class_name = self.class.name.split('::').last
168
+ "<#{class_name} uid: #{@uid}, external_id: #{@external_id}, coordinates: #{@coordinates},"\
169
+ " operator_name: #{@operator_name}, address: #{@address}, accessibility: #{@accessibility},"\
170
+ " evses: #{@evses}, opening_hours: #{@opening_hours}, updated: #{@updated},"\
171
+ " operator_comment: #{@operator_comment}, location_type: #{@location_type}>"
172
+ end
173
+
174
+ # Provides a debugging-friendly string with detailed object information.
175
+ def inspect
176
+ class_name = self.class.name.split('::').last
177
+ "<#{class_name} uid: #{@uid.inspect}, external_id: #{@external_id.inspect}, coordinates:"\
178
+ " #{@coordinates.inspect}, operator_name: #{@operator_name.inspect}, address:"\
179
+ " #{@address.inspect}, accessibility: #{@accessibility.inspect}, evses: #{@evses.inspect},"\
180
+ " opening_hours: #{@opening_hours.inspect}, updated: #{@updated.inspect}, operator_comment:"\
181
+ " #{@operator_comment.inspect}, location_type: #{@location_type.inspect}>"
182
+ end
164
183
  end
165
184
  end
@@ -118,5 +118,22 @@ module ShellEv
118
118
  APIHelper.valid_type?(value['markerType'],
119
119
  ->(val) { val.instance_of? String })
120
120
  end
121
+
122
+ # Provides a human-readable string representation of the object.
123
+ def to_s
124
+ class_name = self.class.name.split('::').last
125
+ "<#{class_name} marker_type: #{@marker_type}, unique_key: #{@unique_key}, coordinates:"\
126
+ " #{@coordinates}, location_count: #{@location_count}, evse_count: #{@evse_count},"\
127
+ " max_power: #{@max_power}, geo_hash: #{@geo_hash}>"
128
+ end
129
+
130
+ # Provides a debugging-friendly string with detailed object information.
131
+ def inspect
132
+ class_name = self.class.name.split('::').last
133
+ "<#{class_name} marker_type: #{@marker_type.inspect}, unique_key: #{@unique_key.inspect},"\
134
+ " coordinates: #{@coordinates.inspect}, location_count: #{@location_count.inspect},"\
135
+ " evse_count: #{@evse_count.inspect}, max_power: #{@max_power.inspect}, geo_hash:"\
136
+ " #{@geo_hash.inspect}>"
137
+ end
121
138
  end
122
139
  end
@@ -78,5 +78,19 @@ module ShellEv
78
78
  description,
79
79
  details)
80
80
  end
81
+
82
+ # Provides a human-readable string representation of the object.
83
+ def to_s
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description},"\
86
+ " details: #{@details}>"
87
+ end
88
+
89
+ # Provides a debugging-friendly string with detailed object information.
90
+ def inspect
91
+ class_name = self.class.name.split('::').last
92
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
93
+ " #{@description.inspect}, details: #{@details.inspect}>"
94
+ end
81
95
  end
82
96
  end
@@ -64,5 +64,19 @@ module ShellEv
64
64
  start_time,
65
65
  end_time)
66
66
  end
67
+
68
+ # Provides a human-readable string representation of the object.
69
+ def to_s
70
+ class_name = self.class.name.split('::').last
71
+ "<#{class_name} week_day: #{@week_day}, start_time: #{@start_time}, end_time:"\
72
+ " #{@end_time}>"
73
+ end
74
+
75
+ # Provides a debugging-friendly string with detailed object information.
76
+ def inspect
77
+ class_name = self.class.name.split('::').last
78
+ "<#{class_name} week_day: #{@week_day.inspect}, start_time: #{@start_time.inspect},"\
79
+ " end_time: #{@end_time.inspect}>"
80
+ end
67
81
  end
68
82
  end
@@ -78,5 +78,19 @@ module ShellEv
78
78
  description,
79
79
  details)
80
80
  end
81
+
82
+ # Provides a human-readable string representation of the object.
83
+ def to_s
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description},"\
86
+ " details: #{@details}>"
87
+ end
88
+
89
+ # Provides a debugging-friendly string with detailed object information.
90
+ def inspect
91
+ class_name = self.class.name.split('::').last
92
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
93
+ " #{@description.inspect}, details: #{@details.inspect}>"
94
+ end
81
95
  end
82
96
  end
@@ -74,5 +74,18 @@ module ShellEv
74
74
  status,
75
75
  data)
76
76
  end
77
+
78
+ # Provides a human-readable string representation of the object.
79
+ def to_s
80
+ class_name = self.class.name.split('::').last
81
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}>"
82
+ end
83
+
84
+ # Provides a debugging-friendly string with detailed object information.
85
+ def inspect
86
+ class_name = self.class.name.split('::').last
87
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
88
+ " #{@data.inspect}>"
89
+ end
77
90
  end
78
91
  end
@@ -78,5 +78,19 @@ module ShellEv
78
78
  description,
79
79
  details)
80
80
  end
81
+
82
+ # Provides a human-readable string representation of the object.
83
+ def to_s
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description},"\
86
+ " details: #{@details}>"
87
+ end
88
+
89
+ # Provides a debugging-friendly string with detailed object information.
90
+ def inspect
91
+ class_name = self.class.name.split('::').last
92
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
93
+ " #{@description.inspect}, details: #{@details.inspect}>"
94
+ end
81
95
  end
82
96
  end
@@ -146,5 +146,24 @@ module ShellEv
146
146
  APIHelper.valid_type?(value['markerType'],
147
147
  ->(val) { val.instance_of? String })
148
148
  end
149
+
150
+ # Provides a human-readable string representation of the object.
151
+ def to_s
152
+ class_name = self.class.name.split('::').last
153
+ "<#{class_name} marker_type: #{@marker_type}, unique_key: #{@unique_key}, status:"\
154
+ " #{@status}, coordinates: #{@coordinates}, evse_count: #{@evse_count}, max_power:"\
155
+ " #{@max_power}, geo_hash: #{@geo_hash}, location_uid: #{@location_uid},"\
156
+ " authorization_methods: #{@authorization_methods}, operator_id: #{@operator_id}>"
157
+ end
158
+
159
+ # Provides a debugging-friendly string with detailed object information.
160
+ def inspect
161
+ class_name = self.class.name.split('::').last
162
+ "<#{class_name} marker_type: #{@marker_type.inspect}, unique_key: #{@unique_key.inspect},"\
163
+ " status: #{@status.inspect}, coordinates: #{@coordinates.inspect}, evse_count:"\
164
+ " #{@evse_count.inspect}, max_power: #{@max_power.inspect}, geo_hash: #{@geo_hash.inspect},"\
165
+ " location_uid: #{@location_uid.inspect}, authorization_methods:"\
166
+ " #{@authorization_methods.inspect}, operator_id: #{@operator_id.inspect}>"
167
+ end
149
168
  end
150
169
  end
@@ -77,5 +77,18 @@ module ShellEv
77
77
 
78
78
  true
79
79
  end
80
+
81
+ # Provides a human-readable string representation of the object.
82
+ def to_s
83
+ class_name = self.class.name.split('::').last
84
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}>"
85
+ end
86
+
87
+ # Provides a debugging-friendly string with detailed object information.
88
+ def inspect
89
+ class_name = self.class.name.split('::').last
90
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
91
+ " #{@data.inspect}>"
92
+ end
80
93
  end
81
94
  end
@@ -103,5 +103,22 @@ module ShellEv
103
103
  updated_by,
104
104
  structure)
105
105
  end
106
+
107
+ # Provides a human-readable string representation of the object.
108
+ def to_s
109
+ class_name = self.class.name.split('::').last
110
+ "<#{class_name} start_fee: #{@start_fee}, per_minute: #{@per_minute}, per_k_wh:"\
111
+ " #{@per_k_wh}, currency: #{@currency}, updated: #{@updated}, updated_by: #{@updated_by},"\
112
+ " structure: #{@structure}>"
113
+ end
114
+
115
+ # Provides a debugging-friendly string with detailed object information.
116
+ def inspect
117
+ class_name = self.class.name.split('::').last
118
+ "<#{class_name} start_fee: #{@start_fee.inspect}, per_minute: #{@per_minute.inspect},"\
119
+ " per_k_wh: #{@per_k_wh.inspect}, currency: #{@currency.inspect}, updated:"\
120
+ " #{@updated.inspect}, updated_by: #{@updated_by.inspect}, structure:"\
121
+ " #{@structure.inspect}>"
122
+ end
106
123
  end
107
124
  end
@@ -103,5 +103,22 @@ module ShellEv
103
103
  updated_by,
104
104
  structure)
105
105
  end
106
+
107
+ # Provides a human-readable string representation of the object.
108
+ def to_s
109
+ class_name = self.class.name.split('::').last
110
+ "<#{class_name} start_fee: #{@start_fee}, per_minute: #{@per_minute}, per_k_wh:"\
111
+ " #{@per_k_wh}, currency: #{@currency}, updated: #{@updated}, updated_by: #{@updated_by},"\
112
+ " structure: #{@structure}>"
113
+ end
114
+
115
+ # Provides a debugging-friendly string with detailed object information.
116
+ def inspect
117
+ class_name = self.class.name.split('::').last
118
+ "<#{class_name} start_fee: #{@start_fee.inspect}, per_minute: #{@per_minute.inspect},"\
119
+ " per_k_wh: #{@per_k_wh.inspect}, currency: #{@currency.inspect}, updated:"\
120
+ " #{@updated.inspect}, updated_by: #{@updated_by.inspect}, structure:"\
121
+ " #{@structure.inspect}>"
122
+ end
106
123
  end
107
124
  end
@@ -78,5 +78,19 @@ module ShellEv
78
78
  description,
79
79
  details)
80
80
  end
81
+
82
+ # Provides a human-readable string representation of the object.
83
+ def to_s
84
+ class_name = self.class.name.split('::').last
85
+ "<#{class_name} code: #{@code}, message: #{@message}, description: #{@description},"\
86
+ " details: #{@details}>"
87
+ end
88
+
89
+ # Provides a debugging-friendly string with detailed object information.
90
+ def inspect
91
+ class_name = self.class.name.split('::').last
92
+ "<#{class_name} code: #{@code.inspect}, message: #{@message.inspect}, description:"\
93
+ " #{@description.inspect}, details: #{@details.inspect}>"
94
+ end
81
95
  end
82
96
  end
@@ -12,5 +12,17 @@ module ShellEv
12
12
  def initialize(file, content_type: 'application/octet-stream')
13
13
  super
14
14
  end
15
- end
16
- end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ev-recharge-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - developer sdksio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces