vmsp-sdk 0.0.1
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 +7 -0
- data/LICENSE +28 -0
- data/README.md +167 -0
- data/bin/console +15 -0
- data/lib/e_mobility_vmspocpiap_is/api_helper.rb +10 -0
- data/lib/e_mobility_vmspocpiap_is/client.rb +138 -0
- data/lib/e_mobility_vmspocpiap_is/configuration.rb +176 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/account_controller.rb +53 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/base_controller.rb +60 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/cd_rs_pull_controller.rb +103 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/cd_rs_push_controller.rb +51 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/commands_callback_controller.rb +56 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/commands_controller.rb +102 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/locations_pull_controller.rb +125 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/locations_push_controller.rb +68 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/sessions_pull_controller.rb +91 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/sessions_push_controller.rb +74 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/tariffs_pull_controller.rb +117 -0
- data/lib/e_mobility_vmspocpiap_is/controllers/tariffs_push_controller.rb +62 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/accounts_ocpi_error_response_exception.rb +69 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/accounts_ocpi_response_exception.rb +67 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/accounts_ocpi_unauthorized_response_exception.rb +64 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/api_exception.rb +21 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/ocpi_error_response_exception.rb +71 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/ocpi_response_error_exception.rb +67 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/ocpi_unauthorized_response_exception.rb +64 -0
- data/lib/e_mobility_vmspocpiap_is/exceptions/v3_commands_startsession400_error_exception.rb +67 -0
- data/lib/e_mobility_vmspocpiap_is/http/auth/bearer_authorization.rb +53 -0
- data/lib/e_mobility_vmspocpiap_is/http/auth/ocpi_authorization.rb +52 -0
- data/lib/e_mobility_vmspocpiap_is/http/http_call_back.rb +10 -0
- data/lib/e_mobility_vmspocpiap_is/http/http_method_enum.rb +10 -0
- data/lib/e_mobility_vmspocpiap_is/http/http_request.rb +10 -0
- data/lib/e_mobility_vmspocpiap_is/http/http_response.rb +10 -0
- data/lib/e_mobility_vmspocpiap_is/http/proxy_settings.rb +22 -0
- data/lib/e_mobility_vmspocpiap_is/models/account_details.rb +237 -0
- data/lib/e_mobility_vmspocpiap_is/models/account_details2.rb +237 -0
- data/lib/e_mobility_vmspocpiap_is/models/account_response.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/account_state_enum.rb +46 -0
- data/lib/e_mobility_vmspocpiap_is/models/account_state_reason_enum.rb +67 -0
- data/lib/e_mobility_vmspocpiap_is/models/add_on_fee.rb +101 -0
- data/lib/e_mobility_vmspocpiap_is/models/add_on_fee_type_enum.rb +52 -0
- data/lib/e_mobility_vmspocpiap_is/models/additional_geo_location.rb +82 -0
- data/lib/e_mobility_vmspocpiap_is/models/auth_method_enum.rb +40 -0
- data/lib/e_mobility_vmspocpiap_is/models/base_model.rb +110 -0
- data/lib/e_mobility_vmspocpiap_is/models/benefit.rb +181 -0
- data/lib/e_mobility_vmspocpiap_is/models/booking_restriction_type_enum.rb +44 -0
- data/lib/e_mobility_vmspocpiap_is/models/business_details.rb +84 -0
- data/lib/e_mobility_vmspocpiap_is/models/capability_enum.rb +88 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr.rb +462 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr1.rb +457 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr_dimension.rb +71 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr_dimension_type_enum.rb +97 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr_location.rb +206 -0
- data/lib/e_mobility_vmspocpiap_is/models/cdr_token.rb +91 -0
- data/lib/e_mobility_vmspocpiap_is/models/charge_type_enum.rb +52 -0
- data/lib/e_mobility_vmspocpiap_is/models/charging_period.rb +100 -0
- data/lib/e_mobility_vmspocpiap_is/models/command_response.rb +92 -0
- data/lib/e_mobility_vmspocpiap_is/models/command_response1.rb +91 -0
- data/lib/e_mobility_vmspocpiap_is/models/command_response_type_enum.rb +44 -0
- data/lib/e_mobility_vmspocpiap_is/models/command_result.rb +81 -0
- data/lib/e_mobility_vmspocpiap_is/models/command_result_type_enum.rb +64 -0
- data/lib/e_mobility_vmspocpiap_is/models/connector.rb +184 -0
- data/lib/e_mobility_vmspocpiap_is/models/connector_format_enum.rb +36 -0
- data/lib/e_mobility_vmspocpiap_is/models/connector_type_enum.rb +196 -0
- data/lib/e_mobility_vmspocpiap_is/models/day_of_week_enum.rb +56 -0
- data/lib/e_mobility_vmspocpiap_is/models/display_text.rb +68 -0
- data/lib/e_mobility_vmspocpiap_is/models/emaid.rb +137 -0
- data/lib/e_mobility_vmspocpiap_is/models/energy_mix.rb +127 -0
- data/lib/e_mobility_vmspocpiap_is/models/energy_source.rb +69 -0
- data/lib/e_mobility_vmspocpiap_is/models/energy_source_category_enum.rb +60 -0
- data/lib/e_mobility_vmspocpiap_is/models/environmental_impact.rb +68 -0
- data/lib/e_mobility_vmspocpiap_is/models/environmental_impact_category_enum.rb +36 -0
- data/lib/e_mobility_vmspocpiap_is/models/evse.rb +250 -0
- data/lib/e_mobility_vmspocpiap_is/models/exceptional_period.rb +84 -0
- data/lib/e_mobility_vmspocpiap_is/models/facility_enum.rb +108 -0
- data/lib/e_mobility_vmspocpiap_is/models/geo_location.rb +73 -0
- data/lib/e_mobility_vmspocpiap_is/models/hours.rb +127 -0
- data/lib/e_mobility_vmspocpiap_is/models/image.rb +114 -0
- data/lib/e_mobility_vmspocpiap_is/models/image_category_enum.rb +58 -0
- data/lib/e_mobility_vmspocpiap_is/models/location.rb +379 -0
- data/lib/e_mobility_vmspocpiap_is/models/location1.rb +375 -0
- data/lib/e_mobility_vmspocpiap_is/models/ocpi_command_response.rb +62 -0
- data/lib/e_mobility_vmspocpiap_is/models/ocpi_response.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/parking_direction_enum.rb +40 -0
- data/lib/e_mobility_vmspocpiap_is/models/parking_restriction_enum.rb +61 -0
- data/lib/e_mobility_vmspocpiap_is/models/parking_type_enum.rb +53 -0
- data/lib/e_mobility_vmspocpiap_is/models/power_type_enum.rb +48 -0
- data/lib/e_mobility_vmspocpiap_is/models/price.rb +80 -0
- data/lib/e_mobility_vmspocpiap_is/models/price_component.rb +99 -0
- data/lib/e_mobility_vmspocpiap_is/models/price_limit.rb +71 -0
- data/lib/e_mobility_vmspocpiap_is/models/product.rb +186 -0
- data/lib/e_mobility_vmspocpiap_is/models/publish_token_type.rb +106 -0
- data/lib/e_mobility_vmspocpiap_is/models/regular_hours.rb +80 -0
- data/lib/e_mobility_vmspocpiap_is/models/reservation_restriction_type_enum.rb +36 -0
- data/lib/e_mobility_vmspocpiap_is/models/session.rb +298 -0
- data/lib/e_mobility_vmspocpiap_is/models/session_status_enum.rb +60 -0
- data/lib/e_mobility_vmspocpiap_is/models/signed_data.rb +116 -0
- data/lib/e_mobility_vmspocpiap_is/models/signed_value.rb +85 -0
- data/lib/e_mobility_vmspocpiap_is/models/start_session.rb +107 -0
- data/lib/e_mobility_vmspocpiap_is/models/start_session_token.rb +68 -0
- data/lib/e_mobility_vmspocpiap_is/models/status2_enum.rb +44 -0
- data/lib/e_mobility_vmspocpiap_is/models/status_enum.rb +64 -0
- data/lib/e_mobility_vmspocpiap_is/models/status_schedule.rb +97 -0
- data/lib/e_mobility_vmspocpiap_is/models/stop_session.rb +70 -0
- data/lib/e_mobility_vmspocpiap_is/models/subscription_renewal_cadence_enum.rb +44 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff.rb +347 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff1.rb +336 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff_dimension_type_enum.rb +60 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff_element.rb +91 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff_restrictions.rb +310 -0
- data/lib/e_mobility_vmspocpiap_is/models/tariff_type_enum.rb +48 -0
- data/lib/e_mobility_vmspocpiap_is/models/tax_amount.rb +95 -0
- data/lib/e_mobility_vmspocpiap_is/models/tax_included_enum.rb +40 -0
- data/lib/e_mobility_vmspocpiap_is/models/token_type_enum.rb +48 -0
- data/lib/e_mobility_vmspocpiap_is/models/type_of_emaid_enum.rb +36 -0
- data/lib/e_mobility_vmspocpiap_is/models/url_enum.rb +36 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_cdrs_response.rb +107 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_cdrs_response1.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_commands_startsession_response.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_commands_stopsession_response.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_locations_response.rb +107 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_locations_response1.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_sessions_response.rb +107 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_tariffs_response.rb +107 -0
- data/lib/e_mobility_vmspocpiap_is/models/v3_tariffs_response1.rb +98 -0
- data/lib/e_mobility_vmspocpiap_is/models/vehicle_type_enum.rb +64 -0
- data/lib/e_mobility_vmspocpiap_is/utilities/date_time_helper.rb +11 -0
- data/lib/e_mobility_vmspocpiap_is/utilities/file_wrapper.rb +28 -0
- data/lib/e_mobility_vmspocpiap_is.rb +164 -0
- metadata +213 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module EMobilityVmspocpiapIs
|
|
8
|
+
# Response data object or list of objects.
|
|
9
|
+
class Location1 < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Site accessibility by vehicle or program. This field is specific for Tesla
|
|
14
|
+
# chargers.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :charging_accessibility
|
|
17
|
+
|
|
18
|
+
# ISO-3166 alpha-2 country code of the CPO that 'owns' this Location.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :country_code
|
|
21
|
+
|
|
22
|
+
# ID of the CPO that 'owns' this Location (following the ISO-15118
|
|
23
|
+
# standard).
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :party_id
|
|
26
|
+
|
|
27
|
+
# Uniquely identifies the location within the CPOs platform (and suboperator
|
|
28
|
+
# platforms). This field can never be changed, modified or renamed.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :id
|
|
31
|
+
|
|
32
|
+
# Defines if a Location may be published on a website or app etc.
|
|
33
|
+
# When the same location has EVSEs that may be published and may not be
|
|
34
|
+
# published,
|
|
35
|
+
# two 'Locations' should be created.
|
|
36
|
+
# @return [TrueClass | FalseClass]
|
|
37
|
+
attr_accessor :publish
|
|
38
|
+
|
|
39
|
+
# Display name of the location.
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :name
|
|
42
|
+
|
|
43
|
+
# Street/block name and house number if available.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :address
|
|
46
|
+
|
|
47
|
+
# City or town.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :city
|
|
50
|
+
|
|
51
|
+
# Postal code of the location, may only be omitted when the location has no
|
|
52
|
+
# postal code.
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :postal_code
|
|
55
|
+
|
|
56
|
+
# State or province of the location, only to be used when relevant.
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :state
|
|
59
|
+
|
|
60
|
+
# Province of the location, only to be used when relevant.
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :province
|
|
63
|
+
|
|
64
|
+
# ISO 3166-1 alpha-3 code for the country of this location.
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :country
|
|
67
|
+
|
|
68
|
+
# This class defines the geo location of the Charge Point. The geodetic
|
|
69
|
+
# system to be used is WGS 84.
|
|
70
|
+
# Five decimal places is seen as a minimum for GPS coordinates as this gives
|
|
71
|
+
# approximately 1 meter precision.
|
|
72
|
+
# More is always better. Seven decimal places gives approximately 1cm
|
|
73
|
+
# precision.
|
|
74
|
+
# @return [GeoLocation]
|
|
75
|
+
attr_accessor :coordinates
|
|
76
|
+
|
|
77
|
+
# Geographical location of related points relevant to the user.
|
|
78
|
+
# @return [Array[AdditionalGeoLocation]]
|
|
79
|
+
attr_accessor :related_locations
|
|
80
|
+
|
|
81
|
+
# Reflects the general type of the charge point's location. May be used for
|
|
82
|
+
# user information.
|
|
83
|
+
# @return [ParkingTypeEnum]
|
|
84
|
+
attr_accessor :parking_type
|
|
85
|
+
|
|
86
|
+
# List of EVSEs that belong to this Location.
|
|
87
|
+
# @return [Array[EVSE]]
|
|
88
|
+
attr_accessor :evses
|
|
89
|
+
|
|
90
|
+
# Phone number for help or support at the location. New in OCPI 2.3.0.
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :help_phone
|
|
93
|
+
|
|
94
|
+
# Human-readable directions on how to reach the location.
|
|
95
|
+
# @return [Array[DisplayText]]
|
|
96
|
+
attr_accessor :directions
|
|
97
|
+
|
|
98
|
+
# Business details of an operator, suboperator, or owner.
|
|
99
|
+
# @return [BusinessDetails]
|
|
100
|
+
attr_accessor :operator
|
|
101
|
+
|
|
102
|
+
# Business details of an operator, suboperator, or owner.
|
|
103
|
+
# @return [BusinessDetails]
|
|
104
|
+
attr_accessor :suboperator
|
|
105
|
+
|
|
106
|
+
# Business details of an operator, suboperator, or owner.
|
|
107
|
+
# @return [BusinessDetails]
|
|
108
|
+
attr_accessor :owner
|
|
109
|
+
|
|
110
|
+
# Optional list of facilities this charging location directly belongs to.
|
|
111
|
+
# @return [Array[FacilityEnum]]
|
|
112
|
+
attr_accessor :facilities
|
|
113
|
+
|
|
114
|
+
# One of IANA tzdata's TZ-values representing the time zone of the location.
|
|
115
|
+
# Examples "Europe/Oslo", "Europe/Zurich".
|
|
116
|
+
# @return [String]
|
|
117
|
+
attr_accessor :time_zone
|
|
118
|
+
|
|
119
|
+
# Opening and access hours of the location.
|
|
120
|
+
# @return [Hours]
|
|
121
|
+
attr_accessor :opening_times
|
|
122
|
+
|
|
123
|
+
# Indicates if the EVSEs are still charging outside the opening hours of the
|
|
124
|
+
# location. Default is true.
|
|
125
|
+
# @return [TrueClass | FalseClass]
|
|
126
|
+
attr_accessor :charging_when_closed
|
|
127
|
+
|
|
128
|
+
# Links to images related to the location such as photos or logos.
|
|
129
|
+
# @return [Array[Image]]
|
|
130
|
+
attr_accessor :images
|
|
131
|
+
|
|
132
|
+
# Timestamp when this Location or one of its EVSEs or Connectors were last
|
|
133
|
+
# updated (or created).
|
|
134
|
+
# @return [DateTime]
|
|
135
|
+
attr_accessor :last_updated
|
|
136
|
+
|
|
137
|
+
# A mapping from model property names to API property names.
|
|
138
|
+
def self.names
|
|
139
|
+
@_hash = {} if @_hash.nil?
|
|
140
|
+
@_hash['charging_accessibility'] = 'charging_accessibility'
|
|
141
|
+
@_hash['country_code'] = 'country_code'
|
|
142
|
+
@_hash['party_id'] = 'party_id'
|
|
143
|
+
@_hash['id'] = 'id'
|
|
144
|
+
@_hash['publish'] = 'publish'
|
|
145
|
+
@_hash['name'] = 'name'
|
|
146
|
+
@_hash['address'] = 'address'
|
|
147
|
+
@_hash['city'] = 'city'
|
|
148
|
+
@_hash['postal_code'] = 'postal_code'
|
|
149
|
+
@_hash['state'] = 'state'
|
|
150
|
+
@_hash['province'] = 'province'
|
|
151
|
+
@_hash['country'] = 'country'
|
|
152
|
+
@_hash['coordinates'] = 'coordinates'
|
|
153
|
+
@_hash['related_locations'] = 'related_locations'
|
|
154
|
+
@_hash['parking_type'] = 'parking_type'
|
|
155
|
+
@_hash['evses'] = 'evses'
|
|
156
|
+
@_hash['help_phone'] = 'help_phone'
|
|
157
|
+
@_hash['directions'] = 'directions'
|
|
158
|
+
@_hash['operator'] = 'operator'
|
|
159
|
+
@_hash['suboperator'] = 'suboperator'
|
|
160
|
+
@_hash['owner'] = 'owner'
|
|
161
|
+
@_hash['facilities'] = 'facilities'
|
|
162
|
+
@_hash['time_zone'] = 'time_zone'
|
|
163
|
+
@_hash['opening_times'] = 'opening_times'
|
|
164
|
+
@_hash['charging_when_closed'] = 'charging_when_closed'
|
|
165
|
+
@_hash['images'] = 'images'
|
|
166
|
+
@_hash['last_updated'] = 'last_updated'
|
|
167
|
+
@_hash
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# An array for optional fields
|
|
171
|
+
def self.optionals
|
|
172
|
+
%w[
|
|
173
|
+
charging_accessibility
|
|
174
|
+
name
|
|
175
|
+
postal_code
|
|
176
|
+
state
|
|
177
|
+
province
|
|
178
|
+
related_locations
|
|
179
|
+
parking_type
|
|
180
|
+
evses
|
|
181
|
+
help_phone
|
|
182
|
+
directions
|
|
183
|
+
operator
|
|
184
|
+
suboperator
|
|
185
|
+
owner
|
|
186
|
+
facilities
|
|
187
|
+
opening_times
|
|
188
|
+
charging_when_closed
|
|
189
|
+
images
|
|
190
|
+
]
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# An array for nullable fields
|
|
194
|
+
def self.nullables
|
|
195
|
+
[]
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
def initialize(country_code = nil, party_id = nil, id = nil, publish = nil,
|
|
199
|
+
address = nil, city = nil, country = nil, coordinates = nil,
|
|
200
|
+
time_zone = nil, last_updated = nil,
|
|
201
|
+
charging_accessibility = SKIP, name = SKIP,
|
|
202
|
+
postal_code = SKIP, state = SKIP, province = SKIP,
|
|
203
|
+
related_locations = SKIP, parking_type = SKIP, evses = SKIP,
|
|
204
|
+
help_phone = SKIP, directions = SKIP, operator = SKIP,
|
|
205
|
+
suboperator = SKIP, owner = SKIP, facilities = SKIP,
|
|
206
|
+
opening_times = SKIP, charging_when_closed = SKIP,
|
|
207
|
+
images = SKIP)
|
|
208
|
+
@charging_accessibility = charging_accessibility unless charging_accessibility == SKIP
|
|
209
|
+
@country_code = country_code
|
|
210
|
+
@party_id = party_id
|
|
211
|
+
@id = id
|
|
212
|
+
@publish = publish
|
|
213
|
+
@name = name unless name == SKIP
|
|
214
|
+
@address = address
|
|
215
|
+
@city = city
|
|
216
|
+
@postal_code = postal_code unless postal_code == SKIP
|
|
217
|
+
@state = state unless state == SKIP
|
|
218
|
+
@province = province unless province == SKIP
|
|
219
|
+
@country = country
|
|
220
|
+
@coordinates = coordinates
|
|
221
|
+
@related_locations = related_locations unless related_locations == SKIP
|
|
222
|
+
@parking_type = parking_type unless parking_type == SKIP
|
|
223
|
+
@evses = evses unless evses == SKIP
|
|
224
|
+
@help_phone = help_phone unless help_phone == SKIP
|
|
225
|
+
@directions = directions unless directions == SKIP
|
|
226
|
+
@operator = operator unless operator == SKIP
|
|
227
|
+
@suboperator = suboperator unless suboperator == SKIP
|
|
228
|
+
@owner = owner unless owner == SKIP
|
|
229
|
+
@facilities = facilities unless facilities == SKIP
|
|
230
|
+
@time_zone = time_zone
|
|
231
|
+
@opening_times = opening_times unless opening_times == SKIP
|
|
232
|
+
@charging_when_closed = charging_when_closed unless charging_when_closed == SKIP
|
|
233
|
+
@images = images unless images == SKIP
|
|
234
|
+
@last_updated = last_updated
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Creates an instance of the object from a hash.
|
|
238
|
+
def self.from_hash(hash)
|
|
239
|
+
return nil unless hash
|
|
240
|
+
|
|
241
|
+
# Extract variables from the hash.
|
|
242
|
+
country_code = hash.key?('country_code') ? hash['country_code'] : nil
|
|
243
|
+
party_id = hash.key?('party_id') ? hash['party_id'] : nil
|
|
244
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
245
|
+
publish = hash.key?('publish') ? hash['publish'] : nil
|
|
246
|
+
address = hash.key?('address') ? hash['address'] : nil
|
|
247
|
+
city = hash.key?('city') ? hash['city'] : nil
|
|
248
|
+
country = hash.key?('country') ? hash['country'] : nil
|
|
249
|
+
coordinates = GeoLocation.from_hash(hash['coordinates']) if hash['coordinates']
|
|
250
|
+
time_zone = hash.key?('time_zone') ? hash['time_zone'] : nil
|
|
251
|
+
last_updated = if hash.key?('last_updated')
|
|
252
|
+
(DateTimeHelper.from_rfc3339(hash['last_updated']) if hash['last_updated'])
|
|
253
|
+
end
|
|
254
|
+
charging_accessibility =
|
|
255
|
+
hash.key?('charging_accessibility') ? hash['charging_accessibility'] : SKIP
|
|
256
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
257
|
+
postal_code = hash.key?('postal_code') ? hash['postal_code'] : SKIP
|
|
258
|
+
state = hash.key?('state') ? hash['state'] : SKIP
|
|
259
|
+
province = hash.key?('province') ? hash['province'] : SKIP
|
|
260
|
+
# Parameter is an array, so we need to iterate through it
|
|
261
|
+
related_locations = nil
|
|
262
|
+
unless hash['related_locations'].nil?
|
|
263
|
+
related_locations = []
|
|
264
|
+
hash['related_locations'].each do |structure|
|
|
265
|
+
related_locations << (AdditionalGeoLocation.from_hash(structure) if structure)
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
related_locations = SKIP unless hash.key?('related_locations')
|
|
270
|
+
parking_type = hash.key?('parking_type') ? hash['parking_type'] : SKIP
|
|
271
|
+
# Parameter is an array, so we need to iterate through it
|
|
272
|
+
evses = nil
|
|
273
|
+
unless hash['evses'].nil?
|
|
274
|
+
evses = []
|
|
275
|
+
hash['evses'].each do |structure|
|
|
276
|
+
evses << (EVSE.from_hash(structure) if structure)
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
evses = SKIP unless hash.key?('evses')
|
|
281
|
+
help_phone = hash.key?('help_phone') ? hash['help_phone'] : SKIP
|
|
282
|
+
# Parameter is an array, so we need to iterate through it
|
|
283
|
+
directions = nil
|
|
284
|
+
unless hash['directions'].nil?
|
|
285
|
+
directions = []
|
|
286
|
+
hash['directions'].each do |structure|
|
|
287
|
+
directions << (DisplayText.from_hash(structure) if structure)
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
directions = SKIP unless hash.key?('directions')
|
|
292
|
+
operator = BusinessDetails.from_hash(hash['operator']) if hash['operator']
|
|
293
|
+
suboperator = BusinessDetails.from_hash(hash['suboperator']) if hash['suboperator']
|
|
294
|
+
owner = BusinessDetails.from_hash(hash['owner']) if hash['owner']
|
|
295
|
+
facilities = hash.key?('facilities') ? hash['facilities'] : SKIP
|
|
296
|
+
opening_times = Hours.from_hash(hash['opening_times']) if hash['opening_times']
|
|
297
|
+
charging_when_closed =
|
|
298
|
+
hash.key?('charging_when_closed') ? hash['charging_when_closed'] : SKIP
|
|
299
|
+
# Parameter is an array, so we need to iterate through it
|
|
300
|
+
images = nil
|
|
301
|
+
unless hash['images'].nil?
|
|
302
|
+
images = []
|
|
303
|
+
hash['images'].each do |structure|
|
|
304
|
+
images << (Image.from_hash(structure) if structure)
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
images = SKIP unless hash.key?('images')
|
|
309
|
+
|
|
310
|
+
# Create object from extracted values.
|
|
311
|
+
Location1.new(country_code,
|
|
312
|
+
party_id,
|
|
313
|
+
id,
|
|
314
|
+
publish,
|
|
315
|
+
address,
|
|
316
|
+
city,
|
|
317
|
+
country,
|
|
318
|
+
coordinates,
|
|
319
|
+
time_zone,
|
|
320
|
+
last_updated,
|
|
321
|
+
charging_accessibility,
|
|
322
|
+
name,
|
|
323
|
+
postal_code,
|
|
324
|
+
state,
|
|
325
|
+
province,
|
|
326
|
+
related_locations,
|
|
327
|
+
parking_type,
|
|
328
|
+
evses,
|
|
329
|
+
help_phone,
|
|
330
|
+
directions,
|
|
331
|
+
operator,
|
|
332
|
+
suboperator,
|
|
333
|
+
owner,
|
|
334
|
+
facilities,
|
|
335
|
+
opening_times,
|
|
336
|
+
charging_when_closed,
|
|
337
|
+
images)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def to_custom_last_updated
|
|
341
|
+
DateTimeHelper.to_rfc3339(last_updated)
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Provides a human-readable string representation of the object.
|
|
345
|
+
def to_s
|
|
346
|
+
class_name = self.class.name.split('::').last
|
|
347
|
+
"<#{class_name} charging_accessibility: #{@charging_accessibility}, country_code:"\
|
|
348
|
+
" #{@country_code}, party_id: #{@party_id}, id: #{@id}, publish: #{@publish}, name:"\
|
|
349
|
+
" #{@name}, address: #{@address}, city: #{@city}, postal_code: #{@postal_code}, state:"\
|
|
350
|
+
" #{@state}, province: #{@province}, country: #{@country}, coordinates: #{@coordinates},"\
|
|
351
|
+
" related_locations: #{@related_locations}, parking_type: #{@parking_type}, evses:"\
|
|
352
|
+
" #{@evses}, help_phone: #{@help_phone}, directions: #{@directions}, operator: #{@operator},"\
|
|
353
|
+
" suboperator: #{@suboperator}, owner: #{@owner}, facilities: #{@facilities}, time_zone:"\
|
|
354
|
+
" #{@time_zone}, opening_times: #{@opening_times}, charging_when_closed:"\
|
|
355
|
+
" #{@charging_when_closed}, images: #{@images}, last_updated: #{@last_updated}>"
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
359
|
+
def inspect
|
|
360
|
+
class_name = self.class.name.split('::').last
|
|
361
|
+
"<#{class_name} charging_accessibility: #{@charging_accessibility.inspect}, country_code:"\
|
|
362
|
+
" #{@country_code.inspect}, party_id: #{@party_id.inspect}, id: #{@id.inspect}, publish:"\
|
|
363
|
+
" #{@publish.inspect}, name: #{@name.inspect}, address: #{@address.inspect}, city:"\
|
|
364
|
+
" #{@city.inspect}, postal_code: #{@postal_code.inspect}, state: #{@state.inspect},"\
|
|
365
|
+
" province: #{@province.inspect}, country: #{@country.inspect}, coordinates:"\
|
|
366
|
+
" #{@coordinates.inspect}, related_locations: #{@related_locations.inspect}, parking_type:"\
|
|
367
|
+
" #{@parking_type.inspect}, evses: #{@evses.inspect}, help_phone: #{@help_phone.inspect},"\
|
|
368
|
+
" directions: #{@directions.inspect}, operator: #{@operator.inspect}, suboperator:"\
|
|
369
|
+
" #{@suboperator.inspect}, owner: #{@owner.inspect}, facilities: #{@facilities.inspect},"\
|
|
370
|
+
" time_zone: #{@time_zone.inspect}, opening_times: #{@opening_times.inspect},"\
|
|
371
|
+
" charging_when_closed: #{@charging_when_closed.inspect}, images: #{@images.inspect},"\
|
|
372
|
+
" last_updated: #{@last_updated.inspect}>"
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EMobilityVmspocpiapIs
|
|
7
|
+
# OCPICommandResponse Model.
|
|
8
|
+
class OCPICommandResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# OCPI status code, any value other than 1000 indicates an error.
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :status_code
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['status_code'] = 'status_code'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
status_code
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(status_code = SKIP)
|
|
36
|
+
@status_code = status_code unless status_code == SKIP
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Creates an instance of the object from a hash.
|
|
40
|
+
def self.from_hash(hash)
|
|
41
|
+
return nil unless hash
|
|
42
|
+
|
|
43
|
+
# Extract variables from the hash.
|
|
44
|
+
status_code = hash.key?('status_code') ? hash['status_code'] : SKIP
|
|
45
|
+
|
|
46
|
+
# Create object from extracted values.
|
|
47
|
+
OCPICommandResponse.new(status_code)
|
|
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} status_code: #{@status_code}>"
|
|
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} status_code: #{@status_code.inspect}>"
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module EMobilityVmspocpiapIs
|
|
8
|
+
# OCPI Response envelope wrapping all successful responses.
|
|
9
|
+
class OCPIResponse < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# OCPI status code, 1000 for success.
|
|
14
|
+
# @return [Integer]
|
|
15
|
+
attr_accessor :status_code
|
|
16
|
+
|
|
17
|
+
# An optional status message which may help when debugging.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :status_message
|
|
20
|
+
|
|
21
|
+
# The time this message was generated.
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :timestamp
|
|
24
|
+
|
|
25
|
+
# Response data object or list of objects.
|
|
26
|
+
# @return [Object]
|
|
27
|
+
attr_accessor :data
|
|
28
|
+
|
|
29
|
+
# A mapping from model property names to API property names.
|
|
30
|
+
def self.names
|
|
31
|
+
@_hash = {} if @_hash.nil?
|
|
32
|
+
@_hash['status_code'] = 'status_code'
|
|
33
|
+
@_hash['status_message'] = 'status_message'
|
|
34
|
+
@_hash['timestamp'] = 'timestamp'
|
|
35
|
+
@_hash['data'] = 'data'
|
|
36
|
+
@_hash
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# An array for optional fields
|
|
40
|
+
def self.optionals
|
|
41
|
+
%w[
|
|
42
|
+
status_message
|
|
43
|
+
data
|
|
44
|
+
]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# An array for nullable fields
|
|
48
|
+
def self.nullables
|
|
49
|
+
[]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def initialize(status_code = nil, timestamp = nil, status_message = SKIP,
|
|
53
|
+
data = SKIP)
|
|
54
|
+
@status_code = status_code
|
|
55
|
+
@status_message = status_message unless status_message == SKIP
|
|
56
|
+
@timestamp = timestamp
|
|
57
|
+
@data = data unless data == SKIP
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Creates an instance of the object from a hash.
|
|
61
|
+
def self.from_hash(hash)
|
|
62
|
+
return nil unless hash
|
|
63
|
+
|
|
64
|
+
# Extract variables from the hash.
|
|
65
|
+
status_code = hash.key?('status_code') ? hash['status_code'] : nil
|
|
66
|
+
timestamp = if hash.key?('timestamp')
|
|
67
|
+
(DateTimeHelper.from_rfc3339(hash['timestamp']) if hash['timestamp'])
|
|
68
|
+
end
|
|
69
|
+
status_message =
|
|
70
|
+
hash.key?('status_message') ? hash['status_message'] : SKIP
|
|
71
|
+
data = hash.key?('data') ? hash['data'] : SKIP
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
OCPIResponse.new(status_code,
|
|
75
|
+
timestamp,
|
|
76
|
+
status_message,
|
|
77
|
+
data)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def to_custom_timestamp
|
|
81
|
+
DateTimeHelper.to_rfc3339(timestamp)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Provides a human-readable string representation of the object.
|
|
85
|
+
def to_s
|
|
86
|
+
class_name = self.class.name.split('::').last
|
|
87
|
+
"<#{class_name} status_code: #{@status_code}, status_message: #{@status_message},"\
|
|
88
|
+
" timestamp: #{@timestamp}, data: #{@data}>"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
92
|
+
def inspect
|
|
93
|
+
class_name = self.class.name.split('::').last
|
|
94
|
+
"<#{class_name} status_code: #{@status_code.inspect}, status_message:"\
|
|
95
|
+
" #{@status_message.inspect}, timestamp: #{@timestamp.inspect}, data: #{@data.inspect}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EMobilityVmspocpiapIs
|
|
7
|
+
# Parking direction/orientation. New in OCPI 2.3.0.
|
|
8
|
+
class ParkingDirectionEnum
|
|
9
|
+
PARKING_DIRECTION_ENUM = [
|
|
10
|
+
# TODO: Write general description for PARALLEL
|
|
11
|
+
PARALLEL = 'PARALLEL'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PERPENDICULAR
|
|
14
|
+
PERPENDICULAR = 'PERPENDICULAR'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ANGLE
|
|
17
|
+
ANGLE = 'ANGLE'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
PARKING_DIRECTION_ENUM.include?(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = PARALLEL)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'parallel' then PARALLEL
|
|
33
|
+
when 'perpendicular' then PERPENDICULAR
|
|
34
|
+
when 'angle' then ANGLE
|
|
35
|
+
else
|
|
36
|
+
default_value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EMobilityVmspocpiapIs
|
|
7
|
+
# This value, if provided, represents the restriction to the parking spot for
|
|
8
|
+
# different purposes.
|
|
9
|
+
class ParkingRestrictionEnum
|
|
10
|
+
PARKING_RESTRICTION_ENUM = [
|
|
11
|
+
# TODO: Write general description for EV_ONLY
|
|
12
|
+
EV_ONLY = 'EV_ONLY'.freeze,
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for PLUGGED
|
|
15
|
+
PLUGGED = 'PLUGGED'.freeze,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for DISABLED
|
|
18
|
+
DISABLED = 'DISABLED'.freeze,
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for CUSTOMERS
|
|
21
|
+
CUSTOMERS = 'CUSTOMERS'.freeze,
|
|
22
|
+
|
|
23
|
+
# TODO: Write general description for MOTORCYCLES
|
|
24
|
+
MOTORCYCLES = 'MOTORCYCLES'.freeze,
|
|
25
|
+
|
|
26
|
+
# TODO: Write general description for EMPLOYEES
|
|
27
|
+
EMPLOYEES = 'EMPLOYEES'.freeze,
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for TAXIS
|
|
30
|
+
TAXIS = 'TAXIS'.freeze,
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for TENANTS
|
|
33
|
+
TENANTS = 'TENANTS'.freeze
|
|
34
|
+
].freeze
|
|
35
|
+
|
|
36
|
+
def self.validate(value)
|
|
37
|
+
return false if value.nil?
|
|
38
|
+
|
|
39
|
+
PARKING_RESTRICTION_ENUM.include?(value)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.from_value(value, default_value = EV_ONLY)
|
|
43
|
+
return default_value if value.nil?
|
|
44
|
+
|
|
45
|
+
str = value.to_s.strip
|
|
46
|
+
|
|
47
|
+
case str.downcase
|
|
48
|
+
when 'ev_only' then EV_ONLY
|
|
49
|
+
when 'plugged' then PLUGGED
|
|
50
|
+
when 'disabled' then DISABLED
|
|
51
|
+
when 'customers' then CUSTOMERS
|
|
52
|
+
when 'motorcycles' then MOTORCYCLES
|
|
53
|
+
when 'employees' then EMPLOYEES
|
|
54
|
+
when 'taxis' then TAXIS
|
|
55
|
+
when 'tenants' then TENANTS
|
|
56
|
+
else
|
|
57
|
+
default_value
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# e_mobility_vmspocpiap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EMobilityVmspocpiapIs
|
|
7
|
+
# Reflects the general type of the charge point's location. May be used for
|
|
8
|
+
# user information.
|
|
9
|
+
class ParkingTypeEnum
|
|
10
|
+
PARKING_TYPE_ENUM = [
|
|
11
|
+
# TODO: Write general description for ALONG_MOTORWAY
|
|
12
|
+
ALONG_MOTORWAY = 'ALONG_MOTORWAY'.freeze,
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for PARKING_GARAGE
|
|
15
|
+
PARKING_GARAGE = 'PARKING_GARAGE'.freeze,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for PARKING_LOT
|
|
18
|
+
PARKING_LOT = 'PARKING_LOT'.freeze,
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for ON_DRIVEWAY
|
|
21
|
+
ON_DRIVEWAY = 'ON_DRIVEWAY'.freeze,
|
|
22
|
+
|
|
23
|
+
# TODO: Write general description for ON_STREET
|
|
24
|
+
ON_STREET = 'ON_STREET'.freeze,
|
|
25
|
+
|
|
26
|
+
# TODO: Write general description for UNDERGROUND_GARAGE
|
|
27
|
+
UNDERGROUND_GARAGE = 'UNDERGROUND_GARAGE'.freeze
|
|
28
|
+
].freeze
|
|
29
|
+
|
|
30
|
+
def self.validate(value)
|
|
31
|
+
return false if value.nil?
|
|
32
|
+
|
|
33
|
+
PARKING_TYPE_ENUM.include?(value)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.from_value(value, default_value = ALONG_MOTORWAY)
|
|
37
|
+
return default_value if value.nil?
|
|
38
|
+
|
|
39
|
+
str = value.to_s.strip
|
|
40
|
+
|
|
41
|
+
case str.downcase
|
|
42
|
+
when 'along_motorway' then ALONG_MOTORWAY
|
|
43
|
+
when 'parking_garage' then PARKING_GARAGE
|
|
44
|
+
when 'parking_lot' then PARKING_LOT
|
|
45
|
+
when 'on_driveway' then ON_DRIVEWAY
|
|
46
|
+
when 'on_street' then ON_STREET
|
|
47
|
+
when 'underground_garage' then UNDERGROUND_GARAGE
|
|
48
|
+
else
|
|
49
|
+
default_value
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|