Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/ioki/model/platform/announcement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module Ioki
module Model
module Platform
class Announcement < Base
attribute :resource_id, type: :string, on: [:create, :read, :update]
attribute :zone_id, type: :string, on: [:create, :read, :update]
attribute :targets, type: :array, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
3 changes: 3 additions & 0 deletions lib/ioki/model/platform/area.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module Ioki
module Model
module Platform
class Area < Base
attribute :bounding_box, type: :object, on: [:create, :read, :update], class_name: 'BoundingBox'
attribute :legend_description_translations, type: :object, on: [:create, :read, :update], class_name: 'MultilanguageString'
attribute :legend_title_translations, type: :object, on: [:create, :read, :update], class_name: 'MultilanguageString'
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
1 change: 1 addition & 0 deletions lib/ioki/model/platform/assistance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def self.schema_path
'platform_api--v20210101--ride_inquiry--assistance'
end

attribute :error_code, type: :string, on: [:create, :read, :update]
attribute :href, on: :read, type: :string
attribute :text, on: :read, type: :string
attribute :title, on: :read, type: :string
Expand Down
2 changes: 2 additions & 0 deletions lib/ioki/model/platform/booking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Ioki
module Model
module Platform
class Booking < Base
attribute :paypal_secure_element, type: :string, on: [:create, :read, :update]
attribute :solution_id, type: :string, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
1 change: 1 addition & 0 deletions lib/ioki/model/platform/calculated_point.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Ioki
module Model
module Platform
class CalculatedPoint < Base
attribute :communicated_time, type: :string, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
6 changes: 6 additions & 0 deletions lib/ioki/model/platform/cancellation_statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module Ioki
module Model
module Platform
class CancellationStatement < Base
attribute :suitable_for_single_rides, type: :boolean, on: [:create, :read, :update]
attribute :suitable_for_ride_series, type: :boolean, on: [:create, :read, :update]
attribute :updated_at, type: :string, on: [:create, :read, :update]
attribute :created_at, type: :string, on: [:create, :read, :update]
attribute :id, type: :string, on: [:create, :read, :update]
attribute :type, type: :string, on: [:create, :read, :update]
attribute :group, on: :read, type: :string
attribute :identifier, on: :read, type: :string
attribute :product_id, on: :read, type: :string
Expand Down
2 changes: 1 addition & 1 deletion lib/ioki/model/platform/captcha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Captcha < Base
attribute :question_prompt, on: :read, type: :string
attribute :image_url, on: :read, type: :string

attribute :solution, on: :create, type: :string
# attribute :solution, on: :create, type: :string
end
end
end
Expand Down
28 changes: 28 additions & 0 deletions lib/ioki/model/platform/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ module Ioki
module Model
module Platform
class Client < Base
attribute :web_user_account_deletion_slug, type: :string, on: [:create, :read, :update]
attribute :terms_of_service_url_override, type: :string, on: [:create, :read, :update]
attribute :supports_web_deletion_requests, type: :boolean, on: [:create, :read, :update]
attribute :support_website_url_override, type: :string, on: [:create, :read, :update]
attribute :support_phone_number_override, type: :string, on: [:create, :read, :update]
attribute :support_email_override, type: :string, on: [:create, :read, :update]
attribute :render_deprecated_attributes, type: :boolean, on: [:create, :read, :update]
attribute :provider_id, type: :string, on: [:create, :read, :update]
attribute :product_ids, type: :array, on: [:create, :read, :update]
attribute :privacy_policy_url_override, type: :string, on: [:create, :read, :update]
attribute :platform, type: :string, on: [:create, :read, :update]
attribute :ios_team_id, type: :string, on: [:create, :read, :update]
attribute :ios_apple_identifier, type: :string, on: [:create, :read, :update]
attribute :ios_bundle_identifier, type: :string, on: [:create, :read, :update]
attribute :imprint_url_override, type: :string, on: [:create, :read, :update]
attribute :imprint_override, type: :string, on: [:create, :read, :update]
attribute :help_url_override, type: :string, on: [:create, :read, :update]
attribute :distribution_url, type: :string, on: [:create, :read, :update]
attribute :default_user_segment_id, type: :string, on: [:create, :read, :update]
attribute :default_map_zoom_level, type: :number, on: [:create, :read, :update]
attribute :default_map_center_lng, type: :number, on: [:create, :read, :update]
attribute :default_map_center_lat, type: :number, on: [:create, :read, :update]
attribute :deeplink_scheme, type: :string, on: [:create, :read, :update]
attribute :client_type, type: :string, on: [:create, :read, :update]
attribute :brand_color_override, type: :string, on: [:create, :read, :update]
attribute :android_package_name, type: :string, on: [:create, :read, :update]
attribute :android_certificate_fingerprints, type: :array, on: [:create, :read, :update]
attribute :accessible_user_segment_ids, type: :array, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :allows_external_payment, on: :read, type: :boolean
attribute :current_version, on: :read, type: :string
Expand Down
4 changes: 2 additions & 2 deletions lib/ioki/model/platform/client_challenge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class ClientChallenge < Base
attribute :updated_at, on: :read, type: :date_time
attribute :challenge, on: :read, type: :string

