ev-recharge-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +92 -0
- data/lib/shell_ev/api_helper.rb +10 -0
- data/lib/shell_ev/client.rb +77 -0
- data/lib/shell_ev/configuration.rb +110 -0
- data/lib/shell_ev/controllers/base_controller.rb +66 -0
- data/lib/shell_ev/controllers/charging_controller.rb +216 -0
- data/lib/shell_ev/controllers/locations_controller.rb +352 -0
- data/lib/shell_ev/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/shell_ev/exceptions/api_exception.rb +10 -0
- data/lib/shell_ev/exceptions/bad_request_exception.rb +37 -0
- data/lib/shell_ev/exceptions/http401_error_response_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m400_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m401_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m404_error_response_error1_exception.rb +53 -0
- data/lib/shell_ev/exceptions/m405_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m429_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m500_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/m503_error_response_error1_exception.rb +52 -0
- data/lib/shell_ev/exceptions/not_found_exception.rb +37 -0
- data/lib/shell_ev/exceptions/o_auth_provider_exception.rb +48 -0
- data/lib/shell_ev/exceptions/unauthorized_exception.rb +37 -0
- data/lib/shell_ev/http/auth/o_auth2.rb +90 -0
- data/lib/shell_ev/http/http_call_back.rb +10 -0
- data/lib/shell_ev/http/http_method_enum.rb +10 -0
- data/lib/shell_ev/http/http_request.rb +10 -0
- data/lib/shell_ev/http/http_response.rb +10 -0
- data/lib/shell_ev/models/accessibility.rb +60 -0
- data/lib/shell_ev/models/accessibility_status_enum.rb +29 -0
- data/lib/shell_ev/models/active_response200_json.rb +78 -0
- data/lib/shell_ev/models/active_response200_json_status_enum.rb +23 -0
- data/lib/shell_ev/models/address.rb +81 -0
- data/lib/shell_ev/models/base_model.rb +62 -0
- data/lib/shell_ev/models/chargesession_start_body.rb +59 -0
- data/lib/shell_ev/models/connector_vo.rb +134 -0
- data/lib/shell_ev/models/connector_vo_connector_type_enum.rb +71 -0
- data/lib/shell_ev/models/connector_vo_updated_by_enum.rb +29 -0
- data/lib/shell_ev/models/coordinates.rb +70 -0
- data/lib/shell_ev/models/data_active.rb +153 -0
- data/lib/shell_ev/models/data_active_session_code_enum.rb +44 -0
- data/lib/shell_ev/models/data_active_session_state_enum.rb +35 -0
- data/lib/shell_ev/models/data_retrieve.rb +152 -0
- data/lib/shell_ev/models/data_retrieve_session_code_enum.rb +44 -0
- data/lib/shell_ev/models/data_retrieve_session_state_enum.rb +35 -0
- data/lib/shell_ev/models/electrical_properties.rb +81 -0
- data/lib/shell_ev/models/electrical_properties_power_type_enum.rb +26 -0
- data/lib/shell_ev/models/env_enum.rb +23 -0
- data/lib/shell_ev/models/evse_vo.rb +143 -0
- data/lib/shell_ev/models/evse_vo_authorization_methods_enum.rb +26 -0
- data/lib/shell_ev/models/evse_vo_status_enum.rb +29 -0
- data/lib/shell_ev/models/get_charge_session_retrieve_response200_json.rb +78 -0
- data/lib/shell_ev/models/get_charge_session_retrieve_response200_json_status_enum.rb +23 -0
- data/lib/shell_ev/models/get_locations_list_authorization_methods_enum.rb +26 -0
- data/lib/shell_ev/models/get_locations_list_connector_types_enum.rb +71 -0
- data/lib/shell_ev/models/get_locations_list_evse_status_enum.rb +29 -0
- data/lib/shell_ev/models/get_markers_list_authorization_methods_enum.rb +26 -0
- data/lib/shell_ev/models/get_markers_list_connector_types_enum.rb +71 -0
- data/lib/shell_ev/models/get_markers_list_evse_status_enum.rb +29 -0
- data/lib/shell_ev/models/get_nearby_locations_authorization_methods_enum.rb +26 -0
- data/lib/shell_ev/models/get_nearby_locations_connector_types_enum.rb +71 -0
- data/lib/shell_ev/models/get_nearby_locations_evse_status_enum.rb +29 -0
- data/lib/shell_ev/models/inline_response202.rb +76 -0
- data/lib/shell_ev/models/inline_response2021.rb +58 -0
- data/lib/shell_ev/models/inline_response2021_status_enum.rb +23 -0
- data/lib/shell_ev/models/inline_response202_data.rb +48 -0
- data/lib/shell_ev/models/inline_response202_status_enum.rb +23 -0
- data/lib/shell_ev/models/location_respone_object.rb +172 -0
- data/lib/shell_ev/models/m400_error_response.rb +78 -0
- data/lib/shell_ev/models/m400_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m401_error_response.rb +78 -0
- data/lib/shell_ev/models/m401_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m404_error_response.rb +79 -0
- data/lib/shell_ev/models/m404_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m405_error_response.rb +78 -0
- data/lib/shell_ev/models/m405_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m429_error_response.rb +78 -0
- data/lib/shell_ev/models/m429_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m500_error_response.rb +78 -0
- data/lib/shell_ev/models/m500_error_response_error.rb +80 -0
- data/lib/shell_ev/models/m503_error_response.rb +78 -0
- data/lib/shell_ev/models/m503_error_response_error.rb +80 -0
- data/lib/shell_ev/models/multi_location_marker.rb +126 -0
- data/lib/shell_ev/models/o_auth_provider_error_enum.rb +45 -0
- data/lib/shell_ev/models/o_auth_token.rb +100 -0
- data/lib/shell_ev/models/opening_hours_object.rb +70 -0
- data/lib/shell_ev/models/opening_hours_object_week_day_enum.rb +38 -0
- data/lib/shell_ev/models/response_base_status_enum.rb +26 -0
- data/lib/shell_ev/models/response_error401_all_of1.rb +57 -0
- data/lib/shell_ev/models/response_error401_all_of1_errors_items.rb +80 -0
- data/lib/shell_ev/models/single_location_marker.rb +157 -0
- data/lib/shell_ev/models/single_location_marker_authorization_methods_items_enum.rb +26 -0
- data/lib/shell_ev/models/single_location_marker_status_enum.rb +30 -0
- data/lib/shell_ev/models/stop_charge_session_request_body_json.rb +48 -0
- data/lib/shell_ev/models/success_response.rb +58 -0
- data/lib/shell_ev/models/tariff_vo.rb +111 -0
- data/lib/shell_ev/models/tariff_vo_updated_by_enum.rb +29 -0
- data/lib/shell_ev/utilities/date_time_helper.rb +11 -0
- data/lib/shell_ev/utilities/file_wrapper.rb +16 -0
- data/lib/shell_ev/utilities/union_type_lookup.rb +38 -0
- data/lib/shell_ev.rb +125 -0
- data/test/controllers/controller_test_base.rb +34 -0
- data/test/controllers/test_charging_controller.rb +78 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +224 -0
metadata
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ev-recharge-sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- developer sdksio
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: apimatic_core_interfaces
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: apimatic_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.3.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: apimatic_faraday_client_adapter
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.14'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 5.14.1
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '5.14'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 5.14.1
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: minitest-proveit
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.0'
|
89
|
+
description: This API Product provides the option to manage charging at all public
|
90
|
+
Shell Recharge locations. The end points provides control to start, stop and get
|
91
|
+
status of the charging session.
|
92
|
+
email:
|
93
|
+
- developer+sdksio@apimatic.io
|
94
|
+
executables: []
|
95
|
+
extensions: []
|
96
|
+
extra_rdoc_files: []
|
97
|
+
files:
|
98
|
+
- LICENSE
|
99
|
+
- README.md
|
100
|
+
- lib/shell_ev.rb
|
101
|
+
- lib/shell_ev/api_helper.rb
|
102
|
+
- lib/shell_ev/client.rb
|
103
|
+
- lib/shell_ev/configuration.rb
|
104
|
+
- lib/shell_ev/controllers/base_controller.rb
|
105
|
+
- lib/shell_ev/controllers/charging_controller.rb
|
106
|
+
- lib/shell_ev/controllers/locations_controller.rb
|
107
|
+
- lib/shell_ev/controllers/o_auth_authorization_controller.rb
|
108
|
+
- lib/shell_ev/exceptions/api_exception.rb
|
109
|
+
- lib/shell_ev/exceptions/bad_request_exception.rb
|
110
|
+
- lib/shell_ev/exceptions/http401_error_response_exception.rb
|
111
|
+
- lib/shell_ev/exceptions/m400_error_response_error1_exception.rb
|
112
|
+
- lib/shell_ev/exceptions/m401_error_response_error1_exception.rb
|
113
|
+
- lib/shell_ev/exceptions/m404_error_response_error1_exception.rb
|
114
|
+
- lib/shell_ev/exceptions/m405_error_response_error1_exception.rb
|
115
|
+
- lib/shell_ev/exceptions/m429_error_response_error1_exception.rb
|
116
|
+
- lib/shell_ev/exceptions/m500_error_response_error1_exception.rb
|
117
|
+
- lib/shell_ev/exceptions/m503_error_response_error1_exception.rb
|
118
|
+
- lib/shell_ev/exceptions/not_found_exception.rb
|
119
|
+
- lib/shell_ev/exceptions/o_auth_provider_exception.rb
|
120
|
+
- lib/shell_ev/exceptions/unauthorized_exception.rb
|
121
|
+
- lib/shell_ev/http/auth/o_auth2.rb
|
122
|
+
- lib/shell_ev/http/http_call_back.rb
|
123
|
+
- lib/shell_ev/http/http_method_enum.rb
|
124
|
+
- lib/shell_ev/http/http_request.rb
|
125
|
+
- lib/shell_ev/http/http_response.rb
|
126
|
+
- lib/shell_ev/models/accessibility.rb
|
127
|
+
- lib/shell_ev/models/accessibility_status_enum.rb
|
128
|
+
- lib/shell_ev/models/active_response200_json.rb
|
129
|
+
- lib/shell_ev/models/active_response200_json_status_enum.rb
|
130
|
+
- lib/shell_ev/models/address.rb
|
131
|
+
- lib/shell_ev/models/base_model.rb
|
132
|
+
- lib/shell_ev/models/chargesession_start_body.rb
|
133
|
+
- lib/shell_ev/models/connector_vo.rb
|
134
|
+
- lib/shell_ev/models/connector_vo_connector_type_enum.rb
|
135
|
+
- lib/shell_ev/models/connector_vo_updated_by_enum.rb
|
136
|
+
- lib/shell_ev/models/coordinates.rb
|
137
|
+
- lib/shell_ev/models/data_active.rb
|
138
|
+
- lib/shell_ev/models/data_active_session_code_enum.rb
|
139
|
+
- lib/shell_ev/models/data_active_session_state_enum.rb
|
140
|
+
- lib/shell_ev/models/data_retrieve.rb
|
141
|
+
- lib/shell_ev/models/data_retrieve_session_code_enum.rb
|
142
|
+
- lib/shell_ev/models/data_retrieve_session_state_enum.rb
|
143
|
+
- lib/shell_ev/models/electrical_properties.rb
|
144
|
+
- lib/shell_ev/models/electrical_properties_power_type_enum.rb
|
145
|
+
- lib/shell_ev/models/env_enum.rb
|
146
|
+
- lib/shell_ev/models/evse_vo.rb
|
147
|
+
- lib/shell_ev/models/evse_vo_authorization_methods_enum.rb
|
148
|
+
- lib/shell_ev/models/evse_vo_status_enum.rb
|
149
|
+
- lib/shell_ev/models/get_charge_session_retrieve_response200_json.rb
|
150
|
+
- lib/shell_ev/models/get_charge_session_retrieve_response200_json_status_enum.rb
|
151
|
+
- lib/shell_ev/models/get_locations_list_authorization_methods_enum.rb
|
152
|
+
- lib/shell_ev/models/get_locations_list_connector_types_enum.rb
|
153
|
+
- lib/shell_ev/models/get_locations_list_evse_status_enum.rb
|
154
|
+
- lib/shell_ev/models/get_markers_list_authorization_methods_enum.rb
|
155
|
+
- lib/shell_ev/models/get_markers_list_connector_types_enum.rb
|
156
|
+
- lib/shell_ev/models/get_markers_list_evse_status_enum.rb
|
157
|
+
- lib/shell_ev/models/get_nearby_locations_authorization_methods_enum.rb
|
158
|
+
- lib/shell_ev/models/get_nearby_locations_connector_types_enum.rb
|
159
|
+
- lib/shell_ev/models/get_nearby_locations_evse_status_enum.rb
|
160
|
+
- lib/shell_ev/models/inline_response202.rb
|
161
|
+
- lib/shell_ev/models/inline_response2021.rb
|
162
|
+
- lib/shell_ev/models/inline_response2021_status_enum.rb
|
163
|
+
- lib/shell_ev/models/inline_response202_data.rb
|
164
|
+
- lib/shell_ev/models/inline_response202_status_enum.rb
|
165
|
+
- lib/shell_ev/models/location_respone_object.rb
|
166
|
+
- lib/shell_ev/models/m400_error_response.rb
|
167
|
+
- lib/shell_ev/models/m400_error_response_error.rb
|
168
|
+
- lib/shell_ev/models/m401_error_response.rb
|
169
|
+
- lib/shell_ev/models/m401_error_response_error.rb
|
170
|
+
- lib/shell_ev/models/m404_error_response.rb
|
171
|
+
- lib/shell_ev/models/m404_error_response_error.rb
|
172
|
+
- lib/shell_ev/models/m405_error_response.rb
|
173
|
+
- lib/shell_ev/models/m405_error_response_error.rb
|
174
|
+
- lib/shell_ev/models/m429_error_response.rb
|
175
|
+
- lib/shell_ev/models/m429_error_response_error.rb
|
176
|
+
- lib/shell_ev/models/m500_error_response.rb
|
177
|
+
- lib/shell_ev/models/m500_error_response_error.rb
|
178
|
+
- lib/shell_ev/models/m503_error_response.rb
|
179
|
+
- lib/shell_ev/models/m503_error_response_error.rb
|
180
|
+
- lib/shell_ev/models/multi_location_marker.rb
|
181
|
+
- lib/shell_ev/models/o_auth_provider_error_enum.rb
|
182
|
+
- lib/shell_ev/models/o_auth_token.rb
|
183
|
+
- lib/shell_ev/models/opening_hours_object.rb
|
184
|
+
- lib/shell_ev/models/opening_hours_object_week_day_enum.rb
|
185
|
+
- lib/shell_ev/models/response_base_status_enum.rb
|
186
|
+
- lib/shell_ev/models/response_error401_all_of1.rb
|
187
|
+
- lib/shell_ev/models/response_error401_all_of1_errors_items.rb
|
188
|
+
- lib/shell_ev/models/single_location_marker.rb
|
189
|
+
- lib/shell_ev/models/single_location_marker_authorization_methods_items_enum.rb
|
190
|
+
- lib/shell_ev/models/single_location_marker_status_enum.rb
|
191
|
+
- lib/shell_ev/models/stop_charge_session_request_body_json.rb
|
192
|
+
- lib/shell_ev/models/success_response.rb
|
193
|
+
- lib/shell_ev/models/tariff_vo.rb
|
194
|
+
- lib/shell_ev/models/tariff_vo_updated_by_enum.rb
|
195
|
+
- lib/shell_ev/utilities/date_time_helper.rb
|
196
|
+
- lib/shell_ev/utilities/file_wrapper.rb
|
197
|
+
- lib/shell_ev/utilities/union_type_lookup.rb
|
198
|
+
- test/controllers/controller_test_base.rb
|
199
|
+
- test/controllers/test_charging_controller.rb
|
200
|
+
- test/http_response_catcher.rb
|
201
|
+
homepage: https://www.shell.com/
|
202
|
+
licenses:
|
203
|
+
- MIT
|
204
|
+
metadata: {}
|
205
|
+
post_install_message:
|
206
|
+
rdoc_options: []
|
207
|
+
require_paths:
|
208
|
+
- lib
|
209
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ">="
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '2.6'
|
214
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '0'
|
219
|
+
requirements: []
|
220
|
+
rubygems_version: 3.1.6
|
221
|
+
signing_key:
|
222
|
+
specification_version: 4
|
223
|
+
summary: SDK for using Shell EV Charging APIs
|
224
|
+
test_files: []
|