Fred Friis
03/12/2024, 4:19 PMkotlin
return taxableOrder
.copy(
checks = taxableOrder
.checks
?.map { taxableCheck ->
taxableCheck.copy(selections = taxableCheck
.selections
?.map { taxableSelection ->
taxableSelection.copy(taxCategory = TaxableSelection.TaxCategory.HOT_FOOD) //this is really the only thing we want to change
}
)
}
)
// but we still have to map and copy every step on the way into that nested attribute 🫠Sam
03/12/2024, 4:23 PMAlejandro Serrano.Mena
03/12/2024, 4:51 PMsimon.vergauwen
03/13/2024, 6:27 AM