attribute :solution, on: :create, type: :string
attribute :nonce, on: :create, type: :string
# attribute :solution, on: :create, type: :string
# attribute :nonce, on: :create, type: :string
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ioki/model/platform/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Ioki
module Model
module Platform
class Driver < Base
attribute :operator_id, type: :string, on: [:create, :read, :update]
attribute :password_disclosed, type: :boolean, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
4 changes: 3 additions & 1 deletion lib/ioki/model/platform/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Ioki
module Model
module Platform
class Line < Base
attribute :slug, type: :string, on: [:create, :read, :update]
attribute :mode, type: :string, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand All @@ -13,7 +15,7 @@ class Line < Base
attribute :variant, on: [:read, :create, :update], type: :string
attribute :skip_time_window_check, on: [:read, :create, :update], type: :boolean
attribute :line_stops, type: :array, on: :read, class_name: 'LineStop'
attribute :version, on: :read, type: :integer
# attribute :version, on: :read, type: :integer
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ioki/model/platform/line_stop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LineStop < Base
attribute :supports_dropoff, on: [:read, :create, :update], type: :boolean
attribute :supports_pass_through, on: [:read, :create, :update], type: :boolean
attribute :station_id, on: [:read, :create], type: :string
attribute :version, on: :read, type: :integer
# attribute :version, on: :read, type: :integer
end
end
end
Expand Down
37 changes: 37 additions & 0 deletions lib/ioki/model/platform/matching_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,43 @@ module Ioki
module Model
module Platform
class MatchingConfiguration < Base
attribute :drt_sub_area_id, type: :string, on: [:create, :read, :update]
attribute :time_window_collapse_threshold, type: :integer, on: [:create, :read, :update]
attribute :streak_split_buffer_threshold, type: :integer, on: [:create, :read, :update]
attribute :ride_distance_min, type: :integer, on: [:create, :read, :update]
attribute :prevent_station_to_station_matching, type: :boolean, on: [:create, :read, :update]
attribute :prevent_address_to_address_matching, type: :boolean, on: [:create, :read, :update]
attribute :penalty_per_passenger_walking_second, type: :number, on: [:create, :read, :update]
attribute :penalty_per_passenger_waiting_second, type: :number, on: [:create, :read, :update]
attribute :penalty_per_empty_duration, type: :number, on: [:create, :read, :update]
attribute :penalty_per_driving_second, type: :number, on: [:create, :read, :update]
attribute :penalty_per_driving_duration, type: :number, on: [:create, :read, :update]
attribute :penalty_per_delay_second, type: :number, on: [:create, :read, :update]
attribute :penalty_per_cost_benefit_ratio, type: :number, on: [:create, :read, :update]
attribute :penalty_per_additional_empty_duration, type: :number, on: [:create, :read, :update]
attribute :penalty_per_additional_driving_duration, type: :number, on: [:create, :read, :update]
attribute :minimum_detour_duration, type: :integer, on: [:create, :read, :update]
attribute :maximum_detour_duration, type: :integer, on: [:create, :read, :update]
attribute :max_walking_duration_dropoff, type: :integer, on: [:create, :read, :update]
attribute :max_walking_duration_pickup, type: :integer, on: [:create, :read, :update]
attribute :max_walking_duration, type: :integer, on: [:create, :read, :update]
attribute :max_request_time_deviation, type: :integer, on: [:create, :read, :update]
attribute :matching_mode_pickup, type: :string, on: [:create, :read, :update]
attribute :matching_mode_dropoff, type: :string, on: [:create, :read, :update]
attribute :matching_max_enclosed_tasks, type: :integer, on: [:create, :read, :update]
attribute :matching_considered_stations, type: :integer, on: [:create, :read, :update]
attribute :gain_per_ride_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_passenger_second, type: :number, on: [:create, :read, :update]
attribute :gain_per_passenger_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_passenger_direct_routing_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_loaded_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_additional_ride_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_additional_passenger_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_additional_passenger_direct_routing_duration, type: :number, on: [:create, :read, :update]
attribute :gain_per_additional_loaded_duration, type: :number, on: [:create, :read, :update]
attribute :detour_duration_factor, type: :number, on: [:create, :read, :update]
attribute :description, type: :string, on: [:create, :read, :update]
attribute :version, type: :integer, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
14 changes: 14 additions & 0 deletions lib/ioki/model/platform/multilanguage_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ def self.schema_path
'multilanguage_string'
end

