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
21 changes: 21 additions & 0 deletions lib/ioki/model/webhooks/line.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

module Ioki
module Model
module Webhooks
class Line < Base
attribute :type, type: :string
attribute :id, type: :string
attribute :created_at, type: :date_time
attribute :updated_at, type: :date_time
attribute :name, type: :string
attribute :slug, type: :string
attribute :mode, type: :string
attribute :route_number, type: :string
attribute :skip_time_window_check, type: :boolean
attribute :variant, type: :string
attribute :product_id, type: :string
end
end
end
end
24 changes: 24 additions & 0 deletions lib/ioki/model/webhooks/line_stop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

module Ioki
module Model
module Webhooks
class LineStop < Base
attribute :type, type: :string
attribute :id, type: :string
attribute :created_at, type: :date_time
attribute :updated_at, type: :date_time
attribute :relative_time, type: :integer
attribute :station_id, type: :string
attribute :line_id, type: :string
attribute :dropoff_mode, type: :string
attribute :pickup_mode, type: :string
attribute :supports_pickup, type: :boolean
attribute :supports_dropoff, type: :boolean
attribute :supports_pass_through, type: :boolean
attribute :tier, type: :integer
attribute :product_id, type: :string
end
end
end
end