-
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.
Change to dynamic passenger types/options in the platform API
- Loading branch information
Showing
6 changed files
with
89 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Platform | ||
class MultilanguageString < Base | ||
attribute :type, on: :read, type: :string | ||
attribute :name, on: :read, type: :string | ||
attribute :translations, on: :read, type: :array, class_name: 'Translation' | ||
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,24 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Platform | ||
class PassengerOption < Base | ||
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 :bookable, on: :read, type: :boolean | ||
attribute :data_type, on: :read, type: :string | ||
attribute :name, on: :read, type: :string | ||
attribute :option_type, on: :read, type: :string | ||
attribute :name_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :description_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :info_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :link_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :link_text_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
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
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 | ||
|
||
module Ioki | ||
module Model | ||
module Platform | ||
class RideOption < Base | ||
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 :bookable, on: :read, type: :boolean | ||
attribute :data_type, on: :read, type: :string | ||
attribute :name, on: :read, type: :string | ||
attribute :option_type, on: :read, type: :string | ||
attribute :name_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :description_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :info_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :link_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
attribute :link_text_translations, on: :read, type: :object, class_name: 'MultilanguageString' | ||
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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Platform | ||
class Translation < Base | ||
attribute :type, on: :read, type: :string | ||
attribute :language, on: :read, type: :string | ||
attribute :text, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |