diff --git a/lib/ioki/model/platform/announcement.rb b/lib/ioki/model/platform/announcement.rb index 2521ddb6..79088096 100644 --- a/lib/ioki/model/platform/announcement.rb +++ b/lib/ioki/model/platform/announcement.rb @@ -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 diff --git a/lib/ioki/model/platform/area.rb b/lib/ioki/model/platform/area.rb index 67a17ec8..db82a467 100644 --- a/lib/ioki/model/platform/area.rb +++ b/lib/ioki/model/platform/area.rb @@ -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 diff --git a/lib/ioki/model/platform/assistance.rb b/lib/ioki/model/platform/assistance.rb index 4e9a9f9b..fcdf2bba 100644 --- a/lib/ioki/model/platform/assistance.rb +++ b/lib/ioki/model/platform/assistance.rb @@ -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 diff --git a/lib/ioki/model/platform/booking.rb b/lib/ioki/model/platform/booking.rb index e772cbfa..ee4c71b1 100644 --- a/lib/ioki/model/platform/booking.rb +++ b/lib/ioki/model/platform/booking.rb @@ -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 diff --git a/lib/ioki/model/platform/calculated_point.rb b/lib/ioki/model/platform/calculated_point.rb index fe5a70b2..b0109c1c 100644 --- a/lib/ioki/model/platform/calculated_point.rb +++ b/lib/ioki/model/platform/calculated_point.rb @@ -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 diff --git a/lib/ioki/model/platform/cancellation_statement.rb b/lib/ioki/model/platform/cancellation_statement.rb index d3017cb2..1fcd858e 100644 --- a/lib/ioki/model/platform/cancellation_statement.rb +++ b/lib/ioki/model/platform/cancellation_statement.rb @@ -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 diff --git a/lib/ioki/model/platform/captcha.rb b/lib/ioki/model/platform/captcha.rb index 00455f2a..cc898aaa 100644 --- a/lib/ioki/model/platform/captcha.rb +++ b/lib/ioki/model/platform/captcha.rb @@ -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 diff --git a/lib/ioki/model/platform/client.rb b/lib/ioki/model/platform/client.rb index efa8b246..e13eea9f 100644 --- a/lib/ioki/model/platform/client.rb +++ b/lib/ioki/model/platform/client.rb @@ -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 diff --git a/lib/ioki/model/platform/client_challenge.rb b/lib/ioki/model/platform/client_challenge.rb index a5b02c09..61d55b0f 100644 --- a/lib/ioki/model/platform/client_challenge.rb +++ b/lib/ioki/model/platform/client_challenge.rb @@ -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 diff --git a/lib/ioki/model/platform/driver.rb b/lib/ioki/model/platform/driver.rb index 51a094e7..c467dae2 100644 --- a/lib/ioki/model/platform/driver.rb +++ b/lib/ioki/model/platform/driver.rb @@ -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 diff --git a/lib/ioki/model/platform/line.rb b/lib/ioki/model/platform/line.rb index 806f6732..fddde92e 100644 --- a/lib/ioki/model/platform/line.rb +++ b/lib/ioki/model/platform/line.rb @@ -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 @@ -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 diff --git a/lib/ioki/model/platform/line_stop.rb b/lib/ioki/model/platform/line_stop.rb index 041953eb..d3ef4bb7 100644 --- a/lib/ioki/model/platform/line_stop.rb +++ b/lib/ioki/model/platform/line_stop.rb @@ -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 diff --git a/lib/ioki/model/platform/matching_configuration.rb b/lib/ioki/model/platform/matching_configuration.rb index 9647bf65..7e2e0025 100644 --- a/lib/ioki/model/platform/matching_configuration.rb +++ b/lib/ioki/model/platform/matching_configuration.rb @@ -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 diff --git a/lib/ioki/model/platform/multilanguage_string.rb b/lib/ioki/model/platform/multilanguage_string.rb index 73601fd5..70ae6dc9 100644 --- a/lib/ioki/model/platform/multilanguage_string.rb +++ b/lib/ioki/model/platform/multilanguage_string.rb @@ -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' diff --git a/lib/ioki/model/platform/operator.rb b/lib/ioki/model/platform/operator.rb index 23f6ccfd..978dbc2c 100644 --- a/lib/ioki/model/platform/operator.rb +++ b/lib/ioki/model/platform/operator.rb @@ -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 @@ -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, diff --git a/lib/ioki/model/platform/passenger_option.rb b/lib/ioki/model/platform/passenger_option.rb index 1487022e..79e741e5 100644 --- a/lib/ioki/model/platform/passenger_option.rb +++ b/lib/ioki/model/platform/passenger_option.rb @@ -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] diff --git a/lib/ioki/model/platform/personal_discount.rb b/lib/ioki/model/platform/personal_discount.rb index 25c7b28f..452e9cdc 100644 --- a/lib/ioki/model/platform/personal_discount.rb +++ b/lib/ioki/model/platform/personal_discount.rb @@ -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 @@ -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 diff --git a/lib/ioki/model/platform/place.rb b/lib/ioki/model/platform/place.rb index 4c8a07b2..4c40c5c9 100644 --- a/lib/ioki/model/platform/place.rb +++ b/lib/ioki/model/platform/place.rb @@ -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 diff --git a/lib/ioki/model/platform/product.rb b/lib/ioki/model/platform/product.rb index ee0efda6..6848e900 100644 --- a/lib/ioki/model/platform/product.rb +++ b/lib/ioki/model/platform/product.rb @@ -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 @@ -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 @@ -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 diff --git a/lib/ioki/model/platform/provider.rb b/lib/ioki/model/platform/provider.rb index 0b18a57a..ebf6c23d 100644 --- a/lib/ioki/model/platform/provider.rb +++ b/lib/ioki/model/platform/provider.rb @@ -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 @@ -64,7 +65,7 @@ class Provider < Base on: :read, type: :string - attribute :other_url, + deprecated_attribute :other_url, on: :read, type: :string diff --git a/lib/ioki/model/platform/rating.rb b/lib/ioki/model/platform/rating.rb index b75a857d..cebc5691 100644 --- a/lib/ioki/model/platform/rating.rb +++ b/lib/ioki/model/platform/rating.rb @@ -4,21 +4,22 @@ module Ioki module Model module Platform class Rating < Base + attribute :rating_line_items, 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 attribute :updated_at, on: :read, type: :date_time attribute :comment, on: [:read, :create, :update], type: :string - attribute :driver_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :driver_rating, on: [:read, :create, :update], type: :integer attribute :editable, on: :read, type: :boolean - attribute :punctuality_rating, on: [:read, :create, :update], type: :integer - attribute :ride_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :punctuality_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :ride_rating, on: [:read, :create, :update], type: :integer attribute :ride_version, on: [:create, :update], type: :integer, unvalidated: true - attribute :service_rating, on: [:read, :create, :update], type: :integer - attribute :vehicle_cleanliness_rating, on: [:read, :create, :update], type: :integer - attribute :vehicle_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :service_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :vehicle_cleanliness_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :vehicle_rating, on: [:read, :create, :update], type: :integer attribute :version, on: [:read, :update], type: :integer - attribute :waiting_time_rating, on: [:read, :create, :update], type: :integer + deprecated_attribute :waiting_time_rating, on: [:read, :create, :update], type: :integer end end end diff --git a/lib/ioki/model/platform/receipt.rb b/lib/ioki/model/platform/receipt.rb index 9383183e..2c37a73d 100644 --- a/lib/ioki/model/platform/receipt.rb +++ b/lib/ioki/model/platform/receipt.rb @@ -4,15 +4,16 @@ module Ioki module Model module Platform class Receipt < Base + attribute :charge_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 attribute :updated_at, on: :read, type: :date_time attribute :attachment_url, on: :read, type: :string - attribute :purchasable_id, on: :read, type: :string - attribute :purchasable_type, on: :read, type: :string - attribute :receipt_type, on: :read, type: :string - attribute :topic, on: :read, type: :string + deprecated_attribute :purchasable_id, on: :read, type: :string + deprecated_attribute :purchasable_type, on: :read, type: :string + deprecated_attribute :receipt_type, on: :read, type: :string + deprecated_attribute :topic, on: :read, type: :string attribute :user_id, on: :read, type: :string end end diff --git a/lib/ioki/model/platform/ride.rb b/lib/ioki/model/platform/ride.rb index 6aa641d9..5e585a1e 100644 --- a/lib/ioki/model/platform/ride.rb +++ b/lib/ioki/model/platform/ride.rb @@ -4,11 +4,18 @@ module Ioki module Model module Platform class Ride < Base + attribute :phone_calls, type: :array, on: [:create, :read, :update] + attribute :cancellation_statement, type: :object, on: [:create, :read, :update], class_name: 'CancellationStatement' + attribute :last_serving_driver_id, type: :string, on: [:create, :read, :update] + attribute :passenger_note_to_driver, type: :string, on: [:create, :read, :update] + attribute :ride_series_id, type: :string, on: [:create, :read, :update] + attribute :creator_type, type: :string, on: [:create, :read, :update] + attribute :creator_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 attribute :updated_at, on: :read, type: :date_time - attribute :book_for_others, on: [:read, :create, :update], type: :boolean + deprecated_attribute :book_for_others, on: [:read, :create, :update], type: :boolean attribute :booking, type: :object, on: :read, class_name: 'Booking' attribute :cancellable, on: :read, type: :boolean attribute :cancellation_reason, on: :read, type: :string @@ -27,7 +34,7 @@ class Ride < Base attribute :passenger_can_be_called, on: :read, type: :boolean attribute :passengers, type: :array, on: [:create, :read], class_name: 'RidePassenger' attribute :payment_method, on: :read, type: :object, class_name: 'PaymentMethod' - attribute :payment_state, on: :read, type: :string + deprecated_attribute :payment_state, on: :read, type: :string attribute :pickup, type: :object, on: :read, class_name: 'CalculatedPoint' attribute :pickup_task, on: :read, type: :object, class_name: 'Task' attribute :prebooked, on: :read, type: :boolean @@ -35,10 +42,10 @@ class Ride < Base attribute :public_transport_uri, on: :read, type: :string attribute :rateable, on: :read, type: :boolean attribute :rating, type: :object, on: :read, class_name: 'Rating' - attribute :receipts, on: :read, type: :array, class_name: 'Receipt' + deprecated_attribute :receipts, on: :read, type: :array, class_name: 'Receipt' attribute :route, on: :read, type: :object, class_name: 'Route' attribute :state, type: :string, on: :read - attribute :storage_spaces, type: :integer, on: [:read, :create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :storage_spaces, type: :integer, on: [:read, :create, :update], omit_if_blank_on: [:create, :update] attribute :support_uri, on: :read, type: :string attribute :tippable, on: :read, type: :boolean attribute :user, type: :object, on: :read, class_name: 'User' diff --git a/lib/ioki/model/platform/ride_inquiry.rb b/lib/ioki/model/platform/ride_inquiry.rb index d59d5b0d..b376bc72 100644 --- a/lib/ioki/model/platform/ride_inquiry.rb +++ b/lib/ioki/model/platform/ride_inquiry.rb @@ -4,6 +4,7 @@ module Ioki module Model module Platform class RideInquiry < Base + attribute :passengers, 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 @@ -12,7 +13,7 @@ class RideInquiry < Base attribute :availability, on: :read, type: :object, class_name: 'Availability' attribute :constraints, on: :read, type: :object, class_name: 'Constraints' attribute :destination, on: :create, type: :object, class_name: 'RequestedPoint', unvalidated: true - attribute :errors, on: :read, type: :array + deprecated_attribute :errors, on: :read, type: :array attribute :estimations, on: :read, type: :array, class_name: 'Estimation' attribute :origin, on: :create, type: :object, class_name: 'RequestedPoint', unvalidated: true end diff --git a/lib/ioki/model/platform/ride_inquiry_link.rb b/lib/ioki/model/platform/ride_inquiry_link.rb index 00d7f381..b42a5325 100644 --- a/lib/ioki/model/platform/ride_inquiry_link.rb +++ b/lib/ioki/model/platform/ride_inquiry_link.rb @@ -8,6 +8,7 @@ def self.schema_path 'platform_api--v20210101--ride_inquiry--links' end + attribute :type, type: :string, on: [:create, :read, :update] attribute :android, on: :read, type: :object, class_name: 'RideInquiryLinkAndroid' attribute :ios, on: :read, type: :object, class_name: 'RideInquiryLinkIos' attribute :universal_link, on: :read, type: :string diff --git a/lib/ioki/model/platform/ride_option.rb b/lib/ioki/model/platform/ride_option.rb index 661ca9cb..ea7a522c 100644 --- a/lib/ioki/model/platform/ride_option.rb +++ b/lib/ioki/model/platform/ride_option.rb @@ -4,7 +4,9 @@ module Ioki module Model module Platform class RideOption < 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: :boolean, 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] diff --git a/lib/ioki/model/platform/ride_passenger.rb b/lib/ioki/model/platform/ride_passenger.rb index f4f32c2a..38647136 100644 --- a/lib/ioki/model/platform/ride_passenger.rb +++ b/lib/ioki/model/platform/ride_passenger.rb @@ -5,11 +5,11 @@ module Model module Platform class RidePassenger < Base attribute :type, type: :string, on: [:create, :update] - attribute :bahncard, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] - attribute :blue_badge, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] - attribute :public_transport_ticket, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] - attribute :walker, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] - attribute :wheelchair, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :bahncard, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :blue_badge, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :public_transport_ticket, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :walker, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] + deprecated_attribute :wheelchair, type: :boolean, on: [:create, :update], omit_if_blank_on: [:create, :update] attribute :options, on: [:read, :create], type: :array, class_name: 'PassengerOption' end end diff --git a/lib/ioki/model/platform/service_credit_charge.rb b/lib/ioki/model/platform/service_credit_charge.rb index 5a06c2b2..3585ba7d 100644 --- a/lib/ioki/model/platform/service_credit_charge.rb +++ b/lib/ioki/model/platform/service_credit_charge.rb @@ -4,6 +4,7 @@ module Ioki module Model module Platform class ServiceCreditCharge < Base + attribute :service_credit_deactivation, type: :object, on: [:create, :read, :update], class_name: 'ServiceCreditDeactivation' attribute :type, on: :read, type: :string attribute :id, on: :read, type: :string attribute :created_at, on: :read, type: :date_time diff --git a/lib/ioki/model/platform/station.rb b/lib/ioki/model/platform/station.rb index 34aa6d8e..b9ad055b 100644 --- a/lib/ioki/model/platform/station.rb +++ b/lib/ioki/model/platform/station.rb @@ -4,6 +4,18 @@ module Ioki module Model module Platform class Station < Base + attribute :parking_time, type: :integer, on: [:create, :read, :update] + attribute :walker_boarding_time, type: :integer, on: [:create, :read, :update] + attribute :wheelchair_boarding_time, type: :integer, on: [:create, :read, :update] + attribute :boarding_time, type: :integer, on: [:create, :read, :update] + attribute :station_category_id, type: :string, on: [:create, :read, :update] + attribute :announcements, type: :array, on: [:create, :read, :update] + attribute :tariff_codes, type: :array, on: [:create, :read, :update] + attribute :station_category, type: :object, on: [:create, :read, :update], class_name: 'NestedStationCategory' + attribute :visible_on_map_in_passenger_client, type: :boolean, on: [:create, :read, :update] + attribute :product_id, type: :string, on: [:create, :read, :update] + attribute :municipality, type: :string, on: [:create, :read, :update] + attribute :dhid, 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 diff --git a/lib/ioki/model/platform/task.rb b/lib/ioki/model/platform/task.rb index 472c1fab..a11a6f34 100644 --- a/lib/ioki/model/platform/task.rb +++ b/lib/ioki/model/platform/task.rb @@ -4,6 +4,7 @@ module Ioki module Model module Platform class Task < Base + attribute :reported_completed_at, 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 diff --git a/lib/ioki/model/platform/task_list.rb b/lib/ioki/model/platform/task_list.rb index 4b04c631..70fa562a 100644 --- a/lib/ioki/model/platform/task_list.rb +++ b/lib/ioki/model/platform/task_list.rb @@ -4,6 +4,18 @@ module Ioki module Model module Platform class TaskList < Base + attribute :end_location_type, type: :string, on: [:create, :read, :update] + attribute :end_location_id, type: :string, on: [:create, :read, :update] + attribute :start_location_type, type: :string, on: [:create, :read, :update] + attribute :start_location_id, type: :string, on: [:create, :read, :update] + attribute :start_location, type: :object, on: [:create, :read, :update], class_name: ['Place', 'Station'] + attribute :occupancy, type: :object, on: [:create, :read, :update], class_name: 'TaskListOccupancy' + attribute :end_location, type: :object, on: [:create, :read, :update], class_name: ['Place', 'Station'] + attribute :last_connected_driver_id, type: :string, on: [:create, :read, :update] + attribute :matching_rank, type: :integer, on: [:create, :read, :update] + attribute :line_id, type: :string, on: [:create, :read, :update] + attribute :current, type: :boolean, 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 @@ -13,10 +25,10 @@ class TaskList < Base attribute :ad_hoc_bookable, on: [:read, :create, :update], type: :boolean attribute :deactivated, on: :read, type: :boolean attribute :deactivations, on: :read, type: :array, class_name: 'Deactivation' - attribute :driver, on: :read, type: :object, class_name: 'Driver' + # attribute :driver, on: :read, type: :object, class_name: 'Driver' attribute :ends_at, on: [:create, :update], type: :date_time, unvalidated: true - attribute :end_place, on: :read, type: :object, class_name: 'Place' - attribute :end_place_id, on: [:create, :update], type: :object, class_name: 'Place', unvalidated: true + deprecated_attribute :end_place, on: :read, type: :object, class_name: 'Place' + deprecated_attribute :end_place_id, on: [:create, :update], type: :object, class_name: 'Place', unvalidated: true attribute :matching_configuration_id, on: [:read, :create, :update], type: :string attribute :paused, on: :read, type: :boolean attribute :pauses, on: [:read, :create], omit_if_blank_on: [:create], type: :array, class_name: 'Pause' @@ -27,8 +39,8 @@ class TaskList < Base attribute :service_ends_at, on: [:create, :read, :update], type: :date_time attribute :service_starts_at, on: [:create, :read, :update], type: :date_time attribute :starts_at, on: [:create, :update], type: :date_time, unvalidated: true - attribute :start_place, on: :read, type: :object, class_name: 'Place' - attribute :start_place_id, on: [:create, :update], type: :object, class_name: 'Place', unvalidated: true + deprecated_attribute :start_place, on: :read, type: :object, class_name: 'Place' + deprecated_attribute :start_place_id, on: [:create, :update], type: :object, class_name: 'Place', unvalidated: true attribute :state, on: [:read, :create], type: :string attribute :tasks, on: :read, type: :array, class_name: 'Task' attribute :vehicle, on: :read, type: :object, class_name: 'Vehicle' diff --git a/lib/ioki/model/platform/user.rb b/lib/ioki/model/platform/user.rb index 13052f30..dd705854 100644 --- a/lib/ioki/model/platform/user.rb +++ b/lib/ioki/model/platform/user.rb @@ -4,6 +4,9 @@ module Ioki module Model module Platform class User < Base + attribute :additional_data, type: :object, on: [:create, :read, :update], class_name: 'AdditionalDataSchema' + attribute :notification_settings, type: :array, on: [:create, :read, :update] + attribute :last_activity_at, 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 @@ -26,7 +29,7 @@ class User < Base attribute :provider_id, type: :string, on: :read attribute :terms_accepted, type: :boolean, on: [:create, :update], unvalidated: true attribute :terms_accepted_at, type: :date_time, on: :read - attribute :logpay_customer_set, on: :read, type: :boolean + # attribute :logpay_customer_set, on: :read, type: :boolean attribute :version, type: :integer, on: [:read, :update] end end diff --git a/lib/ioki/model/platform/vehicle.rb b/lib/ioki/model/platform/vehicle.rb index 18b8e2f1..abb022ec 100644 --- a/lib/ioki/model/platform/vehicle.rb +++ b/lib/ioki/model/platform/vehicle.rb @@ -4,6 +4,15 @@ module Ioki module Model module Platform class Vehicle < Base + attribute :operation_area_id, type: :string, on: [:create, :read, :update] + attribute :wheelchair_bays, type: :integer, on: [:create, :read, :update] + attribute :walker_bays, type: :integer, on: [:create, :read, :update] + attribute :storage_spaces, type: :integer, on: [:create, :read, :update] + attribute :seats, type: :integer, on: [:create, :read, :update] + attribute :operation_area, type: :string, on: [:create, :read, :update] + attribute :matching_rank, type: :integer, on: [:create, :read, :update] + attribute :door_control_available, type: :boolean, on: [:create, :read, :update] + attribute :supports_open_door_requests, type: :boolean, on: [:create, :read, :update] attribute :type, on: :read, type: :string diff --git a/lib/ioki/model/platform/webhook.rb b/lib/ioki/model/platform/webhook.rb index 3cacc98b..32556558 100644 --- a/lib/ioki/model/platform/webhook.rb +++ b/lib/ioki/model/platform/webhook.rb @@ -4,6 +4,10 @@ module Ioki module Model module Platform class Webhook < Base + attribute :secret, type: :string, on: [:create, :read, :update] + attribute :circuit_breaker, type: :object, on: [:create, :read, :update], class_name: 'CircuitBreaker' + attribute :product_ids, type: :array, on: [:create, :read, :update] + attribute :product_filter_enabled, 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