ev-recharge-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +92 -0
  4. data/lib/shell_ev/api_helper.rb +10 -0
  5. data/lib/shell_ev/client.rb +77 -0
  6. data/lib/shell_ev/configuration.rb +110 -0
  7. data/lib/shell_ev/controllers/base_controller.rb +66 -0
  8. data/lib/shell_ev/controllers/charging_controller.rb +216 -0
  9. data/lib/shell_ev/controllers/locations_controller.rb +352 -0
  10. data/lib/shell_ev/controllers/o_auth_authorization_controller.rb +42 -0
  11. data/lib/shell_ev/exceptions/api_exception.rb +10 -0
  12. data/lib/shell_ev/exceptions/bad_request_exception.rb +37 -0
  13. data/lib/shell_ev/exceptions/http401_error_response_exception.rb +52 -0
  14. data/lib/shell_ev/exceptions/m400_error_response_error1_exception.rb +52 -0
  15. data/lib/shell_ev/exceptions/m401_error_response_error1_exception.rb +52 -0
  16. data/lib/shell_ev/exceptions/m404_error_response_error1_exception.rb +53 -0
  17. data/lib/shell_ev/exceptions/m405_error_response_error1_exception.rb +52 -0
  18. data/lib/shell_ev/exceptions/m429_error_response_error1_exception.rb +52 -0
  19. data/lib/shell_ev/exceptions/m500_error_response_error1_exception.rb +52 -0
  20. data/lib/shell_ev/exceptions/m503_error_response_error1_exception.rb +52 -0
  21. data/lib/shell_ev/exceptions/not_found_exception.rb +37 -0
  22. data/lib/shell_ev/exceptions/o_auth_provider_exception.rb +48 -0
  23. data/lib/shell_ev/exceptions/unauthorized_exception.rb +37 -0
  24. data/lib/shell_ev/http/auth/o_auth2.rb +90 -0
  25. data/lib/shell_ev/http/http_call_back.rb +10 -0
  26. data/lib/shell_ev/http/http_method_enum.rb +10 -0
  27. data/lib/shell_ev/http/http_request.rb +10 -0
  28. data/lib/shell_ev/http/http_response.rb +10 -0
  29. data/lib/shell_ev/models/accessibility.rb +60 -0
  30. data/lib/shell_ev/models/accessibility_status_enum.rb +29 -0
  31. data/lib/shell_ev/models/active_response200_json.rb +78 -0
  32. data/lib/shell_ev/models/active_response200_json_status_enum.rb +23 -0
  33. data/lib/shell_ev/models/address.rb +81 -0
  34. data/lib/shell_ev/models/base_model.rb +62 -0
  35. data/lib/shell_ev/models/chargesession_start_body.rb +59 -0
  36. data/lib/shell_ev/models/connector_vo.rb +134 -0
  37. data/lib/shell_ev/models/connector_vo_connector_type_enum.rb +71 -0
  38. data/lib/shell_ev/models/connector_vo_updated_by_enum.rb +29 -0
  39. data/lib/shell_ev/models/coordinates.rb +70 -0
  40. data/lib/shell_ev/models/data_active.rb +153 -0
  41. data/lib/shell_ev/models/data_active_session_code_enum.rb +44 -0
  42. data/lib/shell_ev/models/data_active_session_state_enum.rb +35 -0
  43. data/lib/shell_ev/models/data_retrieve.rb +152 -0
  44. data/lib/shell_ev/models/data_retrieve_session_code_enum.rb +44 -0
  45. data/lib/shell_ev/models/data_retrieve_session_state_enum.rb +35 -0
  46. data/lib/shell_ev/models/electrical_properties.rb +81 -0
  47. data/lib/shell_ev/models/electrical_properties_power_type_enum.rb +26 -0
  48. data/lib/shell_ev/models/env_enum.rb +23 -0
  49. data/lib/shell_ev/models/evse_vo.rb +143 -0
  50. data/lib/shell_ev/models/evse_vo_authorization_methods_enum.rb +26 -0
  51. data/lib/shell_ev/models/evse_vo_status_enum.rb +29 -0
  52. data/lib/shell_ev/models/get_charge_session_retrieve_response200_json.rb +78 -0
  53. data/lib/shell_ev/models/get_charge_session_retrieve_response200_json_status_enum.rb +23 -0
  54. data/lib/shell_ev/models/get_locations_list_authorization_methods_enum.rb +26 -0
  55. data/lib/shell_ev/models/get_locations_list_connector_types_enum.rb +71 -0
  56. data/lib/shell_ev/models/get_locations_list_evse_status_enum.rb +29 -0
  57. data/lib/shell_ev/models/get_markers_list_authorization_methods_enum.rb +26 -0
  58. data/lib/shell_ev/models/get_markers_list_connector_types_enum.rb +71 -0
  59. data/lib/shell_ev/models/get_markers_list_evse_status_enum.rb +29 -0
  60. data/lib/shell_ev/models/get_nearby_locations_authorization_methods_enum.rb +26 -0
  61. data/lib/shell_ev/models/get_nearby_locations_connector_types_enum.rb +71 -0
  62. data/lib/shell_ev/models/get_nearby_locations_evse_status_enum.rb +29 -0
  63. data/lib/shell_ev/models/inline_response202.rb +76 -0
  64. data/lib/shell_ev/models/inline_response2021.rb +58 -0
  65. data/lib/shell_ev/models/inline_response2021_status_enum.rb +23 -0
  66. data/lib/shell_ev/models/inline_response202_data.rb +48 -0
  67. data/lib/shell_ev/models/inline_response202_status_enum.rb +23 -0
  68. data/lib/shell_ev/models/location_respone_object.rb +172 -0
  69. data/lib/shell_ev/models/m400_error_response.rb +78 -0
  70. data/lib/shell_ev/models/m400_error_response_error.rb +80 -0
  71. data/lib/shell_ev/models/m401_error_response.rb +78 -0
  72. data/lib/shell_ev/models/m401_error_response_error.rb +80 -0
  73. data/lib/shell_ev/models/m404_error_response.rb +79 -0
  74. data/lib/shell_ev/models/m404_error_response_error.rb +80 -0
  75. data/lib/shell_ev/models/m405_error_response.rb +78 -0
  76. data/lib/shell_ev/models/m405_error_response_error.rb +80 -0
  77. data/lib/shell_ev/models/m429_error_response.rb +78 -0
  78. data/lib/shell_ev/models/m429_error_response_error.rb +80 -0
  79. data/lib/shell_ev/models/m500_error_response.rb +78 -0
  80. data/lib/shell_ev/models/m500_error_response_error.rb +80 -0
  81. data/lib/shell_ev/models/m503_error_response.rb +78 -0
  82. data/lib/shell_ev/models/m503_error_response_error.rb +80 -0
  83. data/lib/shell_ev/models/multi_location_marker.rb +126 -0
  84. data/lib/shell_ev/models/o_auth_provider_error_enum.rb +45 -0
  85. data/lib/shell_ev/models/o_auth_token.rb +100 -0
  86. data/lib/shell_ev/models/opening_hours_object.rb +70 -0
  87. data/lib/shell_ev/models/opening_hours_object_week_day_enum.rb +38 -0
  88. data/lib/shell_ev/models/response_base_status_enum.rb +26 -0
  89. data/lib/shell_ev/models/response_error401_all_of1.rb +57 -0
  90. data/lib/shell_ev/models/response_error401_all_of1_errors_items.rb +80 -0
  91. data/lib/shell_ev/models/single_location_marker.rb +157 -0
  92. data/lib/shell_ev/models/single_location_marker_authorization_methods_items_enum.rb +26 -0
  93. data/lib/shell_ev/models/single_location_marker_status_enum.rb +30 -0
  94. data/lib/shell_ev/models/stop_charge_session_request_body_json.rb +48 -0
  95. data/lib/shell_ev/models/success_response.rb +58 -0
  96. data/lib/shell_ev/models/tariff_vo.rb +111 -0
  97. data/lib/shell_ev/models/tariff_vo_updated_by_enum.rb +29 -0
  98. data/lib/shell_ev/utilities/date_time_helper.rb +11 -0
  99. data/lib/shell_ev/utilities/file_wrapper.rb +16 -0
  100. data/lib/shell_ev/utilities/union_type_lookup.rb +38 -0
  101. data/lib/shell_ev.rb +125 -0
  102. data/test/controllers/controller_test_base.rb +34 -0
  103. data/test/controllers/test_charging_controller.rb +78 -0
  104. data/test/http_response_catcher.rb +19 -0
  105. 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: []