attribute :en_bz, type: :string, on: [:create, :read, :update]
attribute :uk, type: :string, on: [:create, :read, :update]
attribute :tr, type: :string, on: [:create, :read, :update]
attribute :da, type: :string, on: [:create, :read, :update]
attribute :ar, type: :string, on: [:create, :read, :update]
attribute :en_jm, type: :string, on: [:create, :read, :update]
attribute :ca, type: :string, on: [:create, :read, :update]
attribute :it, type: :string, on: [:create, :read, :update]
attribute :es, type: :string, on: [:create, :read, :update]
attribute :nl, type: :string, on: [:create, :read, :update]
attribute :de_ch, type: :string, on: [:create, :read, :update]
attribute :fr, type: :string, on: [:create, :read, :update]
attribute :en, type: :string, on: [:create, :read, :update]
attribute :de, type: :string, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :name, on: :read, type: :string
attribute :translations, on: :read, type: :array, class_name: 'Translation'
Expand Down
8 changes: 5 additions & 3 deletions lib/ioki/model/platform/operator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Ioki
module Model
module Platform
class Operator < Base
attribute :locale, type: :string, on: [:create, :read, :update]
attribute :matching_rank, type: :integer, on: [:create, :read, :update]
attribute :type,
on: :read,
type: :string
Expand All @@ -20,9 +22,9 @@ class Operator < Base
on: :read,
type: :date_time

attribute :archived_at,
on: :read,
type: :date_time
# attribute :archived_at,
# on: :read,
# type: :date_time

attribute :default_operator,
on: :read,
Expand Down
4 changes: 3 additions & 1 deletion lib/ioki/model/platform/passenger_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module Ioki
module Model
module Platform
class PassengerOption < Base
attribute :name, on: [:read, :create], type: :string
attribute :accessibility_information_translations, type: :object, on: [:create, :read, :update], class_name: 'MultilanguageString'
attribute :default_value, type: :string, on: [:create, :read, :update]
deprecated_attribute :name, on: [:read, :create], type: :string
attribute :slug, on: [:read, :create], type: :string
attribute :value, on: :create, type: [:string, :boolean, :integer]

