-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ioki-mobility/platform-model-api-complete…
…ness Add missing platform models and attributes
- Loading branch information
Showing
168 changed files
with
9,389 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Driver | ||
class CancellationStatement < Base | ||
attribute :identifier, on: :read, type: :string | ||
attribute :title, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/driver/passenger_type' | ||
|
||
module Ioki | ||
module Model | ||
module Driver | ||
class PassengerOptions < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :type, :id, :created_at and | ||
# :updated_at. | ||
|
||
unvalidated true # Specification not available. | ||
|
||
attribute :types, on: :read, type: :array, model_class: PassengerType | ||
attribute :wheelchair, on: :read, type: :boolean | ||
attribute :walker, on: :read, type: :boolean | ||
attribute :public_transport_ticket, on: :read, type: :boolean | ||
attribute :bahncard, on: :read, type: :boolean | ||
attribute :blue_badge, on: :read, type: :boolean | ||
attribute :name_required_if_no_public_transport_ticket, on: :read, type: :boolean | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Driver | ||
class PassengerType < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :type, :id, :created_at and | ||
# :updated_at. | ||
|
||
unvalidated true # Specification not available. | ||
|
||
attribute :type, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Driver | ||
class PrebookingThreshold < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :type, :id, :created_at and | ||
# :updated_at. | ||
|
||
unvalidated true # Specification not available. | ||
|
||
attribute :min, on: :read, type: :integer | ||
attribute :max, on: :read, type: :integer | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/driver/prebooking_threshold' | ||
require 'ioki/model/driver/passenger_options' | ||
|
||
module Ioki | ||
module Model | ||
module Driver | ||
class RideOptions < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :type, :id, :created_at and | ||
# :updated_at. | ||
|
||
unvalidated true # Specification not available. | ||
|
||
attribute :book_for_others, on: :read, type: :boolean | ||
attribute :destination_time_based_matching, on: :read, type: :boolean | ||
attribute :max_wheelchairs, on: :read, type: :integer | ||
attribute :max_walkers, on: :read, type: :integer | ||
attribute :prebooking_threshold, on: :read, type: :object, model_class: PrebookingThreshold | ||
attribute :passengers, on: :read, type: :object, model_class: PassengerOptions | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Announcement < Base | ||
attribute :ends_at, on: :read, type: :date_time | ||
attribute :severity, on: :read, type: :string | ||
attribute :show_on_every_app_start, on: :read, type: :boolean | ||
attribute :starts_at, on: :read, type: :date_time | ||
attribute :text, on: :read, type: :string | ||
attribute :title, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Area < Ioki::Model::Base | ||
# Note that this does not inherit from Base because :type behaves differently here. | ||
|
||
unvalidated true | ||
|
||
attribute :coordinates, type: :array, on: :read | ||
attribute :type, type: :string, on: :read | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Assistance < Ioki::Model::Base | ||
# Note that this does not inherit from Base because :created_at, :updated_at and :id are not defined. | ||
|
||
def self.schema_path | ||
'passenger_api--ride_inquiry--assistance' | ||
end | ||
|
||
attribute :href, on: :read, type: :string | ||
attribute :text, on: :read, type: :string | ||
attribute :title, on: :read, type: :string | ||
attribute :type, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.