Skip to content

Commit

Permalink
Merge pull request #440 from ioki-mobility/passenger-note
Browse files Browse the repository at this point in the history
Operator Api | Add `passenger_note_to_driver`
  • Loading branch information
tom-ioki authored Oct 11, 2024
2 parents 2d7be67 + db911b1 commit c34cb5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ioki/model/operator/features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ class Features < Base
attribute :admins_can_set_arbitrary_driver_password,
type: :boolean,
on: :read

attribute :passenger_note_to_driver,
type: :boolean,
on: :read
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/ioki/model/operator/ride.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ class Ride < Base
type: :array,
class_name: 'RidePassenger'

attribute :passenger_note_to_driver,
on: :read,
type: :string

attribute :payment_state,
on: :read,
type: :string
Expand Down
1 change: 1 addition & 0 deletions spec/ioki/model/operator/ride_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
it { is_expected.to define_attribute(:origin).as(:object).with(class_name: 'RequestedPoint') }
it { is_expected.to define_attribute(:passenger_can_be_called).as(:boolean) }
it { is_expected.to define_attribute(:passengers).as(:array).with(class_name: 'RidePassenger') }
it { is_expected.to define_attribute(:passenger_note_to_driver).as(:string) }
it { is_expected.to define_attribute(:payment_state).as(:string) }
it { is_expected.to define_attribute(:pickup).as(:object).with(class_name: 'CalculatedPoint') }
it { is_expected.to define_attribute(:pickup_task).as(:object).with(class_name: 'Task') }
Expand Down

0 comments on commit c34cb5f

Please sign in to comment.