Usually you would lookup the definition of those types just as you do for the function that you are trying to call. At least it’s a good idea to know what a function accepts before passing around your customer IDs ;)
And to answer your last question, yes in Scala you can use named parameters like in your example.