-
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.
- Loading branch information
Showing
51 changed files
with
754 additions
and
108 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,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,24 @@ | ||
# 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 | ||
|
||
def self.specification_scope | ||
nil | ||
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 |
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,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Availability < Base | ||
unvalidated true # No specification available | ||
|
||
attribute :available, on: :read, type: :boolean | ||
attribute :next_availability, on: :read, type: :date_time | ||
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 | ||
|
||
require 'ioki/model/passenger/coordinate' | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class BoundingBox < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :created_at, :updated_at, :type and :id. | ||
|
||
def self.schema_path | ||
'bounding_box' | ||
end | ||
|
||
def self.specification_scope | ||
nil | ||
end | ||
|
||
attribute :min, on: :read, type: :object, model_class: Coordinate | ||
attribute :max, on: :read, type: :object, model_class: Coordinate | ||
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,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
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,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/passenger/area' | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Constraints < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :created_at, :updated_at, :type and :id. | ||
|
||
unvalidated true | ||
|
||
attribute :max_passengers, on: :read, type: :integer | ||
attribute :max_wheelchairs, on: :read, type: :integer | ||
attribute :max_walkers, on: :read, type: :integer | ||
attribute :max_storage_spaces, on: :read, type: :integer | ||
attribute :area, on: :read, type: :object, model_class: Area | ||
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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Coordinate < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not define :created_at, :id, :type and :updated_at. | ||
unvalidated true # No specification available. | ||
|
||
attribute :lat, on: :read, type: :float | ||
attribute :lng, on: :read, type: :float | ||
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,19 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Email < Ioki::Model::Base | ||
def self.specification_scope | ||
'passenger_api' | ||
end | ||
|
||
attribute :type, on: :read, type: :string | ||
attribute :confirmed, on: :read, type: :boolean | ||
attribute :email_address, on: [:read, :update], type: :string | ||
attribute :newsletter, on: :read, type: :boolean | ||
attribute :receipt, 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,28 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/passenger/calculated_point' | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Estimation < Ioki::Model::Base | ||
# Note that this does not inherit from Base because it does not implement :created_at, :updated_at and :id. | ||
|
||
def self.specification_scope | ||
nil | ||
end | ||
|
||
def self.schema_path | ||
'passenger_api--ride_inquiry--estimation' | ||
end | ||
|
||
attribute :type, on: :read, type: :string | ||
attribute :confidence, on: :read, type: :float | ||
attribute :dropoff, on: :read, type: :object, model_class: CalculatedPoint | ||
attribute :estimation_type, on: :read, type: :string | ||
attribute :meta_data, on: :read, type: :object # Quote from the API docs: "Additional metadata about the estimation, no specified format (yet)" | ||
attribute :pickup, on: :read, type: :object, model_class: CalculatedPoint | ||
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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/passenger/money' | ||
require 'ioki/model/passenger/personal_discount' | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class Fare < Base | ||
attribute :booking_price_object, on: :read, type: :object, model_class: Money | ||
attribute :booking_price_type, on: :read, type: :string | ||
attribute :final_price_object, on: :read, type: :object, model_class: Money | ||
attribute :personal_discount, on: :read, type: :object, model_class: PersonalDiscount | ||
attribute :version, 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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'ioki/model/passenger/image_version' | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class ImageUpload < Base | ||
attribute :versions, on: :read, type: :array, model_class: ImageVersion | ||
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 ImageVersion < Base | ||
unvalidated true # Specification not available | ||
|
||
attribute :large, on: :read, type: :string | ||
attribute :medium, on: :read, type: :string | ||
attribute :small, on: :read, type: :string | ||
attribute :mini, 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,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module Ioki | ||
module Model | ||
module Passenger | ||
class MobileTicketData < Base | ||
unvalidated true # Specification not available. | ||
|
||
attribute :purchase_id, on: :read, type: :string | ||
attribute :customer_code, on: :read, type: :string | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.