Expand Down
4 changes: 3 additions & 1 deletion lib/ioki/model/platform/personal_discount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Ioki
module Model
module Platform
class PersonalDiscount < Base
attribute :fixed_price_per_ride, type: :object, on: [:create, :read, :update], class_name: 'Money'
attribute :fixed_price_per_passenger, type: :object, on: [:create, :read, :update], class_name: 'Money'
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand All @@ -16,7 +18,7 @@ class PersonalDiscount < Base
attribute :maximum_usages, on: :read, type: :integer
attribute :payment_method, on: :read, type: :object, class_name: 'PaymentMethod'
attribute :product_id, on: :read, type: :string
attribute :receipts, on: :read, type: :array, class_name: 'Receipt'
deprecated_attribute :receipts, on: :read, type: :array, class_name: 'Receipt'
attribute :relative_discount, on: :read, type: :integer
attribute :title, on: :read, type: :string
attribute :usages, on: :read, type: :integer
Expand Down
5 changes: 5 additions & 0 deletions lib/ioki/model/platform/place.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ module Ioki
module Model
module Platform
class Place < Base
attribute :description, type: :string, on: [:create, :read, :update]
attribute :country, type: :string, on: [:create, :read, :update]
attribute :county, type: :string, on: [:create, :read, :update]
attribute :slug, type: :string, on: [:create, :read, :update]
attribute :version, type: :integer, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand Down
17 changes: 9 additions & 8 deletions lib/ioki/model/platform/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Ioki
module Model
module Platform
class Product < Base
attribute :vehicle_operator_information, type: :string, on: [:create, :read, :update]
attribute :type, on: :read, type: :string
attribute :id, on: :read, type: :string
attribute :created_at, on: :read, type: :date_time
Expand All @@ -21,8 +22,8 @@ class Product < Base
attribute :payment_method_allowed_on_booking, on: :read, type: :boolean
attribute :payment_method_required_on_booking, on: :read, type: :boolean
attribute :prebookable, on: :read, type: :boolean
attribute :ride_options, on: :read, type: :object, class_name: 'RideOptions'
attribute :ride_rating_criteria, on: :read, type: :array
deprecated_attribute :ride_options, on: :read, type: :object, class_name: 'RideOptions'
deprecated_attribute :ride_rating_criteria, on: :read, type: :array
attribute :service_time_info, on: :read, type: :string
attribute :slug, on: [:read, :update], type: :string
attribute :support_email, on: :read, type: :string
Expand All @@ -31,21 +32,21 @@ class Product < Base
attribute :tableau_url, on: :read, type: :string
attribute :task_lists_planning_url, on: :read, type: :string
attribute :timezone, on: :read, type: :object, class_name: 'Timezone'
attribute :vehicle_operator_info, on: :read, type: :string
# attribute :vehicle_operator_info, on: :read, type: :string
attribute :vehicles_planning_url, on: :read, type: :string
attribute :announcement, on: :read, type: :object, class_name: 'Announcement'
deprecated_attribute :announcement, on: :read, type: :object, class_name: 'Announcement'
attribute :announcements, on: :read, type: :array, class_name: 'Announcement'
deprecated_attribute :area, type: :object, on: :read, class_name: 'GeoJson'
attribute :bounding_box, on: :read, type: :object, class_name: 'BoundingBox'
deprecated_attribute :bounding_box, on: :read, type: :object, class_name: 'BoundingBox'
attribute :default_map_bounding_box, on: :read, type: :object, class_name: 'BoundingBox'
attribute :features, on: :read, type: :object, class_name: 'ProductFeatures'
attribute :driver_cancellation_statements, on: :read, type: :array, class_name: 'CancellationStatement'
attribute :passenger_cancellation_statements, on: :read, type: :array, class_name: 'CancellationStatement'
attribute :fixed_stations, on: :read, type: :array, class_name: 'Station'
attribute :matching_configurations, on: :read, type: :array, class_name: 'MatchingConfiguration'
attribute :passenger_options, on: :read, type: :array, class_name: 'PassengerOption'
attribute :passenger_types, on: :read, type: :array, class_name: 'PassengerType'
attribute :product_ride_options, on: :read, type: :array, class_name: 'RideOption'
deprecated_attribute :passenger_options, on: :read, type: :array, class_name: 'PassengerOption'
deprecated_attribute :passenger_types, on: :read, type: :array, class_name: 'PassengerType'
deprecated_attribute :product_ride_options, on: :read, type: :array, class_name: 'RideOption'
attribute :provider, type: :object, on: :read, class_name: 'Provider'
attribute :tipping, on: :read, type: :object, class_name: 'Tipping'
end
Expand Down
3 changes: 2 additions & 1 deletion lib/ioki/model/platform/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Ioki
module Model
module Platform
class Provider < Base
attribute :custom_urls, type: :array, on: [:create, :read, :update]
attribute :type,
on: :read,
type: :string
Expand Down Expand Up @@ -64,7 +65,7 @@ class Provider < Base
on: :read,
type: :string

attribute :other_url,
deprecated_attribute :other_url,
on: :read,
type: :string

Expand Down
Loading
Loading