Skip to content

Commit

Permalink
Add show_autonomous_onboarding feature flag (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
juschmitt authored Oct 14, 2024
1 parent 650fb3d commit 726abb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public data class ApiProduct(
@SerialName(value = "update_passengers_after_booking")
val updatePassengersAfterBooking: Boolean,
val venues: Boolean,
@SerialName(value = "show_autonomous_onboarding")
val showAutonomousOnboarding: Boolean,
)

@Serializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ internal class ApiProductTest : IokiApiModelTest() {
stationSearch = true,
updatePassengersAfterBooking = false,
venues = true,
showAutonomousOnboarding = false,
),
productRideOptions = listOf(
ApiProduct.RideOptions(
Expand Down Expand Up @@ -232,6 +233,7 @@ internal class ApiProductTest : IokiApiModelTest() {
stationSearch = false,
updatePassengersAfterBooking = false,
venues = false,
showAutonomousOnboarding = false,
),
productRideOptions =
listOf(
Expand Down Expand Up @@ -352,7 +354,8 @@ private val productMinimal =
"prebooking_ui_assistance": false,
"station_search": false,
"update_passengers_after_booking": false,
"venues": false
"venues": false,
"show_autonomous_onboarding": false
},
"passenger_options": [
{
Expand Down Expand Up @@ -523,7 +526,8 @@ private val product =
"prebooking_ui_assistance": true,
"station_search": true,
"update_passengers_after_booking": false,
"venues": true
"venues": true,
"show_autonomous_onboarding": false
},
"help_url": "https://example.com/help.html",
"support_email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ fun createApiProductFeatures(
stationSearch: Boolean = false,
updatePassengersAfterBooking: Boolean = false,
venues: Boolean = false,
showAutonomousOnboarding: Boolean = false,
): ApiProduct.Features = ApiProduct.Features(
multipleBookingSolutions = multipleBookingSolutions,
serialBooking = serialBooking,
Expand All @@ -308,6 +309,7 @@ fun createApiProductFeatures(
stationSearch = stationSearch,
updatePassengersAfterBooking = updatePassengersAfterBooking,
venues = venues,
showAutonomousOnboarding = showAutonomousOnboarding,
)

fun createApiPaymentMethodRequest(
Expand Down

0 comments on commit 726abb2

Please sign in to comment.